扫码问题
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
<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"
|
||||
@@ -86,13 +88,17 @@ export default {
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.myInput1.handleScan()
|
||||
},
|
||||
methods: {
|
||||
/** 读取托盘码 */
|
||||
async _rfReadTrayStatePackage (val) {
|
||||
try {
|
||||
let res = await rfReadTrayStatePackage(val)
|
||||
if (res.ErrNO === '1') {
|
||||
this.toast(res.ErrMsg)
|
||||
// this.toast(res.ErrMsg)
|
||||
this.$refs.myInput2.handleScan()
|
||||
this._rfReadTrayStoragePackage()
|
||||
} else {
|
||||
this.toast(res.ErrMsg)
|
||||
@@ -162,6 +168,7 @@ export default {
|
||||
this.dataList = []
|
||||
this.active = ''
|
||||
this.disabled = false
|
||||
this.$refs.myInput1.handleScan()
|
||||
},
|
||||
toggleItem () {
|
||||
if (!this.open) {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<section class="content">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
ref="myInput1"
|
||||
label="托盘码"
|
||||
v-model="val1"
|
||||
@handleChange="handleChange1"
|
||||
@@ -62,6 +63,9 @@ export default {
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.myInput1.handleScan()
|
||||
},
|
||||
methods: {
|
||||
/** 读取托盘码 */
|
||||
async _rfReadTrayStateUnPackage (val) {
|
||||
@@ -116,6 +120,7 @@ export default {
|
||||
this.val1 = ''
|
||||
this.dataList = []
|
||||
this.disabled = false
|
||||
this.$refs.myInput1.handleScan()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 _RFReadTrayStatePick (val) {
|
||||
try {
|
||||
let res = await RFReadTrayStatePick(val)
|
||||
if (res.ErrNO === '1') {
|
||||
this.$refs.myInput2.handleScan()
|
||||
this._RFReadTrayStoragePick()
|
||||
} 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