gaojs
6 months ago
6 changed files with 286 additions and 27 deletions
@ -0,0 +1,57 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface RelationMaintenancePlanItemVO { |
||||
|
id: number |
||||
|
planNumber: string |
||||
|
itemCode: string |
||||
|
itemName: string |
||||
|
isSelectd: boolean |
||||
|
departmentCode: string |
||||
|
remark: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
deletionTime: Date |
||||
|
deleterId: byte[] |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划表和保养项关系列表
|
||||
|
export const getRelationMaintenancePlanItemPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/relation-maintenance-plan-item/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/relation-maintenance-plan-item/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划表和保养项关系详情
|
||||
|
export const getRelationMaintenancePlanItem = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/relation-maintenance-plan-item/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养计划表和保养项关系
|
||||
|
export const createRelationMaintenancePlanItem = async (data: RelationMaintenancePlanItemVO) => { |
||||
|
return await request.post({ url: `/eam/relation-maintenance-plan-item/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养计划表和保养项关系
|
||||
|
export const updateRelationMaintenancePlanItem = async (data: RelationMaintenancePlanItemVO) => { |
||||
|
return await request.put({ url: `/eam/relation-maintenance-plan-item/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养计划表和保养项关系
|
||||
|
export const deleteRelationMaintenancePlanItem = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/relation-maintenance-plan-item/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养计划表和保养项关系 Excel
|
||||
|
export const exportRelationMaintenancePlanItem = async (params) => { |
||||
|
return await request.download({ url: `/eam/relation-maintenance-plan-item/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/relation-maintenance-plan-item/get-import-template' }) |
||||
|
} |
Loading…
Reference in new issue