You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.9 KiB
57 lines
1.9 KiB
10 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface RelationInspectionPlanItemVO {
|
||
|
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 getRelationInspectionPlanItemPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/eam/relation-inspection-plan-item/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/eam/relation-inspection-plan-item/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询巡检计划和巡检项关系详情
|
||
|
export const getRelationInspectionPlanItem = async (id: number) => {
|
||
|
return await request.get({ url: `/eam/relation-inspection-plan-item/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增巡检计划和巡检项关系
|
||
|
export const createRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
|
||
|
return await request.post({ url: `/eam/relation-inspection-plan-item/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改巡检计划和巡检项关系
|
||
|
export const updateRelationInspectionPlanItem = async (data: RelationInspectionPlanItemVO) => {
|
||
|
return await request.put({ url: `/eam/relation-inspection-plan-item/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除巡检计划和巡检项关系
|
||
|
export const deleteRelationInspectionPlanItem = async (id: number) => {
|
||
|
return await request.delete({ url: `/eam/relation-inspection-plan-item/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出巡检计划和巡检项关系 Excel
|
||
|
export const exportRelationInspectionPlanItem = async (params) => {
|
||
|
return await request.download({ url: `/eam/relation-inspection-plan-item/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/eam/relation-inspection-plan-item/get-import-template' })
|
||
|
}
|