guoyujie
7 天以前 f398ddd14530d2f0695865c8a4dede6205d91d09
qrcodeScaner/pages/reportingWork/reportingWork.vue
@@ -178,6 +178,7 @@
import userInfo from '@/stores/userInfo'
import request from '@/utils/request'
import mpaasScan from '@/utils/scanner.js'
import { debounce } from 'lodash'
   const store=userInfo()
  let processId = ref(null)
   let process = ref(null)
@@ -293,7 +294,7 @@
      })
   }
   //报工保存
   const saveReportForWork = () => {
   const saveReportForWork = debounce(() => {
      for (let item of reportworkList.value) {
         const finishNumVal = finishNum(item.processList)
         if(finishNumVal===0){
@@ -386,19 +387,19 @@
         }).finally(() => {
            buttonLoading.value = false
         })
   }
   },200)
   
   //弹出框确认
   const dialogConfirm = () => {
   const dialogConfirm = debounce(() => {
      uni.reLaunch({
        url: `/pages/mainView/mainView?state=success`
      })
   }
   const dialogClose = () => {
   },200)
   const dialogClose = debounce(() => {
      uni.redirectTo({
         url: `/pages/reportingWork/reportingWork?processId=${processId.value}`
      });
   }
   },200)
   
   //下工序审核
   const reviewReportForWork = () => {
@@ -617,7 +618,7 @@
      
   }
   
   const scannerCode = () => {
   const scannerCode = debounce(() => {
      if(reportworkList.length>6){
         messageToggle('error','最多支持6个流程卡同时报工')
      }
@@ -634,12 +635,12 @@
         
         getProcessCardList(val,process.value)
      })
   }
   },200)
   
   //移除流程卡
   const deleteProcess = (indexVal) => {
   const deleteProcess = debounce((indexVal) => {
       reportworkList.value.splice(indexVal, 1)
   }
   },200)
</script>