From 3494d6b2a74c441451d7865711d3ac64e48f6de0 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Mon, 24 Aug 2026 18:47:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=86=E5=8C=85=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E6=9C=AA=E5=8C=B9=E9=85=8D=E5=95=86=E5=93=81=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E9=98=BB=E6=96=AD=EF=BC=8C=E6=8C=89=E6=9C=AA=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=99=BB=E8=AE=B0=E7=A9=BAstock=5Fid?= =?UTF-8?q?=E5=92=8C=E6=9D=A1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/express/returnUnpackwork/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/express/returnUnpackwork/index.vue b/src/views/express/returnUnpackwork/index.vue index 3ecb18e5..ab393fe8 100644 --- a/src/views/express/returnUnpackwork/index.vue +++ b/src/views/express/returnUnpackwork/index.vue @@ -989,7 +989,8 @@ async function handleBarcodeQuickAdd(fromScan = false) { .map((row) => mapStockPickerItem(row)) .filter((item: any) => item?.item_id) if (matched.length === 0) { - ElMessage.warning('未找到匹配的商品') + // 扫描条码未匹配到系统商品:不阻断,按未识别商品登记(stock_id 为空,条码仅作记录) + await quickAddDetail(null) } else if (matched.length === 1) { syncStoreFromStockItem(matched[0]) await quickAddDetail(matched[0]) @@ -1075,7 +1076,7 @@ async function quickAddDetail(item: any) { detailBarcode.value = '' if (scannedBarcode) lastScannedBarcode.value = scannedBarcode void pushOsdText() - ElMessage.success('明细添加成功') + ElMessage.success(stockId == null ? '未找到匹配商品,已按未识别商品登记' : '明细添加成功') loadDetailList() focusTarget.value = 'barcode' nextTick(() => {