You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.2 KiB

import request from '@/utils/request'
// 获取待我审核
export function FlowBeforeList(category, data, options) {
return request({
url: `/api/workflow/Engine/FlowBefore/List/${category}`,
method: 'get',
data,
options: {
load: false
}
})
}
// 获取待我审批信息
export function FlowBeforeInfo(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/${id}`,
method: 'get',
data
})
}
// 待我审核审核
export function Audit(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Audit/${id}`,
method: 'post',
data
})
}
// 待我审核退回
export function Reject(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Reject/${id}`,
method: 'post',
data
})
}
// 撤回审核
export function Recall(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Recall/${id}`,
method: 'post',
data
})
}
// 待我审核转审
export function Transfer(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Transfer/${id}`,
method: 'post',
data
})
}
// 审批汇总
export function getRecordList(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/RecordList/${id}`,
method: 'get',
data
})
}
// 待我审核保存草稿
export function SaveAudit(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/SaveAudit/${id}`,
method: 'post',
data
})
}
// 判断是否有候选人
export function Candidates(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/Candidates/${id}`,
method: 'post',
data
})
}
// 获取候选人列表(分页)
export function CandidateUser(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/CandidateUser/${id}`,
method: 'post',
data
})
}
// 获取审批退回类型
export function RejectList(id) {
return request({
url: `/api/workflow/Engine/FlowBefore/RejectList/${id}`,
method: 'get'
})
}
// 加签
export function FreeApprover(id, data) {
return request({
url: `/api/workflow/Engine/FlowBefore/freeApprover/${id}`,
method: 'post',
data
})
}
// 返回多个子流程信息
export function SubFlowInfo(id) {
return request({
url: `/api/workflow/Engine/FlowBefore/SubFlowInfo/${id}`,
method: 'get'
})
}