From b651c36ab85ca0a6e6cd0ed1e033948db9c51791 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 05 二月 2026 11:19:18 +0800
Subject: [PATCH] fix: 解决大屏冲突

---
 src/api/viewIndex.js |  104 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 94 insertions(+), 10 deletions(-)

diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index a14ed2a..ae59ada 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -1,6 +1,82 @@
 // 棣栭〉鎺ュ彛
 import request from "@/utils/request";
 
+//  宸ュ崟鎵ц鏁堢巼鍒嗘瀽
+export const workOrderEfficiencyAnalysis = (query) => {
+  return request({
+    url: "/home/workOrderEfficiencyAnalysis",
+    method: "get",
+    params: query,
+  });
+};
+
+//  鍘熸潗鏂欐娴�
+export const rawMaterialDetection = (query) => {
+  return request({
+    url: "/home/rawMaterialDetection",
+    method: "get",
+    params: query,
+  });
+};
+
+//  杩囩▼妫�娴�
+export const processDetection = (query) => {
+  return request({
+    url: "/home/processDetection",
+    method: "get",
+    params: query,
+  });
+};
+
+//  鎴愬搧鍑哄巶妫�娴�
+export const factoryDetection = (query) => {
+  return request({
+    url: "/home/factoryDetection",
+    method: "get",
+    params: query,
+  });
+};
+
+//  妫�楠屾暟閲�
+export const qualityInspectionCount = () => {
+  return request({
+    url: "/home/qualityInspectionCount",
+    method: "get",
+  });
+};
+
+//  涓嶅悎鏍奸璀�
+export const nonComplianceWarning = () => {
+  return request({
+    url: "/home/nonComplianceWarning",
+    method: "get",
+  });
+};
+
+//  瀹屾垚妫�楠屾暟
+export const completedInspectionCount = () => {
+  return request({
+    url: "/home/completedInspectionCount",
+    method: "get",
+  });
+};
+
+//  涓嶅悎鏍间骇鍝佹帓鍚�
+export const unqualifiedProductRanking = () => {
+  return request({
+    url: "/home/unqualifiedProductRanking",
+    method: "get",
+  });
+};
+
+//  涓嶅悎鏍兼鍝佸鐞嗗垎鏋�
+export const unqualifiedProductProcessingAnalysis = () => {
+  return request({
+    url: "/home/unqualifiedProductProcessingAnalysis",
+    method: "get",
+  });
+};
+
 // 閿�鍞�-閲囪喘-搴撳瓨鏁版嵁
 export const getBusiness = () => {
   return request({
@@ -25,20 +101,28 @@
 };
 
 // 宸ュ崟鎵ц鏁堢巼鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-export const workOrderEfficiencyAnalysis = (params) => {
-  return request({
-    url: "/home/workOrderEfficiencyAnalysis",
-    method: "get",
-    params,
-  });
-};
+// export const workOrderEfficiencyAnalysis = (params) => {
+//   return request({
+//     url: "/home/workOrderEfficiencyAnalysis",
+//     method: "get",
+//     params,
+//   });
+// };
 
-// 鐢熶骇鏍哥畻鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-export const productionAccountingAnalysis = (params) => {
+// // 鐢熶骇鏍哥畻鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
+// export const productionAccountingAnalysis = (params) => {
+//   return request({
+//     url: "/home/productionAccountingAnalysis",
+//     method: "get",
+//     params,
+//   });
+// };
+// 鐢熶骇鏍哥畻鍒嗘瀽
+export const productionAccountingAnalysis = (query) => {
   return request({
     url: "/home/productionAccountingAnalysis",
     method: "get",
-    params,
+    params: query,
   });
 };
 // 搴旀敹搴斾粯缁熻

--
Gitblit v1.9.3