|
@@ -133,6 +133,12 @@
|
|
4、我收到的任务显示评论
|
|
4、我收到的任务显示评论
|
|
-->
|
|
-->
|
|
<div v-if="currentTaskRow.instanceState === 0" class="flow-actions">
|
|
<div v-if="currentTaskRow.instanceState === 0" class="flow-actions">
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="currentTaskType === 'myApplication' && allowRevocation && (currentTaskType !== 'myReceived' || currentTaskType !== 'approved')"
|
|
|
|
+ :icon="Bell"
|
|
|
|
+ @click="openUrgeModal"
|
|
|
|
+ >催办</el-button
|
|
|
|
+ >
|
|
<el-button :icon="ChatLineSquare" @click="openComment('reviewVisible', 'review')">评论</el-button>
|
|
<el-button :icon="ChatLineSquare" @click="openComment('reviewVisible', 'review')">评论</el-button>
|
|
<template v-if="currentTaskType !== 'myReceived' || currentTaskType !== 'approved'">
|
|
<template v-if="currentTaskType !== 'myReceived' || currentTaskType !== 'approved'">
|
|
<el-button v-if="currentTaskType === 'pendingApproval'" :icon="Check" type="primary" @click="handleFormValid">同意</el-button>
|
|
<el-button v-if="currentTaskType === 'pendingApproval'" :icon="Check" type="primary" @click="handleFormValid">同意</el-button>
|
|
@@ -235,8 +241,8 @@ import FlowStatusStamp from '@/components/Flow/FlowStatusStamp.vue'
|
|
import FlowStatusTag from '@/components/Flow/FlowStatusTag.vue'
|
|
import FlowStatusTag from '@/components/Flow/FlowStatusTag.vue'
|
|
import FlowNodeAvatar from '@/components/Flow/FlowNodeAvatar.vue'
|
|
import FlowNodeAvatar from '@/components/Flow/FlowNodeAvatar.vue'
|
|
import FlowTypeDot from '@/components/Flow/FlowTypeDot.vue'
|
|
import FlowTypeDot from '@/components/Flow/FlowTypeDot.vue'
|
|
-import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More, Printer } from '@element-plus/icons-vue'
|
|
|
|
-import { processTaskApprovalInfo, processClaimTaskApi } from '@/api/flow/processTask'
|
|
|
|
|
|
+import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More, Printer, Bell } from '@element-plus/icons-vue'
|
|
|
|
+import { processTaskApprovalInfo, processClaimTaskApi, progressUrgeApi } from '@/api/flow/processTask'
|
|
import { formatTimestamp } from '@/utils/datetime'
|
|
import { formatTimestamp } from '@/utils/datetime'
|
|
import ReviewDialog from './reviewDialog'
|
|
import ReviewDialog from './reviewDialog'
|
|
import AddSignDialog from './addSignDialog'
|
|
import AddSignDialog from './addSignDialog'
|
|
@@ -594,6 +600,25 @@ const claimTaskEv = async () => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const openUrgeModal = () => {
|
|
|
|
+ const item = currentTaskRow.value
|
|
|
|
+ ElMessageBox.confirm(
|
|
|
|
+ `是否对流程${item.processName} 发起催办?`,
|
|
|
|
+ '提示',
|
|
|
|
+ {
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ buttonSize: 'default'
|
|
|
|
+ }
|
|
|
|
+ ).then(async () => {
|
|
|
|
+ await progressUrgeApi(currentTaskRow.value.instanceId)
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ // Handle the cancel action if needed
|
|
|
|
+ console.log('取消')
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 监听同级子组件的instanceId的值变化 这里可能也有实例Id
|
|
* 监听同级子组件的instanceId的值变化 这里可能也有实例Id
|
|
* 1、监听instanceId的值变化,如果值有变化,则重新获取审批详情
|
|
* 1、监听instanceId的值变化,如果值有变化,则重新获取审批详情
|