Browse Source

修改补料数量显示不对

hella_online_20240829
lijuncheng 3 months ago
parent
commit
d3dc9d1f72
  1. 15
      src/pages/repleinsh/coms/comScanReplishPack.vue

15
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -291,6 +291,7 @@
if (subParentPackitems.length > 0) { if (subParentPackitems.length > 0) {
if(subParentPackitems.length==1){ if(subParentPackitems.length==1){
let balance = subParentPackitems[0]; let balance = subParentPackitems[0];
balance.qty=packageInfo.qty;
this.afterGetBalance(result.label, balance, packageInfo); this.afterGetBalance(result.label, balance, packageInfo);
}else { }else {
this.showBalanceSelect(subParentPackitems); this.showBalanceSelect(subParentPackitems);
@ -301,8 +302,18 @@
packageInfo.number + '】都未查找到库存余额') packageInfo.number + '】都未查找到库存余额')
} }
} else { } else {
this.showErrorMessage('该包装【' + packageInfo.number + '】在库位【' + balances var locationCode = this.fromLocationCode
.list[0].locationCode + if(balances.list==1){
locationCode=balances.list[0].locationCode
}else {
var manyBlances = balances.list.filter(r=>r.locationCode!=this.fromLocationCode)
if(manyBlances.length>0){
locationCode = manyBlances[0].locationCode;
}
}
this.showErrorMessage('该包装【' + packageInfo.number + '】在库位【' +
locationCode +
'】已经有库存余额,请重新扫描') '】已经有库存余额,请重新扫描')
} }

Loading…
Cancel
Save