flow.js
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import request from '@/utils/request';
import { ContentTypeEnum } from '@/utils/httpEnum';
// 我发起的 查询列表
export function myFlowQueryApi(params) {
return request({
url: `/flow/task/list/my`,
method: 'get',
params
})
}
// 任务数量统计
export function statisticsCountApi() {
return request({
url: `/flow/task/statistics/count`,
method: 'get'
})
}
// 任务列表(全部/已办/待办)
export function taskListApi(params) {
return request({
url: `/flow/task/list/task`,
method: 'get',
params
})
}
// 根据流程实例ID获取审批链路(流程图 已审批和当前审批节点,未审批节点不返回)
export function getFlowLinkByInstanceIdApi(params) {
return request({
url: `/flow/task/getFlowLinkByInstanceId`,
method: 'get',
params
})
}
// 根据业务ID获取流程实例
export function getInstanceByBusinessIdApi(params) {
return request({
url: `/flow/instance/getByBusinessId`,
method: 'get',
params
})
}
// 审核通过
export function approvePassApi(data) {
return request({
url: '/flow/task/approve/pass',
method: 'post',
data: data,
contentType: ContentTypeEnum.JSON
})
}
// 审核驳回(也就是pc端的 审核拒绝)
export function approveRefuseApi(data) {
return request({
url: '/flow/task/approve/refuse',
method: 'post',
data: data,
contentType: ContentTypeEnum.JSON
})
}