From 094f703be3dd84e184e261b86ddf9d7c9cb00657 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 18 Oct 2020 15:14:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=AC=A0=E8=B4=B9=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportOweFeeDetail.html | 111 ++++++++++++++++++ .../reportOweFeeDetail/reportOweFeeDetail.js | 99 ++++++++++++++++ 2 files changed, 210 insertions(+) create mode 100644 public/pages/property/reportOweFeeDetail/reportOweFeeDetail.html create mode 100644 public/pages/property/reportOweFeeDetail/reportOweFeeDetail.js diff --git a/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.html b/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.html new file mode 100644 index 000000000..36c872717 --- /dev/null +++ b/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.html @@ -0,0 +1,111 @@ +
+
+
+
+
+
查询条件
+
+ +
+
+
+
+ +
+
+ +
+ +
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+ +
+ +
+ + +
+
+
+
+
+
+
+
+
欠费明细表
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
费用编号房号费用项费用开始时间欠费时长(天)欠费金额
{{index+1}}{{fee.objName}}{{fee.feeName}}{{fee.feeCreateTime}}{{fee.oweDay}}{{fee.oweAmount}}
+
    +
    + + +
    +
    +
    +
    + + +
    \ No newline at end of file diff --git a/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.js b/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.js new file mode 100644 index 000000000..44ecf9563 --- /dev/null +++ b/public/pages/property/reportOweFeeDetail/reportOweFeeDetail.js @@ -0,0 +1,99 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + reportOweFeeDetailInfo: { + fees: [], + total: 0, + records: 1, + moreCondition: false, + title: '', + roomUnits: [], + conditions: { + floorId: '', + floorName: '', + roomNum: '', + unitId: '', + startTime:'', + endTime:'' + } + } + }, + _initMethod: function () { + vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); + + }, + _initEvent: function () { + + vc.on('reportOweFeeDetail', 'chooseFloor', function (_param) { + vc.component.reportOweFeeDetailInfo.conditions.floorId = _param.floorId; + vc.component.reportOweFeeDetailInfo.conditions.floorName = _param.floorName; + vc.component.loadUnits(_param.floorId); + + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listFees(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _queryMethod:function(){ + vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _listFees: function (_page, _rows) { + + vc.component.reportOweFeeDetailInfo.conditions.page = _page; + vc.component.reportOweFeeDetailInfo.conditions.row = _rows; + vc.component.reportOweFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + var param = { + params: vc.component.reportOweFeeDetailInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('/reportFeeMonthStatistics/queryOweFeeDetail', + param, + function (json, res) { + var _reportOweFeeDetailInfo = JSON.parse(json); + vc.component.reportOweFeeDetailInfo.total = _reportOweFeeDetailInfo.total; + vc.component.reportOweFeeDetailInfo.records = _reportOweFeeDetailInfo.records; + vc.component.reportOweFeeDetailInfo.fees = _reportOweFeeDetailInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.reportOweFeeDetailInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + loadUnits: function (_floorId) { + var param = { + params: { + floorId: _floorId, + communityId: vc.getCurrentCommunity().communityId + } + } + vc.http.get( + 'room', + 'loadUnits', + param, + function (json, res) { + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + if (res.status == 200) { + let tmpUnits = JSON.parse(json); + vc.component.reportOweFeeDetailInfo.roomUnits = tmpUnits; + return; + } + vc.toast(json); + }, + function (errInfo, error) { + console.log('请求失败处理'); + vc.toast(errInfo); + }); + }, + } + }); +})(window.vc);