From c98258f7ece8edba6ea3f39b77df9732314e6506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Tue, 2 Jul 2024 09:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=BF=ABPDA=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pda-scan-input/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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) {