From 22002c2b5bf09bb769a51448537fa6a572a3ea88 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 10:25:09 +0800
Subject: [PATCH] 费用报销的审批流程

---
 src/api/viewIndex.js |   70 +++++++++++++++++++++++++++++-----
 1 files changed, 59 insertions(+), 11 deletions(-)

diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 23e74fe..9cae219 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -110,22 +110,14 @@
 };
 
 // 宸ュ崟鎵ц鏁堢巼鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-// export const workOrderEfficiencyAnalysis = (params) => {
-//   return request({
-//     url: "/home/workOrderEfficiencyAnalysis",
-//     method: "get",
-//     params,
-//   });
-// };
-
-// 鐢熶骇鏍哥畻鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
-export const productionAccountingAnalysis = (params) => {
+export const workOrderEfficiencyAnalysis = (params) => {
   return request({
-    url: "/home/productionAccountingAnalysis",
+    url: "/home/workOrderEfficiencyAnalysis",
     method: "get",
     params,
   });
 };
+
 // 鐢熶骇鏍哥畻鍒嗘瀽
 export const productionAccountingAnalysis = (query) => {
   return request({
@@ -334,3 +326,59 @@
     method: "get",
   });
 };
+
+export const productionOverview = () => {
+  return request({
+    url: "/home/productionOverview",
+    method: "get",
+    headers: {
+      handleAuthError: false,
+    },
+  });
+};
+
+export const productionRealtimeBoard = () => {
+  return request({
+    url: "/home/productionRealtimeBoard",
+    method: "get",
+    headers: {
+      handleAuthError: false,
+    },
+  });
+};
+
+export const productionOrderProgress = (params = {}) => {
+  const safePageNum = Math.max(1, Number(params.pageNum || 1));
+  const safePageSize = Math.min(50, Math.max(1, Number(params.pageSize || 10)));
+  const safeTab = ["all", "inProgress", "completed", "paused"].includes(params.tab)
+    ? params.tab
+    : "all";
+  return request({
+    url: "/home/productionOrderProgress",
+    method: "get",
+    params: {
+      ...params,
+      tab: safeTab,
+      pageNum: safePageNum,
+      pageSize: safePageSize,
+    },
+    headers: {
+      handleAuthError: false,
+    },
+  });
+};
+
+export const todayProductionPlan = (params = {}) => {
+  const safeLimit = Math.min(20, Math.max(1, Number(params.limit || 4)));
+  return request({
+    url: "/home/todayProductionPlan",
+    method: "get",
+    params: {
+      ...params,
+      limit: safeLimit,
+    },
+    headers: {
+      handleAuthError: false,
+    },
+  });
+};

--
Gitblit v1.9.3