|
@@ -145,7 +145,7 @@
|
|
|
uni.$on('scancodedate', function(content) {
|
|
|
console.log("扫描到的内容为:", content, _this.keyName)
|
|
|
_this.code = content||''
|
|
|
- if(_this.keyName == 'rightKey'){
|
|
|
+ if(_this.keyName == 'rightKey' || _this.keyName == 'midKey'){
|
|
|
_this.addQty(true)
|
|
|
}
|
|
|
if(_this.keyName == 'leftKey'){
|
|
@@ -229,7 +229,7 @@
|
|
|
},
|
|
|
// 修改入库数量
|
|
|
changePutQty(record, realPutQty){
|
|
|
- if(realPutQty){
|
|
|
+ if(realPutQty>=0){
|
|
|
this.loading = true
|
|
|
updateRealPutQty({id:record.id,pdaRealPutQty:realPutQty}).then(res => {
|
|
|
if(res.status == 200){
|
|
@@ -240,7 +240,7 @@
|
|
|
this.loading = false
|
|
|
})
|
|
|
}else{
|
|
|
- uni.$u.toast("入库数量不能为0")
|
|
|
+ uni.$u.toast("入库数量不能小于0")
|
|
|
playAudio('warn')
|
|
|
}
|
|
|
},
|