数通智联化工云平台
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.
 
 
 
 
 

57 lines
1.3 KiB

import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {
formTableName,
flowversion,
publicid
} from '@/api/workflowapi/types'
//初始化工作流
export function initializeWorkFlow(data: formTableName) {
return request({
url: '/systemapi/task_flow/init_workflow',
method: 'post',
data: data
});
}
//保存工作流
export function setWorkFlowData(data: any):any {
return request({
url: '/systemapi/task_flow/init_workflow',
method: 'post',
data: data
});
}
//保存工作流
export function getConditions(data: any):any {
return request({
url: '/systemapi/task_flow/init_workflow',
method: 'post',
data: data
});
}
//审批线已经存在得节点
export function getAllParentNode(data: any) {
return request({
url: '/kpiapi/workflowapi/get_all_parent_node',
method: 'post',
data: data
});
}
//判断是否显示(指定审批节点自选)选项及可选节点
export function judgeOptionalNode(data: any) {
return request({
url: '/kpiapi/workflowapi/judge_optional_node',
method: 'post',
data: data
});
}
//获取工作流版本列表
export function gainFlowVersionList(data: publicid): AxiosPromise<flowversion> {
return request({
url: '/systemapi/task_flow/gain_flow_version_list',
method: 'post',
data: data
});
}