加快PDA扫码响应速度

This commit is contained in:
2024-07-02 09:08:35 +08:00
parent d7b1631158
commit c98258f7ec

View File

@@ -66,27 +66,27 @@
this.$nextTick(function() {
this.isFocus = true;
});
}, 1500);
}, 500);
}
},
// 获取扫码信息
async getInfo(e) {
const text = e.target.value;
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(() => {
this.$nextTick(function() {
this.search = '';
});
}, 500);
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);
}
}, 300);
},
// type = 1 入库扫仓库编码
async handleScanWareHouseCode(text) {