From 9c9d121e47423b325e62bfd03b4332ec1e5bdf4d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 27 三月 2026 16:05:51 +0800
Subject: [PATCH] 军泰伟业 1.已发货数量等于总数量时,状态为已发货。已发货数量小于总数量时,状态建议新增发货中 2.产品清除工艺路线点击确定后,仍然回显绑定的工艺路线 3.新增退货单时,退一部分货后,继续对此退货单进行退货操作,展示数据有误

---
 src/views/procurementManagement/procurementReport/index.vue |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/views/procurementManagement/procurementReport/index.vue b/src/views/procurementManagement/procurementReport/index.vue
index 4c17e0c..d9ae1a2 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)
@@ -105,7 +107,7 @@
     prop: 'productCategory',
   },
   {
-    label: '瑙勬牸鍨嬪彿',
+    label: '鍥剧焊缂栧彿',
     prop: 'specificationModel',
   },
   {
@@ -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