5 changed files with 353 additions and 14 deletions
@ -0,0 +1,58 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DeviceInspectionDetailVO { |
|||
id: number |
|||
number: string |
|||
siteId: string |
|||
available: string |
|||
concurrencyStamp: number |
|||
name: string |
|||
peoples: string |
|||
estimatedMinutes: number |
|||
actualMinutes: number |
|||
chargePeoples: string |
|||
completionTime: Date |
|||
engineer: string |
|||
uncompleted: string |
|||
} |
|||
|
|||
// 查询检修工单子列表
|
|||
export const getDeviceInspectionDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/eam/device-inspection-detail/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/eam/device-inspection-detail/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询检修工单子详情
|
|||
export const getDeviceInspectionDetail = async (id: number) => { |
|||
return await request.get({ url: `/eam/device-inspection-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增检修工单子
|
|||
export const createDeviceInspectionDetail = async (data: DeviceInspectionDetailVO) => { |
|||
return await request.post({ url: `/eam/device-inspection-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改检修工单子
|
|||
export const updateDeviceInspectionDetail = async (data: DeviceInspectionDetailVO) => { |
|||
return await request.put({ url: `/eam/device-inspection-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除检修工单子
|
|||
export const deleteDeviceInspectionDetail = async (id: number) => { |
|||
return await request.delete({ url: `/eam/device-inspection-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出检修工单子 Excel
|
|||
export const exportDeviceInspectionDetail = async (params) => { |
|||
return await request.download({ url: `/eam/device-inspection-detail/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/eam/device-inspection-detail/get-import-template' }) |
|||
} |
Loading…
Reference in new issue