From bd4ac52a2d71e910ae5313d9cb4df17c1cdb7439 Mon Sep 17 00:00:00 2001 From: GoldenZqqq <1361001127@qq.com> Date: Fri, 25 Oct 2024 15:17:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=B5=81=E7=A8=8B=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E6=A8=A1=E5=9D=97-=E7=AC=AC=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=B5=81=E7=A8=8B=E5=88=86=E7=B1=BB=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=AF=B9=E5=BA=94=E7=9A=84=E6=B5=81=E7=A8=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=B8=8E=E5=B8=83=E5=B1=80=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bpm/processInstance/create/index_new.vue | 294 ++++++++++++++++++ src/views/bpm/processInstance/create/mock.js | 108 +++++++ 2 files changed, 402 insertions(+) create mode 100644 src/views/bpm/processInstance/create/index_new.vue create mode 100644 src/views/bpm/processInstance/create/mock.js diff --git a/src/views/bpm/processInstance/create/index_new.vue b/src/views/bpm/processInstance/create/index_new.vue new file mode 100644 index 00000000..164e6cf2 --- /dev/null +++ b/src/views/bpm/processInstance/create/index_new.vue @@ -0,0 +1,294 @@ + + + + + diff --git a/src/views/bpm/processInstance/create/mock.js b/src/views/bpm/processInstance/create/mock.js new file mode 100644 index 00000000..67861662 --- /dev/null +++ b/src/views/bpm/processInstance/create/mock.js @@ -0,0 +1,108 @@ +// 模拟流程分类数据 +export const categoryList = [ + { name: '审批流程', code: 'approval' }, + { name: '管理流程', code: 'management' } +] + +// 模拟流程定义数据 +export const processDefinitionList = [ + { + id: '1', + key: 'process_1', + name: '请假申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=1', + formType: 10, + formConf: {}, // 根据需要定义表单配置 + formFields: [], // 根据需要定义表单字段 + startUserSelectTasks: [ + { id: 'task1', name: '部门经理' }, + { id: 'task2', name: '人力资源' } + ] + }, + { + id: '2', + key: 'process_2', + name: '报销申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=2', + formType: 10, + formConf: {}, + formFields: [], + startUserSelectTasks: [{ id: 'task3', name: '财务' }] + }, + { + id: '3', + key: 'process_1', + name: '请假申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=1', + formType: 10, + formConf: {}, // 根据需要定义表单配置 + formFields: [], // 根据需要定义表单字段 + startUserSelectTasks: [ + { id: 'task1', name: '部门经理' }, + { id: 'task2', name: '人力资源' } + ] + }, + { + id: '4', + key: 'process_2', + name: '报销申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=2', + formType: 10, + formConf: {}, + formFields: [], + startUserSelectTasks: [{ id: 'task3', name: '财务' }] + },{ + id: '5', + key: 'process_1', + name: '请假申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=1', + formType: 10, + formConf: {}, // 根据需要定义表单配置 + formFields: [], // 根据需要定义表单字段 + startUserSelectTasks: [ + { id: 'task1', name: '部门经理' }, + { id: 'task2', name: '人力资源' } + ] + }, + { + id: '6', + key: 'process_2', + name: '报销申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=2', + formType: 10, + formConf: {}, + formFields: [], + startUserSelectTasks: [{ id: 'task3', name: '财务' }] + }, + { + id: '7', + key: 'process_1', + name: '请假申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=1', + formType: 10, + formConf: {}, // 根据需要定义表单配置 + formFields: [], // 根据需要定义表单字段 + startUserSelectTasks: [ + { id: 'task1', name: '部门经理' }, + { id: 'task2', name: '人力资源' } + ] + }, + { + id: '8', + key: 'process_2', + name: '报销申请', + category: 'approval', + icon: 'https://picsum.photos/200?r=2', + formType: 10, + formConf: {}, + formFields: [], + startUserSelectTasks: [{ id: 'task3', name: '财务' }] + } +] From c1109e90c4c44be0e7c50e06f77bdeaf1066da25 Mon Sep 17 00:00:00 2001 From: GoldenZqqq <1361001127@qq.com> Date: Mon, 28 Oct 2024 16:17:14 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E5=8F=91=E8=B5=B7=E6=B5=81?= =?UTF-8?q?=E7=A8=8B-=E5=A1=AB=E5=86=99=E8=A1=A8=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8D=95=E7=8B=AC=E6=8A=BD=E5=8F=96=E5=AD=90=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=80=BB=E4=BD=93=E5=B8=83=E5=B1=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=8E=E6=A0=B7=E5=BC=8F=E7=BB=98=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create/ProcessDefinitionDetail.vue | 247 ++++++++++++++++++ .../bpm/processInstance/create/index_new.vue | 161 +----------- src/views/bpm/processInstance/create/mock.js | 19 +- 3 files changed, 272 insertions(+), 155 deletions(-) create mode 100644 src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue diff --git a/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue b/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue new file mode 100644 index 00000000..19962c86 --- /dev/null +++ b/src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue @@ -0,0 +1,247 @@ + + + + diff --git a/src/views/bpm/processInstance/create/index_new.vue b/src/views/bpm/processInstance/create/index_new.vue index 164e6cf2..097c5b40 100644 --- a/src/views/bpm/processInstance/create/index_new.vue +++ b/src/views/bpm/processInstance/create/index_new.vue @@ -43,86 +43,31 @@ - - -
- 申请信息【{{ selectProcessDefinition.name }}】 - - 选择其它流程 - -
- - - - - -
- - -
+