import http from '../http' // 根据设备号查询信息 export function getDeviceDetailsByNumber(params) { return http.get('/eam/device/equipment-accounts/detail',{params}) } // 根据厂区查询设备 export function getDeviceByFactoryAreaNumber(factoryAreaNumber) { return http.get('/eam/device/equipment-accounts/noPage') } // 添加报修 export function deviceRepairCreate(data) { return http.post('/eam/equipment-report-repair-request/create',data) } // 报修列表 export function deviceRepairPage(params) { return http.get('/eam/equipment-report-repair-request/page',{params}) } // 撤销 export function rejected(id) { return http.delete('/eam/device-repair-request/rejected?id='+id) } // 设备列表 export function deviceNoPage(params) { return http.get('/eam/device/equipment-accounts/noPage',{params}) } // 设备分页列表 export function devicePage(params) { return http.get('/eam/device/equipment-accounts/page',{params}) } // 根据设备号码获取二级列表 export function getSubList(params) { return http.get('/eam/device-mold-items/getListByNumber',{params}) } // 新增申领备件时获取备件列表 export function getApplyDeviceList() { return http.get('/eam/device/equipment-accounts/noPage') } // 设备列表不分页 export function deviceList(params) { return http.get('/eam/device/equipment-accounts/noPage',{params}) }