Files
qhmes/jeecgboot-vue3/src/views/xslmes/mesXslMixerPsCompile/MesXslMixerPsCompile.api.ts

42 lines
2.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/xslmes/mesXslMixerPsCompile/list',
save = '/xslmes/mesXslMixerPsCompile/add',
edit = '/xslmes/mesXslMixerPsCompile/edit',
deleteOne = '/xslmes/mesXslMixerPsCompile/delete',
deleteBatch = '/xslmes/mesXslMixerPsCompile/deleteBatch',
importExcel = '/xslmes/mesXslMixerPsCompile/importExcel',
exportXls = '/xslmes/mesXslMixerPsCompile/exportXls',
queryById = '/xslmes/mesXslMixerPsCompile/queryById',
// update-begin---author:GHT ---date:2026-06-05 for【XSLMES-20260605-K8R2】校对/审核/批准接口停用,改由审批流+集成方案驱动
// proofread = '/xslmes/mesXslMixerPsCompile/proofread',
// audit = '/xslmes/mesXslMixerPsCompile/audit',
// approve = '/xslmes/mesXslMixerPsCompile/approve',
// update-end---author:GHT ---date:2026-06-05 for【XSLMES-20260605-K8R2】
}
export const list = (params) => defHttp.get({ url: Api.list, params });
export const queryById = (params) => defHttp.get({ url: Api.queryById, params });
export const deleteOne = (params, handleSuccess) =>
defHttp.delete({ url: Api.deleteOne, params }, { joinParamsToUrl: true }).then(() => handleSuccess());
export const batchDelete = (params, handleSuccess) =>
defHttp.delete({ url: Api.deleteBatch, params }, { joinParamsToUrl: true }).then(() => handleSuccess());
export const saveOrUpdate = (params, isUpdate) => {
const url = isUpdate ? Api.edit : Api.save;
return defHttp.post({ url, params }, { successMessageMode: 'none' });
};
export const getExportUrl = Api.exportXls;
export const getImportUrl = Api.importExcel;
// update-begin---author:GHT ---date:2026-06-05 for【XSLMES-20260605-K8R2】校对/审核/批准接口停用,保留代码备后期恢复
// export const proofread = (params: { ids: string }) => defHttp.post({ url: Api.proofread, params }, { joinParamsToUrl: true });
// export const audit = (params: { ids: string }) => defHttp.post({ url: Api.audit, params }, { joinParamsToUrl: true });
// export const approve = (params: { ids: string }) => defHttp.post({ url: Api.approve, params }, { joinParamsToUrl: true });
// update-end---author:GHT ---date:2026-06-05 for【XSLMES-20260605-K8R2】