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.
91 lines
1.8 KiB
91 lines
1.8 KiB
import request from '@/utils/request'
|
|
import qs from 'qs'
|
|
export function flow(isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: '/api/oa/flow',
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
export function preConfig(custom_model_id,isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: `/api/oa/flow/create-pre/${custom_model_id}`,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
export function fieldConfig(custom_model_id,isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: `/api/oa/flow/custom-model-fields/${custom_model_id}`,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
export function create(data,custom_model_id) {
|
|
return request({
|
|
method: 'post',
|
|
url: `/api/oa/flow/create/${custom_model_id}`,
|
|
data
|
|
// data: qs.stringify(data, { arrayFormat: 'brackets' }),
|
|
// headers: {
|
|
// 'Content-Type': 'application/x-www-form-urlencoded'
|
|
// },
|
|
})
|
|
}
|
|
|
|
export function preDeal(flow_id,params,isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: `/api/oa/flow/deal-pre/${flow_id}`,
|
|
params,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
export function deal(data,flow_id) {
|
|
return request({
|
|
method: 'post',
|
|
url: `/api/oa/flow/deal/${flow_id}`,
|
|
data
|
|
})
|
|
}
|
|
|
|
export function checkIsThroughNode(params,isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: '/api/oa/flow/check-is-through-node',
|
|
params,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
export function getNextNodeUsers(params,isLoading=false) {
|
|
return request({
|
|
method: 'get',
|
|
url: '/api/oa/flow/get-next-node-users',
|
|
params,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
//查看列表相关
|
|
export function flowList(type,params,isLoading = false) {
|
|
return request({
|
|
method: 'get',
|
|
url: `/api/oa/flow/list/${type}`,
|
|
isLoading
|
|
})
|
|
}
|
|
|
|
//流转
|
|
export function assign(flow_id, data) {
|
|
return request({
|
|
method: 'post',
|
|
url: `/api/oa/flow/assign/${flow_id}`,
|
|
data
|
|
})
|
|
}
|