gaojs
6 months ago
8 changed files with 508 additions and 51 deletions
@ -0,0 +1,64 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface EquipmentMaintenanceDetailVO { |
|||
id: number |
|||
number: string |
|||
masterId: number |
|||
peoples: number |
|||
estimatedMinutes: number |
|||
actualMinutes: number |
|||
chargePeoples: string |
|||
completionTime: Date |
|||
uncompletedCause: string |
|||
result: string |
|||
contents: string |
|||
equipmentParts: string |
|||
departmentCode: string |
|||
remark: string |
|||
siteId: string |
|||
available: string |
|||
deletionTime: Date |
|||
deleterId: byte[] |
|||
concurrencyStamp: number |
|||
} |
|||
|
|||
// 查询设备保养工单子列表
|
|||
export const getEquipmentMaintenanceDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/eam/equipment-maintenance-detail/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/eam/equipment-maintenance-detail/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询设备保养工单子详情
|
|||
export const getEquipmentMaintenanceDetail = async (id: number) => { |
|||
return await request.get({ url: `/eam/equipment-maintenance-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增设备保养工单子
|
|||
export const createEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => { |
|||
return await request.post({ url: `/eam/equipment-maintenance-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改设备保养工单子
|
|||
export const updateEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => { |
|||
return await request.put({ url: `/eam/equipment-maintenance-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除设备保养工单子
|
|||
export const deleteEquipmentMaintenanceDetail = async (id: number) => { |
|||
return await request.delete({ url: `/eam/equipment-maintenance-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出设备保养工单子 Excel
|
|||
export const exportEquipmentMaintenanceDetail = async (params) => { |
|||
return await request.download({ url: `/eam/equipment-maintenance-detail/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/eam/equipment-maintenance-detail/get-import-template' }) |
|||
} |
Loading…
Reference in new issue