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.
557 lines
12 KiB
557 lines
12 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,
|
|
gogoBackFormTabelStruct,
|
|
nodeFlow,
|
|
searchUserListForm,
|
|
taskflowquery,
|
|
editFlowFormStatus
|
|
} 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(data?: any): AxiosPromise<customerFormConfig> {
|
|
return request({
|
|
url: '/systemapi/customer_form/production_mark_form',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//保存自定义表单
|
|
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[]){
|
|
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 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',
|
|
url: '/systemapi/task_management/gainRunTaskWorkflow',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//提交审批结果
|
|
export function submitApprovalResults(data?:customerFormLogo){
|
|
return request({
|
|
url: '/systemapi/task_flow/submitApprovalResults',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//改变工作流任务状态
|
|
export function delRunFlow(data?:editFlowFormStatus){
|
|
return request({
|
|
url: '/systemapi/task_flow/delRunFlow',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//重新发起流程
|
|
export function afreshRunFlow(data?:enableVersionId){
|
|
return request({
|
|
url: '/systemapi/task_flow/afreshRunFlow',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//已有表单数据,只发布流程
|
|
export function onlyPublishFlow(data?:any){
|
|
return request({
|
|
url: '/systemapi/task_flow/onlyPublishFlow',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
//撤回申请
|
|
export function retractRunFlow(data?:enableVersionId){
|
|
return request({
|
|
url: '/systemapi/task_flow/retractRunFlow',
|
|
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
|
|
},
|
|
});
|
|
}
|
|
|