| | |
| | | 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) |
| | |
| | | }) |
| | | } |
| | | //报工保存 |
| | | const saveReportForWork = () => { |
| | | const saveReportForWork = debounce(() => { |
| | | for (let item of reportworkList.value) { |
| | | const finishNumVal = finishNum(item.processList) |
| | | if(finishNumVal===0){ |
| | |
| | | }).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 = () => { |
| | |
| | | |
| | | } |
| | | |
| | | const scannerCode = () => { |
| | | const scannerCode = debounce(() => { |
| | | if(reportworkList.length>6){ |
| | | messageToggle('error','最多支持6个流程卡同时报工') |
| | | } |
| | |
| | | |
| | | getProcessCardList(val,process.value) |
| | | }) |
| | | } |
| | | },200) |
| | | |
| | | //移除流程卡 |
| | | const deleteProcess = (indexVal) => { |
| | | const deleteProcess = debounce((indexVal) => { |
| | | reportworkList.value.splice(indexVal, 1) |
| | | } |
| | | },200) |
| | | |
| | | </script> |
| | | |