From 63467ae5e619f3d9b073c21b17b694360b24447e Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 13 Aug 2021 18:47:29 +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 --- .../reportHuaningOweFee.html | 35 +++++ .../reportHuaningOweFee.js | 122 ++++++++++++++++++ .../property/reportHuaning/reportHuaning.html | 78 +++++++++++ .../property/reportHuaning/reportHuaning.js | 101 +++++++++++++++ 4 files changed, 336 insertions(+) create mode 100644 public/components/property/reportHuaningOweFee/reportHuaningOweFee.html create mode 100644 public/components/property/reportHuaningOweFee/reportHuaningOweFee.js create mode 100644 public/pages/property/reportHuaning/reportHuaning.html create mode 100644 public/pages/property/reportHuaning/reportHuaning.js diff --git a/public/components/property/reportHuaningOweFee/reportHuaningOweFee.html b/public/components/property/reportHuaningOweFee/reportHuaningOweFee.html new file mode 100644 index 000000000..552681bda --- /dev/null +++ b/public/components/property/reportHuaningOweFee/reportHuaningOweFee.html @@ -0,0 +1,35 @@ +
+
+
+
+ + + + + + + + + + + + + + + + + +
楼栋号总未收金额(截止{{reportHuaningOweFeeInfo.dateStr}}){{_getCurYear()}}未收金额{{_getPreCurYear()}}
{{fee.floorNum}}{{fee.oweAmount}}{{fee.curOweAmount}}{{_getPreAmount(fee)}}
+
+
+
+
+ +
+
+ +
+
+
+ +
\ No newline at end of file diff --git a/public/components/property/reportHuaningOweFee/reportHuaningOweFee.js b/public/components/property/reportHuaningOweFee/reportHuaningOweFee.js new file mode 100644 index 000000000..460adb021 --- /dev/null +++ b/public/components/property/reportHuaningOweFee/reportHuaningOweFee.js @@ -0,0 +1,122 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + reportHuaningOweFeeInfo: { + fees: [], + listColumns: [], + roomId: '', + roomName: '', + conditions: {}, + dateStr: vc.dateFormat(new Date().getTime()) + } + }, + _initMethod: function () { + }, + _initEvent: function () { + //切换 至费用页面 + vc.on('reportHuaningOweFee', 'switch', function (_param) { + $that.clearReportProficientRoomFeeInfo(); + $that.reportHuaningOweFeeInfo.conditions = _param; + console.log($that.reportHuaningOweFeeInfo.conditions) + $that._listReportProficientRoomFee(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('reportHuaningOweFee', 'notify', function () { + $that._listReportProficientRoomFee(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('reportHuaningOweFee', 'paginationPlus', 'page_event', + function (_currentPage) { + vc.component._listReportProficientRoomFee(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listReportProficientRoomFee: function (_page, _row) { + $that.reportHuaningOweFeeInfo.conditions.page = _page; + $that.reportHuaningOweFeeInfo.conditions.row = _row; + $that.reportHuaningOweFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + $that.reportHuaningOweFeeInfo.conditions.objType = '3333' + let param = { + params: $that.reportHuaningOweFeeInfo.conditions + }; + //发送get请求 + vc.http.apiGet('/reportFeeMonthStatistics/queryHuaningOweFee', + param, + function (json) { + let _feeConfigInfo = JSON.parse(json); + vc.component.reportHuaningOweFeeInfo.total = _feeConfigInfo.total; + vc.component.reportHuaningOweFeeInfo.records = _feeConfigInfo.records; + vc.component.reportHuaningOweFeeInfo.fees = _feeConfigInfo.data; + vc.emit('reportHuaningOweFee', 'paginationPlus', 'init', { + total: _feeConfigInfo.records, + currentPage: _page + }); + //取 属性列 + if (_feeConfigInfo.total < 1) { + return; + } + $that.reportHuaningOweFeeInfo.listColumns = []; + if (_feeConfigInfo.data.length > 0) { + let _reportFeeYearCollectionDetailDtos = _feeConfigInfo.data[0].reportFeeYearCollectionDetailDtos; + _reportFeeYearCollectionDetailDtos.forEach(item => { + $that.reportHuaningOweFeeInfo.listColumns.push(item.collectionYear + "年") + }) + } + }, function () { + console.log('请求失败处理'); + } + ); + }, + _getAttrValue: function (_attrs, _specCd) { + let _value = ""; + _attrs.forEach(item => { + if (item.specCd == _specCd) { + _value = item.value; + return; + } + }); + return _value; + }, + clearReportProficientRoomFeeInfo: function () { + $that.reportHuaningOweFeeInfo = { + fees: [], + roomId: '', + roomName: '', + name: '', + dateStr: vc.dateFormat(new Date().getTime()) + } + }, + dealReportProficientRoomFeeAttr: function (owners) { + }, + _showFeeDetail: function (fee, item) { + console.log(fee, item) + vc.emit('viewFeeDetail', 'listFeeDetail', { + roomName: fee.objName, + feeId: fee.feeId, + configId: fee.configId, + payerObjId: fee.objId, + curYear: item.collectionYear + }) + }, + _getCurYear: function () { + let date = new Date(); + let year = date.getFullYear(); + let month = date.getMonth() + 1; + + return year + "年1-" + month + "月"; + }, + _getPreCurYear: function () { + let date = new Date(); + let year = date.getFullYear(); + + return year + "年前未收金额"; + }, + _getPreAmount:function(_fee){ + return parseFloat(_fee.oweAmount) - parseFloat(_fee.curOweAmount); + } + } + }); +})(window.vc); diff --git a/public/pages/property/reportHuaning/reportHuaning.html b/public/pages/property/reportHuaning/reportHuaning.html new file mode 100644 index 000000000..839e0cad3 --- /dev/null +++ b/public/pages/property/reportHuaning/reportHuaning.html @@ -0,0 +1,78 @@ +
+
+
+
+
+
查询条件
+
+ +
+
+
+
+ +
+ +
+
+
+ + +
+
+
+
+ +
+
+
+ + +
+
+
+
+
+
+
+
+ +
+
+ +
+ +
+
\ No newline at end of file diff --git a/public/pages/property/reportHuaning/reportHuaning.js b/public/pages/property/reportHuaning/reportHuaning.js new file mode 100644 index 000000000..e356554ef --- /dev/null +++ b/public/pages/property/reportHuaning/reportHuaning.js @@ -0,0 +1,101 @@ +(function (vc) { + vc.extends({ + data: { + reportHuaningInfo: { + receivableAmount: '0', + noEnterRoomCount: '0', + roomCount: '0', + freeRoomCount: '0', + parkingSpaceCount: '0', + freeParkingSpaceCount: '0', + shopCount: '0', + freeShopCount: '0', + _currentTab: 'reportHuaningOweFee', + feeTypeCds: [], + feeConfigDtos: [], + conditions: { + configId: '', + feeTypeCd: '', + startTime: '', + endTime: '', + objName: '' + } + } + }, + _initMethod: function () { + vc.component.changeTab($that.reportHuaningInfo._currentTab); + //关联字典表费用类型 + vc.getDict('pay_fee_config', "fee_type_cd", function (_data) { + vc.component.reportHuaningInfo.feeTypeCds = _data; + }); + }, + _initEvent: function () { + vc.on("indexContext", "_queryIndexContextData", function (_param) { + vc.component._queryIndexContextData(); + }); + }, + methods: { + changeTab: function (_tab) { + $that.reportHuaningInfo._currentTab = _tab; + vc.emit(_tab, 'switch', $that.reportHuaningInfo.conditions) + }, + _changeReporficientFeeTypeCd: function () { + let param = { + params: { + page: 1, + row: 50, + communityId: vc.getCurrentCommunity().communityId, + feeTypeCd: $that.reportHuaningInfo.conditions.feeTypeCd, + isDefault: '', + feeFlag: '', + valid: '1' + } + }; + //发送get请求 + vc.http.get('roomCreateFeeAdd', 'list', param, + function (json, res) { + var _feeConfigManageInfo = JSON.parse(json); + let _feeConfigs = _feeConfigManageInfo.feeConfigs + vc.component.reportHuaningInfo.feeConfigDtos = _feeConfigs; + /*if (_feeConfigs.length > 0) { + $that.reportHuaningInfo.conditions.configId = _feeConfigs[0].configId; + //$that.changeTab($that.reportHuaningInfo._currentTab) + }*/ + }, + function (errInfo, error) { + console.log('请求失败处理'); + }); + }, + _changeReporficientConfigId: function () { + $that.changeTab($that.reportHuaningInfo._currentTab) + }, + _queryMethod: function () { + $that.changeTab($that.reportHuaningInfo._currentTab) + }, + _resetMethod: function () { + vc.component.reportHuaningInfo.conditions.feeTypeCd = ""; + vc.component.reportHuaningInfo.conditions.configId = ""; + vc.component.reportHuaningInfo.conditions.objName = ""; + $that.changeTab($that.reportHuaningInfo._currentTab) + }, + _getReportProficientRoomName: function () { + if (vc.component.reportHuaningInfo == undefined) { + return '请填写房屋编号'; + } + if (vc.component.reportHuaningInfo._currentTab == 'reportHuaningRoomFee') { + return '请填写房屋编号' + } + return '请填写车牌号'; + }, + _exportFee: function () { + let _objType = vc.component.reportHuaningInfo._currentTab == 'reportHuaningRoomFee' ? "3333" : "6666" + vc.jumpToPage('/callComponent/exportReportFee/exportData?communityId=' + + vc.getCurrentCommunity().communityId + + "&configId=" + $that.reportHuaningInfo.conditions.configId + + "&feeTypeCd=" + $that.reportHuaningInfo.conditions.feeTypeCd + + "&objType=" + _objType + + "&pagePath=reportYearCollection"); + } + } + }) +})(window.vc); \ No newline at end of file