From 9a876cff3d247a137b0bd0c9d1a896150a2b4c52 Mon Sep 17 00:00:00 2001 From: liuxiaolu <1845523809@qq.com> Date: Wed, 11 Oct 2023 16:08:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E3=80=90=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E3=80=91=E6=B7=BB=E5=8A=A0vue2=E7=89=88=E6=9C=AC=E7=9A=84?= =?UTF-8?q?=E9=80=80=E5=9B=9E=E5=92=8C=E5=A7=94=E6=B4=BE=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/api/bpm/task.js | 22 ++ .../package/designer/ProcessViewer.vue | 30 +++ .../src/views/bpm/processInstance/detail.vue | 220 ++++++++++++++---- 3 files changed, 230 insertions(+), 42 deletions(-) diff --git a/yudao-ui-admin/src/api/bpm/task.js b/yudao-ui-admin/src/api/bpm/task.js index aa32263f3c..359c43af27 100644 --- a/yudao-ui-admin/src/api/bpm/task.js +++ b/yudao-ui-admin/src/api/bpm/task.js @@ -61,3 +61,25 @@ export function getTaskListByProcessInstanceId(processInstanceId) { method: 'get', }) } +export function getReturnList(taskId) { + return request({ + url: '/bpm/task/get-return-list?taskId='+ taskId, + method: 'get', + }) +} + + +export function returnTask(data) { + return request({ + url: '/bpm/task/return', + method: 'PUT', + data: data + }) +} +export function delegateTask(data) { + return request({ + url: '/bpm/task/delegate', + method: 'PUT', + data: data + }) +} diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue index de1a693f90..2c6d839913 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -233,6 +233,10 @@ export default { return 'highlight-reject'; } else if (result === 4) { // 已取消 return 'highlight-cancel'; + } else if (result === 5) { // 已退回 + return 'highlight-back'; + } else if (result === 6) { // 已委派 + return 'highlight-todo'; } return ''; }, @@ -475,7 +479,33 @@ export default { :deep(.highlight-cancel.djs-connection > .djs-visual > path) { stroke: grey !important; } +/**驳回 */ +.highlight-back.djs-connection > .djs-visual > path { + stroke: #FFBA00 !important; + stroke-dasharray: 4px !important; + fill-opacity: 0.2 !important; +} +.highlight-back.djs-shape .djs-visual > :nth-child(1) { + fill: #FFBA00 !important; + stroke: #FFBA00 !important; + stroke-dasharray: 4px !important; + fill-opacity: 0.2 !important; +} + +:deep(.highlight-back.djs-connection > .djs-visual > path) { + stroke: #FFBA00 !important; + stroke-dasharray: 4px !important; + fill-opacity: 0.2 !important; + marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr); +} + +:deep(.highlight-back.djs-shape .djs-visual > :nth-child(1)) { + fill: #FFBA00 !important; + stroke: #FFBA00 !important; + stroke-dasharray: 4px !important; + fill-opacity: 0.2 !important; +} .element-overlays { box-sizing: border-box; padding: 8px; diff --git a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue index 7ecc53438d..aad82e0d95 100644 --- a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue +++ b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue @@ -5,7 +5,7 @@
审批任务【{{ item.name }}】
- + {{ processInstance.name }} @@ -15,15 +15,20 @@ {{ processInstance.startUser.deptName }} - +
- 通过 - 不通过 - 转办 - 委派 - 退回 + 通过 + + 不通过 + + 转办 + + 委派 + + 退回 +
@@ -34,8 +39,8 @@ -
- +
+
@@ -48,7 +53,7 @@
审批记录
- +
创建时间: - + - +

{{ item.reason }}

@@ -81,15 +89,16 @@ 流程图
+ :processInstanceData="processInstance" :taskData="tasks"/> - - + + - + @@ -98,17 +107,64 @@ 取 消
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + +