Browse Source

BUG修改

master
parent
commit
75005adfe9
  1. 20
      src/api/eam/item/applicationRecordMain/index.ts
  2. 18
      src/api/eam/item/itemApplyMain/index.ts
  3. 18
      src/api/eam/item/itemMaintenance/index.ts

20
src/api/eam/item/applicationRecordMain/index.ts

@ -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' })
} }

18
src/api/eam/item/itemApplyMain/index.ts

@ -20,44 +20,44 @@ export const getItemApplyMainPage = 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 getItemApplyMain = async (id: number) => { 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) => { 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) => { 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) => { 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) => { 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 // 导出备件申领记录主 Excel
export const exportItemApplyMain = async (params) => { 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 = () => { 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' })
} }

18
src/api/eam/item/itemMaintenance/index.ts

@ -15,38 +15,38 @@ export const getItemMaintenancePage = 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-maintenance/senior', data }) return await request.post({ url: '/eam/item-maintenance-record/senior', data })
} else { } 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) => { 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) => { 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) => { 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) => { 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 // 导出备件维修记录 Excel
export const exportItemMaintenance = async (params) => { 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 = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item-maintenance/get-import-template' }) return request.download({ url: '/eam/item-maintenance-record/get-import-template' })
} }

Loading…
Cancel
Save