From ab353e5b34cc86c647673389e6cb1993c7775f7f Mon Sep 17 00:00:00 2001 From: dxc Date: Wed, 22 Apr 2026 10:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=9B=98=E7=82=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=89=AB=E7=A0=81=E4=BF=9D=E7=95=99=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-web/src/views/stock/stocktake/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inventory-web/src/views/stock/stocktake/index.vue b/inventory-web/src/views/stock/stocktake/index.vue index 78e3051..bd5c02a 100644 --- a/inventory-web/src/views/stock/stocktake/index.vue +++ b/inventory-web/src/views/stock/stocktake/index.vue @@ -722,6 +722,9 @@ const onScanSuccess = async (code: string) => { if (!code || loading.value) return const trimCode = code.trim() + // 将扫到的条码同步显示在输入框中 + barcodeInput.value = trimCode + if (!/^[A-Za-z0-9\-\.]+$/.test(trimCode)) { ElMessage.warning(`识别到异常字符:${trimCode}`) return