2026-05-20 19:06:58 +08:00
|
|
|
|
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',
|
2026-06-05 19:05:48 +08:00
|
|
|
|
// 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】
|
2026-05-20 19:06:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
2026-06-05 19:05:48 +08:00
|
|
|
|
// 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】
|