2022-01-08 16:19:41 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
export function getTodoTaskPage(query) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/todo-page',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-01-09 09:46:34 +08:00
|
|
|
export function getDoneTaskPage(query) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/done-page',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-01-09 09:08:14 +08:00
|
|
|
export function completeTask(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/complete',
|
|
|
|
method: 'PUT',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function approveTask(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/approve',
|
|
|
|
method: 'PUT',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function rejectTask(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/reject',
|
|
|
|
method: 'PUT',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
2022-01-16 17:55:29 +08:00
|
|
|
|
2022-01-17 23:53:19 +08:00
|
|
|
export function updateTaskAssignee(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bpm/task/update-assignee',
|
|
|
|
method: 'PUT',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-01-18 23:48:44 +08:00
|
|
|
export function getTaskListByProcessInstanceId(processInstanceId) {
|
2022-01-16 22:16:49 +08:00
|
|
|
return request({
|
2022-01-18 23:48:44 +08:00
|
|
|
url: '/bpm/task/list-by-process-instance-id?processInstanceId=' + processInstanceId,
|
2022-01-16 22:16:49 +08:00
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|