From 4350f754494dcf0ac9240e948fb85732cb4d9486 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 16 May 2021 12:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pages/property/listOweFee/listOweFee.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/public/pages/property/listOweFee/listOweFee.js b/public/pages/property/listOweFee/listOweFee.js index 235fc5cd1..0b28a9211 100755 --- a/public/pages/property/listOweFee/listOweFee.js +++ b/public/pages/property/listOweFee/listOweFee.js @@ -160,16 +160,28 @@ let _amountOwed = 0.0; let _items = _fee.items; - _feeConfigNames.forEach(_feeItem =>{ - _items.forEach(_item=>{ - if(_feeItem.configId == _item.configId){ + _feeConfigNames.forEach(_feeItem => { + _items.forEach(_item => { + if (_feeItem.configId == _item.configId) { _amountOwed += parseFloat(_item.amountOwed); } }) }) return _amountOwed.toFixed(2); + }, + _exportFee: function () { + let _configIds = ""; + $that.listOweFeeInfo.feeConfigNames.forEach(item => { + _configIds += (item.configId + ',') + }) + + if (_configIds.endsWith(',')) { + _configIds = _configIds.substring(0, _configIds.length - 1); + } + vc.jumpToPage('/callComponent/exportReportFee/exportData?communityId=' + vc.getCurrentCommunity().communityId + "&pagePath=listOweFee&configIds=" + _configIds); } + } });