| | |
| | | // 设备 VO |
| | | export interface DeviceVO { |
| | | id: number // id |
| | | devCodeIntrinsic: string |
| | | devCodeHosp: string |
| | | devCodeDept: string |
| | | devId: string // 设备编号 |
| | | category: string // 分类名 |
| | | brand: string // 品牌 |
| | | model: string // 型号 |
| | | purchaseDate: number // 采购日期 |
| | | state: number //状态 |
| | | comment: string // 备注 |
| | | } |
| | | |
| | | // 设备统计 VO |
| | | export interface DeviceStatisticVO { |
| | | id: number // id |
| | | devId: string // 设备编号 |
| | | category: string // 分类名 |
| | | brand: string // 品牌 |
| | | model: string // 型号 |
| | | purchaseDate: number // 采购日期 |
| | | state: number // 状态 |
| | | devCount: number // 统计数量 |
| | | } |
| | | |
| | | export interface OptionsVO { |
| | |
| | | return await request.get({ url: `/ecg/device/page`, params }) |
| | | }, |
| | | |
| | | // 设备统计 |
| | | deviceStatistic: async (params: any) => { |
| | | return await request.get({ url: `/ecg/device/dev-statistic`, params }) |
| | | }, |
| | | |
| | | // 查询设备详情 |
| | | getDevice: async (id: number) => { |
| | | return await request.get({ url: `/ecg/device/get?id=` + id }) |
| | | }, |
| | | |
| | | // 查询设备详情 |
| | | getDeviceByDevId: async (devId: string) => { |
| | | return await request.get({ url: `/ecg/device/get-by-dev-id?dev-id=` + devId }) |
| | | }, |
| | | |
| | | // 新增设备 |
| | |
| | | return await request.put({ url: `/ecg/device/update`, data }) |
| | | }, |
| | | |
| | | // 修改设备状态 |
| | | updateDeviceState: async (data: DeviceVO) => { |
| | | return await request.post({ url: `/ecg/device/update-dev-state`, data }) |
| | | }, |
| | | |
| | | // 删除设备 |
| | | deleteDevice: async (id: number) => { |
| | | return await request.delete({ url: `/ecg/device/delete?id=` + id }) |