Forráskód Böngészése

组合唯一码扫描后不能再次扫描的问题

zhaohuanhuan 1 napja
szülő
commit
b0a377b3d5
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/views/inbound/takeDelivery/task/index.vue

+ 3 - 1
src/views/inbound/takeDelivery/task/index.vue

@@ -412,7 +412,9 @@ function resetUniqueCodeDialogFocus() {
   const dialogCmp = uniqueCodeRef.value
   if (!dialogCmp) return
   dialogCmp.uniqueBarcode = ''
-  dialogCmp.uniqueCodeScanType = checkAllType.value ? 'barcode' : 'unique'
+  // 组合收货弹窗内仅展示唯一码输入(条码行隐藏),高亮须保持为 unique
+  const combineOnlyUnique = Number(combineReceivingSetCount.value) > 0
+  dialogCmp.uniqueCodeScanType = combineOnlyUnique || !checkAllType.value ? 'unique' : 'barcode'
 }
 
 async function resolvePanpassScan(code) {