-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathflow.ts
More file actions
173 lines (135 loc) · 5.75 KB
/
Copy pathflow.ts
File metadata and controls
173 lines (135 loc) · 5.75 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
import {httpClient} from "@/api/index";
// 流程设计
export async function list(
params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]
) {
return httpClient.page('/api/query/flowWork/list', params, sort, filter, match);
}
export async function save(body: any) {
return httpClient.post('/api/cmd/flowWork/save', body);
}
export async function copy(id: any) {
return httpClient.post('/api/cmd/flowWork/copy', {id});
}
export async function remove(id: any) {
return httpClient.post('/api/cmd/flowWork/delete', {id});
}
export async function changeState(id: any) {
return httpClient.post('/api/cmd/flowWork/changeState', {id});
}
export async function schema(body: any) {
return httpClient.post('/api/cmd/flowWork/schema', body);
}
// 流程控制
export async function startFlow(body:any) {
return httpClient.post('/api/cmd/flowRecord/startFlow', body);
}
export async function getFlowStep(body:any) {
return httpClient.post('/api/cmd/flowRecord/getFlowStep', body);
}
export async function removeFlow(body:any) {
return httpClient.post('/api/cmd/flowRecord/remove', body);
}
export async function detail(id?:any,workCode?:any) {
return httpClient.get('/api/query/flowRecord/detail', {id,workCode});
}
export async function saveFlow(body:any) {
return httpClient.post('/api/cmd/flowRecord/save', body);
}
export async function submitFlow(body:any) {
return httpClient.post('/api/cmd/flowRecord/submitFlow', body);
}
export async function trySubmitFlow(body:any) {
return httpClient.post('/api/cmd/flowRecord/trySubmitFlow', body);
}
export async function custom(body:any) {
return httpClient.post('/api/cmd/flowRecord/custom', body);
}
export async function recall(body:any) {
return httpClient.post('/api/cmd/flowRecord/recall', body);
}
export async function postponed(body:any) {
return httpClient.post('/api/cmd/flowRecord/postponed', body);
}
export async function transfer(body:any) {
return httpClient.post('/api/cmd/flowRecord/transfer', body);
}
export async function urge(body:any) {
return httpClient.post('/api/cmd/flowRecord/urge', body);
}
export async function back(body:any) {
return httpClient.post('/api/cmd/flowRecord/back', body);
}
export async function voided(body:any) {
return httpClient.post('/api/cmd/flowRecord/voided', body);
}
// 待办中心控制
export async function flowRecordList(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/list', params, sort, filter, match);
}
export async function findAllByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findAllByOperatorId', params, sort, filter, match);
}
export async function findTodoByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findTodoByOperatorId', params, sort, filter, match);
}
export async function findDoneByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findDoneByOperatorId', params, sort, filter, match);
}
export async function findInitiatedByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findInitiatedByOperatorId', params, sort, filter, match);
}
export async function findTimeoutTodoByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findTimeoutTodoByOperatorId', params, sort, filter, match);
}
export async function findPostponedTodoByOperatorId(params: any,
sort: any,
filter: any,
match: {
key: string,
type: string
}[]) {
return httpClient.page('/api/query/flowRecord/findPostponedTodoByOperatorId', params, sort, filter, match);
}