2022-01-08 15:42:53 +00:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 查询待办任务列表
|
|
|
|
|
export function todoList(query) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/todoList',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 完成任务
|
|
|
|
|
export function complete(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/complete',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 委派任务
|
|
|
|
|
export function delegate(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/delegate',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 退回任务
|
|
|
|
|
export function returnTask(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/return',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 驳回任务
|
|
|
|
|
export function rejectTask(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/reject',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 可退回任务列表
|
|
|
|
|
export function returnList(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/returnList',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 下一节点
|
|
|
|
|
export function getNextFlowNode(data) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/task/nextFlowNode',
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 部署流程实例
|
|
|
|
|
export function deployStart(deployId) {
|
|
|
|
|
return request({
|
2022-01-18 13:16:15 +00:00
|
|
|
url: '/workflow/process/startFlow/' + deployId,
|
2022-01-08 15:42:53 +00:00
|
|
|
method: 'get',
|
|
|
|
|
})
|
|
|
|
|
}
|