|
@ -23,7 +23,7 @@ export interface SparePartsInLocationMainVO { |
|
|
concurrencyStamp: number |
|
|
concurrencyStamp: number |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询备件领用出库记录主列表
|
|
|
// 查询备件入库记录主列表
|
|
|
export const getSparePartsInLocationMainPage = async (params) => { |
|
|
export const getSparePartsInLocationMainPage = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
@ -34,29 +34,34 @@ export const getSparePartsInLocationMainPage = async (params) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询备件领用出库记录主详情
|
|
|
// 查询备件入库记录主详情
|
|
|
export const getSparePartsInLocationMain = async (id: number) => { |
|
|
export const getSparePartsInLocationMain = async (id: number) => { |
|
|
return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id }) |
|
|
return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增备件领用出库记录主
|
|
|
// 新增备件入库记录主
|
|
|
export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { |
|
|
export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { |
|
|
return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data }) |
|
|
return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改备件领用出库记录主
|
|
|
// 修改备件入库记录主
|
|
|
export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { |
|
|
export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { |
|
|
return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data }) |
|
|
return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 删除备件领用出库记录主
|
|
|
// 删除备件入库记录主
|
|
|
export const deleteSparePartsInLocationMain = async (id: number) => { |
|
|
export const deleteSparePartsInLocationMain = async (id: number) => { |
|
|
return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id }) |
|
|
return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出备件领用出库记录主 Excel
|
|
|
// 导出备件入库记录主 Excel
|
|
|
export const exportSparePartsInLocationMain = async (params) => { |
|
|
export const exportSparePartsInLocationMain = async (params) => { |
|
|
return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params }) |
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/eam/spare-parts-in-location-main/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
|
|
|
return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params }) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|