diff --git a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html index 1a713e4ac..406a05977 100644 --- a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html +++ b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html @@ -46,8 +46,16 @@ {{fee.receivedFee}} diff --git a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.html b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.html index 0d2d90323..be3ed547b 100644 --- a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.html +++ b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.html @@ -1,5 +1,5 @@
-
+
- +
-
@@ -19,7 +19,7 @@
-
+
@@ -62,10 +62,10 @@ + + - + + + + + + + + + + +
- + - + @@ -75,15 +75,51 @@
- {{fee.roomName}} + {{fee.floorNum}} - {{fee.ownerName}} + {{fee.roomCount}} + + {{fee.freeCount}} + + {{fee.hisMonthOweFee}} {{fee.oweFee}} + {{fee.todayReceivedRoomCount}} + + {{fee.todayReceivedRoomAmount}} + + {{fee.hisOweReceivedRoomCount}} + + {{fee.hisOweReceivedRoomAmount}} + + {{fee.monthReceivedRoomCount}} + + {{(fee.roomCount-fee.freeCount-fee.monthReceivedRoomCount).toFixed(0)}} + + {{(fee.monthReceivedRoomCount/(fee.roomCount-fee.freeCount)*100).toFixed(2)}}% + + {{fee.monthReceivedRoomAmount}} + + {{fee.curMonthOweFee}} + + {{(fee.monthReceivedRoomAmount/(fee.monthReceivedRoomAmount+fee.curMonthOweFee)*100).toFixed(2)}}% +
diff --git a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js index 81d238cbf..bfec3f875 100644 --- a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js +++ b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js @@ -9,7 +9,7 @@ dataReportFeeStatisticsInfo: { fees: [], feeTypeCds: [], - floors:[], + floors: [], ownerId: '', roomNum: '', startDate: '', @@ -27,7 +27,8 @@ vc.on('dataReportFeeStatistics', 'switch', function(_data) { $that.dataReportFeeStatisticsInfo.startDate = _data.startDate; $that.dataReportFeeStatisticsInfo.endDate = _data.endDate; - $that._loadDataReportFeeStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS); + // $that._loadDataReportFeeStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS); + $that._loadFloors(); }); vc.on('dataReportFeeStatistics', 'paginationPlus', 'page_event', function(_currentPage) { @@ -38,15 +39,14 @@ }) }, methods: { - _loadDataReportFeeStatisticsData: function(_page, _row,_floorIds) { + _loadDataReportFeeStatisticsData: function(_floorIds) { let param = { params: { communityId: vc.getCurrentCommunity().communityId, startDate: $that.dataReportFeeStatisticsInfo.startDate, endDate: $that.dataReportFeeStatisticsInfo.endDate, + feeTypeCd: $that.dataReportFeeStatisticsInfo.feeTypeCd, floorIds: _floorIds, - page: _page, - row: _row } }; @@ -55,8 +55,11 @@ param, function(json) { let _json = JSON.parse(json); - $that.dataReportFeeStatisticsInfo.fees = _json.data; - + _json.data.forEach(item => { + $that.dataReportFeeStatisticsInfo.fees.push(item); + }); + + // let _feeAmount = 0.0; // if (_json.data && _json.data.length > 0) { // _json.data.forEach(item => { @@ -71,15 +74,15 @@ } ); }, - _loadFloors:function(){ + _loadFloors: function() { let param = { params: { - page:1, - row:100, - communityId:vc.getCurrentCommunity().communityId + page: 1, + row: 100, + communityId: vc.getCurrentCommunity().communityId } }; - + $that.dataReportFeeStatisticsInfo.fees = []; //发送get请求 vc.http.apiGet('/floor.queryFloors', param, @@ -88,8 +91,16 @@ let _floors = listFloorData.apiFloorDataVoList; let _floorIds = []; - for(let _floorIndex = 0; _floorIndex < _floors.length;_floorIndex ++){ + for (let _floorIndex = 0; _floorIndex < _floors.length; _floorIndex++) { _floorIds.push(_floors[_floorIndex].floorId); + if (_floorIds.length >= 5) { + $that._loadDataReportFeeStatisticsData(_floorIds.join(',')); + _floorIds = []; + } + } + + if (_floorIds.length > 0) { + $that._loadDataReportFeeStatisticsData(_floorIds.join(',')); } }, @@ -100,7 +111,7 @@ }, //查询 _qureyDataReportFeeStatistics: function() { - $that._loadDataReportFeeStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS); + $that._loadFloors(); }, } });