From e7a741e7d234a714908e557611ef292782603fd9 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 28 一月 2026 13:37:07 +0800
Subject: [PATCH] Merge branch 'dev_New' of http://114.132.189.42:9002/r/product-inventory-management into dev_New

---
 src/views/procurementManagement/procurementReport/index.vue |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/views/procurementManagement/procurementReport/index.vue b/src/views/procurementManagement/procurementReport/index.vue
index 4c17e0c..adf554d 100644
--- a/src/views/procurementManagement/procurementReport/index.vue
+++ b/src/views/procurementManagement/procurementReport/index.vue
@@ -73,12 +73,14 @@
 </template>
 
 <script setup>
-import { ref, reactive, onMounted } from 'vue'
+import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
 import { ElMessage } from 'element-plus'
 import { Download } from '@element-plus/icons-vue'
 import PIMTable from '@/components/PIMTable/PIMTable.vue'
 import { procurementBusinessSummaryListPage } from '@/api/procurementManagement/procurementReport'
 import { productTreeList } from '@/api/basicData/product'
+
+const { proxy } = getCurrentInstance()
 
 // 鍝嶅簲寮忔暟鎹�
 const loading = ref(false)
@@ -269,7 +271,23 @@
 }
 
 const exportReport = () => {
-  ElMessage.success('瀵煎嚭鍔熻兘寮�鍙戜腑...')
+  const params = {}
+  
+  // 鏃堕棿鑼冨洿
+  if (searchForm.dateRange && searchForm.dateRange.length === 2) {
+    params.entryDateStart = searchForm.dateRange[0]
+    params.entryDateEnd = searchForm.dateRange[1]
+  }
+  
+  // 浜у搧绫诲埆
+  if (searchForm.productCategory) {
+    const categoryName = findNodeLabelById(productOptions.value, searchForm.productCategory)
+    if (categoryName) {
+      params.productCategory = categoryName
+    }
+  }
+  
+  proxy.download("/procurementBusinessSummary/export", params, "閲囪喘涓氬姟姹囨�昏〃.xlsx")
 }
 
 

--
Gitblit v1.9.3