From 7c880dcbe4758f0fc7bf1dc3525326e4cacf68b4 Mon Sep 17 00:00:00 2001 From: hongawen <83944980@qq.com> Date: Sun, 12 May 2024 19:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=BE=85=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=81=E5=B7=B2=E5=A4=84=E7=90=86=E3=80=81=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85=E9=A1=B5=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm-boot/activity.ts | 17 + src/api/bpm-boot/definition.ts | 27 ++ src/api/bpm-boot/instance.ts | 28 ++ src/api/bpm-boot/task.ts | 127 ++++++ src/api/supervision-boot/userReport/form.ts | 13 +- src/components/icon/src/data.ts | 2 +- src/components/table/header/index.vue | 2 +- src/router/static.ts | 21 +- src/views/bpm/oa/leave/detail.vue | 50 ++ .../components/undocumented/detail.vue | 107 +++++ src/views/system/bpm/form/editor/index.vue | 188 ++++---- src/views/system/bpm/model/editor/index.vue | 48 +- .../detail/ProcessInstanceBpmnViewer.vue | 56 +++ .../detail/ProcessInstanceTaskList.vue | 194 ++++++++ .../detail/dialog/TaskDelegateForm.vue | 93 ++++ .../detail/dialog/TaskReturnForm.vue | 93 ++++ .../detail/dialog/TaskSignCreateForm.vue | 102 +++++ .../detail/dialog/TaskSignDeleteForm.vue | 94 ++++ .../detail/dialog/TaskSignList.vue | 107 +++++ .../detail/dialog/TaskTransferForm.vue | 93 ++++ .../bpm/processInstance/detail/index.vue | 429 ++++++++++++++++++ src/views/system/bpm/task/done/index.vue | 119 +++++ src/views/system/bpm/task/todo/index.vue | 96 ++++ 23 files changed, 1974 insertions(+), 132 deletions(-) create mode 100644 src/api/bpm-boot/activity.ts create mode 100644 src/api/bpm-boot/definition.ts create mode 100644 src/api/bpm-boot/instance.ts create mode 100644 src/api/bpm-boot/task.ts create mode 100644 src/views/bpm/oa/leave/detail.vue create mode 100644 src/views/pqs/supervise/interfere/components/undocumented/detail.vue create mode 100644 src/views/system/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue create mode 100644 src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskDelegateForm.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskReturnForm.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskSignList.vue create mode 100644 src/views/system/bpm/processInstance/detail/dialog/TaskTransferForm.vue create mode 100644 src/views/system/bpm/processInstance/detail/index.vue create mode 100644 src/views/system/bpm/task/done/index.vue create mode 100644 src/views/system/bpm/task/todo/index.vue diff --git a/src/api/bpm-boot/activity.ts b/src/api/bpm-boot/activity.ts new file mode 100644 index 00000000..c42cb9fa --- /dev/null +++ b/src/api/bpm-boot/activity.ts @@ -0,0 +1,17 @@ +import createAxios from '@/utils/request' + +import { BPM_BOOT } from '@/utils/constantRequest' + +const MAPPING_PATH = BPM_BOOT + '/bpm/activity' + + +/** + * 生成指定流程实例的高亮流程图 + */ +export const getTaskListByReturn = (processInstanceId: string) => { + return createAxios({ + url: MAPPING_PATH + '/getActivityList?processInstanceId='+processInstanceId, + method: 'GET' + }) +} + diff --git a/src/api/bpm-boot/definition.ts b/src/api/bpm-boot/definition.ts new file mode 100644 index 00000000..47957547 --- /dev/null +++ b/src/api/bpm-boot/definition.ts @@ -0,0 +1,27 @@ +import createAxios from '@/utils/request' + +import { BPM_BOOT } from '@/utils/constantRequest' + +const MAPPING_PATH = BPM_BOOT + '/bpm/processDefinition' + +/** + * 通过任务 + */ +export const approveTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/approve', + method: 'POST', + data: data + }) +} + + +/** + * 获得流程定义 + */ +export const getProcessDefinitionById = (id: string, key: string) => { + return createAxios({ + url: MAPPING_PATH + '/get?id=' + id + '&key=' + key, + method: 'GET' + }) +} diff --git a/src/api/bpm-boot/instance.ts b/src/api/bpm-boot/instance.ts new file mode 100644 index 00000000..fe449d16 --- /dev/null +++ b/src/api/bpm-boot/instance.ts @@ -0,0 +1,28 @@ +import createAxios from '@/utils/request' + +import { BPM_BOOT } from '@/utils/constantRequest' + +const MAPPING_PATH = BPM_BOOT + '/bpm/processInstance' + +/** + * 通过任务 + */ +export const approveTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/approve', + method: 'POST', + data: data + }) +} + + + +/** + * 获得指定流程实例 + */ +export const getProcessInstanceById = (id: string) => { + return createAxios({ + url: MAPPING_PATH + '/get?id='+id, + method: 'GET' + }) +} diff --git a/src/api/bpm-boot/task.ts b/src/api/bpm-boot/task.ts new file mode 100644 index 00000000..d2240e0a --- /dev/null +++ b/src/api/bpm-boot/task.ts @@ -0,0 +1,127 @@ +import createAxios from '@/utils/request' + +import { BPM_BOOT } from '@/utils/constantRequest' + +const MAPPING_PATH = BPM_BOOT + '/bpm/task' + +/** + * 通过任务 + */ +export const approveTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/approve', + method: 'POST', + data: data + }) +} + +/** + * 不通过任务 + */ +export const rejectTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/reject', + method: 'POST', + data: data + }) +} + +/** + * 委派任务 + */ +export const delegateTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/delegate', + method: 'POST', + data: data + }) +} + +/** + * 回退任务 + */ +export const returnTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/return', + method: 'POST', + data: data + }) +} + +/** + * 加签 + */ +export const createSignTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/createSign', + method: 'POST', + data: data + }) +} + +/** + * 减签 + */ +export const deleteSignTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/deleteSign', + method: 'POST', + data: data + }) +} + +/** + * 转派任务 + */ +export const transferTask = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/transfer', + method: 'POST', + data: data + }) +} + + +/** + * 加签 + */ +export const getTaskListByParentTaskId = (parentTaskId: any) => { + return createAxios({ + url: MAPPING_PATH + '/listByParentTaskId?parentTaskId='+parentTaskId, + method: 'GET' + }) +} + + +/** + * 获取所有可回退的节点 + */ +export const getTaskListByReturn = (id: string) => { + return createAxios({ + url: MAPPING_PATH + '/listByReturn?id='+id, + method: 'GET' + }) +} + + + +/** + * 获得指定流程实例的任务列表 + */ +export const listByProcessInstanceId = (parentTaskId: string) => { + return createAxios({ + url: MAPPING_PATH + '/listByParentTaskId?parentTaskId='+parentTaskId, + method: 'GET' + }) +} + + +/** + * 获得指定流程实例的任务列表 + */ +export const getTaskListByProcessInstanceId = (processInstanceId: string) => { + return createAxios({ + url: MAPPING_PATH + '/listByProcessInstanceId?processInstanceId='+processInstanceId, + method: 'GET' + }) +} diff --git a/src/api/supervision-boot/userReport/form.ts b/src/api/supervision-boot/userReport/form.ts index 704e411f..fcc9d423 100644 --- a/src/api/supervision-boot/userReport/form.ts +++ b/src/api/supervision-boot/userReport/form.ts @@ -2,7 +2,7 @@ import createAxios from '@/utils/request' import { SUPERVISION_BOOT } from '@/utils/constantRequest' -const MAPPING_PATH = SUPERVISION_BOOT + '/workflow/wfForm' +const MAPPING_PATH = SUPERVISION_BOOT + '/userReport' /** * 查询流程表单数据 @@ -14,3 +14,14 @@ export const getUserReport = (data: any) => { data: data }) } + + +/** + * 根据id获取用户档案录入的详细数据 + */ +export const getUserReportById = (id: any) => { + return createAxios({ + url: MAPPING_PATH + '/getById?id='+id, + method: 'GET' + }) +} diff --git a/src/components/icon/src/data.ts b/src/components/icon/src/data.ts index 2a4ed5a3..58d28869 100644 --- a/src/components/icon/src/data.ts +++ b/src/components/icon/src/data.ts @@ -1872,7 +1872,7 @@ export const IconJson = { 'umbrella-beach', 'underline', 'undo', - 'undo-alt', + 'todo-alt', 'union', 'universal-access', 'university', diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index d9791efc..ee673a34 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -2,7 +2,7 @@
import('@/views/system/bpm/processInstance/detail/index.vue'), + name: 'BpmProcessInstanceDetail', + meta: { + title: pageTitle('router.instanceDetail') + } + }, // { // path: 'manager/model/edit', // component: () => import('@/views/bpm/model/editor/index.vue'), @@ -135,18 +143,7 @@ export const adminBaseRoute = { // activeMenu: '/bpm/manager/model' // } // }, - // { - // path: 'process-instance/detail', - // component: () => import('@/views/bpm/processInstance/detail/index.vue'), - // name: 'BpmProcessInstanceDetail', - // meta: { - // noCache: true, - // hidden: true, - // canTo: true, - // title: '流程详情', - // activeMenu: '/bpm/task/my' - // } - // }, + ] }, diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue new file mode 100644 index 00000000..472774a4 --- /dev/null +++ b/src/views/bpm/oa/leave/detail.vue @@ -0,0 +1,50 @@ + + diff --git a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue new file mode 100644 index 00000000..5a8c2d8c --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue @@ -0,0 +1,107 @@ + + diff --git a/src/views/system/bpm/form/editor/index.vue b/src/views/system/bpm/form/editor/index.vue index fc2b80db..6562734b 100644 --- a/src/views/system/bpm/form/editor/index.vue +++ b/src/views/system/bpm/form/editor/index.vue @@ -1,49 +1,49 @@ diff --git a/src/views/system/bpm/model/editor/index.vue b/src/views/system/bpm/model/editor/index.vue index 16166a87..46176ce8 100644 --- a/src/views/system/bpm/model/editor/index.vue +++ b/src/views/system/bpm/model/editor/index.vue @@ -1,27 +1,29 @@ + diff --git a/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue new file mode 100644 index 00000000..cb64a3b8 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue @@ -0,0 +1,194 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskDelegateForm.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskDelegateForm.vue new file mode 100644 index 00000000..58739738 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskDelegateForm.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskReturnForm.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskReturnForm.vue new file mode 100644 index 00000000..3d6cd6c4 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskReturnForm.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue new file mode 100644 index 00000000..a9efb2ed --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue @@ -0,0 +1,102 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue new file mode 100644 index 00000000..e982b85b --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue @@ -0,0 +1,94 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskSignList.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskSignList.vue new file mode 100644 index 00000000..0eff3984 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskSignList.vue @@ -0,0 +1,107 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/dialog/TaskTransferForm.vue b/src/views/system/bpm/processInstance/detail/dialog/TaskTransferForm.vue new file mode 100644 index 00000000..17ccfd03 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/dialog/TaskTransferForm.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/system/bpm/processInstance/detail/index.vue b/src/views/system/bpm/processInstance/detail/index.vue new file mode 100644 index 00000000..c8f19c81 --- /dev/null +++ b/src/views/system/bpm/processInstance/detail/index.vue @@ -0,0 +1,429 @@ + + diff --git a/src/views/system/bpm/task/done/index.vue b/src/views/system/bpm/task/done/index.vue new file mode 100644 index 00000000..b218c0fd --- /dev/null +++ b/src/views/system/bpm/task/done/index.vue @@ -0,0 +1,119 @@ + + + + diff --git a/src/views/system/bpm/task/todo/index.vue b/src/views/system/bpm/task/todo/index.vue new file mode 100644 index 00000000..39f561e7 --- /dev/null +++ b/src/views/system/bpm/task/todo/index.vue @@ -0,0 +1,96 @@ + + + +