From 8c58e4937ca51dcc2966665b696fb6a8555f2299 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 11 九月 2026 10:10:18 +0800
Subject: [PATCH] fix: 生产核算导出接口缺失

---
 src/views/productionManagement/productionCosting/index.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/views/productionManagement/productionCosting/index.vue b/src/views/productionManagement/productionCosting/index.vue
index 3e79b93..1ae860b 100644
--- a/src/views/productionManagement/productionCosting/index.vue
+++ b/src/views/productionManagement/productionCosting/index.vue
@@ -331,11 +331,23 @@
       type: "warning",
     })
       .then(() => {
-        proxy.download(
-          "/salesLedger/productionAccounting/export",
-          {},
-          "鐢熶骇鏍哥畻.xlsx"
-        );
+        const params = { dateType: searchForm.value.dateType };
+        if (searchForm.value.dateType === "day") {
+          if (searchForm.value.entryDate) {
+            params.entryDate = searchForm.value.entryDate;
+          }
+        } else {
+          if (searchForm.value.entryDateStart) {
+            params.entryDateStart = searchForm.value.entryDateStart;
+          }
+          if (searchForm.value.entryDateEnd) {
+            params.entryDateEnd = searchForm.value.entryDateEnd;
+          }
+        }
+        if (searchForm.value.schedulingUserName) {
+          params.schedulingUserName = searchForm.value.schedulingUserName;
+        }
+        proxy.download("/productionAccount/export", params, "鐢熶骇鏍哥畻.xlsx");
       })
       .catch(() => {
         proxy.$modal.msg("宸插彇娑�");

--
Gitblit v1.9.3