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.
97 lines
2.3 KiB
97 lines
2.3 KiB
import request from '@/utils/request';
|
|
import { AxiosPromise } from 'axios';
|
|
import {
|
|
customerFormCont,
|
|
CustomerFormPageResult,
|
|
SearchForm,
|
|
customerFormConfig,
|
|
getContForId,
|
|
editFormStatus,
|
|
setupCustomerFormCont,
|
|
customerFormLogo,
|
|
customerFormVersionCont,
|
|
editFormInfo,
|
|
customerFromCont,
|
|
enableVersionId
|
|
} from './type';
|
|
//自定义表单列表
|
|
export function getCustomerFormList(queryParams: SearchForm): AxiosPromise<CustomerFormPageResult> {
|
|
return request({
|
|
url: '/systemapi/customer_form/customer_form_list',
|
|
method: 'post',
|
|
params: 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
|
|
});
|
|
}
|
|
|