|
|
@@ -883,7 +883,7 @@ import RectificationUpload from '@/views/pressure2/components/RectificationUploa
|
|
|
import { computed, nextTick, reactive, ref, watch } from 'vue'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
import { InfoFilled, View, Back, Right, WarningFilled, VideoPlay } from '@element-plus/icons-vue'
|
|
|
-import { dayjs, ElMessage, ElMessageBox, FormInstance, FormRules } from 'element-plus'
|
|
|
+import {dayjs, ElLoading, ElMessage, ElMessageBox, FormInstance, FormRules} from 'element-plus'
|
|
|
const CustomDialog = defineAsyncComponent(() => import('@/components/CustomDialog/index.vue'))
|
|
|
import VuePdfEmbed from 'vue-pdf-embed'
|
|
|
import { getReportAllowedApplyModify, getReportCheckPdf } from '@/api/laboratory/functional/report'
|
|
|
@@ -1866,14 +1866,22 @@ const handleSubmitAudit = async () => {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
- const submitResult = await BoilerTaskOrderApi.submitReportAudit({
|
|
|
- id: templateParams.value?.id,
|
|
|
- approveId
|
|
|
+ const loadingInstance = ElLoading.service({
|
|
|
+ fullscreen: true,
|
|
|
+ text: '正在提交审核...'
|
|
|
})
|
|
|
- if (submitResult) {
|
|
|
- ElMessage.success('提交审核成功!')
|
|
|
- selectNextItem([props.selectedItem])
|
|
|
- emit('template-confirm')
|
|
|
+ try {
|
|
|
+ const submitResult = await BoilerTaskOrderApi.submitReportAudit({
|
|
|
+ id: templateParams.value?.id,
|
|
|
+ approveId
|
|
|
+ })
|
|
|
+ if (submitResult) {
|
|
|
+ ElMessage.success('提交审核成功!')
|
|
|
+ selectNextItem([props.selectedItem])
|
|
|
+ emit('template-confirm')
|
|
|
+ }
|
|
|
+ } finally {
|
|
|
+ loadingInstance.close()
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
console.log('用户取消提交审核')
|