diff --git a/public/components/community/communityFloorTree/communityFloorTree.html b/public/components/community/communityFloorTree/communityFloorTree.html new file mode 100644 index 000000000..9107e50da --- /dev/null +++ b/public/components/community/communityFloorTree/communityFloorTree.html @@ -0,0 +1,6 @@ + +
+
+
+ +
\ No newline at end of file diff --git a/public/components/community/communityFloorTree/communityFloorTree.js b/public/components/community/communityFloorTree/communityFloorTree.js new file mode 100644 index 000000000..a9fc06885 --- /dev/null +++ b/public/components/community/communityFloorTree/communityFloorTree.js @@ -0,0 +1,84 @@ +(function (vc) { + let DEFAULT_PAGE = 1; + let DEFAULT_ROW = 10; + vc.extends({ + data: { + communityFloorTreeInfo: { + units: [], + callName: '' + } + }, + _initMethod: function () { + }, + _initEvent: function () { + vc.on('communityFloorTree', 'initCommunityFloorTree', function (_param) { + $that.communityFloorTreeInfo.callName = _param.callName; + $that._loadCommunityFloorTree(); + }); + }, + methods: { + _loadCommunityFloorTree: function () { + let param = { + params: { + hc:1.8 + } + }; + //发送get请求 + vc.http.apiGet('/community.queryCommunityFloorTree', + param, + function (json) { + let _json = JSON.parse(json); + $that.communityFloorTreeInfo.units = _json.data; + $that._initJsTreeCommunityFloorTree(); + }, + function () { + console.log('请求失败处理'); + }); + }, + _initJsTreeCommunityFloorTree: function () { + let _data = $that.communityFloorTreeInfo.units; + $.jstree.destroy() + $("#jstree_communityFloorTreeDiv").jstree({ + "checkbox": { + "keep_selected_style": false + }, + 'state': { //一些初始化状态 + "opened": true, + }, + 'core': { + "check_callback": true, + 'data': _data + } + }); + $("#jstree_communityFloorTreeDiv").on("ready.jstree", function (e, data) { + $('#jstree_communityFloorTreeDiv').jstree('select_node', _data[0].children[0].id /* , true */); + }); + $('#jstree_communityFloorTreeDiv').on("changed.jstree", function (e, data) { + if (data.action == 'model' || data.action == 'ready') { + return; + } + let _selected = data.selected[0]; + if (_selected.startsWith('c_')) { + vc.emit($that.communityFloorTreeInfo.callName, 'selectCommunity', { + communityName: data.node.original.communityName, + communityId: data.node.original.communityId + }) + return; + } + if (_selected.startsWith('f_')) { + vc.emit($that.communityFloorTreeInfo.callName, 'selectFloor', { + floorNum: data.node.original.floorNum, + floorId: data.node.original.floorId + }) + return; + } + + }); + $('#jstree_communityFloorTreeDiv') + .on('click', '.jstree-anchor', function (e) { + $(this).jstree(true).toggle_node(e.target); + }) + }, + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.html b/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.html new file mode 100644 index 000000000..457fcef19 --- /dev/null +++ b/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.html @@ -0,0 +1,186 @@ +
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
{{index+1}}{{fee.objName}}{{fee.ownerName}}{{fee.ownerTel}}{{fee.builtUpArea}}{{fee.feeName}}{{fee.startTime}}{{fee.endTime}}{{fee.oweDay}}{{fee.oweAmount}}
+ +
+ +
+ + + +
+
+ + + +
+
+ +
+ + + : {{adminOweFeeDetailInfo.totalPreferentialAmount}} + + + +
+
+ + + : {{adminOweFeeDetailInfo.allOweAmount}} + + + +
+
+
+
+
+
+ 费用开始时间:所创建费用的计费起始时间 +
+
欠费时长(天):押金费用项欠费时长是费用开始时间到当天的天数
+
除押金外的费用项欠费时长是费用的开始时间到费用的结束时间的天数
+
欠费金额:欠费周期内应缴费用
+
+
+ +
+
+
+
+
+
+
\ No newline at end of file diff --git a/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.js b/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.js new file mode 100644 index 000000000..8b7b1a575 --- /dev/null +++ b/public/pages/fee/adminOweFeeDetail/adminOweFeeDetail.js @@ -0,0 +1,132 @@ +/** + 入驻小区 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + adminOweFeeDetailInfo: { + fees: [], + floors: [], + total: 0, + records: 1, + moreCondition: false, + title: '', + feeTypeCds: [], + communitys:[], + totalPreferentialAmount: 0.0, + allOweAmount: 0.0, + conditions: { + floorId: '', + floorName: '', + roomNum: '', + objNameLike: '', + feeTypeCd: '', + startTime: '', + endTime: '', + communityId: '', + ownerNameLike:'', + } + } + }, + _initMethod: function () { + vc.emit('communityFloorTree', 'initCommunityFloorTree',{ + callName:'adminOweFeeDetail' + }) + vc.initDate('startTime',function(_value){ + $that.adminOweFeeDetailInfo.conditions.startTime = _value; + }); + vc.initDate('endTime',function(_value){ + $that.adminOweFeeDetailInfo.conditions.endTime = _value; + }); + vc.getDict('pay_fee_config', "fee_type_cd", function (_data) { + $that.adminOweFeeDetailInfo.feeTypeCds = _data + }); + $that._listOweFees(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _initEvent: function () { + vc.on('adminOweFeeDetail', 'selectCommunity', function (_param) { + $that.adminOweFeeDetailInfo.conditions.communityId = _param.communityId; + $that.adminOweFeeDetailInfo.conditions.floorId = ''; + $that._listOweFees(DEFAULT_PAGE,DEFAULT_ROWS); + }); + vc.on('adminOweFeeDetail', 'selectFloor', function (_param) { + $that.adminOweFeeDetailInfo.conditions.communityId = ''; + $that.adminOweFeeDetailInfo.conditions.floorId = _param.floorId; + $that._listOweFees(DEFAULT_PAGE,DEFAULT_ROWS); + + }); + vc.on('pagination', 'page_event', function (_currentPage) { + $that._listOweFees(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + //查询 + _queryMethod: function () { + $that._listOweFees(DEFAULT_PAGE, DEFAULT_ROWS); + }, + //重置 + _resetMethod: function () { + $that._resetFees(DEFAULT_PAGE, DEFAULT_ROWS); + }, + //查询方法 + _listOweFees: function (_page, _rows) { + $that.adminOweFeeDetailInfo.conditions.page = _page; + $that.adminOweFeeDetailInfo.conditions.row = _rows; + let param = { + params: $that.adminOweFeeDetailInfo.conditions + }; + //发送get请求 + vc.http.apiGet('/fee.queryAdminOweFeeDetail', + param, + function (json, res) { + let _json = JSON.parse(json); + $that.adminOweFeeDetailInfo.total = _json.total; + $that.adminOweFeeDetailInfo.records = _json.records; + $that.adminOweFeeDetailInfo.fees = _json.data; + //计算小计 + let _totalPreferentialAmount = 0.0; + _json.data.forEach(item => { + _totalPreferentialAmount += parseFloat(item.oweAmount); + }); + $that.adminOweFeeDetailInfo.totalPreferentialAmount = _totalPreferentialAmount.toFixed(2); + if (_json.data.length > 0) { + $that.adminOweFeeDetailInfo.allOweAmount = _json.data[0].allOweAmount; + } else { + $that.adminOweFeeDetailInfo.allOweAmount = 0.0.toFixed(2); + } + vc.emit('pagination', 'init', { + total: $that.adminOweFeeDetailInfo.records, + dataCount: $that.adminOweFeeDetailInfo.total, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + //重置方法 + _resetFees: function (_page, _rows) { + $that.adminOweFeeDetailInfo.conditions.floorName = ""; + $that.adminOweFeeDetailInfo.conditions.floorId = ""; + $that.adminOweFeeDetailInfo.conditions.objName = ""; + $that.adminOweFeeDetailInfo.conditions.startTime = ""; + $that.adminOweFeeDetailInfo.conditions.endTime = ""; + $that.adminOweFeeDetailInfo.roomUnits = []; + $that._listOweFees(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _moreCondition: function () { + if ($that.adminOweFeeDetailInfo.moreCondition) { + $that.adminOweFeeDetailInfo.moreCondition = false; + } else { + $that.adminOweFeeDetailInfo.moreCondition = true; + } + }, + // _exportExcel: function () { + // vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=adminOweFeeDetail&' + vc.objToGetParam($that.adminOweFeeDetailInfo.conditions)); + // }, + + } + }); +})(window.vc);