-
+
-
+
@@ -373,12 +353,8 @@
samplingLevelNo: '',
samplingLevelDesc: '',
defaultSamplingProportion: '',
- collectionFlag: '',
- collectionSource: '',
- collectionSourceList: [],
- collectionMethod: '',
- collectionMethodList: [],
- collectionCondition: ''
+ defectLevelCode: '',
+ defectLevelDescription: ''
},
// 检验项目展示标头
columnList: [
@@ -749,7 +725,21 @@
message: ' ',
trigger: ['blur','change']
}
- ]
+ ],
+ defectLevelCodeType:[
+ {
+ required: true,
+ message: ' ',
+ trigger: ['blur','change']
+ }
+ ],
+ defectLevelDescriptionType:[
+ {
+ required: true,
+ message: ' ',
+ trigger: ['blur','change']
+ }
+ ],
},
options: [],
methodData: {
@@ -871,6 +861,16 @@
this.$refs.baseList.init(val, strVal, conSql)
}
}
+ if (val === 211) {
+ strVal = this.modalData.defectLevelCode
+ if (this.modalData.bu === null || this.modalData.bu === '') {
+ this.$message.warning("请选择BU!")
+ return
+ } else {
+ conSql = " and bu_no = '" + this.modalData.bu.split('_')[1] + "'"
+ this.$refs.baseList.init(val, strVal, conSql)
+ }
+ }
if (val === 1036) {
strVal = this.modalData.methodNo
this.$refs.baseList.init(val, strVal)
@@ -917,6 +917,10 @@
this.modalData.samplingLevelNo = val.sampling_level_no
this.modalData.samplingLevelDesc = val.sampling_level_desc
}
+ if (this.tagNo === 211) {
+ this.modalData.defectLevelCode = val.defect_level_code
+ this.modalData.defectLevelDescription = val.defect_level_description
+ }
},
// 获取数据列表
@@ -955,12 +959,8 @@
samplingLevelNo: '',
samplingLevelDesc: '',
defaultSamplingProportion: '',
- collectionFlag: '',
- collectionSource: '',
- collectionSourceList: [],
- collectionMethod: '',
- collectionMethodList: [],
- collectionCondition: ''
+ defectLevelCode: '',
+ defectLevelDescription: ''
}
this.modalDisableFlag = false
this.modalFlag = true
@@ -990,12 +990,8 @@
samplingLevelNo: row.samplingLevelNo,
samplingLevelDesc: row.samplingLevelDesc,
defaultSamplingProportion: row.defaultSamplingProportion,
- collectionFlag: row.collectionFlag,
- collectionSource: row.collectionSource,
- collectionSourceList: row.collectionSource == null || row.collectionSource === '' ? [] : row.collectionSource.split(','),
- collectionMethod: row.collectionMethod,
- collectionMethodList: row.collectionMethod == null || row.collectionMethod === '' ? [] : row.collectionMethod.split(','),
- collectionCondition: row.collectionCondition
+ defectLevelCode: row.defectLevelCode,
+ defectLevelDescription: row.defectLevelDescription
}
this.modalDisableFlag = true
this.modalFlag = true
@@ -1048,32 +1044,14 @@
this.$message.warning('请选择检验方法!')
return
}
- // if ((this.modalData.samplingProgrammeNo === '' || this.modalData.samplingProgrammeNo == null) && (this.modalData.itemSamplingQuantity === '' || this.modalData.itemSamplingQuantity == null) && (this.modalData.defaultSamplingProportion === '' || this.modalData.defaultSamplingProportion == null)) {
- // this.$message.warning('抽样方案、抽样数量、抽样比例至少选择一项!')
- // return
- // }
if ((this.modalData.samplingProgrammeNo !== '' && this.modalData.samplingProgrammeNo != null) && (this.modalData.samplingLevelNo === '' || this.modalData.samplingLevelNo == null)) {
this.$message.warning('请选择检验水平!')
return
}
- if (this.modalData.collectionFlag === 'Y' && (this.modalData.collectionSourceList == null || this.modalData.collectionSourceList.length === 0)) {
- this.$message.warning('请选择采集数据来源!')
- return
- }
- if (this.modalData.collectionFlag === 'Y' && (this.modalData.collectionMethodList == null || this.modalData.collectionMethodList.length === 0)) {
- this.$message.warning('请选择采集数据方式!')
- return
- }
- if (this.modalData.collectionFlag === 'Y' && this.modalData.collectionSourceList.length !== this.modalData.collectionMethodList.length) {
- this.$message.warning('采集数据来源和方式不对应!')
- return
- }
- if (this.modalData.collectionFlag === 'Y' && (this.modalData.collectionCondition == null || this.modalData.collectionCondition === '')) {
- this.$message.warning('请填写采集条件路径!')
+ if (this.modalData.defectLevelCode === '' || this.modalData.defectLevelCode == null) {
+ this.$message.warning('请选择缺陷等级!')
return
}
- this.modalData.collectionSource = this.modalData.collectionSourceList.join(',')
- this.modalData.collectionMethod = this.modalData.collectionMethodList.join(',')
if (this.modalData.flag === '1') {
qcItemSave(this.modalData).then(({data}) => {
if (data && data.code === 0) {
diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue
index 6be0129..c36a9e2 100644
--- a/src/views/modules/qc/qcPartAttribute.vue
+++ b/src/views/modules/qc/qcPartAttribute.vue
@@ -23,15 +23,9 @@
-
-
-
-
-
-
@@ -613,12 +607,6 @@
-
-
-
-
-
-
查询
@@ -628,7 +616,6 @@
:data="partInfoList"
@row-dblclick="getRowData1"
border
- v-loading="dataListLoading"
style="width: 100%;">
-
-
-
-
关闭
@@ -718,8 +693,6 @@
userName: this.$store.state.user.name,
partNo: '',
partDesc: '',
- cinvSourceCode: '',
- sku: '',
familyID: '',
familyName: '',
buDesc: '',
@@ -742,8 +715,6 @@
partDesc: '',
familyID: '',
familyName: '',
- cinvSourceCode: '',
- sku: '',
umid: '',
supplierNo: '',
supplierDesc: '',
@@ -759,8 +730,6 @@
partNo: '',
attributeNo: '',
partDesc: '',
- cinvSourceCode: '',
- sku: '',
attributeType: 'A',
inspectionTypeNo: '',
templateId: '',
@@ -804,24 +773,6 @@
status: true,
fixed: '',
},
- {
- userId: this.$store.state.user.name,
- functionId: 301003,
- serialNumber: '301003Table1SKU',
- tableId: "301003Table1",
- tableName: "物料属性设置表",
- columnWidth: 146,
- columnProp: 'sku',
- headerAlign: "center",
- align: "center",
- columnLabel: 'SKU',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- },
{
userId: this.$store.state.user.name,
functionId: 301003,
@@ -840,24 +791,6 @@
status: true,
fixed: '',
},
- {
- userId: this.$store.state.user.name,
- functionId: 301003,
- serialNumber: '301003Table1CinvSourceCode',
- tableId: "301003Table1",
- tableName: "物料属性设置表",
- columnWidth: 144,
- columnProp: 'cinvSourceCode',
- headerAlign: "center",
- align: "left",
- columnLabel: 'PN',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- },
{
userId: this.$store.state.user.name,
functionId: 301003,
@@ -1006,7 +939,6 @@
detailModelFlag: false,
detailList: [],
dataList: [],
- dataListLoading: false,
// 展示列集
columnDetailList: [
{
@@ -1301,8 +1233,6 @@
partNo: '',
partDesc: '',
seqNo: '',
- sku: '',
- cinvSourceCode:'',
},
authSearch: false,
authSave: false,
@@ -1353,7 +1283,7 @@
searchPartInfo () {
this.partDetailData.bu = this.modalData.bu
- if (!this.partDetailData.partNo && !this.partDetailData.partDesc && !this.partDetailData.sku && !this.partDetailData.cinvSourceCode) {
+ if (!this.partDetailData.partNo && !this.partDetailData.partDesc) {
this.partInfoList = []
this.partDisableFlag = true
}
@@ -1452,8 +1382,6 @@
},
getRowData1 (row) {
- this.modalData.sku = row.sku
- this.modalData.cinvSourceCode = row.cinvSourceCode
this.modalData.partNo = row.partNo
this.modalData.partDesc = row.partDesc
this.partDisableFlag = false
@@ -1556,15 +1484,6 @@
this.$message.warning('请选择物料名称!')
return
}
- // let obj = document.getElementsByName('isExemptInspection')
- // let s = ''
- // for (let i = 0; i < obj.length; i++) {
- // if (obj[i].checked) {
- // s += obj[i].value + ','
- // }
- // }
- // s = s.substring(0, s.length - 1)
- // this.modalData.exemptInspection = s
if (this.modalData.flag === '1') {
qcPartAttributeSave(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@@ -2206,7 +2125,6 @@
partNo: '',
partDesc: '',
seqNo: '',
- sku: '',
}
this.partInfoList = []
},
diff --git a/src/views/modules/qc/qcTemplate.vue b/src/views/modules/qc/qcTemplate.vue
index e1c2f94..01eec76 100644
--- a/src/views/modules/qc/qcTemplate.vue
+++ b/src/views/modules/qc/qcTemplate.vue
@@ -567,7 +567,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableTemplateId',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 98,
@@ -585,7 +585,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableTemplateName',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -603,7 +603,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableSamplingProgrammeDesc',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -621,7 +621,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableSamplingLevelDesc',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -639,7 +639,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableInspectionCycle',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -657,7 +657,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableDefaultSamplingQuantity',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -675,7 +675,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableDefaultSamplingProportion',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -693,7 +693,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableAQL',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -711,7 +711,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableAC',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -729,7 +729,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableRE',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -747,7 +747,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableInspectionTypeName',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -765,7 +765,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableTemplateRemark',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -783,7 +783,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableTemplateVersion',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -801,7 +801,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableCreateTime',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -819,7 +819,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableCreateBy',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -837,7 +837,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableUpdateDate',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
@@ -855,7 +855,7 @@
{
userId: this.$store.state.user.name,
functionId: 301008,
- serialNumber: '301008TableItemNo',
+ serialNumber: '301008TableUpdateBy',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
diff --git a/src/views/modules/qc/qc_FAI_upload_file.vue b/src/views/modules/qc/qc_FAI_upload_file.vue
index 66ff508..52c69df 100644
--- a/src/views/modules/qc/qc_FAI_upload_file.vue
+++ b/src/views/modules/qc/qc_FAI_upload_file.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/src/views/modules/sys/menu-add-or-update.vue b/src/views/modules/sys/menu-add-or-update.vue
index 08d4b4a..b0333b6 100644
--- a/src/views/modules/sys/menu-add-or-update.vue
+++ b/src/views/modules/sys/menu-add-or-update.vue
@@ -241,7 +241,7 @@
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
- url: this.$http.adornUrl(`/api/sys/menu/${!this.dataForm.id ? 'save' : 'update'}`),
+ url: this.$http.adornUrl(`/sys/menu/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'menuId': this.dataForm.menuId,