From d3dc9d1f726dac207da103184de4c5082b6cfe23 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 24 Jun 2024 11:29:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A5=E6=96=99=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/repleinsh/coms/comScanReplishPack.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/repleinsh/coms/comScanReplishPack.vue b/src/pages/repleinsh/coms/comScanReplishPack.vue index ab348a07..3596d39a 100644 --- a/src/pages/repleinsh/coms/comScanReplishPack.vue +++ b/src/pages/repleinsh/coms/comScanReplishPack.vue @@ -291,6 +291,7 @@ if (subParentPackitems.length > 0) { if(subParentPackitems.length==1){ let balance = subParentPackitems[0]; + balance.qty=packageInfo.qty; this.afterGetBalance(result.label, balance, packageInfo); }else { this.showBalanceSelect(subParentPackitems); @@ -301,8 +302,18 @@ packageInfo.number + '】都未查找到库存余额') } } else { - this.showErrorMessage('该包装【' + packageInfo.number + '】在库位【' + balances - .list[0].locationCode + + var locationCode = this.fromLocationCode + 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 + '】已经有库存余额,请重新扫描') }