eight
2025-04-15 589bcdb26f8e9d3e0d5ef46d27acc901c96d50ea
src/api/ecg/devmanage/index.ts
@@ -9,13 +9,29 @@
// 设备 VO
export interface DeviceVO {
  id: number // id
  devId: string // 设备编号
  category: string // 分类名
  brand: string // 品牌
  model: string // 型号
  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 // 采购日期
  lost: number //遗失标记
  state: number // 状态
  devCount: number // 统计数量
}
export interface OptionsVO {
@@ -72,6 +88,11 @@
    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 })