197 lines
3.6 KiB
JavaScript
197 lines
3.6 KiB
JavaScript
import {request} from '../utils/request'
|
|
|
|
// 获取流程申请类型
|
|
export function myDefinitionList(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/myDefinitionList',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 启动流程实例
|
|
export function startProcessInstance(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/startProcessInstance',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询流程节点
|
|
export function readNotes(deployId) {
|
|
return request({
|
|
url: '/flowable/businessKey/readNotes/'+deployId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 查询流程节点
|
|
export function readDeployNotes(deployId) {
|
|
return request({
|
|
url: '/flowable/businessKey/readDeployNotes/'+deployId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 取消流程申请
|
|
export function stopProcess(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/stopProcess',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 撤回流程办理
|
|
export function revokeProcess(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/revokeProcess',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 审批任务流程
|
|
export function complete(data) {
|
|
return request({
|
|
url: '/flowable/task/complete',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 批量审批任务
|
|
export function batchComplete(data) {
|
|
return request({
|
|
url: '/flowable/task/batchComplete',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 驳回任务流程
|
|
export function reject(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/reject',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 退回任务流程
|
|
export function returnTask(data) {
|
|
return request({
|
|
url: '/flowable/task/return',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 委派任务流程
|
|
export function delegateTask(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/delegateTask',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 转办任务流程
|
|
export function assignTask(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/assignTask',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除流程实例
|
|
export function deleteInstance(instanceId) {
|
|
return request({
|
|
url: '/flowable/businessKey/delete/'+instanceId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取所有可回退的节点
|
|
export function returnList(data) {
|
|
return request({
|
|
url: '/flowable/task/returnList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 根据流程Id查询操作日志
|
|
export function findCommentByProcInsId(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/findCommentByProcInsId',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 根据条件统计分包单位审批
|
|
export function findMyTask(query) {
|
|
return request({
|
|
url: '/flowable/businessKey/findMyTask',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 根据条件统计分包单位审批
|
|
export function quueryCount(query) {
|
|
return request({
|
|
url: '/flowable/businessKey/queryCount',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 根据条件查询我的代办任务
|
|
export function myAwaitFlowTaskList(query) {
|
|
return request({
|
|
url: '/flowable/businessKey/myAwaitFlowTaskList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 根据条件查询我的已办任务
|
|
export function myFinishedFlowTaskList(query) {
|
|
return request({
|
|
url: '/flowable/businessKey/myFinishedFlowTaskList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 根据条件查询所有流申请
|
|
export function allInstanceList(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/allList',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 根据条件查询所有流申请
|
|
export function myInstanceList(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/myList',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 根据条件统计所有流程任务
|
|
export function queryTaskCount(data) {
|
|
return request({
|
|
url: '/flowable/businessKey/queryCount',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
} |