Просмотр исходного кода

收货-组合条码-唯一码校验移除

zhaohuanhuan 2 дней назад
Родитель
Сommit
2f1b57d1c3
1 измененных файлов с 12 добавлено и 12 удалено
  1. 12 12
      src/views/inbound/takeDelivery/task/index.vue

+ 12 - 12
src/views/inbound/takeDelivery/task/index.vue

@@ -537,18 +537,18 @@ async function resolvePanpassScan(code) {
       uniqueCode: code,
       customer: customerId,
     })
-    const newPsId = String(res?.data?.data?.newPsId ?? '').trim()
-    if (newPsId) {
-      const expected = barcodeToUpperCase(newPsId)
-      const match = [asnInfo.value.barcode, asnInfo.value.barcode2, asnInfo.value.sku, uniqueCodeRef.value?.uniqueBarcode]
-        .filter(Boolean)
-        .some((c) => barcodeToUpperCase(String(c)) === expected)
-      if (!match) {
-        showNotify({ type: 'danger', duration: 3000, message: `商品条码不一致:${newPsId},请检查` })
-        scanError()
-        return null
-      }
-    }
+    // const newPsId = String(res?.data?.data?.newPsId ?? '').trim()
+    // if (newPsId) {
+    //   const expected = barcodeToUpperCase(newPsId)
+    //   const match = [asnInfo.value.barcode, asnInfo.value.barcode2, asnInfo.value.sku, uniqueCodeRef.value?.uniqueBarcode]
+    //     .filter(Boolean)
+    //     .some((c) => barcodeToUpperCase(String(c)) === expected)
+    //   if (!match) {
+    //     showNotify({ type: 'danger', duration: 3000, message: `商品条码不一致:${newPsId},请检查` })
+    //     scanError()
+    //     return null
+    //   }
+    // }
     const childCodes = parsePanpassChildCodes(res)
     if (!childCodes?.length) {
       const uniqueRegExp = uniqueRuleMap.value['sku']