|
@ -16,38 +16,38 @@ export const getFactoryAreaPage = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/basic/factory-area/senior', data }) |
|
|
return await request.post({ url: '/eam/factory-area/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/basic/factory-area/page`, params }) |
|
|
return await request.get({ url: `/eam/factory-area/page`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询厂区详情
|
|
|
// 查询厂区详情
|
|
|
export const getFactoryArea = async (id: number) => { |
|
|
export const getFactoryArea = async (id: number) => { |
|
|
return await request.get({ url: `/basic/factory-area/get?id=` + id }) |
|
|
return await request.get({ url: `/eam/factory-area/get?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增厂区
|
|
|
// 新增厂区
|
|
|
export const createFactoryArea = async (data: FactoryAreaVO) => { |
|
|
export const createFactoryArea = async (data: FactoryAreaVO) => { |
|
|
return await request.post({ url: `/basic/factory-area/create`, data }) |
|
|
return await request.post({ url: `/eam/factory-area/create`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改厂区
|
|
|
// 修改厂区
|
|
|
export const updateFactoryArea = async (data: FactoryAreaVO) => { |
|
|
export const updateFactoryArea = async (data: FactoryAreaVO) => { |
|
|
return await request.put({ url: `/basic/factory-area/update`, data }) |
|
|
return await request.put({ url: `/eam/factory-area/update`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 删除厂区
|
|
|
// 删除厂区
|
|
|
export const deleteFactoryArea = async (id: number) => { |
|
|
export const deleteFactoryArea = async (id: number) => { |
|
|
return await request.delete({ url: `/basic/factory-area/delete?id=` + id }) |
|
|
return await request.delete({ url: `/eam/factory-area/delete?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出厂区 Excel
|
|
|
// 导出厂区 Excel
|
|
|
export const exportFactoryArea = async (params) => { |
|
|
export const exportFactoryArea = async (params) => { |
|
|
return await request.download({ url: `/basic/factory-area/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/factory-area/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/basic/factory-area/get-import-template' }) |
|
|
return request.download({ url: '/eam/factory-area/get-import-template' }) |
|
|
} |
|
|
} |