feat: 新增流程抄送

(cherry picked from commit 2c9393702d)
This commit is contained in:
kyle
2024-01-17 09:40:05 +08:00
committed by shizhong
parent 743ac20538
commit dccd2d7d4a
4 changed files with 415 additions and 0 deletions

View File

@ -4,6 +4,7 @@ export type Task = {
id: string
name: string
}
export type ProcessInstanceVO = {
id: number
name: string
@ -19,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 getMyProcessInstancePageApi = async (params) => {
return await request.get({ url: '/bpm/process-instance/my-page', params })
}
@ -38,3 +50,21 @@ export const cancelProcessInstanceApi = async (id: number, reason: string) => {
export const getProcessInstanceApi = 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 })
}