|
@@ -150,15 +150,14 @@
|
|
|
<script setup lang="ts" name="discernDetail">
|
|
|
import { computed, defineAsyncComponent, reactive, ref } from 'vue';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { discernApproveParams, screenDetail } from '@/api/business/discern';
|
|
|
import { transformFile } from '@/utils/tools';
|
|
|
-import { ElMessage, FormInstance } from 'element-plus';
|
|
|
+import { ElMessage, ElNotification, FormInstance } from 'element-plus';
|
|
|
import { workflowNext, workflowReject, workflowTraces } from '@/api/system/workflow';
|
|
|
import { commonEnum } from '@/utils/constants';
|
|
|
import { useAppConfig } from '@/stores/appConfig';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
import other from '@/utils/other';
|
|
|
-import { delayApproveModify, delayApproveParams, delayDetail } from '@/api/business/delay';
|
|
|
+import { delayApproveModify, delayApproveParams, delayBatchApprove, delayDetail } from '@/api/business/delay';
|
|
|
|
|
|
const AnnexList = defineAsyncComponent(() => import('@/components/AnnexList/index.vue')); // 附件列表
|
|
|
const CommonAdvice = defineAsyncComponent(() => import('@/components/CommonAdvice/index.vue')); // 常用意见
|
|
@@ -367,6 +366,22 @@ const onSubmit = (formEl: FormInstance | undefined) => {
|
|
|
if (!valid) return;
|
|
|
state.loading = true;
|
|
|
let submitObj = other.deepClone(state.ruleForm);
|
|
|
+
|
|
|
+ const request = {
|
|
|
+ nextWorkflow: submitObj,
|
|
|
+ files: handleFiles.value,
|
|
|
+ delayId: [currentRow.value.id],
|
|
|
+ isPass: state.ruleForm.isPass,
|
|
|
+ };
|
|
|
+ delayBatchApprove(request)
|
|
|
+ .then(() => {
|
|
|
+ afterSubmit('updateList', true);
|
|
|
+ })
|
|
|
+ .catch((err: any) => {
|
|
|
+ console.log(err, 'err');
|
|
|
+ afterSubmit('updateList');
|
|
|
+ });
|
|
|
+ /*
|
|
|
if (state.ruleForm.isPass) {
|
|
|
// 审批通过 下一步
|
|
|
workflowNext({ ...submitObj, reviewResult: 1, files: handleFiles.value })
|
|
@@ -391,7 +406,7 @@ const onSubmit = (formEl: FormInstance | undefined) => {
|
|
|
.catch(() => {
|
|
|
afterSubmit('updateList');
|
|
|
});
|
|
|
- }
|
|
|
+ }*/
|
|
|
});
|
|
|
};
|
|
|
defineExpose({
|