Browse Source

修改库存余额选择后的回显

wms3.0_pda
niexiting 11 months ago
parent
commit
3c066cbfa7
  1. 14
      pages/issue/coms/comScanIssuePack.vue

14
pages/issue/coms/comScanIssuePack.vue

@ -124,7 +124,6 @@
type: String, type: String,
default: '' default: ''
}, },
}, },
data() { data() {
return { return {
@ -146,6 +145,8 @@
positionList: [], positionList: [],
defaultValueList: [], defaultValueList: [],
fromInventoryStatuses: "", fromInventoryStatuses: "",
packageInfo: {},
label: {}
} }
}, },
created() { created() {
@ -226,7 +227,10 @@
}); });
return; return;
} }
let packageInfo = result.package;
that.label = result.label;
that.packageInfo = result.package;
// let packageInfo = result.package;
let itemCode = result.label.itemCode; let itemCode = result.label.itemCode;
let packingCode = result.label.packingNumber; let packingCode = result.label.packingNumber;
let lot = result.label.batch; let lot = result.label.batch;
@ -254,7 +258,7 @@
}) })
} else if (balanceRes.data.list.length == 1) { } else if (balanceRes.data.list.length == 1) {
let balance = balanceRes.data.list[0]; let balance = balanceRes.data.list[0];
this.afterGetBalance(result.label, balance, packageInfo); this.afterGetBalance(result.label, balance, that.packageInfo);
} else { } else {
this.showBalanceSelect(balanceRes.data.list); this.showBalanceSelect(balanceRes.data.list);
} }
@ -271,12 +275,12 @@
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {
this.afterGetBalance(this.label, balance); this.afterGetBalance(this.label, balance, this.packageInfo);
}, },
afterGetBalance(label, balance, packageInfo) { afterGetBalance(label, balance, packageInfo) {
try {
let that = this; let that = this;
try {
let itemCode = label.itemCode; let itemCode = label.itemCode;
let packingCode = label.packingNumber; let packingCode = label.packingNumber;
let lot = label.batch; let lot = label.batch;

Loading…
Cancel
Save