|
|
@ -20,48 +20,48 @@ export const getApplicationRecordMainPage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/eam/item-apply-main/senior', data }) |
|
|
|
return await request.post({ url: '/eam/item-apply-request-main/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/eam/item-apply-main/page`, params }) |
|
|
|
return await request.get({ url: `/eam/item-apply-request-main/page`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询备件申领记录主详情
|
|
|
|
export const getApplicationRecordMain = async (id: number) => { |
|
|
|
return await request.get({ url: `/eam/item-apply-main/get?id=` + id }) |
|
|
|
return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 新增备件申领记录主
|
|
|
|
export const createApplicationRecordMain = async (data: ItemApplyMainVO) => { |
|
|
|
return await request.post({ url: `/eam/item-apply-main/create`, data }) |
|
|
|
return await request.post({ url: `/eam/item-apply-request-main/create`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改备件申领记录主
|
|
|
|
export const updateApplicationRecordMain = async (data: ItemApplyMainVO) => { |
|
|
|
return await request.put({ url: `/eam/item-apply-main/update`, data }) |
|
|
|
return await request.put({ url: `/eam/item-apply-request-main/update`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 删除备件申领记录主
|
|
|
|
export const deleteApplicationRecordMain = async (id: number) => { |
|
|
|
return await request.delete({ url: `/eam/item-apply-main/delete?id=` + id }) |
|
|
|
return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 审批通过备件申领记录主
|
|
|
|
export const agreeApplicationRecordMain = async (id: number) => { |
|
|
|
return await request.delete({ url: `/eam/item-apply-main/agree?id=` + id }) |
|
|
|
return await request.delete({ url: `/eam/item-apply-request-main/agree?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 审批驳回备件申领记录主
|
|
|
|
export const disAgreeApplicationRecordMain = async (id: number) => { |
|
|
|
return await request.delete({ url: `/eam/item-apply-main/disAgree?id=` + id }) |
|
|
|
return await request.delete({ url: `/eam/item-apply-request-main/disAgree?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出备件申领记录主 Excel
|
|
|
|
export const exportApplicationRecordMain = async (params) => { |
|
|
|
return await request.download({ url: `/eam/item-apply-main/export-excel`, params }) |
|
|
|
return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params }) |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/eam/item-apply-main/get-import-template' }) |
|
|
|
return request.download({ url: '/eam/item-apply-request-main/get-import-template' }) |
|
|
|
} |
|
|
|