eight
2025-04-10 d09fe6aa593b974119628baf5e91bdfd0de7c378
src/api/ecg/devmanage/index.ts
@@ -10,12 +10,28 @@
// 设备 VO
export interface DeviceVO {
  id: number // id
  devCodeIntrinsic: string
  devCodeHosp: string
  devCodeDept: string
  devId: string // 设备编号
  category: string // 分类名
  brand: string // 品牌
  model: string // 型号
  purchaseDate: number // 采购日期
  lost: 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 {
@@ -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 })