扫码优化
This commit is contained in:
@@ -81,7 +81,9 @@ export default {
|
||||
try {
|
||||
let res = await RFReadTrayStateInventory(val)
|
||||
if (res.ErrNO === '1') {
|
||||
this.$refs.myInput2.handleScan()
|
||||
if (this.val2 === '') {
|
||||
this.$refs.myInput2.handleScan()
|
||||
}
|
||||
this._RFReadTrayStorageInventory()
|
||||
} else {
|
||||
this.toast(res.ErrMsg)
|
||||
@@ -90,6 +92,7 @@ export default {
|
||||
}
|
||||
} catch (e) {
|
||||
this.val1 = ''
|
||||
this.$refs.myInput1.handleScan()
|
||||
}
|
||||
},
|
||||
/** 托盘待盘点信息 */
|
||||
@@ -107,6 +110,9 @@ export default {
|
||||
let res = await RFReadMatBarCodeStateInventory(this.val1, val)
|
||||
if (res.ErrNO === '1') {
|
||||
this.toast(res.ErrMsg)
|
||||
if (this.val1 === '') {
|
||||
this.$refs.myInput1.handleScan()
|
||||
}
|
||||
} else {
|
||||
this.toast(res.ErrMsg)
|
||||
this.val2 = ''
|
||||
@@ -114,14 +120,27 @@ export default {
|
||||
}
|
||||
} catch (e) {
|
||||
this.val2 = ''
|
||||
this.$refs.myInput2.handleScan()
|
||||
}
|
||||
},
|
||||
handleChange1 (e, type) {
|
||||
if (type && e.substring(0, 2) !== 'ZD') {
|
||||
this.val1 = ''
|
||||
this.val2 = e
|
||||
this._RFReadMatBarCodeStateInventory(this.val2)
|
||||
return
|
||||
}
|
||||
if (type) {
|
||||
this._RFReadTrayStateInventory(e)
|
||||
}
|
||||
},
|
||||
handleChange2 (e, type) {
|
||||
if (type && e.substring(0, 2) === 'ZD') {
|
||||
this.val1 = e
|
||||
this.val2 = ''
|
||||
this._RFReadTrayStateInventory(this.val1)
|
||||
return
|
||||
}
|
||||
if (type) {
|
||||
this._RFReadMatBarCodeStateInventory(e)
|
||||
}
|
||||
@@ -138,10 +157,11 @@ export default {
|
||||
let res = await RFStorageInventory(this.val1, this.val2, uid)
|
||||
if (res.ErrNO === '1') {
|
||||
this.toast(res.ErrMsg)
|
||||
this._RFReadTrayStorageInventory()
|
||||
} else {
|
||||
this.Dialog(res.ErrMsg)
|
||||
}
|
||||
this.toCancle()
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user