Browse Source

2026-06-08

【Copy Part】 如果是正式物料,to part默认和from part一致
master
fengyuan_yang 4 days ago
parent
commit
73db782167
  1. 12
      src/views/modules/part/partInformation.vue

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

Loading…
Cancel
Save