diff --git a/src/views/modules/project/projectInfo/com_project_info_part.vue b/src/views/modules/project/projectInfo/com_project_info_part.vue index 57a51d6..be237ca 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -2372,7 +2372,12 @@ import CodeGeneration from "../../code/generation.vue"; // 物料信息编辑模态框 updateModal (row) { - getProjectPartRow2(row).then(({data}) => { + const editRow = { ...row } + const hasIfsPartNo = editRow && editRow.finalPartNo && editRow.finalPartNo.toString().trim() !== '' + if (editRow && editRow.statusDesc === '正式物料' && hasIfsPartNo) { + editRow.testPartNo = editRow.finalPartNo + } + getProjectPartRow2(editRow).then(({data}) => { //区分请求成功和失败的状况 if (data && data.code === 0) { this.modalData = { @@ -2495,7 +2500,7 @@ import CodeGeneration from "../../code/generation.vue"; } this.resetFlags() // 重置标识 this.setupWatchers() // 设置监听 - this.getPartCharacteristicList(row.testPartNo) + this.getPartCharacteristicList(editRow.testPartNo) this.modalFlag = true this.modalDisableFlag = true this.inventoryPartTable = 'General'