Browse Source

回复提交

lwx_v1
超级管理员 1 year ago
parent
commit
2032cb2857
  1. 187
      src/api/DesignForm/requestapi.ts

187
src/api/DesignForm/requestapi.ts

@ -25,8 +25,80 @@ import {
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({
@ -35,7 +107,63 @@ export function enableVersion(data: enableVersionId) {
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({
@ -70,6 +198,63 @@ export function startRunFlow(data?:any){
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){
@ -263,7 +448,6 @@ export function saveOtherVersion(data: any) {
data: data
});
}
//预览App多版本表单页面
export function previewAppFormVersion(data: any) {
return request({
@ -361,6 +545,7 @@ export function afreshAppSubmit(data: any) {
});
}
//动态获取关联的系统字段数据作为单选下拉多选的选项
export function getFieldRecord(param1: any) {
return request({

Loading…
Cancel
Save