From b21afc26b596a5a7cb77b36cd96f6e0df91637eb Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期三, 26 八月 2026 14:21:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_天津_建诚恒商贸' into dev_天津_建诚恒商贸

---
 src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue b/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
index 96e4548..bfc0dea 100644
--- a/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
+++ b/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
@@ -27,6 +27,8 @@
 import DateTypeSwitch from '../DateTypeSwitch.vue'
 import { supplierPurchaseRanking } from '@/api/viewIndex.js'
 
+const dateRange = inject('psiDateRange', null)
+
 const chartStyle = {
   width: '100%',
   height: '100%',
@@ -295,7 +297,7 @@
 
 // 渚涘簲鍟嗛噰璐帓鍚�
 const fetchSupplierRanking = () => {
-  supplierPurchaseRanking({ type: radio1.value })
+  supplierPurchaseRanking({ type: radio1.value, ...(dateRange?.value || {}) })
     .then((res) => {
       if (res.code === 200 && Array.isArray(res.data)) {
         dataArr.value = res.data.map(item => ({

--
Gitblit v1.9.3