From ef9f19d827fb5cc66ebde5e67941ff224a3f832e Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 16 Aug 2021 01:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportHuaningOweFeeDetail.html | 44 ++++++++++ .../reportHuaningOweFeeDetail.js | 81 +++++++++++++++++++ .../property/reportHuaning/reportHuaning.html | 8 ++ 3 files changed, 133 insertions(+) create mode 100644 public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.html create mode 100644 public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.js diff --git a/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.html b/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.html new file mode 100644 index 000000000..245d1eb8e --- /dev/null +++ b/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.html @@ -0,0 +1,44 @@ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
房号面积单价月收费费用开始时间费用截止时间总未收金额2021年1-7月未收金额2021年前未收金额
{{fee.payerObjName}}{{fee.builtUpArea}}{{fee.squarePrice}}{{_getMonthFee(fee)}}{{fee.startTime}}{{fee.endTime}}{{fee.oweAmount}}{{fee.btAmount}}{{fee.bfAmount}}
+
+
+
+
+ +
+
+ +
+
+
+
\ No newline at end of file diff --git a/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.js b/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.js new file mode 100644 index 000000000..684842404 --- /dev/null +++ b/public/components/property/reportHuaningOweFeeDetail/reportHuaningOweFeeDetail.js @@ -0,0 +1,81 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + reportHuaningOweFeeDetailInfo: { + fees: [], + listColumns: [], + roomId: '', + roomName: '', + conditions: { + year: new Date().getFullYear(), + month: new Date().getMonth() + 1 + }, + dateStr: vc.dateFormat(new Date().getTime()) + } + }, + _initMethod: function () { + }, + _initEvent: function () { + //切换 至费用页面 + vc.on('reportHuaningOweFeeDetail', 'switch', function (_param) { + $that.clearReportHuaningOweFeeDetailInfo(); + $that.reportHuaningOweFeeDetailInfo.conditions = _param; + $that._listReportHuaningOweFeeDetail(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('reportHuaningOweFeeDetail', 'notify', function () { + $that._listReportHuaningOweFeeDetail(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('reportHuaningOweFeeDetail', 'paginationPlus', 'page_event', + function (_currentPage) { + vc.component._listReportHuaningOweFeeDetail(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listReportHuaningOweFeeDetail: function (_page, _row) { + $that.reportHuaningOweFeeDetailInfo.conditions.page = _page; + $that.reportHuaningOweFeeDetailInfo.conditions.row = _row; + $that.reportHuaningOweFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + let param = { + params: $that.reportHuaningOweFeeDetailInfo.conditions + }; + //发送get请求 + vc.http.apiGet('/reportFeeMonthStatistics/queryHuaningOweFeeDetail', + param, + function (json) { + let _feeConfigInfo = JSON.parse(json); + vc.component.reportHuaningOweFeeDetailInfo.total = _feeConfigInfo.total; + vc.component.reportHuaningOweFeeDetailInfo.records = _feeConfigInfo.records; + vc.component.reportHuaningOweFeeDetailInfo.fees = _feeConfigInfo.data; + vc.emit('reportHuaningOweFeeDetail', 'paginationPlus', 'init', { + total: _feeConfigInfo.records, + currentPage: _page + }); + }, function () { + console.log('请求失败处理'); + } + ); + }, + clearReportHuaningOweFeeDetailInfo: function () { + $that.reportHuaningOweFeeDetailInfo = { + fees: [], + roomId: '', + roomName: '', + name: '', + conditions: { + year: new Date().getFullYear(), + month: new Date().getMonth() + 1 + }, + dateStr: vc.dateFormat(new Date().getTime()) + } + }, + _getMonthFee: function (_fee) { + return (_fee.builtUpArea * _fee.squarePrice).toFixed(2); + } + } + }); +})(window.vc); diff --git a/public/pages/property/reportHuaning/reportHuaning.html b/public/pages/property/reportHuaning/reportHuaning.html index 2b8cd21db..e91279285 100644 --- a/public/pages/property/reportHuaning/reportHuaning.html +++ b/public/pages/property/reportHuaning/reportHuaning.html @@ -87,6 +87,10 @@ 当月收费情况表2 +
@@ -99,5 +103,9 @@
+
+ +
+
\ No newline at end of file