import request from '@/utils/request' // 根据设备号查询信息 export function getDeviceDetailsByNumber(params) { return request({ url: '/eam/device-accounts/getDetailsByNumber', 'method': 'GET', params }) } // 添加报修 export function deviceRepairCreate(data) { return request({ url: '/eam/device-repair-request/create', 'method': 'POST', data }) } // 报修列表 export function deviceRepairPage(params) { return request({ url: '/eam/device-repair-request/getAppPage', 'method': 'GET', params }) } // 撤销 export function rejected(id) { return request({ url: '/eam/device-repair-request/rejected?id='+id, 'method': 'DELETE', }) } // 设备列表 export function deviceList(params) { return request({ url: '/eam/device-accounts/selectData', 'method': 'GET', params }) } // 设备分页列表 export function devicePage(params) { return request({ url: '/eam/device-accounts/getAppPage', 'method': 'GET', params }) } // 根据设备号码获取二级列表 export function getSubList(params) { return request({ url: '/eam/device-mold-items/getListByNumber', 'method': 'GET', params }) } // 新增申领备件时获取备件列表 export function getApplyDeviceList() { return request({ url: '/eam/device-accounts/selectAll', 'method': 'GET' }) }