流程待处理、已处理、以及流程详情页操作回显
This commit is contained in:
17
src/api/bpm-boot/activity.ts
Normal file
17
src/api/bpm-boot/activity.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { BPM_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = BPM_BOOT + '/bpm/activity'
|
||||
|
||||
|
||||
/**
|
||||
* 生成指定流程实例的高亮流程图
|
||||
*/
|
||||
export const getTaskListByReturn = (processInstanceId: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getActivityList?processInstanceId='+processInstanceId,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
27
src/api/bpm-boot/definition.ts
Normal file
27
src/api/bpm-boot/definition.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { BPM_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = BPM_BOOT + '/bpm/processDefinition'
|
||||
|
||||
/**
|
||||
* 通过任务
|
||||
*/
|
||||
export const approveTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/approve',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得流程定义
|
||||
*/
|
||||
export const getProcessDefinitionById = (id: string, key: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/get?id=' + id + '&key=' + key,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
28
src/api/bpm-boot/instance.ts
Normal file
28
src/api/bpm-boot/instance.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { BPM_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = BPM_BOOT + '/bpm/processInstance'
|
||||
|
||||
/**
|
||||
* 通过任务
|
||||
*/
|
||||
export const approveTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/approve',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获得指定流程实例
|
||||
*/
|
||||
export const getProcessInstanceById = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/get?id='+id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
127
src/api/bpm-boot/task.ts
Normal file
127
src/api/bpm-boot/task.ts
Normal file
@@ -0,0 +1,127 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { BPM_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = BPM_BOOT + '/bpm/task'
|
||||
|
||||
/**
|
||||
* 通过任务
|
||||
*/
|
||||
export const approveTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/approve',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 不通过任务
|
||||
*/
|
||||
export const rejectTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/reject',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 委派任务
|
||||
*/
|
||||
export const delegateTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delegate',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 回退任务
|
||||
*/
|
||||
export const returnTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/return',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 加签
|
||||
*/
|
||||
export const createSignTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/createSign',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 减签
|
||||
*/
|
||||
export const deleteSignTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/deleteSign',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 转派任务
|
||||
*/
|
||||
export const transferTask = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/transfer',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 加签
|
||||
*/
|
||||
export const getTaskListByParentTaskId = (parentTaskId: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/listByParentTaskId?parentTaskId='+parentTaskId,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取所有可回退的节点
|
||||
*/
|
||||
export const getTaskListByReturn = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/listByReturn?id='+id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获得指定流程实例的任务列表
|
||||
*/
|
||||
export const listByProcessInstanceId = (parentTaskId: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/listByParentTaskId?parentTaskId='+parentTaskId,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得指定流程实例的任务列表
|
||||
*/
|
||||
export const getTaskListByProcessInstanceId = (processInstanceId: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/listByProcessInstanceId?processInstanceId='+processInstanceId,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import createAxios from '@/utils/request'
|
||||
|
||||
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = SUPERVISION_BOOT + '/workflow/wfForm'
|
||||
const MAPPING_PATH = SUPERVISION_BOOT + '/userReport'
|
||||
|
||||
/**
|
||||
* 查询流程表单数据
|
||||
@@ -14,3 +14,14 @@ export const getUserReport = (data: any) => {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据id获取用户档案录入的详细数据
|
||||
*/
|
||||
export const getUserReportById = (id: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getById?id='+id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user