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

214 lines
5.1 KiB

import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {
customerFormCont,
CustomerFormPageResult,
SearchForm,
customerFormConfig,
getContForId,
editFormStatus,
setupCustomerFormCont,
customerFormLogo,
customerFormVersionCont,
editFormInfo,
customerFromCont,
enableVersionId,
databaseCallBackStruct,
haveFormTabelcontInfo,
getFormTableStruct,
optimizeRepairForm,
publicFormTableStruct,
hanziToPinyin,
2 years ago
gogoBackFormTabelStruct,
nodeFlow,
2 years ago
searchUserListForm,
taskflowquery
} from './type';
//自定义表单列表
export function getCustomerFormList(queryParams: SearchForm): AxiosPromise<CustomerFormPageResult> {
return request({
url: '/systemapi/customer_form/customer_form_list',
method: 'post',
data: queryParams
});
}
//生成表单基本信息
export function getProductionMarkForm(): AxiosPromise<customerFormConfig> {
return request({
url: '/systemapi/customer_form/production_mark_form',
method: 'post',
});
}
//保存自定义表单
export function saveProductionForm(data: any) {
return request({
url: '/systemapi/customer_form/save_customer_form',
method: 'post',
data: data
});
}
//获取单一表单内容
export function getOneProductionForm(data: getContForId) {
return request({
url: '/systemapi/customer_form/look_customer_form',
method: 'post',
data: data
});
}
//编辑自定义表单状态
export function editProductionFormStatus(data: editFormStatus) {
return request({
url: '/systemapi/customer_form/edit_customer_form_status',
method: 'post',
data: data
});
}
//编辑自定义表单设置
export function saveSetupCont(data: setupCustomerFormCont) {
return request({
url: '/systemapi/customer_form/save_setup_cont',
method: 'post',
data: data
});
}
//获取自定义表单版本列表
export function haveCustomerFormVersion(data: customerFormLogo):AxiosPromise<customerFormVersionCont[]> {
return request({
url: '/systemapi/customer_form/have_customer_form_version',
method: 'post',
data: data
});
}
//编辑自定义表单内容
export function editCustomerFormInfo(data: editFormInfo) {
return request({
url: '/systemapi/customer_form/edit_customer_form_info',
method: 'post',
data: data
});
}
//另存为新版
export function saveAsNewVersion(data: customerFromCont) {
return request({
url: '/systemapi/customer_form/save_as_new_version',
method: 'post',
data: data
});
}
//启用版本
export function enableVersion(data: enableVersionId) {
return request({
url: '/systemapi/customer_form/enable_version',
method: 'post',
data: data
});
}
//数据库表结构(版本及数据表)
export function callBackFormTableVersion(data: enableVersionId):AxiosPromise<databaseCallBackStruct> {
return request({
url: '/systemapi/customer_form/have_database_table_struct',
method: 'post',
data: data
});
}
//获取表单结构
export function haveFormTabelcont(data: haveFormTabelcontInfo):AxiosPromise<getFormTableStruct> {
return request({
url: '/systemapi/customer_form/have_form_tabelcont',
method: 'post',
data: data
});
}
//优化/修复数据表
export function optimizeOrRepairFormTable(data: optimizeRepairForm) {
return request({
url: '/systemapi/customer_form/optimize_repair_form',
method: 'post',
data: data
});
}
//优化/修复数据表
export function haveFormTablelist(data: enableVersionId):AxiosPromise<publicFormTableStruct[]>{
return request({
url: '/systemapi/customer_form/have_form_tablelist',
method: 'post',
data: data
});
}
//表单结构数据处理
export function formFieldHandle(data: any):AxiosPromise<gogoBackFormTabelStruct>{
return request({
url: '/systemapi/customer_form/form_field_handle',
method: 'post',
data: data
});
}
//表单结构数据处理
export function editFormField(data: any){
return request({
url: '/systemapi/customer_form/edit_form_field',
method: 'post',
data: data
});
}
//检测是否存在提交和返回按钮
export function judgeSubmitCancel(data: any){
return request({
url: '/systemapi/customer_form/judge_submit_cancel',
method: 'post',
data: data
});
}
//中文转拼音
export function chineseToPinyin(data: hanziToPinyin){
return request({
url: '/systemapi/public/chinese_to_pinyin',
method: 'post',
data: data
});
}
//自定义表单搜索人员
export function searchUserList(data: searchUserListForm){
return request({
url: '/systemapi/task_flow/searchUserList',
method: 'post',
data: data
});
}
//自定义表单搜索人员
export function gainFlowPeople(data?: string[]){
2 years ago
return request({
url: '/systemapi/task_flow/gainFlowPeople',
2 years ago
method: 'post',
data: data
});
}
2 years ago
//发起工作流
export function startRunFlow(data?:any){
return request({
url: '/systemapi/task_flow/startRunFlow',
method: 'post',
data: data
});
}
//流程任务
export function taskFlowList(data?:taskflowquery){
return request({
url: '/systemapi/task_flow/taskFlowList',
method: 'post',
data: data
});
}
//获取正在执行得任务流程
export function gainRunTaskFlow(data?:customerFormLogo){
return request({
url: '/systemapi/task_flow/gainRunTaskFlow',
method: 'post',
data: data
});
}