From a52ebf49d0a304697ec7af4f4c3e6b6e13f269e7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 15 七月 2026 15:28:40 +0800
Subject: [PATCH] 修改生产核算,不合格管理,报表管理

---
 src/api/viewIndex.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 9cae219..0087d66 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -349,8 +349,7 @@
 
 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)
+  const safeTab = ["all", "inProgress", "completed", "end"].includes(params.tab)
     ? params.tab
     : "all";
   return request({
@@ -360,7 +359,7 @@
       ...params,
       tab: safeTab,
       pageNum: safePageNum,
-      pageSize: safePageSize,
+      pageSize: params.pageSize,
     },
     headers: {
       handleAuthError: false,

--
Gitblit v1.9.3