审批流按钮
This commit is contained in:
@ -47,6 +47,10 @@
|
||||
<FormInformation v-else :key="randKey" ref="formInformation" :disabled="false" :formAssignmentData="data.formAssignmentData" :formInfos="data.formInfos" :opinions="data.opinions" :opinionsComponents="data.opinionsComponents" />
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="rQuery.type == 'update'">
|
||||
<Title :font-size="18" default-value="流转信息"></Title>
|
||||
<flow-history :items="historyList"></flow-history>
|
||||
</div>
|
||||
<a-modal :visible="showFlowChart" centered class="geg" closable title="流程图" width="1200px" @cancel="closeFlowChart">
|
||||
<process-information :process-id="processId" :xml="data.xml" />
|
||||
<template #footer>
|
||||
@ -75,6 +79,8 @@
|
||||
import { ApproveCode, ApproveType } from '/@/enums/workflowEnum';
|
||||
import useEventBus from '/@/hooks/event/useEventBus';
|
||||
import {customFormConfig} from './customFormConfig'
|
||||
import Title from '/@/components/Title/src/Title.vue';
|
||||
import FlowHistory from '/@/components/SecondDev/FlowHistory.vue';
|
||||
|
||||
const { bus, CREATE_FLOW } = useEventBus();
|
||||
|
||||
@ -90,6 +96,7 @@
|
||||
const rSchemaId = rParams.arg1;
|
||||
let rDraftsId = ref(rParams.arg2);
|
||||
const taskId = ref();
|
||||
const historyList = ref([])
|
||||
const loading = ref(false);
|
||||
const draftsJsonStr = localStorage.getItem('draftsJsonStr');
|
||||
const formJsonStr = localStorage.getItem('formJsonStr');
|
||||
@ -176,6 +183,11 @@
|
||||
await nextTick();
|
||||
await initDraftsFormData();
|
||||
await initFromFormData();
|
||||
|
||||
if (rQuery.processId) {
|
||||
let res = await getReStartProcessInfo(rQuery.taskId, rQuery.processId);
|
||||
historyList.value = res?.taskApproveOpinions || []
|
||||
}
|
||||
});
|
||||
|
||||
async function initDraftsFormData() {
|
||||
@ -338,6 +350,12 @@
|
||||
}
|
||||
async function onSave() {
|
||||
let value = await formInformation.value.handleSubmit();
|
||||
if (rQuery.type == 'update') {
|
||||
setTimeout(() => {
|
||||
bus.emit(CREATE_FLOW, {});
|
||||
close();
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
async function saveLaunchNew() {
|
||||
if (!taskId.value && rDraftsId.value != '0') {
|
||||
@ -367,7 +385,6 @@
|
||||
let value = await formInformation.value.handleSubmit(true);
|
||||
obj[key] = value
|
||||
mainFormModels.value = obj
|
||||
console.log(mainFormModels.value, 6666)
|
||||
if (!value) return
|
||||
|
||||
data.submitLoading = true;
|
||||
|
||||
Reference in New Issue
Block a user