diff --git a/src/api/bpm/task/index.ts b/src/api/bpm/task/index.ts index e6478d31..ccd5c4ee 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -51,3 +51,10 @@ export const getReturnList = async (params) => { export const returnTask = async (data) => { return await request.put({ url: '/bpm/task/return', data }) } + +/** + * 委派 + */ +export const delegateTask = async (data) => { + return await request.put({ url: '/bpm/task/delegate', data }) +} diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue index ec87104d..6f4557ae 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue @@ -92,6 +92,9 @@ const getTimelineItemType = (item) => { if (item.result === 5) { return 'warning' } + if (item.result === 6) { + return 'default' + } return '' } diff --git a/src/views/bpm/processInstance/detail/TaskDelegateForm.vue b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue new file mode 100644 index 00000000..dc757a0c --- /dev/null +++ b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue @@ -0,0 +1,86 @@ + + diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index fbadad4c..585c60db 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -93,6 +93,8 @@ + +