import request from '/@/utils/request'; enum Api { AddMesProductionLine = '/api/mesProductionLine/add', DeleteMesProductionLine = '/api/mesProductionLine/delete', UpdateMesProductionLine = '/api/mesProductionLine/update', PageMesProductionLine = '/api/mesProductionLine/page', DetailMesProductionLine = '/api/mesProductionLine/detail', GetMesProductionLineTypeProductionLineTypeCodeDropdown = '/api/mesProductionLine/MesProductionLineTypeProductionLineTypeCodeDropdown', GetMesWorkShopFactoryCodeDropdown = '/api/mesProductionLine/MesWorkShopFactoryCodeDropdown', GetMesHolidayTypeHolidayTypeDropdown = '/api/mesProductionLine/MesHolidayTypeHolidayTypeDropdown', } // 增加产线档案 export const addMesProductionLine = (params?: any) => request({ url: Api.AddMesProductionLine, method: 'post', data: params, }); // 删除产线档案 export const deleteMesProductionLine = (params?: any) => request({ url: Api.DeleteMesProductionLine, method: 'post', data: params, }); // 编辑产线档案 export const updateMesProductionLine = (params?: any) => request({ url: Api.UpdateMesProductionLine, method: 'post', data: params, }); // 分页查询产线档案 export const pageMesProductionLine = (params?: any) => request({ url: Api.PageMesProductionLine, method: 'post', data: params, }); // 详情产线档案 export const detailMesProductionLine = (id: any) => request({ url: Api.DetailMesProductionLine, method: 'get', data: { id }, }); export const getMesProductionLineTypeProductionLineTypeCodeDropdown = () => request({ url: Api.GetMesProductionLineTypeProductionLineTypeCodeDropdown, method: 'get' }); export const getMesWorkShopFactoryCodeDropdown = () => request({ url: Api.GetMesWorkShopFactoryCodeDropdown, method: 'get' }); export const getPartList = (id: any) => request({ url: '/api/mesProductionLine/getPartList', method: 'get', data: { id } }); export const getWorkShopTree = (lv:any) => request({ url: '/api/mesProductionLine/getWorkShopTree?lv='+lv, method: 'get' }); export const getMesHolidayTypeHolidayTypeDropdown = () => request({ url: Api.GetMesHolidayTypeHolidayTypeDropdown, method: 'get' });