|
|
@ -970,6 +970,7 @@ export default { |
|
|
approvalList: [], |
|
|
approvalList: [], |
|
|
plmRohsAuthorityArr: [], |
|
|
plmRohsAuthorityArr: [], |
|
|
nodeAuthorityLoaded: false, |
|
|
nodeAuthorityLoaded: false, |
|
|
|
|
|
isEditMode: false, |
|
|
modalTitle: 'RoHs 新增', |
|
|
modalTitle: 'RoHs 新增', |
|
|
activeName: 'basicInfo', |
|
|
activeName: 'basicInfo', |
|
|
showModalFlag: false, |
|
|
showModalFlag: false, |
|
|
@ -1087,7 +1088,13 @@ export default { |
|
|
return target ? target.updateFlag : 'N' |
|
|
return target ? target.updateFlag : 'N' |
|
|
}, |
|
|
}, |
|
|
isRohsFieldDisabled (fieldId) { |
|
|
isRohsFieldDisabled (fieldId) { |
|
|
return this.showModalFlag || this.rohsFieldFlag(fieldId) === 'N' |
|
|
|
|
|
|
|
|
if (this.showModalFlag) { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
if (!this.isEditMode) { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
return this.rohsFieldFlag(fieldId) === 'N' |
|
|
}, |
|
|
}, |
|
|
canEditRohsMaterial () { |
|
|
canEditRohsMaterial () { |
|
|
return !this.showModalFlag |
|
|
return !this.showModalFlag |
|
|
@ -1398,7 +1405,8 @@ export default { |
|
|
this.projectMaterialSelections = [] |
|
|
this.projectMaterialSelections = [] |
|
|
this.materialSelections = [] |
|
|
this.materialSelections = [] |
|
|
this.plmRohsAuthorityArr = [] |
|
|
this.plmRohsAuthorityArr = [] |
|
|
this.nodeAuthorityLoaded = false |
|
|
|
|
|
|
|
|
this.nodeAuthorityLoaded = !row |
|
|
|
|
|
this.isEditMode = !!row |
|
|
this.projectMaterialPageIndex = 1 |
|
|
this.projectMaterialPageIndex = 1 |
|
|
this.projectMaterialTotal = 0 |
|
|
this.projectMaterialTotal = 0 |
|
|
this.projectMaterialList = [] |
|
|
this.projectMaterialList = [] |
|
|
@ -1507,7 +1515,7 @@ export default { |
|
|
tpProcessControl: 'N', |
|
|
tpProcessControl: 'N', |
|
|
csProcessControl: 'N' |
|
|
csProcessControl: 'N' |
|
|
} |
|
|
} |
|
|
this.loadNodeAuthority(this.modalData.site, this.modalData.stepId) |
|
|
|
|
|
|
|
|
this.nodeAuthorityLoaded = true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
@ -1526,7 +1534,6 @@ export default { |
|
|
projectId: this.modalData.projectId |
|
|
projectId: this.modalData.projectId |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.modalData.ifsPartNo = this.modalData.materialList.length > 0 ? this.modalData.materialList[0].testPartNo : '' |
|
|
|
|
|
|
|
|
|
|
|
const submitMethod = this.modalTitle === 'RoHs 新增' ? api.saveRohs : api.updateRohs |
|
|
const submitMethod = this.modalTitle === 'RoHs 新增' ? api.saveRohs : api.updateRohs |
|
|
submitMethod(this.modalData).then(({data}) => { |
|
|
submitMethod(this.modalData).then(({data}) => { |
|
|
@ -1599,7 +1606,6 @@ export default { |
|
|
qualificationDocumentsNeeded: (this.modalData.qualificationDocumentsNeededList || []).join(';'), |
|
|
qualificationDocumentsNeeded: (this.modalData.qualificationDocumentsNeededList || []).join(';'), |
|
|
testReportIncludingItems: (this.modalData.testReportIncludingItemsList || []).join(';'), |
|
|
testReportIncludingItems: (this.modalData.testReportIncludingItemsList || []).join(';'), |
|
|
materialList: submitMaterialList, |
|
|
materialList: submitMaterialList, |
|
|
ifsPartNo: submitMaterialList.length > 0 ? submitMaterialList[0].testPartNo : '', |
|
|
|
|
|
nodeConclusion: nodeConclusion, |
|
|
nodeConclusion: nodeConclusion, |
|
|
rejectOpinion: nodeConclusion === 'N' ? this.rejectOpinion : '', |
|
|
rejectOpinion: nodeConclusion === 'N' ? this.rejectOpinion : '', |
|
|
menuId: this.menuId, |
|
|
menuId: this.menuId, |
|
|
@ -1803,7 +1809,6 @@ export default { |
|
|
api.updateRohsMaterials(payload).then(({data}) => { |
|
|
api.updateRohsMaterials(payload).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.$set(this.modalData, 'materialList', normalizedList) |
|
|
this.$set(this.modalData, 'materialList', normalizedList) |
|
|
this.modalData.ifsPartNo = normalizedList.length > 0 ? normalizedList[0].testPartNo : '' |
|
|
|
|
|
this.materialSelections = [] |
|
|
this.materialSelections = [] |
|
|
if (this.currentRow && this.currentRow.referenceNo === this.modalData.referenceNo) { |
|
|
if (this.currentRow && this.currentRow.referenceNo === this.modalData.referenceNo) { |
|
|
this.$set(this.currentRow, 'materialList', normalizedList) |
|
|
this.$set(this.currentRow, 'materialList', normalizedList) |
|
|
|