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

+ 3 - 3
src/views/inbound/putaway/task/index.vue

@@ -191,7 +191,7 @@ try {
   router.push('/login')
 }
 /** 精准推荐是否开启 */
-const forcePublishEnabled = ref(false)
+const forcePublishEnabled = ref(true)
 // 页面初始化
 onMounted(async () => {
   openListener()
@@ -525,7 +525,7 @@ const _handlerScan = (code) => {
     }
   } else if (scanType.value == 3) {
     const scannedLocation = barcodeToUpperCase(code)
-    if (forcePublishEnabled.value) {
+    if (!forcePublishEnabled.value) {
       const { lotAtt02 } = barcodeActiveList.value[0]
       if (locationList.value.length > 0 && !lotAtt02) {
         const recommendedLocations = locationList.value.map(item => barcodeToUpperCase(item.locationId || ''))
@@ -607,7 +607,7 @@ const isCheck = () => {
     showToast({ duration: 3000, message: '请先扫描库位编号' })
     return false
   }
-  if (forcePublishEnabled.value) {
+  if (!forcePublishEnabled.value) {
     if(barcodeActiveList.value.length ==0) {
       showToast({ duration: 3000, message: '数据异常请重新扫描' })
       scanError()