yuhdemo/yh-app/api/workFlow/flowLaunch.js

36 lines
689 B
JavaScript
Raw Normal View History

2026-01-30 14:02:18 +08:00
import request from '@/utils/request'
// 获取流程发起列表
export function FlowLaunchList(data, options) {
return request({
url: `/api/workflow/Engine/FlowLaunch`,
method: 'get',
data,
options: {
load: false
}
})
}
// 删除流程发起
export function Delete(id) {
return request({
url: `/api/workflow/Engine/FlowLaunch/${id}`,
method: 'DELETE'
})
}
// 撤回流程发起
export function Revoke(id, data) {
return request({
url: `/api/workflow/Engine/FlowLaunch/${id}/Actions/Withdraw`,
method: 'PUT',
data
})
}
// 发起催办
export function Press(id) {
return request({
url: `/api/workflow/Engine/FlowLaunch/Press/${id}`,
method: 'post'
})
}