/** 入驻小区 **/ (function (vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ data: { reportFeeDetailOwnerInfo: { fees: [], feeTypeCds: [], conditions: {}, total: 0, records: 0 } }, _initMethod: function () { vc.getDict('pay_fee_config', "fee_type_cd_show", function (_data) { vc.component.reportFeeDetailOwnerInfo.feeTypeCds = _data; }); }, _initEvent: function () { vc.on('reportFeeDetailOwner', 'switch', function (_data) { vc.component.reportFeeDetailOwnerInfo.conditions = _data; vc.component._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS); }); vc.on('reportFeeDetailOwner', 'notify', function (_data) { vc.component.reportFeeDetailOwnerInfo.conditions = _data; vc.component._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS); }); vc.on('reportFeeDetailOwner', 'paginationPlus', 'page_event', function (_currentPage) { vc.component._listReportFeeDetailOwners(_currentPage, DEFAULT_ROWS); }); }, methods: { _listReportFeeDetailOwners: function (_page, _rows) { vc.component.reportFeeDetailOwnerInfo.conditions.page = _page; vc.component.reportFeeDetailOwnerInfo.conditions.row = _rows; vc.component.reportFeeDetailOwnerInfo.conditions.floorId = vc.component.reportFeeDetailOwnerInfo.floorId; let param = { params: vc.component.reportFeeDetailOwnerInfo.conditions }; //发送get请求 vc.http.apiGet('/reportFeeMonthStatistics.queryReportFeeDetailOwner', param, function (json, res) { let _json = JSON.parse(json); vc.component.reportFeeDetailOwnerInfo.total = _json.total; vc.component.reportFeeDetailOwnerInfo.records = _json.records; vc.component.reportFeeDetailOwnerInfo.fees = _json.data; vc.emit('reportFeeDetailOwner', 'paginationPlus', 'init', { total: vc.component.reportFeeDetailOwnerInfo.records, dataCount: vc.component.reportFeeDetailOwnerInfo.total, currentPage: _page, }); }, function (errInfo, error) { console.log('请求失败处理:', errInfo, error); } ); }, _exportReportFeeDetailOwnerExcel: function() { vc.component.reportFeeDetailOwnerInfo.conditions.pagePath = 'reportFeeDetailOwner'; let param = { params: vc.component.reportFeeDetailOwnerInfo.conditions }; //发送get请求 vc.http.apiGet('/export.exportData', param, function (json, res) { let _json = JSON.parse(json); vc.toast(_json.msg); if (_json.code == 0) { vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心'); } }, function (errInfo, error) { console.log('请求失败处理:', errInfo, error); } ); } } }); })(window.vc);