From d69fb1dd5b8437dd74cc6f7a3dcafaecc4001c8d Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Sun, 4 Jun 2023 22:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataReportEarnedDetailStatistics.html | 10 +++++-- .../dataReportEarnedDetailStatistics.js | 25 ++++++++++++++++ .../dataReportEarnedStatistics.html | 29 ++++++++----------- .../dataReportEarnedStatistics.js | 22 ++++++++++++++ 4 files changed, 67 insertions(+), 19 deletions(-) diff --git a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html index 406a05977..48b20da8e 100644 --- a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html +++ b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html @@ -16,8 +16,14 @@
- - +
+ +
diff --git a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js index 6aeaaf484..fcf11141d 100644 --- a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js +++ b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js @@ -82,6 +82,31 @@ _qureyDataReportEarnedDetailStatistics: function() { $that._loadDataReportEarnedDetailStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS); }, + _exportReportEarnedDetailExcel: function() { + let param = { + params: { + communityId: vc.getCurrentCommunity().communityId, + startDate: $that.dataReportEarnedDetailStatisticsInfo.startDate, + endDate: $that.dataReportEarnedDetailStatisticsInfo.endDate, + objName: $that.dataReportEarnedDetailStatisticsInfo.objName, + ownerName: $that.dataReportEarnedDetailStatisticsInfo.ownerName, + link: $that.dataReportEarnedDetailStatisticsInfo.link, + pagePath:'dataReportEarnedDetailStatistics' + } + }; + //发送get请求 + vc.http.apiGet('/export.exportData', param, + function(json, res) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if (_json.code == 0) { + vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') + } + }, + function(errInfo, error) { + console.log('请求失败处理'); + }); + }, } }); })(window.vc); \ No newline at end of file diff --git a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html index 24c820bd5..676b86524 100644 --- a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html +++ b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html @@ -1,18 +1,11 @@
-
- +
+
@@ -50,8 +43,8 @@ {{fee.receivedFee}} @@ -60,7 +53,9 @@
- {{dataReportEarnedStatisticsInfo.feeAmount}} + + + {{dataReportEarnedStatisticsInfo.feeAmount}}
diff --git a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.js b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.js index 85c638077..362ed62ef 100644 --- a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.js +++ b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.js @@ -76,6 +76,28 @@ _qureyDataReportEarnedStatistics: function() { $that._loadDataReportEarnedStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS); }, + _exportReportEarnedExcel: function() { + let param = { + params: { + communityId: vc.getCurrentCommunity().communityId, + startDate: $that.dataReportEarnedStatisticsInfo.startDate, + endDate: $that.dataReportEarnedStatisticsInfo.endDate, + pagePath:'dataReportEarnedStatistics' + } + }; + //发送get请求 + vc.http.apiGet('/export.exportData', param, + function(json, res) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if (_json.code == 0) { + vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') + } + }, + function(errInfo, error) { + console.log('请求失败处理'); + }); + }, } }); })(window.vc); \ No newline at end of file