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.
|
|
|
|
/**
|
|
|
|
|
* 服务申报表 api 封装
|
|
|
|
|
*
|
|
|
|
|
* @Author: wzh
|
|
|
|
|
* @Date: 2025-12-20 14:44:06
|
|
|
|
|
* @Copyright 1.0
|
|
|
|
|
*/
|
|
|
|
|
import { postRequest, getRequest, getDownload } from '/@/lib/axios';
|
|
|
|
|
|
|
|
|
|
export const serviceApplicationsApi = {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分页查询 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
queryPage : (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/queryPage', param);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 增加 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
add: (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/add', param);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
update: (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/update', param);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 编辑提交 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
submit: (id) => {
|
|
|
|
|
return getRequest(`/serviceApplications/submit/${id}`);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 审核 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
review: (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/review', param);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增提交 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
addSubmit: (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/addSubmit', param);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 批量提交 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
batchSubmit: (param) => {
|
|
|
|
|
return postRequest('/serviceApplications/batchSubmit', param);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 删除 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
delete: (id) => {
|
|
|
|
|
return getRequest(`/serviceApplications/delete/${id}`);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量删除 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
batchDelete: (idList) => {
|
|
|
|
|
return postRequest('/serviceApplications/batchDelete', idList);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 下载模板 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
downloadTemplate: () => {
|
|
|
|
|
return getDownload('/serviceApplications/downloadTemplate');
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导入服务申报 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
importServiceApplications: (formData) => {
|
|
|
|
|
return postRequest('/serviceApplications/importService', formData, {
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'multipart/form-data'
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 服务统计 @author wzh
|
|
|
|
|
*/
|
|
|
|
|
statistics: (params) => {
|
|
|
|
|
return postRequest('/serviceApplications/statistics', params);
|
|
|
|
|
},
|
|
|
|
|
};
|