From 4de4f60098cb862035970a4f268276f20f0205cb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Sat, 17 Oct 2020 18:56:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=8A=A5=E8=A1=A8=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reportFeeBreakdown.html | 110 +++++++++++++++++
.../reportFeeBreakdown/reportFeeBreakdown.js | 99 +++++++++++++++
.../reportFeeDetail/reportFeeDetail.html | 113 ++++++++++++++++++
.../reportFeeDetail/reportFeeDetail.js | 99 +++++++++++++++
.../reportFeeSummary/reportFeeSummary.html | 8 +-
.../reportFeeSummary/reportFeeSummary.js | 14 ++-
.../reportFloorUnitFeeSummary.html | 110 +++++++++++++++++
.../reportFloorUnitFeeSummary.js | 99 +++++++++++++++
8 files changed, 642 insertions(+), 10 deletions(-)
create mode 100644 public/pages/property/reportFeeBreakdown/reportFeeBreakdown.html
create mode 100644 public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
create mode 100644 public/pages/property/reportFeeDetail/reportFeeDetail.html
create mode 100644 public/pages/property/reportFeeDetail/reportFeeDetail.js
create mode 100644 public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.html
create mode 100644 public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js
diff --git a/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.html b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.html
new file mode 100644
index 000000000..f4f005c00
--- /dev/null
+++ b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.html
@@ -0,0 +1,110 @@
+
+
+
+
+
+
查询条件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
new file mode 100644
index 000000000..b586ec44e
--- /dev/null
+++ b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
@@ -0,0 +1,99 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ reportFeeBreakdownInfo: {
+ 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('reportFeeBreakdown', 'chooseFloor', function (_param) {
+ vc.component.reportFeeBreakdownInfo.conditions.floorId = _param.floorId;
+ vc.component.reportFeeBreakdownInfo.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.reportFeeBreakdownInfo.conditions.page = _page;
+ vc.component.reportFeeBreakdownInfo.conditions.row = _rows;
+ vc.component.reportFeeBreakdownInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
+ var param = {
+ params: vc.component.reportFeeBreakdownInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('/reportFeeMonthStatistics/queryFeeBreakdown',
+ param,
+ function (json, res) {
+ var _reportFeeBreakdownInfo = JSON.parse(json);
+ vc.component.reportFeeBreakdownInfo.total = _reportFeeBreakdownInfo.total;
+ vc.component.reportFeeBreakdownInfo.records = _reportFeeBreakdownInfo.records;
+ vc.component.reportFeeBreakdownInfo.fees = _reportFeeBreakdownInfo.data;
+ vc.emit('pagination', 'init', {
+ total: vc.component.reportFeeBreakdownInfo.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.reportFeeBreakdownInfo.roomUnits = tmpUnits;
+ return;
+ }
+ vc.toast(json);
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/reportFeeDetail/reportFeeDetail.html b/public/pages/property/reportFeeDetail/reportFeeDetail.html
new file mode 100644
index 000000000..1f1e83c95
--- /dev/null
+++ b/public/pages/property/reportFeeDetail/reportFeeDetail.html
@@ -0,0 +1,113 @@
+
+
+
+
+
+
查询条件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/reportFeeDetail/reportFeeDetail.js b/public/pages/property/reportFeeDetail/reportFeeDetail.js
new file mode 100644
index 000000000..2ac913beb
--- /dev/null
+++ b/public/pages/property/reportFeeDetail/reportFeeDetail.js
@@ -0,0 +1,99 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ reportFeeDetailInfo: {
+ 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('reportFeeDetail', 'chooseFloor', function (_param) {
+ vc.component.reportFeeDetailInfo.conditions.floorId = _param.floorId;
+ vc.component.reportFeeDetailInfo.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.reportFeeDetailInfo.conditions.page = _page;
+ vc.component.reportFeeDetailInfo.conditions.row = _rows;
+ vc.component.reportFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
+ var param = {
+ params: vc.component.reportFeeDetailInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('/reportFeeMonthStatistics/queryFeeDetail',
+ param,
+ function (json, res) {
+ var _reportFeeDetailInfo = JSON.parse(json);
+ vc.component.reportFeeDetailInfo.total = _reportFeeDetailInfo.total;
+ vc.component.reportFeeDetailInfo.records = _reportFeeDetailInfo.records;
+ vc.component.reportFeeDetailInfo.fees = _reportFeeDetailInfo.data;
+ vc.emit('pagination', 'init', {
+ total: vc.component.reportFeeDetailInfo.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.reportFeeDetailInfo.roomUnits = tmpUnits;
+ return;
+ }
+ vc.toast(json);
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ }
+ });
+})(window.vc);
diff --git a/public/pages/property/reportFeeSummary/reportFeeSummary.html b/public/pages/property/reportFeeSummary/reportFeeSummary.html
index 6f2d67988..b4b4619d4 100644
--- a/public/pages/property/reportFeeSummary/reportFeeSummary.html
+++ b/public/pages/property/reportFeeSummary/reportFeeSummary.html
@@ -27,7 +27,7 @@
-
-
@@ -81,7 +81,7 @@
- | {{fee.feeDate}} |
+ {{fee.feeYear+'年'+fee.feeMonth+'月'}} |
{{fee.receivableAmount}} |
{{fee.receivedAmount}} |
{{fee.oweAmount}} |
diff --git a/public/pages/property/reportFeeSummary/reportFeeSummary.js b/public/pages/property/reportFeeSummary/reportFeeSummary.js
index 50eaf06c4..3521d468b 100644
--- a/public/pages/property/reportFeeSummary/reportFeeSummary.js
+++ b/public/pages/property/reportFeeSummary/reportFeeSummary.js
@@ -24,7 +24,7 @@
}
},
_initMethod: function () {
- vc.component._listActivitiess(DEFAULT_PAGE, DEFAULT_ROWS);
+ vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
},
_initEvent: function () {
@@ -36,11 +36,14 @@
});
vc.on('pagination', 'page_event', function (_currentPage) {
- vc.component._listActivitiess(_currentPage, DEFAULT_ROWS);
+ vc.component._listFees(_currentPage, DEFAULT_ROWS);
});
},
methods: {
- _listActivitiess: function (_page, _rows) {
+ _queryMethod:function(){
+ vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _listFees: function (_page, _rows) {
vc.component.reportFeeSummaryInfo.conditions.page = _page;
vc.component.reportFeeSummaryInfo.conditions.row = _rows;
@@ -50,14 +53,13 @@
};
//发送get请求
- vc.http.get('reportFeeSummary',
- 'list',
+ vc.http.apiGet('/reportFeeMonthStatistics/queryReportFeeSummary',
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.component.reportFeeSummaryInfo.fees = _reportFeeSummaryInfo.data;
vc.emit('pagination', 'init', {
total: vc.component.reportFeeSummaryInfo.records,
currentPage: _page
diff --git a/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.html b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.html
new file mode 100644
index 000000000..41821fd52
--- /dev/null
+++ b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.html
@@ -0,0 +1,110 @@
+
+
+
+
+
+
查询条件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js
new file mode 100644
index 000000000..8d00cfa22
--- /dev/null
+++ b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js
@@ -0,0 +1,99 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ reportFloorUnitFeeSummaryInfo: {
+ 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('reportFloorUnitFeeSummary', 'chooseFloor', function (_param) {
+ vc.component.reportFloorUnitFeeSummaryInfo.conditions.floorId = _param.floorId;
+ vc.component.reportFloorUnitFeeSummaryInfo.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.reportFloorUnitFeeSummaryInfo.conditions.page = _page;
+ vc.component.reportFloorUnitFeeSummaryInfo.conditions.row = _rows;
+ vc.component.reportFloorUnitFeeSummaryInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
+ var param = {
+ params: vc.component.reportFloorUnitFeeSummaryInfo.conditions
+ };
+
+ //发送get请求
+ vc.http.apiGet('/reportFeeMonthStatistics/queryFloorUnitFeeSummary',
+ param,
+ function (json, res) {
+ var _reportFloorUnitFeeSummaryInfo = JSON.parse(json);
+ vc.component.reportFloorUnitFeeSummaryInfo.total = _reportFloorUnitFeeSummaryInfo.total;
+ vc.component.reportFloorUnitFeeSummaryInfo.records = _reportFloorUnitFeeSummaryInfo.records;
+ vc.component.reportFloorUnitFeeSummaryInfo.fees = _reportFloorUnitFeeSummaryInfo.data;
+ vc.emit('pagination', 'init', {
+ total: vc.component.reportFloorUnitFeeSummaryInfo.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.reportFloorUnitFeeSummaryInfo.roomUnits = tmpUnits;
+ return;
+ }
+ vc.toast(json);
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ vc.toast(errInfo);
+ });
+ },
+ }
+ });
+})(window.vc);