提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type TaskVO = { |
|
4 |
id: number |
|
5 |
} |
|
6 |
|
|
7 |
export const getTaskTodoPage = async (params: any) => { |
|
8 |
return await request.get({ url: '/bpm/task/todo-page', params }) |
|
9 |
} |
|
10 |
|
|
11 |
export const getTaskDonePage = async (params: any) => { |
|
12 |
return await request.get({ url: '/bpm/task/done-page', params }) |
|
13 |
} |
|
14 |
|
|
15 |
export const getTaskManagerPage = async (params: any) => { |
|
16 |
return await request.get({ url: '/bpm/task/manager-page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
export const approveTask = async (data: any) => { |
|
20 |
return await request.put({ url: '/bpm/task/approve', data }) |
|
21 |
} |
|
22 |
|
|
23 |
export const rejectTask = async (data: any) => { |
|
24 |
return await request.put({ url: '/bpm/task/reject', data }) |
|
25 |
} |
|
26 |
|
|
27 |
export const getTaskListByProcessInstanceId = async (processInstanceId: string) => { |
|
28 |
return await request.get({ |
|
29 |
url: '/bpm/task/list-by-process-instance-id?processInstanceId=' + processInstanceId |
|
30 |
}) |
|
31 |
} |
|
32 |
|
|
33 |
// 获取所有可回退的节点 |
|
34 |
export const getTaskListByReturn = async (id: string) => { |
|
35 |
return await request.get({ url: '/bpm/task/list-by-return', params: { id } }) |
|
36 |
} |
|
37 |
|
|
38 |
// 回退 |
|
39 |
export const returnTask = async (data: any) => { |
|
40 |
return await request.put({ url: '/bpm/task/return', data }) |
|
41 |
} |
|
42 |
|
|
43 |
// 委派 |
|
44 |
export const delegateTask = async (data: any) => { |
|
45 |
return await request.put({ url: '/bpm/task/delegate', data }) |
|
46 |
} |
|
47 |
|
|
48 |
// 转派 |
|
49 |
export const transferTask = async (data: any) => { |
|
50 |
return await request.put({ url: '/bpm/task/transfer', data }) |
|
51 |
} |
|
52 |
|
|
53 |
// 加签 |
|
54 |
export const signCreateTask = async (data: any) => { |
|
55 |
return await request.put({ url: '/bpm/task/create-sign', data }) |
|
56 |
} |
|
57 |
|
|
58 |
// 减签 |
|
59 |
export const signDeleteTask = async (data: any) => { |
|
60 |
return await request.delete({ url: '/bpm/task/delete-sign', data }) |
|
61 |
} |
|
62 |
|
|
63 |
// 获取减签任务列表 |
|
64 |
export const getChildrenTaskList = async (id: string) => { |
|
65 |
return await request.get({ url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id }) |
|
66 |
} |