|
|
|
|
@ -70,15 +70,24 @@
|
|
|
|
|
<el-row style="height: 100%"> |
|
|
|
|
<el-col :span="5" style="height: 100%"> |
|
|
|
|
<div ref="leftContainerRef" class="left-container h100"> |
|
|
|
|
<template v-if="negative.flowKey !== FlowNodeEnum.FIRST_DISTRIBUTE && negative.processingStatus !== ProcessingStatus.COMPLETED"> |
|
|
|
|
<negative-countdown v-model:time="remainingDuration" :max-time="maxDuration" /> |
|
|
|
|
<template |
|
|
|
|
v-if=" |
|
|
|
|
negative.flowKey !== |
|
|
|
|
FlowNodeEnum.FIRST_DISTRIBUTE && |
|
|
|
|
negative.processingStatus !== |
|
|
|
|
ProcessingStatus.COMPLETED |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
<negative-countdown |
|
|
|
|
v-model:time="remainingDuration" |
|
|
|
|
:max-time="maxDuration" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
<negative-action-history /> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="19" style="height: 100%"> |
|
|
|
|
<el-scrollbar max-height="100%" class="main-container"> |
|
|
|
|
|
|
|
|
|
<negative-sign-return-description /> |
|
|
|
|
<negative-apply-extension-description /> |
|
|
|
|
<negative-description /> |
|
|
|
|
@ -173,7 +182,11 @@
|
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { FlowActionEnum, FlowNodeEnum, ProcessingStatus } from "@/enums/flowEnums"; |
|
|
|
|
import { |
|
|
|
|
FlowActionEnum, |
|
|
|
|
FlowNodeEnum, |
|
|
|
|
ProcessingStatus, |
|
|
|
|
} from "@/enums/flowEnums"; |
|
|
|
|
import { getNegativeDetails, negativeExecute } from "@/api/work/negative"; |
|
|
|
|
import { addFav, delFav } from "@/api/work/fav"; |
|
|
|
|
import feedback from "@/utils/feedback"; |
|
|
|
|
@ -202,7 +215,7 @@ const loading = ref(false);
|
|
|
|
|
const negative = ref({}); |
|
|
|
|
const actionHistory = ref([]); |
|
|
|
|
const signReturns = ref([]); |
|
|
|
|
const approves = ref([]) |
|
|
|
|
const approves = ref([]); |
|
|
|
|
const extensionApply = ref({}); |
|
|
|
|
provide("negative", negative); |
|
|
|
|
provide("actionHistory", actionHistory); |
|
|
|
|
@ -211,8 +224,8 @@ provide("approves", approves);
|
|
|
|
|
provide("extensionApply", extensionApply); |
|
|
|
|
|
|
|
|
|
const isFav = ref(false); |
|
|
|
|
const remainingDuration = ref(0) |
|
|
|
|
const maxDuration = ref(0) |
|
|
|
|
const remainingDuration = ref(0); |
|
|
|
|
const maxDuration = ref(0); |
|
|
|
|
const flowActions = ref([]); |
|
|
|
|
const components = ref([]); |
|
|
|
|
watch( |
|
|
|
|
@ -229,11 +242,11 @@ function getDetails() {
|
|
|
|
|
flowActions.value = data.flowActions; |
|
|
|
|
actionHistory.value = data.actionHistory; |
|
|
|
|
signReturns.value = data.signReturns; |
|
|
|
|
approves.value = data.approves |
|
|
|
|
approves.value = data.approves; |
|
|
|
|
extensionApply.value = data.extensionApply || {}; |
|
|
|
|
isFav.value = data.isFav; |
|
|
|
|
remainingDuration.value = data.remainingDuration; |
|
|
|
|
console.log(remainingDuration.value) |
|
|
|
|
console.log(remainingDuration.value); |
|
|
|
|
maxDuration.value = data.maxDuration; |
|
|
|
|
components.value = getComponents(data.flowNode?.flowKey); |
|
|
|
|
loading.value = false; |
|
|
|
|
@ -250,11 +263,16 @@ const setActionItemRef = (actionKey, el) => {
|
|
|
|
|
const activeAction = ref({}); |
|
|
|
|
async function handleExecute(action, data) { |
|
|
|
|
if (action.validateForm) { |
|
|
|
|
try { |
|
|
|
|
data = await componentRef.value.validate(); |
|
|
|
|
} catch (e) { |
|
|
|
|
feedback.msgWarning("请检查输入项"); |
|
|
|
|
throw e; |
|
|
|
|
debugger |
|
|
|
|
if (action.actionKey !== FlowActionEnum.SAVE) { |
|
|
|
|
try { |
|
|
|
|
data = await componentRef.value.validate(); |
|
|
|
|
} catch (e) { |
|
|
|
|
feedback.msgWarning("请检查输入项"); |
|
|
|
|
throw e; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
data = componentRef.value.getData(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (action.openDialog) { |
|
|
|
|
|