/** * 服务申报表 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 postRequest(`/serviceApplications/submit/${id}`); }, /** * 批量提交 @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' } }); }, };