diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index d7504bf6..a5e6cdce 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -140,6 +140,7 @@ managementPrecision: '', fromInventoryStatuses: "", isCheck: false, + chooseWhich:'1' } }, created() { @@ -341,7 +342,8 @@ this.countCallBack(datas); } else { if (Array.isArray(datas)) { - this.countCallBack(datas[0]); + this.chooseWhich = '2' + this.showBalanceSelect(datas); } else { this.countCallBack(datas); } @@ -386,6 +388,7 @@ // } } else { this.showBalanceSelect(datas); + this.chooseWhich='1' } }, @@ -394,7 +397,12 @@ }, selectBalanceItem(balance) { - this.packCallBack(balance); + if(this.chooseWhich == 1){ + this.packCallBack(balance); + }else{ + this.countCallBack(balance); + } + //因为盘点时有负库存,暂时去掉判断 2023年12月28日 // if (balance.qty > 0) { // this.packCallBack(balance);