diff --git a/components/pda-scan-input/index.vue b/components/pda-scan-input/index.vue index 0c9c3da..af4ad9e 100644 --- a/components/pda-scan-input/index.vue +++ b/components/pda-scan-input/index.vue @@ -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) {