Browse Source

2026-04-21

BOM和Routing的【复制】【粘贴】不区分site
master
fengyuan_yang 5 months ago
parent
commit
302ffd8184
  1. 11
      src/views/modules/part/bomManagement.vue
  2. 11
      src/views/modules/part/routingManagement.vue

11
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

11
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
}

Loading…
Cancel
Save