From 36f43dd8c8a7f377aec53f83250cbce0b18cfdf2 Mon Sep 17 00:00:00 2001 From: ssc <273702440@qq.com> Date: Mon, 13 Dec 2021 21:51:41 +0800 Subject: [PATCH] :tada: 1.3.4.RELEASE --- src/api/plugin/workflow/ops.js | 15 + .../components/wf-user-select/index.vue | 260 +++-------------- .../plugin/workflow/mixins/custom-fields.js | 2 +- src/views/plugin/workflow/mixins/ex-form.js | 6 +- src/views/plugin/workflow/ops/detail.vue | 6 +- src/views/plugin/workflow/ops/list.vue | 275 ++++++++++++++++++ .../workflow/process/components/flow.vue | 3 +- .../process/components/user-select.vue | 50 ++-- 8 files changed, 367 insertions(+), 250 deletions(-) create mode 100644 src/views/plugin/workflow/ops/list.vue diff --git a/src/api/plugin/workflow/ops.js b/src/api/plugin/workflow/ops.js index 2739aad..92b1a31 100644 --- a/src/api/plugin/workflow/ops.js +++ b/src/api/plugin/workflow/ops.js @@ -17,6 +17,21 @@ export const getList = (current, size, params) => { }) } +/** + * 所有流程列表 + */ + export const processList = (current, size, params) => { + return request({ + url: `${prefix}/processList`, + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + /** * 所有办结流程 */ diff --git a/src/views/plugin/workflow/components/wf-user-select/index.vue b/src/views/plugin/workflow/components/wf-user-select/index.vue index 3bc01a7..f9350c1 100644 --- a/src/views/plugin/workflow/components/wf-user-select/index.vue +++ b/src/views/plugin/workflow/components/wf-user-select/index.vue @@ -3,51 +3,26 @@ - - - - - - 取 消 - 确 定 - - + + \ No newline at end of file diff --git a/src/views/plugin/workflow/mixins/custom-fields.js b/src/views/plugin/workflow/mixins/custom-fields.js index 743edfd..28a8894 100644 --- a/src/views/plugin/workflow/mixins/custom-fields.js +++ b/src/views/plugin/workflow/mixins/custom-fields.js @@ -4,7 +4,7 @@ export default { customFields: [{ title: '业务字段', list: [{ - label: '人员选择(示例)', + label: '人员选择', component: 'wf-user-select', span: 24, params: { diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js index b9b9c48..7f7c3f9 100644 --- a/src/views/plugin/workflow/mixins/ex-form.js +++ b/src/views/plugin/workflow/mixins/ex-form.js @@ -72,7 +72,11 @@ export default { const vars = [] column.forEach(col => { let c = taskForm.find(s => s.id == col[props.prop]) - if (c && c.readable) { + if (c && c.readable || !c) { + if (!c) { // 未重新点击节点设计表单字段可读可写。 + if ((this.process.isOwner && this.process.status == 'todo') || !this.process.hasOwnProperty('isOwner')) c = { readable: true, writable: true } + else c = { readable: true, writable: false } + } let event = ['change', 'blur', 'click', 'focus'] if (c.writable) { // 可写,记录需要提交的字段、处理字段默认值 vars.push(col[props.prop]) diff --git a/src/views/plugin/workflow/ops/detail.vue b/src/views/plugin/workflow/ops/detail.vue index b01c4e1..2091146 100644 --- a/src/views/plugin/workflow/ops/detail.vue +++ b/src/views/plugin/workflow/ops/detail.vue @@ -3,7 +3,8 @@ -
+
+ + + + + + + + + + + + + + + + + + + diff --git a/src/views/plugin/workflow/process/components/flow.vue b/src/views/plugin/workflow/process/components/flow.vue index 19934bd..3908595 100644 --- a/src/views/plugin/workflow/process/components/flow.vue +++ b/src/views/plugin/workflow/process/components/flow.vue @@ -69,7 +69,8 @@ export default { terminateComment: '终止意见', addMultiInstanceComment: '加签', deleteMultiInstanceComment: '减签', - withdrawComment: '撤回', + withdrawComment: '撤销', + recallComment: '撤回', comment: '审批意见' } } diff --git a/src/views/plugin/workflow/process/components/user-select.vue b/src/views/plugin/workflow/process/components/user-select.vue index a331b7d..9c12604 100644 --- a/src/views/plugin/workflow/process/components/user-select.vue +++ b/src/views/plugin/workflow/process/components/user-select.vue @@ -1,5 +1,6 @@