diff --git a/src/api/eam/item/applicationRecordMain/index.ts b/src/api/eam/item/applicationRecordMain/index.ts index af7ea56..f6f43a1 100644 --- a/src/api/eam/item/applicationRecordMain/index.ts +++ b/src/api/eam/item/applicationRecordMain/index.ts @@ -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' }) } diff --git a/src/api/eam/item/itemApplyMain/index.ts b/src/api/eam/item/itemApplyMain/index.ts index af82f15..eeccb6e 100644 --- a/src/api/eam/item/itemApplyMain/index.ts +++ b/src/api/eam/item/itemApplyMain/index.ts @@ -20,44 +20,44 @@ export const getItemApplyMainPage = 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 getItemApplyMain = 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 createItemApplyMain = 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 updateItemApplyMain = 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 deleteItemApplyMain = 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 backoutItemApplyMain = async (id: number) => { - return await request.get({ url: `/eam/item-apply-main/backout?id=` + id }) + return await request.get({ url: `/eam/item-apply-request-main/backout?id=` + id }) } // 导出备件申领记录主 Excel export const exportItemApplyMain = 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' }) } diff --git a/src/api/eam/item/itemMaintenance/index.ts b/src/api/eam/item/itemMaintenance/index.ts index d87e6f9..d6fe941 100644 --- a/src/api/eam/item/itemMaintenance/index.ts +++ b/src/api/eam/item/itemMaintenance/index.ts @@ -15,38 +15,38 @@ export const getItemMaintenancePage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/item-maintenance/senior', data }) + return await request.post({ url: '/eam/item-maintenance-record/senior', data }) } else { - return await request.get({ url: `/eam/item-maintenance/page`, params }) + return await request.get({ url: `/eam/item-maintenance-record/page`, params }) } } // 查询备件维修记录详情 export const getItemMaintenance = async (id: number) => { - return await request.get({ url: `/eam/item-maintenance/get?id=` + id }) + return await request.get({ url: `/eam/item-maintenance-record/get?id=` + id }) } // 新增备件维修记录 export const createItemMaintenance = async (data: ItemMaintenanceVO) => { - return await request.post({ url: `/eam/item-maintenance/create`, data }) + return await request.post({ url: `/eam/item-maintenance-record/create`, data }) } // 修改备件维修记录 export const updateItemMaintenance = async (data: ItemMaintenanceVO) => { - return await request.put({ url: `/eam/item-maintenance/update`, data }) + return await request.put({ url: `/eam/item-maintenance-record/update`, data }) } // 删除备件维修记录 export const deleteItemMaintenance = async (id: number) => { - return await request.delete({ url: `/eam/item-maintenance/delete?id=` + id }) + return await request.delete({ url: `/eam/item-maintenance-record/delete?id=` + id }) } // 导出备件维修记录 Excel export const exportItemMaintenance = async (params) => { - return await request.download({ url: `/eam/item-maintenance/export-excel`, params }) + return await request.download({ url: `/eam/item-maintenance-record/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/item-maintenance/get-import-template' }) -} \ No newline at end of file + return request.download({ url: '/eam/item-maintenance-record/get-import-template' }) +}