|
@ -28,45 +28,49 @@ export const getSparePartsOutLocationDetailRecordPage = 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: '/eam/spare-parts-in-location-main-record/senior', data }) |
|
|
return await request.post({ url: '/eam/spare-parts-out-location-detail-record/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/eam/spare-parts-in-location-main-record/page`, params }) |
|
|
return await request.get({ url: `/eam/spare-parts-out-location-detail-record/page`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询备件入库记录主详情
|
|
|
// 查询备件入库记录主详情
|
|
|
export const getSparePartsOutLocationDetailRecord = async (id: number) => { |
|
|
export const getSparePartsOutLocationDetailRecord = async (id: number) => { |
|
|
return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id }) |
|
|
return await request.get({ url: `/eam/spare-parts-out-location-detail-record/get?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增备件入库记录主
|
|
|
// 新增备件入库记录主
|
|
|
export const createSparePartsOutLocationDetailRecord = async ( |
|
|
export const createSparePartsOutLocationDetailRecord = async ( |
|
|
data: SparePartsInLocationMainRecordVO |
|
|
data: SparePartsOutLocationRecordDetailVO |
|
|
) => { |
|
|
) => { |
|
|
return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data }) |
|
|
return await request.post({ url: `/eam/spare-parts-out-location-detail-record/create`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改备件入库记录主
|
|
|
// 修改备件入库记录主
|
|
|
export const updateSparePartsOutLocationDetailRecord = async ( |
|
|
export const updateSparePartsOutLocationDetailRecord = async ( |
|
|
data: SparePartsInLocationMainRecordVO |
|
|
data: SparePartsOutLocationRecordDetailVO |
|
|
) => { |
|
|
) => { |
|
|
return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data }) |
|
|
return await request.put({ url: `/eam/spare-parts-out-location-detail-record/update`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 删除备件入库记录主
|
|
|
// 删除备件入库记录主
|
|
|
export const deleteSparePartsOutLocationDetailRecord = async (id: number) => { |
|
|
export const deleteSparePartsOutLocationDetailRecord = async (id: number) => { |
|
|
return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id }) |
|
|
return await request.delete({ |
|
|
|
|
|
url: `/eam/spare-parts-out-location-detail-record/delete?id=` + id |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出备件入库记录主 Excel
|
|
|
// 导出备件入库记录主 Excel
|
|
|
export const exportSparePartsOutLocationDetailRecord = async (params) => { |
|
|
export const exportSparePartsOutLocationDetailRecord = async (params) => { |
|
|
return await request.download({ |
|
|
return await request.download({ |
|
|
url: `/eam/spare-parts-in-location-main-record/export-excel`, |
|
|
url: `/eam/spare-parts-out-location-detail-record/export-excel`, |
|
|
params |
|
|
params |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/eam/spare-parts-in-location-main-record/get-import-template' }) |
|
|
return request.download({ |
|
|
|
|
|
url: '/eam/spare-parts-out-location-detail-record/get-import-template' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|