|
|
|
|
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,
|
|
|
|
|
gogoBackFormTabelStruct,
|
|
|
|
|
nodeFlow,
|
|
|
|
|
searchUserListForm,
|
|
|
|
|
taskflowquery,
|
|
|
|
|
editFlowFormStatus
|
|
|
|
|
} from './type';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//启用版本
|
|
|
|
|
export function enableVersion(data: enableVersionId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/enable_version',
|
|
|
|
|
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[]){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/gainFlowPeople',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//发起工作流
|
|
|
|
|
export function startRunFlow(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_management/startRunWorkFlow',
|
|
|
|
|
// url: '/systemapi/task_flow/startRunFlow',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取要修改的数据
|
|
|
|
|
export function gainEditFormFlowInfo(data?:enableVersionId){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/gainEditFormFlowInfo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取要修改的数据
|
|
|
|
|
export function gainNumber(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/public/gainNumber',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//验证无感登录
|
|
|
|
|
export function silentLogin(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/public/silentLogin',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//自定义表单分组列表
|
|
|
|
|
export function customerFormGroupList(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/customerFormGroupList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//查看分组详情
|
|
|
|
|
export function gainFormGroupInfo(data:getContForId){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainFormGroupInfo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//改变自定义表单分组内容
|
|
|
|
|
export function editCustomerFormGroup(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/editCustomerFormGroup',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//改变自定义表单分组状态
|
|
|
|
|
export function editFormGroupState(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/editFormGroupState',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取表格字段
|
|
|
|
|
export function gainFormTableField(data?:any){
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainFormTableField',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//编辑自定义表单列表数据
|
|
|
|
|
export function editCustomerFormList(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/editCustomerFormList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取表单列表数据
|
|
|
|
|
export function gainFormListCont(data: getContForId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainFormListCont',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取表单列表数据
|
|
|
|
|
export function gainFormPageListCont(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainFormPageListCont',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//创建APP
|
|
|
|
|
export function createApp(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/createApp',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取应用编辑页面信息
|
|
|
|
|
export function gainAppEditPsge(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/gainAppEditPsge',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取除固定菜单以外的数据
|
|
|
|
|
export function ginOthenMenuTree(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/ginOthenMenuTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//新增菜单
|
|
|
|
|
export function saveAppMenu(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/saveAppMenu',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取完整APP菜单树
|
|
|
|
|
export function gainAllAppMenu(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/gainAllAppMenu',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取完整APP菜单树
|
|
|
|
|
export function editAppMenuCont(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/editAppMenuCont',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//修改菜单名称
|
|
|
|
|
export function editAppMenuLable(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/editAppMenuLable',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//显示和隐藏菜单
|
|
|
|
|
export function appMenuShowOrHide(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/appMenuShowOrHide',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//编辑菜单状态
|
|
|
|
|
export function delAppMenu(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/delAppMenu',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//写入app表单菜单
|
|
|
|
|
export function createAppForm(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/createAppForm',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取app页面综合信息
|
|
|
|
|
export function gainAppPageInfo(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/gainAppPageInfo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//编辑App表单数据
|
|
|
|
|
export function editAppPageInfo(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/editAppPageInfo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//保存新版本
|
|
|
|
|
export function saveOtherVersion(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/saveOtherVersion',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//预览App多版本表单页面
|
|
|
|
|
export function previewAppFormVersion(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/previewAppFormVersion',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//设置App基础
|
|
|
|
|
export function appBasicSettings(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/appBasicSettings',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取应用下属表单
|
|
|
|
|
export function gianAppFormTable(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/gianAppFormTable',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取应用下属表单
|
|
|
|
|
export function setCustomerFormState(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/setCustomerFormState',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//鉴定当权人员是否有权限使用
|
|
|
|
|
export function appJwtPower(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/app/appJwtPower',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取执行流程
|
|
|
|
|
export function gainRunFlowStart(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_management/gainRunFlowStart',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取App任务
|
|
|
|
|
export function gainAppTaskList(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/gainAppTaskList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取App任务
|
|
|
|
|
export function gainAppAllTaskList(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/gainAppAllTaskList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取App任务
|
|
|
|
|
export function editTaskAppInfo(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/editTaskAppInfo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//再次保存草稿箱内容
|
|
|
|
|
export function saveDraftAgain(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/saveDraftAgain',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//编辑任务
|
|
|
|
|
export function editCustomerTable(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_management/editCustomerTable',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//重新提交(有流程就发动流程,无流程就正常发表)
|
|
|
|
|
export function afreshAppSubmit(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/task_flow/afreshAppSubmit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//动态获取关联的系统字段数据作为单选下拉多选的选项
|
|
|
|
|
export function getFieldRecord(param1: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/javasys/lowCode/AssociatedForms/getFieldRecord',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: {
|
|
|
|
|
optionsValue3Field:param1
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//获取数据库表字段
|
|
|
|
|
export function gainTableField(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainTableField',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取数据库表字段
|
|
|
|
|
export function gainListTableField(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/gainListTableField',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//多视图数据处理
|
|
|
|
|
export function multiViewPage(data: any) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/systemapi/customer_form/multiViewPage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|