From 27c8277d717b34b55f3ea967027b53b067f77df3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 20 八月 2026 16:58:49 +0800
Subject: [PATCH] feat 功能变更

---
 src/api/mes/dv/statistics/index.ts |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/api/mes/dv/statistics/index.ts b/src/api/mes/dv/statistics/index.ts
new file mode 100644
index 0000000..e13b505
--- /dev/null
+++ b/src/api/mes/dv/statistics/index.ts
@@ -0,0 +1,32 @@
+import { requestClient } from '#/api/request';
+
+export namespace MesDvStatisticsApi {
+  /** 璁惧缁熻姹囨�� */
+  export interface StatisticsSummary {
+    totalMachinery?: number; // 璁惧鎬绘暟
+    producingCount?: number; // 鐢熶骇涓�
+    stoppedCount?: number; // 鍋滄満
+    maintainingCount?: number; // 缁存姢涓�
+    faultRate?: number; // 鏁呴殰鐜�%
+    totalRepair?: number; // 缁翠慨鍗曟�绘暟
+    processingRepair?: number; // 缁翠慨涓�/寰呴獙鏀�
+    finishedRepair?: number; // 宸茬‘璁ょ淮淇�
+    totalMainten?: number; // 淇濆吇璁板綍鎬绘暟
+    finishedMainten?: number; // 宸插畬鎴愪繚鍏�
+    typeDistribution?: TypeItem[]; // 鎸夎澶囩被鍨嬪垎甯�
+  }
+
+  /** 璁惧绫诲瀷鍒嗗竷椤� */
+  export interface TypeItem {
+    machineryTypeId?: number;
+    machineryTypeName?: string;
+    count?: number;
+  }
+}
+
+/** 璁惧缁熻姹囨�� */
+export function getDvStatisticsSummary() {
+  return requestClient.get<MesDvStatisticsApi.StatisticsSummary>(
+    '/mes/dv/statistics/summary',
+  );
+}

--
Gitblit v1.9.3