From 619491b4d0b223b952380dac76b22411ddddce8e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 4 Oct 2024 16:16:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E3=80=91=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=9A=E6=96=B0=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ProcessInstanceOperationButton.vue | 49 +++++++++--- .../detail/ProcessInstanceTimeline.vue | 75 +++++++++++-------- .../bpm/processInstance/detail/index_new.vue | 21 +++--- 3 files changed, 90 insertions(+), 55 deletions(-) diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue index 6cdeb750..34ba2bbe 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue @@ -3,6 +3,7 @@ class="h-50px bottom-10 text-14px flex items-center color-#32373c dark:color-#fff font-bold btn-container" v-if="runningTask.id" > +   {{ getButtonDisplayName(OperationButtonType.APPROVE) }} +
+ +   {{ getButtonDisplayName(OperationButtonType.REJECT) }} +
+ +
 抄送
+ +
-  {{ getButtonDisplayName(OperationButtonType.TRANSFER) }} +   + {{ getButtonDisplayName(OperationButtonType.TRANSFER) }}
+ +
-  {{ getButtonDisplayName(OperationButtonType.DELEGATE) }} +   + {{ getButtonDisplayName(OperationButtonType.DELEGATE) }}
+ +
-  {{ getButtonDisplayName(OperationButtonType.ADD_SIGN) }} +   + {{ getButtonDisplayName(OperationButtonType.ADD_SIGN) }}
+ + +
-  {{ getButtonDisplayName(OperationButtonType.RETURN) }} +   + {{ getButtonDisplayName(OperationButtonType.RETURN) }}
+ + + - + @@ -149,7 +172,6 @@ - diff --git a/src/views/bpm/processInstance/detail/index_new.vue b/src/views/bpm/processInstance/detail/index_new.vue index 44d9da94..b2035a19 100644 --- a/src/views/bpm/processInstance/detail/index_new.vue +++ b/src/views/bpm/processInstance/detail/index_new.vue @@ -27,8 +27,8 @@ - -
+ +
@@ -64,7 +64,6 @@
- - + 流转评论 @@ -125,9 +124,9 @@ import audit3 from '@/assets/svgs/bpm/audit3.svg' defineOptions({ name: 'BpmProcessInstanceDetail' }) const props = defineProps<{ - id: string // 流程实例的编号 - taskId?: string // 任务编号 - activityId?: string //流程活动编号,用于抄送查看 + id: string // 流程实例的编号 + taskId?: string // 任务编号 + activityId?: string //流程活动编号,用于抄送查看 }>() const message = useMessage() // 消息弹窗 const processInstanceLoading = ref(false) // 流程实例的加载中 @@ -234,7 +233,7 @@ const getTaskList = async () => { const data = await TaskApi.getTaskListByProcessInstanceId(props.id) tasks.value = [] // 1.1 移除已取消的审批 - data.forEach((task) => { + data.forEach((task: any) => { if (task.status !== 4) { tasks.value.push(task) } @@ -267,8 +266,8 @@ const getTaskList = async () => { const refresh = () => { // 重新获取详情 getDetail() - // 刷新审批详情 Timeline - timelineRef.value?.refresh(); + // 刷新审批详情 Timeline + timelineRef.value?.refresh() } /** 当前的Tab */ @@ -298,7 +297,7 @@ $process-header-height: 194px; ); overflow: auto; - .form-scoll-area { + .form-scroll-area { height: calc( 100vh - var(--top-tool-height) - var(--tags-view-height) - var(--app-footer-height) - 45px - $process-header-height - 40px