import request from '@/utils/request' // 查询设备管理列表 export function listEquipment(query) { return request({ url: '/wms/equipment/list', method: 'get', params: query }); } // 查询设备管理详细 export function getEquipment(equipmentId) { return request({ url: '/wms/equipment/' + equipmentId, method: 'get' }); } // 新增设备管理 export function addEquipment(data) { return request({ url: '/wms/equipment', method: 'post', data: data }); } // 修改设备管理 export function updateEquipment(data) { return request({ url: '/wms/equipment', method: 'put', data: data }); } // 删除设备管 export function delEquipment(equipmentId) { return request({ url: '/wms/equipment/' + equipmentId, method: 'delete' }); } // 查询部门下拉树结构 export function treeselect() { return request({ url: '/wms/equipment/tree', method: 'get' }) } // 查询设备类型 export function getEquipmentTypeList() { return request({ url: '/wms/equipment/getEquipmentTypeList', method: 'get' }); } // 查询设备备件 export function getSparePartsList() { return request({ url: '/wms/equipment/getSparePartsList', method: 'get' }); } // 查询设备备件右侧列表 export function getRightSparePartsList() { return request({ url: '/wms/equipment/getRightSparePartsList', method: 'get' }); } // 绑定 export function bindSpareParts(data) { return request({ url: '/wms/equipment/bindSpareParts', method: 'post', data: data }); } // 设备状态修改 export function changeEquipmentStatus(equipmentId, status) { const data = { equipmentId, status } return request({ url: '/wms/equipment/changeStatus', method: 'put', data: data }) } // 查询人员列表 export function getPersonList(query) { return request({ url: '/wms/equipment/getPersonList', method: 'get', params: query }); } // 查询设备管理列表 export function getAuxiliaryEquipmentList(query) { return request({ url: '/wms/equipment/getAuxiliaryEquipmentList', method: 'get', params: query }); } // 查询维修记录 export function getWXRecordsList(query) { return request({ url: '/wms/equipment/getWXRecordsList', method: 'get', params: query }); } // 查询保养记录 export function getBYRecordsList(query) { return request({ url: '/wms/equipment/getBYRecordsList', method: 'get', params: query }); }