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
import request from '@/config/axios'
|
|
|
|
export interface RelationSpotCheckPlanItemVO {
|
|
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 getRelationSpotCheckPlanItemPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/eam/relation-spot-check-plan-item/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/relation-spot-check-plan-item/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询点检计划表和巡检项关系详情
|
|
export const getRelationSpotCheckPlanItem = async (id: number) => {
|
|
return await request.get({ url: `/eam/relation-spot-check-plan-item/get?id=` + id })
|
|
}
|
|
|
|
// 新增点检计划表和巡检项关系
|
|
export const createRelationSpotCheckPlanItem = async (data: RelationSpotCheckPlanItemVO) => {
|
|
return await request.post({ url: `/eam/relation-spot-check-plan-item/create`, data })
|
|
}
|
|
|
|
// 修改点检计划表和巡检项关系
|
|
export const updateRelationSpotCheckPlanItem = async (data: RelationSpotCheckPlanItemVO) => {
|
|
return await request.put({ url: `/eam/relation-spot-check-plan-item/update`, data })
|
|
}
|
|
|
|
// 删除点检计划表和巡检项关系
|
|
export const deleteRelationSpotCheckPlanItem = async (id: number) => {
|
|
return await request.delete({ url: `/eam/relation-spot-check-plan-item/delete?id=` + id })
|
|
}
|
|
|
|
// 导出点检计划表和巡检项关系 Excel
|
|
export const exportRelationSpotCheckPlanItem = async (params) => {
|
|
return await request.download({ url: `/eam/relation-spot-check-plan-item/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/relation-spot-check-plan-item/get-import-template' })
|
|
}
|
|
|