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