From 8deb9e810346c5c635524b78a4ed62e0f51beebc Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Fri, 16 Oct 2020 17:37:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=B4=B9=E7=94=A8=E6=B1=87?=
=?UTF-8?q?=E6=80=BB=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reportFeeSummary/reportFeeSummary.html | 106 ++++++++++++++++++
.../reportFeeSummary/reportFeeSummary.js | 97 ++++++++++++++++
2 files changed, 203 insertions(+)
create mode 100644 public/pages/property/reportFeeSummary/reportFeeSummary.html
create mode 100644 public/pages/property/reportFeeSummary/reportFeeSummary.js
diff --git a/public/pages/property/reportFeeSummary/reportFeeSummary.html b/public/pages/property/reportFeeSummary/reportFeeSummary.html
new file mode 100644
index 000000000..6f2d67988
--- /dev/null
+++ b/public/pages/property/reportFeeSummary/reportFeeSummary.html
@@ -0,0 +1,106 @@
+
+
+
+
+
+
查询条件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/reportFeeSummary/reportFeeSummary.js b/public/pages/property/reportFeeSummary/reportFeeSummary.js
new file mode 100644
index 000000000..50eaf06c4
--- /dev/null
+++ b/public/pages/property/reportFeeSummary/reportFeeSummary.js
@@ -0,0 +1,97 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ reportFeeSummaryInfo: {
+ fees: [],
+ total: 0,
+ records: 1,
+ moreCondition: false,
+ title: '',
+ roomUnits: [],
+ conditions: {
+ floorId: '',
+ floorName: '',
+ roomNum: '',
+ unitId: '',
+ startTime:'',
+ endTime:''
+ }
+ }
+ },
+ _initMethod: function () {
+ vc.component._listActivitiess(DEFAULT_PAGE, DEFAULT_ROWS);
+
+ },
+ _initEvent: function () {
+
+ vc.on('reportFeeSummary', 'chooseFloor', function (_param) {
+ vc.component.reportFeeSummaryInfo.conditions.floorId = _param.floorId;
+ vc.component.reportFeeSummaryInfo.conditions.floorName = _param.floorName;
+ vc.component.loadUnits(_param.floorId);
+
+ });
+ vc.on('pagination', 'page_event', function (_currentPage) {
+ vc.component._listActivitiess(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _listActivitiess: function (_page, _rows) {
+
+ vc.component.reportFeeSummaryInfo.conditions.page = _page;
+ vc.component.reportFeeSummaryInfo.conditions.row = _rows;
+ vc.component.reportFeeSummaryInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
+ var param = {
+ params: vc.component.reportFeeSummaryInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.get('reportFeeSummary',
+ 'list',
+ param,
+ function (json, res) {
+ var _reportFeeSummaryInfo = JSON.parse(json);
+ vc.component.reportFeeSummaryInfo.total = _reportFeeSummaryInfo.total;
+ vc.component.reportFeeSummaryInfo.records = _reportFeeSummaryInfo.records;
+ vc.component.reportFeeSummaryInfo.activitiess = _reportFeeSummaryInfo.activitiess;
+ vc.emit('pagination', 'init', {
+ total: vc.component.reportFeeSummaryInfo.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.reportFeeSummaryInfo.roomUnits = tmpUnits;
+ return;
+ }
+ vc.toast(json);
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ }
+ });
+})(window.vc);