import request from '@/utils/request' // 添加工单 export function repairOrderCreate(data) { return request({ url: '/eam/device-maintenance-main/create', 'method': 'POST', data }) } // 编辑工单 export function repairOrderUpdate(data) { return request({ url: '/eam/device-maintenance-main/update', 'method': 'PUT', data }) } // 工单列表 export function repairOrderPage(params) { return request({ url: '/eam/device-maintenance-main/getAppPage', 'method': 'GET', params }) } // 操作工单 export function orderClick(params) { return request({ url: '/eam/device-maintenance-main/orderClick', 'method': 'GET', params }) } // 添加维修工单子项维修内容 export function repairOrderDetailCreate(data) { return request({ url: '/eam/device-maintenance-detail/create', 'method': 'POST', data }) } // 编辑维修工单子项维修内容 export function repairOrderDetailUpdate(data) { return request({ url: '/eam/device-maintenance-detail/update', 'method': 'PUT', data }) } // 获得维修工单子列表 export function repairOrderDetailList(params) { return request({ url: '/eam/device-maintenance-detail/selectListByNumber', 'method': 'GET', params }) } // 删除维修工单子 export function repairOrderDetailDelete(id) { return request({ url: '/eam/device-maintenance-detail/delete?id='+id, 'method': 'DELETE' }) } //转办 export function transfer(params) { return request({ url: '/eam/device-maintenance-main/turnTo', 'method': 'GET', params }) } // 获取采取临时措施的维修工单 export function repairOrderList(params) { return request({ url: '/eam/device-maintenance-main/getList', 'method': 'GET', params }) }