From 73db782167da18ea2cbc2a4727a527fd88e9a7c5 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 8 Jun 2026 13:14:17 +0800 Subject: [PATCH] =?UTF-8?q?2026-06-08=20=E3=80=90Copy=20Part=E3=80=91=20?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=98=AF=E6=AD=A3=E5=BC=8F=E7=89=A9=E6=96=99?= =?UTF-8?q?=EF=BC=8Cto=20part=E9=BB=98=E8=AE=A4=E5=92=8Cfrom=20part?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partInformation.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index ae6b03b..4893d86 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -5351,13 +5351,16 @@ buDesc: '', customerPartNo: '', } - if (this.modalData.flag === '2') { + if (this.modalData.flag === '2' && this.copyPartData.fromPartStatus !== 'Y') { this.setCopyPartAutoPartNo() } if (this.modalData.flag !== '3') { this.copyPartData.fromPartNo = this.modalData.partNo this.copyPartData.fromPartDesc = this.modalData.partDesc - if (this.copyPartData.fromPartStatus !== 'Y') { + if (this.copyPartData.fromPartStatus === 'Y') { + this.copyPartData.partNo = this.copyPartData.fromPartNo + this.copyPartData.partDesc = this.copyPartData.fromPartDesc + } else { this.copyPartData.partNo = '' } } @@ -5924,7 +5927,10 @@ this.copyPartData.fromPartDesc = row.partDesc this.copyPartData.fromPartStatus = row.status || 'Y' this.copyPartData.partNoAutoGenerated = '' - if (this.copyPartData.fromPartStatus !== 'Y') { + if (this.copyPartData.fromPartStatus === 'Y') { + this.copyPartData.partNo = this.copyPartData.fromPartNo + this.copyPartData.partDesc = this.copyPartData.fromPartDesc + } else { this.copyPartData.partNo = '' this.setCopyPartAutoPartNo() }