扫码问题
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
<section class="content">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
ref="myInput1"
|
||||
label="托盘码"
|
||||
v-model="val1"
|
||||
@handleChange="handleChange1"
|
||||
></search-box>
|
||||
<search-box
|
||||
ref="myInput2"
|
||||
label="物料条码"
|
||||
:focused="true"
|
||||
v-model="val2"
|
||||
@handleChange="handleChange2"
|
||||
></search-box>
|
||||
@@ -71,12 +72,16 @@ export default {
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.myInput1.handleScan()
|
||||
},
|
||||
methods: {
|
||||
/** 读取托盘码 */
|
||||
async _RFReadTrayStateInventory (val) {
|
||||
try {
|
||||
let res = await RFReadTrayStateInventory(val)
|
||||
if (res.ErrNO === '1') {
|
||||
this.$refs.myInput2.handleScan()
|
||||
this._RFReadTrayStorageInventory()
|
||||
} else {
|
||||
this.toast(res.ErrMsg)
|
||||
@@ -145,6 +150,7 @@ export default {
|
||||
this.val2 = ''
|
||||
this.dataList = []
|
||||
this.disabled = false
|
||||
this.$refs.myInput1.handleScan()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user