import request from '/@/utils/request'; enum Api { AddMesProducePlan = '/api/mesProducePlan/add', DeleteMesProducePlan = '/api/mesProducePlan/delete', UpdateMesProducePlan = '/api/mesProducePlan/update', PageMesProducePlan = '/api/mesProducePlan/page', DetailMesProducePlan = '/api/mesProducePlan/detail', } // 增加生产计划 export const addMesProducePlan = (params?: any) => request({ url: Api.AddMesProducePlan, method: 'post', data: params, }); // 删除生产计划 export const deleteMesProducePlan = (params?: any) => request({ url: Api.DeleteMesProducePlan, method: 'post', data: params, }); // 编辑生产计划 export const updateMesProducePlan = (params?: any) => request({ url: Api.UpdateMesProducePlan, method: 'post', data: params, }); // 分页查询生产计划 export const pageMesProducePlan = (params?: any) => request({ url: Api.PageMesProducePlan, method: 'post', data: params, }); // 详情生产计划 export const detailMesProducePlan = (id: any) => request({ url: Api.DetailMesProducePlan, method: 'get', data: { id }, }); // 创建生产计划 export const createMesProducePlan = (params?: any) => request({ url: '/api/mesProducePlan/create', method: 'post', data: params, }); export const productNums = (params?: any) => request({ url: '/api/mesProducePlan/productNums', method: 'get', data: params, }); export const getPartMakeNum = (params?: any) => request({ url: '/api/mesProducePlan/getPartMakeNum', method: 'get', data: params, }); export const genProduceBatchNo = (params?: any) => request({ url: '/api/mesProducePlan/genProduceBatchNo', method: 'get', data: params, });