diff --git a/src/api/bpm/processInstance/index.ts b/src/api/bpm/processInstance/index.ts index 10cd3bc8..a937eae2 100644 --- a/src/api/bpm/processInstance/index.ts +++ b/src/api/bpm/processInstance/index.ts @@ -20,6 +20,17 @@ export type ProcessInstanceVO = { endTime: string } +export type ProcessInstanceCCVO = { + type: number, + taskName: string, + taskKey: string, + processInstanceName: string, + processInstanceKey: string, + startUserId: string, + options:string [], + reason: string +} + export const getMyProcessInstancePage = async (params) => { return await request.get({ url: '/bpm/process-instance/my-page', params }) } @@ -39,3 +50,21 @@ export const cancelProcessInstance = async (id: number, reason: string) => { export const getProcessInstance = async (id: number) => { return await request.get({ url: '/bpm/process-instance/get?id=' + id }) } + +/** + * 抄送 + * @param data 抄送数据 + * @returns 是否抄送成功 + */ +export const createProcessInstanceCC = async (data) => { + return await request.post({ url: '/bpm/process-instance/cc/create', data: data }) +} + +/** + * 抄送列表 + * @param params + * @returns + */ +export const getProcessInstanceCCPage = async (params) => { + return await request.get({ url: '/bpm/process-instance/cc/my-page', params }) +} \ No newline at end of file diff --git a/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue b/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue new file mode 100644 index 00000000..72be3150 --- /dev/null +++ b/src/views/bpm/processInstance/detail/TaskCCDialogForm.vue @@ -0,0 +1,242 @@ + + diff --git a/src/views/bpm/task/cc/index.vue b/src/views/bpm/task/cc/index.vue new file mode 100644 index 00000000..b3852209 --- /dev/null +++ b/src/views/bpm/task/cc/index.vue @@ -0,0 +1,134 @@ + + diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue index c8876887..b281d949 100644 --- a/src/views/bpm/task/todo/index.vue +++ b/src/views/bpm/task/todo/index.vue @@ -64,6 +64,7 @@ @@ -74,12 +75,14 @@ :total="total" @pagination="getList" /> +