|
|
@ -4549,7 +4549,6 @@ export default { |
|
|
// 粘贴栏 |
|
|
// 粘贴栏 |
|
|
pasteComponentModal () { |
|
|
pasteComponentModal () { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
userName: this.$store.state.user.name |
|
|
userName: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
this.cleanPasteBarFlag = '' |
|
|
this.cleanPasteBarFlag = '' |
|
|
@ -4580,12 +4579,18 @@ export default { |
|
|
type: "warning" |
|
|
type: "warning" |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
site: this.detailData.site, |
|
|
|
|
|
|
|
|
site: this.$store.state.user.site, // 粘贴时使用当前登录的site |
|
|
partNo: this.detailData.partNo, |
|
|
partNo: this.detailData.partNo, |
|
|
engChgLevel: this.detailData.engChgLevel, |
|
|
engChgLevel: this.detailData.engChgLevel, |
|
|
bomType: this.detailData.bomType, |
|
|
bomType: this.detailData.bomType, |
|
|
alternativeNo: this.detailData.alternativeNo, |
|
|
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', |
|
|
productFlag: 'component', |
|
|
updateBy: this.$store.state.user.name, |
|
|
updateBy: this.$store.state.user.name, |
|
|
cleanPasteBarFlag: this.cleanPasteBarFlag |
|
|
cleanPasteBarFlag: this.cleanPasteBarFlag |
|
|
|