diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue index 7a77572..8d79172 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue @@ -161,7 +161,7 @@
- + 附加客户图纸/Attach Customer Drawing(点击跳转) @@ -342,25 +342,37 @@ nodeName: '', }, dataForm: { - materialType:'', + materialType: '', site: '', - codeNo:'', - finalCustomerNo:'', - finalCustomerDesc:'', - customerId:'', - customerDesc:'', - partNo:'', - partDesc:'', - customerRevNo:'', - certification:'', - partFamily:'', - customerRemark:'', - projectRemark:'', - pictureAddess:'', - customerPictureChangeRemark:'', - productionFileComments:'', - remark:'', - nodeId: '' + codeNo: '', + finalCustomerNo: '', + finalCustomerDesc: '', + customerId: '', + customerDesc: '', + partNo: '', + partDesc: '', + customerRevNo: '', + certification: '', + partFamily: '', + customerRemark: '', + projectRemark: '', + pictureAddess: '', + customerPictureChangeRemark: '', + productionFileComments: '', + remark: '', + nodeId: '', + }, + dataForm2: { + customerRevNo: '', + materialNumber: '', + certification: '', + materialType: '', + customerRemark: '', + projectRemark: '', + pictureAddess: '', + remark: '', + finalCustomerNo: '', + customerPartNo: '' }, dataRole: { partTypeDesc: [ @@ -659,9 +671,10 @@ }, submitData (tempData) { + let map = new Map(Object.entries(this.dataForm2)) if (this.plmTechnicalSpecificationSheetArr) { for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { - if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { + if (map.has(this.plmTechnicalSpecificationSheetArr[i].fieldId) && !this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') return } @@ -669,7 +682,7 @@ } if (this.plmStepRoleBaseBmArr) { for (let i = 0; i < this.plmStepRoleBaseBmArr.length; i++) { - if (!this.dataForm[this.plmStepRoleBaseBmArr[i].fieldId] && this.plmStepRoleBaseBmArr[i].required === 'Y') { + if (map.has(this.plmStepRoleBaseBmArr[i].fieldId) && !this.dataForm[this.plmStepRoleBaseBmArr[i].fieldId] && this.plmStepRoleBaseBmArr[i].required === 'Y') { this.$message.warning(this.plmStepRoleBaseBmArr[i].fieldName + '不能为空!') return } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue index a3f4cb5..3baebb7 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue @@ -762,14 +762,14 @@ partList:[], superAdmin:false, ifDisableFlag:false, - sheetData:{ + sheetData: { site: '', codeNo: '', - process:'', - overPrintOperator:'', - overPrintOperatorName:'', - printOperator:'', - printOperatorName:'', + process: '', + overPrintOperator: '', + overPrintOperatorName: '', + printOperator: '', + printOperatorName: '', simplexDuplex: '', repeat: '', hp: '', @@ -787,7 +787,26 @@ p2cTolerance: '', slittingTolerance: '' }, - dataForm:{ + sheetData2: { + process: '', + overPrintOperator: '', + printOperator: '', + simplexDuplex: '', + repeat: '', + labelLength: '', + labelWidth: '', + hp: '', + vp: '', + across: '', + down: '', + printCopyPosition: '', + goodsRollWidth: '', + newCutter: '', + p2cTolerance: '', + dimensionTolerance: '', + slittingTolerance: '' + }, + dataForm: { site: '', codeNo:'', processDetail:'', @@ -1752,7 +1771,7 @@ this.ifDisableFlag = true return false } - if(data.status === '审批中') { + if (data.status === '审批中') { let tempData = { site: row.site, stepId: row.stepId, @@ -1760,18 +1779,6 @@ } getNodeAuthority(tempData).then(({data}) => { if (data && data.code === 0) { - // this.ifDisableFlag = true - // let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm - // let arr = plmStepRoleBaseBm.filter(a => a.fieldId === this.searchData.fieldId) - // if (arr.length > 0) { - // if (arr[0].updateFlag === 'N') { - // this.ifDisableFlag = true - // } else { - // this.ifDisableFlag = false - // } - // } else { - // this.ifDisableFlag = true - // } this.plmTechnicalSpecificationSheetArr = data.rows.plm_technical_specification_sheet } }) @@ -1821,9 +1828,10 @@ }, async submitData (tempData) { + let map = new Map(Object.entries(this.sheetData2)) if (this.plmTechnicalSpecificationSheetArr) { for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { - if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { + if (map.has(this.plmTechnicalSpecificationSheetArr[i].fieldId) && !this.sheetData[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') return } diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue index 8d16415..b85d236 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue @@ -7,7 +7,7 @@ 刷新数据