From 842fe09e8b7ff4957d464855252cee7dcfc09925 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sun, 13 Oct 2024 20:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E3=80=91=20=E6=96=B0=E5=AE=A1=E6=89=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=87=8F=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/task/index.ts | 14 +- src/assets/svgs/bpm/audit4.svg | 1 + src/router/modules/remaining.ts | 4 +- .../detail/ProcessInstanceOperationButton.vue | 320 ++++++++++-------- .../detail/dialog/TaskSignList.vue | 2 +- .../bpm/processInstance/detail/index_new.vue | 25 +- 6 files changed, 203 insertions(+), 163 deletions(-) create mode 100644 src/assets/svgs/bpm/audit4.svg diff --git a/src/api/bpm/task/index.ts b/src/api/bpm/task/index.ts index cf75bfa5..50816952 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -9,10 +9,10 @@ export enum TaskStatusEnum { */ NOT_START = -1, - /** + /** * 待审批 */ - WAIT = 0, + WAIT = 0, /** * 审批中 */ @@ -26,7 +26,7 @@ export enum TaskStatusEnum { * 审批不通过 */ REJECT = 3, - + /** * 已取消 */ @@ -42,8 +42,7 @@ export enum TaskStatusEnum { /** * 审批通过中 */ - APPROVING = 7, - + APPROVING = 7 } export type TaskVO = { @@ -111,6 +110,11 @@ export const copyTask = async (data: any) => { return await request.put({ url: '/bpm/task/copy', data }) } +// 获取我的待办任务 +export const myTodoTask = async (processInstanceId: string) => { + return await request.get({ url: '/bpm/task/my-todo?processInstanceId=' + processInstanceId }) +} + // 获取减签任务列表 export const getChildrenTaskList = async (id: string) => { return await request.get({ url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id }) diff --git a/src/assets/svgs/bpm/audit4.svg b/src/assets/svgs/bpm/audit4.svg new file mode 100644 index 00000000..ec661443 --- /dev/null +++ b/src/assets/svgs/bpm/audit4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 2f95155d..2cbaaa49 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -292,8 +292,8 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, { path: 'process-instance/detail', - // component: () => import('@/views/bpm/processInstance/detail/index_new.vue'), - component: () => import('@/views/bpm/processInstance/detail/index.vue'), + component: () => import('@/views/bpm/processInstance/detail/index_new.vue'), + //component: () => import('@/views/bpm/processInstance/detail/index.vue'), name: 'BpmProcessInstanceDetail', meta: { noCache: true, diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue index 96d9739e..188ac9dc 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue @@ -1,7 +1,7 @@