From bafb00b8e627dfdef526fb39847cc7d4410b0867 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 27 Jun 2025 16:19:44 +0800 Subject: [PATCH] =?UTF-8?q?2025-06-27=20Copy=20part=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=88Inventory=20Part=E7=BC=96=E8=BE=91=E4=B8=AD=E7=9A=84Co?= =?UTF-8?q?py=20Part=E5=8A=9F=E8=83=BD=EF=BC=89=20=20=20=20=201=E3=80=81Co?= =?UTF-8?q?py=E5=90=8E=E6=A0=B9=E6=8D=AE=E5=8E=9F=E6=96=99=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E9=A1=B9=E7=9B=AE+BU=20=20=20=20=202=E3=80=81Copy?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E6=96=99=E5=8F=B7=E6=8F=92=E5=85=A5=E5=88=B0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=99=E5=8F=B7=E4=B8=AD=EF=BC=88=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=B2=A1=E6=9C=89=E9=A1=B9=E7=9B=AE=E5=88=99=E4=B8=8D?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partInformation.vue | 61 +++++++++++++++---- .../projectInfo/com_project_info_part.vue | 2 +- 2 files changed, 50 insertions(+), 13 deletions(-) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 886e536..1a2cd09 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -1201,14 +1201,14 @@ - -
+ +
Part No To Copy From Part - - + + @@ -1216,8 +1216,8 @@ - - + + @@ -1229,15 +1229,22 @@ To Part Next Part No - - + + + + + + + + +
-
+
Select Part Information to Copy @@ -1305,7 +1312,7 @@
- + 保存 关闭 @@ -1740,7 +1747,10 @@ fromPartSite: '', fromPartNo: '', fromPartDesc: '', - copyFlag: '' + copyFlag: '', + buNo: '', + buDesc: '', + customerPartNo: '', }, fromPartData: { site: this.$store.state.user.site, @@ -4980,7 +4990,19 @@ fromPartSite: this.modalData.site, fromPartNo: '', fromPartDesc: '', - copyFlag: '' + copyFlag: '', + buNo: '', + buDesc: '', + customerPartNo: '', + } + if (this.modalData.flag === '2') { + getProjectPartNo(this.searchData).then(({data}) => { + if (data && data.code === 0) { + this.copyPartData.partNo = data.partNo + } else { + this.copyPartData.partNo = '' + } + }) } if (this.modalData.flag !== '3') { this.copyPartData.fromPartNo = this.modalData.partNo @@ -5014,6 +5036,16 @@ if (this.modalData.flag === '3') { // 转正里的copyPart this.copyPartData.copyFlag = 'Y' } + // if (this.modalData.flag === '2') { + // if (this.copyPartData.buNo === '' || this.copyPartData.buNo == null) { + // this.$message.warning('请选择BU!') + // return + // } + // if (this.copyPartData.customerPartNo === '' || this.copyPartData.customerPartNo == null) { + // this.$message.warning('请填写客户料号!') + // return + // } + // } this.copyLoading = true copyPart(this.copyPartData).then(({data}) => { if (data && data.code === 0) { @@ -5651,6 +5683,8 @@ strVal = this.modalData.partCostGroupId } else if (val === 132) { strVal = this.modalData.planningMethod + } else if (val === 106) { + strVal = this.copyPartData.buNo } this.$refs.baseList.init(val, strVal) }) @@ -5713,6 +5747,9 @@ } else if (this.tagNo === 132) { this.modalData.planningMethod = val.planning_method this.modalData.planningMethodDesc = val.planning_method_desc + } else if (this.tagNo === 106) { + this.copyPartData.buNo = val.Bu_no + this.copyPartData.buDesc = val.Bu_desc } }, 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 e9ed8ac..1a9a766 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -1861,7 +1861,7 @@ import { if (val === 1007) { strVal = this.modalData.umId } else if (val === 106) { - strVal = this.modalData.buNo; + strVal = this.modalData.buNo } else if (val === 108) { strVal = this.modalData.familyId } else if (val === 109) {