|
|
@ -151,7 +151,7 @@ export default { |
|
|
|
}, |
|
|
|
choosePkg(PackOrderId) { // 扫码后选中包装单 |
|
|
|
this.activePkg = PackOrderId |
|
|
|
this.actPkgObj = this.pkgs.filter((pkg) => pkg.PackOrderId == PackOrderId)[0] || null |
|
|
|
this.actPkgObj = this.pkgs.filter((pkg) => pkg.PackOrderId == PackOrderId)[0] || {} |
|
|
|
this.packorderitemlst() //获取包装单下的包装项 |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs[`${PackOrderId}`]) |
|
|
@ -166,7 +166,7 @@ export default { |
|
|
|
// let newPkgsArray = this.tableData.filter((el) => el['LOG_PackOrderItemlst-Status'] !== 80) |
|
|
|
// if (newPkgsArray.length === 0) { |
|
|
|
// this.activePkg = '' |
|
|
|
// this.actPkgObj = null |
|
|
|
// this.actPkgObj = {} |
|
|
|
// this.tableData = [] |
|
|
|
// this.getPackorder() |
|
|
|
// } |
|
|
@ -245,11 +245,11 @@ export default { |
|
|
|
this.pkgs = res.data || [] |
|
|
|
if (this.pkgs.length > 0) { |
|
|
|
this.activePkg = this.pkgs[0]['LOG_PackOrder-PackOrderId'] |
|
|
|
this.actPkgObj = this.pkgs[0] || null |
|
|
|
this.actPkgObj = this.pkgs[0] || {} |
|
|
|
this.packorderitemlst() |
|
|
|
} else { |
|
|
|
this.activePkg = '' |
|
|
|
this.actPkgObj = null |
|
|
|
this.actPkgObj = {} |
|
|
|
this.tableData = [] |
|
|
|
} |
|
|
|
}) |
|
|
|