zhaohuanhuan 1 год назад
Родитель
Сommit
f78767b614

+ 1 - 1
src/views/inbound/blindCollection/mode/index.vue

@@ -163,7 +163,7 @@ const modeMap={
 const onSelect=(type)=>{
   const {typeCode,code,warehouseCode,ownerCode}=taskModel.value
   if(taskNo.value===''){
-    showToast({duration:5000,message:'请先扫描盲收或般仓任务号'})
+    showToast({duration:5000,message:'请先扫描盲收任务号'})
     return
   }
   if(Object.keys(taskModel.value).length===0){

+ 4 - 1
src/views/inbound/blindCollection/task/index.vue

@@ -165,7 +165,7 @@ import { computed, onMounted, ref } from 'vue'
 import { playVoiceBin, scanError, scanSuccess } from '@/utils/android'
 import BarcodeCount from '@/views/inbound/blindCollection/components/BarcodeCount.vue'
 import ResetData from '@/views/inbound/blindCollection/components/ResetData.vue'
-import { showConfirmDialog, showDialog, showToast } from 'vant'
+import { closeDialog, showConfirmDialog, showDialog, showToast } from 'vant'
 import { barcodeIsData } from '@/views/inbound/blindCollection/task/hooks/barcodeIsData'
 import { closeLoading, showLoading } from '@/utils/loading'
 import { binData } from '@/views/inbound/blindCollection/task/hooks/binData'
@@ -353,6 +353,9 @@ const _setBoxCacheData = (code,data) => {
         }).then(() => {
           barcodeRef.value?.focus()
         });
+        setTimeout(()=>{
+          closeDialog()
+        },3000)
       }
     }else {
       scanSuccess()