|
@ -20,48 +20,48 @@ export const getApplicationRecordMainPage = 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/item-apply-main/senior', data }) |
|
|
return await request.post({ url: '/eam/item-apply-request-main/senior', data }) |
|
|
} else { |
|
|
} 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) => { |
|
|
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) => { |
|
|
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) => { |
|
|
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) => { |
|
|
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) => { |
|
|
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) => { |
|
|
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
|
|
|
// 导出备件申领记录主 Excel
|
|
|
export const exportApplicationRecordMain = async (params) => { |
|
|
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 = () => { |
|
|
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' }) |
|
|
} |
|
|
} |
|
|