From 5af665569d0cc093184f99b70ac38745ef53b911 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 21 九月 2026 20:39:04 +0800
Subject: [PATCH] 新疆-融邦环保 1.油品出库表单改「多台账分摊绑定」:各台账数量之和必须等于出库吨位,产品取各台账明细交集,代储不锁行可自由增删 2.新增到货记录模块:销售台账页入口,车辆随出库单联动,到货上限=该台账分摊量,附件走永久链接 3.发货台账改层级父行:油品出库为父行,children 为到货记录,来源列区分发货单/油品出库/到货 4.开票/收款候选按「出库单×客户」拆行,bindingId 与出库单 id 分两串回传,防重复开票/收款 5.销售台账下拉补产品/规格型号 6.代储入库绑定销售订单:油品入库表单加销售订单下拉,入库台账列表加「销售订单」列 7.采购申请补齐台账字段(油库、采购合同号、提货方式、物流方式、最佳到站日期、采购类别、付款方式、预警数量、附件等) 8.修复采购申请「转订单后跳转无反应」 9.采购台账删掉「销售合同号」的搜索条件、列表列和表单字段 10.公海客户新增「信托基金(元)」,代储金额合计超限标红提示

---
 src/api/viewIndex.js |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 107 insertions(+), 6 deletions(-)

diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 980e4b0..0087d66 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -1,12 +1,21 @@
 // 棣栭〉鎺ュ彛
 import request from "@/utils/request";
 
-//  宸ュ崟鎵ц鏁堢巼鍒嗘瀽
-export const workOrderEfficiencyAnalysis = (query) => {
+//  宸ュ簭鏁版嵁鐢熶骇缁熻鏄庣粏
+export const processDataProductionStatistics = (params) => {
   return request({
-    url: "/home/workOrderEfficiencyAnalysis",
+    url: "/home/processDataProductionStatistics",
     method: "get",
-    params: query,
+    params,
+  });
+};
+
+//  璐ㄩ噺缁熻
+export const qualityInspectionStatistics = (params) => {
+  return request({
+    url: "/home/qualityInspectionStatistics",
+    method: "get",
+    params,
   });
 };
 
@@ -91,13 +100,24 @@
     method: "get",
   });
 };
-// 璐ㄦ鍒嗘瀽
-export const qualityStatistics = () => {
+// 璐ㄦ鍒嗘瀽锛堝彲浼� dateType: 1鍛� 2鏈� 3瀛e害锛�
+export const qualityStatistics = (params) => {
   return request({
     url: "/home/qualityStatistics",
     method: "get",
+    params,
   });
 };
+
+// 宸ュ崟鎵ц鏁堢巼鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
+export const workOrderEfficiencyAnalysis = (params) => {
+  return request({
+    url: "/home/workOrderEfficiencyAnalysis",
+    method: "get",
+    params,
+  });
+};
+
 // 鐢熶骇鏍哥畻鍒嗘瀽
 export const productionAccountingAnalysis = (query) => {
   return request({
@@ -135,6 +155,14 @@
 export const getProgressStatistics = () => {
   return request({
     url: "/home/progressStatistics",
+    method: "get",
+  });
+};
+
+// 璁㈠崟鏁伴噺缁熻锛堢敓浜ц鍗曟暟銆佸凡瀹屾垚璁㈠崟鏁般�佸緟鐢熶骇璁㈠崟鏁帮級
+export const orderCount = () => {
+  return request({
+    url: "/home/orderCount",
     method: "get",
   });
 };
@@ -207,6 +235,15 @@
   });
 };
 
+// 宸ュ簭浜у嚭鍒嗘瀽锛坉ateType: 1鍛� 2鏈� 3瀛e害锛�
+export const processOutputAnalysis = (params) => {
+  return request({
+    url: "/home/processOutputAnalysis",
+    method: "get",
+    params,
+  });
+};
+
 // 鍘熸潗鏂欓噰璐噾棰濆崰姣�
 export const rawMaterialPurchaseAmountRatio = () => {
   return request({
@@ -236,6 +273,15 @@
 export const productInOutAnalysis = (params) => {
   return request({
     url: "/home/productInOutAnalysis",
+    method: "get",
+    params,
+  });
+};
+
+// 鎶曞叆浜у嚭鍒嗘瀽
+export const inputOutputAnalysis = (params) => {
+  return request({
+    url: "/home/inputOutputAnalysis",
     method: "get",
     params,
   });
@@ -280,3 +326,58 @@
     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 safeTab = ["all", "inProgress", "completed", "end"].includes(params.tab)
+    ? params.tab
+    : "all";
+  return request({
+    url: "/home/productionOrderProgress",
+    method: "get",
+    params: {
+      ...params,
+      tab: safeTab,
+      pageNum: safePageNum,
+      pageSize: params.pageSize,
+    },
+    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