加快PDA扫码响应速度
This commit is contained in:
@@ -66,27 +66,27 @@
|
|||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.isFocus = true;
|
this.isFocus = true;
|
||||||
});
|
});
|
||||||
}, 1500);
|
}, 500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取扫码信息
|
// 获取扫码信息
|
||||||
async getInfo(e) {
|
async getInfo(e) {
|
||||||
const text = e.target.value;
|
const text = e.target.value;
|
||||||
const type = this.type;
|
const type = this.type;
|
||||||
|
if (type === 1) {
|
||||||
|
await this.handleScanWareHouseCode(text);
|
||||||
|
} else if (type === 2) {
|
||||||
|
await this.handleScanGoodsCode(text);
|
||||||
|
} else if (type === 3) {
|
||||||
|
await this.handleScanDeliveryOrderCode(text);
|
||||||
|
} else if (type === 4) {
|
||||||
|
await this.handleScanStockReturnCode(text);
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.search = '';
|
this.search = '';
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 300);
|
||||||
if (type === 1) {
|
|
||||||
this.handleScanWareHouseCode(text);
|
|
||||||
} else if (type === 2) {
|
|
||||||
this.handleScanGoodsCode(text);
|
|
||||||
} else if (type === 3) {
|
|
||||||
this.handleScanDeliveryOrderCode(text);
|
|
||||||
} else if (type === 4) {
|
|
||||||
this.handleScanStockReturnCode(text);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// type = 1 入库扫仓库编码
|
// type = 1 入库扫仓库编码
|
||||||
async handleScanWareHouseCode(text) {
|
async handleScanWareHouseCode(text) {
|
||||||
|
|||||||
Reference in New Issue
Block a user