From 9a2c3a50dd232d565b73a9c3e807ae3694179966 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 28 Aug 2026 11:24:03 +0800 Subject: [PATCH] =?UTF-8?q?2026-08-28=20=E9=A1=B9=E7=9B=AE=E7=89=A9?= =?UTF-8?q?=E6=96=99=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/projectInfo/com_project_info_part.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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'