Files
qhmes/jeecgboot-vue3/src/views/xslmes/mesXslProductionOrder/MesXslProductionOrder.api.ts

34 lines
1.5 KiB
Vue
Raw Normal View History

import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/xslmes/mesXslProductionOrder/list',
save = '/xslmes/mesXslProductionOrder/add',
edit = '/xslmes/mesXslProductionOrder/edit',
deleteOne = '/xslmes/mesXslProductionOrder/delete',
deleteBatch = '/xslmes/mesXslProductionOrder/deleteBatch',
queryById = '/xslmes/mesXslProductionOrder/queryById',
2026-05-29 15:48:58 +08:00
split = '/xslmes/mesXslProductionOrder/split',
2026-06-11 10:06:26 +08:00
splitBatch = '/xslmes/mesXslProductionOrder/splitBatch',
exportXls = '/xslmes/mesXslProductionOrder/exportXls',
}
export const list = (params) => defHttp.get({ url: Api.list, 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) => defHttp.post({ url: isUpdate ? Api.edit : Api.save, params });
export const queryById = (params) => defHttp.get({ url: Api.queryById, params });
2026-05-29 15:48:58 +08:00
export const splitToMasterBatchPlan = (params, handleSuccess) =>
defHttp.post({ url: Api.split, params }, { joinParamsToUrl: true }).then(() => handleSuccess());
2026-06-11 10:06:26 +08:00
export const splitToMasterBatchPlanBatch = (params, handleSuccess) =>
defHttp.post({ url: Api.splitBatch, params }, { joinParamsToUrl: true }).then(() => handleSuccess());
export const getExportUrl = Api.exportXls;