From 302ffd81840ff58ec41c01b5aaf7632749c45236 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 21 Apr 2026 13:05:22 +0800 Subject: [PATCH] =?UTF-8?q?2026-04-21=20BOM=E5=92=8CRouting=E7=9A=84?= =?UTF-8?q?=E3=80=90=E5=A4=8D=E5=88=B6=E3=80=91=E3=80=90=E7=B2=98=E8=B4=B4?= =?UTF-8?q?=E3=80=91=E4=B8=8D=E5=8C=BA=E5=88=86site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/bomManagement.vue | 11 ++++++++--- src/views/modules/part/routingManagement.vue | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index eac65a5..a3268a2 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -4549,7 +4549,6 @@ export default { // 粘贴栏 pasteComponentModal () { let tempData = { - site: this.$store.state.user.site, userName: this.$store.state.user.name } this.cleanPasteBarFlag = '' @@ -4580,12 +4579,18 @@ export default { type: "warning" }).then(() => { let tempData = { - site: this.detailData.site, + site: this.$store.state.user.site, // 粘贴时使用当前登录的site partNo: this.detailData.partNo, engChgLevel: this.detailData.engChgLevel, bomType: this.detailData.bomType, alternativeNo: this.detailData.alternativeNo, - informationList: this.checkedPasteBar, + // 将粘贴栏中的子物料的site替换为当前登录的site(或目标BOM的site) + informationList: this.checkedPasteBar.map(item => { + return { + ...item, + site: this.$store.state.user.site + } + }), productFlag: 'component', updateBy: this.$store.state.user.name, cleanPasteBarFlag: this.cleanPasteBarFlag diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index f01f979..fedf3a4 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -4391,7 +4391,6 @@ export default { // 粘贴栏 pasteComponentModal () { let tempData = { - site: this.$store.state.user.site, userName: this.$store.state.user.name } this.cleanPasteBarFlag = '' @@ -4422,12 +4421,18 @@ export default { type: "warning" }).then(() => { let tempData = { - site: this.detailData.site, + site: this.$store.state.user.site, // 粘贴时使用当前登录的site partNo: this.detailData.partNo, routingRevision: this.detailData.routingRevision, routingType: this.detailData.routingType, alternativeNo: this.detailData.alternativeNo, - informationList: this.checkedPasteBar, + // 将粘贴栏中的子物料的site替换为当前登录的site + informationList: this.checkedPasteBar.map(item => { + return { + ...item, + site: this.$store.state.user.site + } + }), updateBy: this.$store.state.user.name, cleanPasteBarFlag: this.cleanPasteBarFlag }