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() }