From 348e6bcdc7fa566a48b96dea53d24ec6dda49e1d Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 11 四月 2025 18:06:40 +0800 Subject: [PATCH] update --- src/api/ecg/devmanage/index.ts | 33 +++++++++++++++++++++++++++------ 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/api/ecg/devmanage/index.ts b/src/api/ecg/devmanage/index.ts index 61c36dd..f71f887 100644 --- a/src/api/ecg/devmanage/index.ts +++ b/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 }) -- Gitblit v1.9.3