diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue
index e84e4197..e3ec3242 100644
--- a/mycomponents/scan/winScanPackAndLocation.vue
+++ b/mycomponents/scan/winScanPackAndLocation.vue
@@ -247,9 +247,14 @@
})
} else if (datas.length == 1) {
let balance = datas[0];
- this.packCallBack(balance);
+ if(balance.qty>0){
+ this.packCallBack(balance);
+ }else {
+ this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为['+balance.qty+"],
不可以进行操作", res => {
+ this.packGetFocus();
+ })
+ }
} else {
-
this.showBalanceSelect(datas);
}
},
@@ -259,7 +264,13 @@
},
selectBalanceItem(balance) {
- this.packCallBack(balance);
+ if(balance.qty>0){
+ this.packCallBack(balance);
+ }else {
+ this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为['+balance.qty+"],不可以进行操作", res => {
+ this.packGetFocus();
+ })
+ }
},
packCallBack(item) {