|
@@ -11,12 +11,12 @@
|
|
|
<!-- 1、头部信息 -->
|
|
|
<div class="flow-status-stamp">
|
|
|
<div class="flow-stamp-container">
|
|
|
- <FlowStatusStamp :status="0" />
|
|
|
+ <FlowStatusStamp :status="currentTaskRow.instanceState" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="flow-header-box">
|
|
|
- <div class="flow-no">编号:{{ currentTaskRow.taskId }}</div>
|
|
|
+ <div class="flow-no">编号:{{ currentTaskRow.instanceId }}</div>
|
|
|
<div class="action-area">
|
|
|
<div class="action-item"></div>
|
|
|
</div>
|
|
@@ -79,14 +79,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 3、底部操作按钮 -->
|
|
|
+ <!-- 3、底部操作按钮 审批拒绝 强制终止不展示操作按钮-->
|
|
|
<!--
|
|
|
1、已审批的任务不显示操作按钮
|
|
|
2、我的申请显示撤回按钮
|
|
|
3、认领任务显示认领按钮
|
|
|
4、我收到的任务显示评论
|
|
|
-->
|
|
|
- <div class="flow-actions">
|
|
|
+ <div v-if="currentTaskRow.instanceState === 0" class="flow-actions">
|
|
|
<el-button :icon="ChatLineSquare" @click="openComment('reviewVisible', 'review')">评论</el-button>
|
|
|
<template v-if="currentTaskType !== 'myReceived' || currentTaskType !== 'approved'">
|
|
|
<el-button
|
|
@@ -191,7 +191,7 @@ import RollbackDialog from './rollbackDialog'
|
|
|
import viewForm from '@/utils/form'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
|
|
|
-const props = defineProps({
|
|
|
+defineProps({
|
|
|
/**
|
|
|
* pendingApproval 待审批
|
|
|
* myApplication 我的申请
|
|
@@ -236,16 +236,6 @@ const validateForm = ref({
|
|
|
loading: false
|
|
|
})
|
|
|
|
|
|
-/**
|
|
|
- * 拿到当前关闭详情弹窗
|
|
|
- */
|
|
|
-const closeDetailEv = () => {
|
|
|
- // 存储表单 todo.....
|
|
|
- // 如果这里有表单,是否要把所有表单的内容进行存储,存储完毕后,才能关闭这个详情,刷新左侧的列表 todo
|
|
|
- taskProcessInfo.refresh = true
|
|
|
- taskProcessInfo.setCurrentTaskRow({})
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* 详情按钮各个操作弹窗
|
|
|
* @param visibleType 评论 拒绝 同意等
|
|
@@ -305,7 +295,8 @@ const getTaskDetail = () => {
|
|
|
validateForm.value.loading = true
|
|
|
processTaskApprovalInfo({
|
|
|
taskId: cur.taskId,
|
|
|
- instanceId: cur.instanceId
|
|
|
+ instanceId: cur.instanceId,
|
|
|
+ instanceState: cur.instanceState
|
|
|
})
|
|
|
.then(data => {
|
|
|
activeData.value = data.processApprovals
|
|
@@ -365,6 +356,21 @@ const claimTaskEv = async () => {
|
|
|
console.log(res, 'res====')
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 详情页面操作按钮回调
|
|
|
+ */
|
|
|
+const closeDetailEv = () => {
|
|
|
+ // 存储表单 todo.....
|
|
|
+ // 如果这里有表单,是否要把所有表单的内容进行存储,存储完毕后,才能关闭这个详情,刷新左侧的列表 todo
|
|
|
+ if (currentType.value === 'review') {
|
|
|
+ // 评论按钮,不要刷新左侧的列表,只更新右侧的详情即可
|
|
|
+ getTaskDetail()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ taskProcessInfo.refresh = true
|
|
|
+ taskProcessInfo.setCurrentTaskRow({})
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 监听同级子组件的instanceId的值变化 这里可能也有实例Id
|
|
|
* 1、监听instanceId的值变化,如果值有变化,则重新获取审批详情
|
|
@@ -401,7 +407,7 @@ watch(
|
|
|
position: absolute;
|
|
|
right: 10px;
|
|
|
top: 10px;
|
|
|
- z-index: 999;
|
|
|
+ z-index: 99;
|
|
|
}
|
|
|
|
|
|
// 头部
|