diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue index de0229f1..2a1edfb9 100644 --- a/src/pages/issue/coms/comScanIssuePack.vue +++ b/src/pages/issue/coms/comScanIssuePack.vue @@ -489,7 +489,7 @@ }, selectBalanceItem(balance) { - this.afterGetBalance(this.label, balance, this.packageInfo); + this.afterGetBalance(balance, balance, this.packageInfo); }, afterGetBalance(label, balance, packageInfo) { diff --git a/src/pages/repleinsh/coms/comScanReplishPack.vue b/src/pages/repleinsh/coms/comScanReplishPack.vue index b0345e9e..8a983675 100644 --- a/src/pages/repleinsh/coms/comScanReplishPack.vue +++ b/src/pages/repleinsh/coms/comScanReplishPack.vue @@ -26,8 +26,7 @@ + headerType="HPQ,HMQ" :isShowHistory="false"> @@ -418,9 +417,7 @@ }, selectBalanceItem(balance) { - if(balance){ - this.afterGetBalance(this.label, balance, this.packageInfo); - } + this.afterGetBalance(balance, balance, this.packageInfo); }, afterGetBalance(label, balance, packageInfo) { @@ -434,7 +431,7 @@ that.fromLocationCode = balance.locationCode; let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode); //如果库存余额中的库位与任务推荐的不一致 - if (fromLocation ) { + if (fromLocation) { let batch = fromLocation.Batchs.find(r => r.batch == lot); if (batch != undefined) { if (batch.Records == undefined) { @@ -627,7 +624,7 @@ } else { record = this.creatRecordByBalance(balance, packageInfo); } - + if (packageInfo.parentNumber) { var checkData = batch.Records.find(r => { if (r.packingNumber == packageInfo.parentNumber && @@ -659,7 +656,7 @@ packageInfo .batch + "]是父包装,是否移除子包装", res => { if (res) { - batch.Records=[] + batch.Records = [] batch.Records.push(record); this.issueRecord.unshift(record) this.calcBatchHandleQty(batch); @@ -673,15 +670,15 @@ this.calcBatchHandleQty(batch); this.getfocus(); } - + } - - - - - - - + + + + + + + }, getfocus() {