Browse Source

修改查询库存为0的库存

wms3.0_pda
lijuncheng 12 months ago
parent
commit
940c4b247f
  1. 13
      mycomponents/scan/winScanPackAndLocation.vue

13
mycomponents/scan/winScanPackAndLocation.vue

@ -247,9 +247,14 @@
}) })
} else if (datas.length == 1) { } else if (datas.length == 1) {
let balance = datas[0]; let balance = datas[0];
if(balance.qty>0){
this.packCallBack(balance); this.packCallBack(balance);
}else { }else {
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为['+balance.qty+"],<br>不可以进行操作", res => {
this.packGetFocus();
})
}
} else {
this.showBalanceSelect(datas); this.showBalanceSelect(datas);
} }
}, },
@ -259,7 +264,13 @@
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {
if(balance.qty>0){
this.packCallBack(balance); this.packCallBack(balance);
}else {
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为['+balance.qty+"],不可以进行操作", res => {
this.packGetFocus();
})
}
}, },
packCallBack(item) { packCallBack(item) {

Loading…
Cancel
Save