diff --git a/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
index 723055df4..e18e4f6bc 100755
--- a/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
+++ b/public/pages/property/reportFeeBreakdown/reportFeeBreakdown.js
@@ -1,7 +1,7 @@
/**
入驻小区
**/
-(function (vc) {
+(function(vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 10;
vc.extends({
@@ -36,28 +36,28 @@
}
}
},
- _initMethod: function () {
+ _initMethod: function() {
//vc.component._initDate();
- $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
$that.reportFeeBreakdownInfo.conditions.yearMonth = $that._getCurrentMonth();
+ $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
//关联字典表费用类型
- vc.getDict('pay_fee_config', "fee_type_cd", function (_data) {
+ vc.getDict('pay_fee_config', "fee_type_cd", function(_data) {
vc.component.reportFeeBreakdownInfo.feeTypeCds = _data;
});
},
- _initEvent: function () {
- vc.on('reportFeeBreakdown', 'chooseFloor', function (_param) {
+ _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.on('pagination', 'page_event', function(_currentPage) {
vc.component._listFees(_currentPage, DEFAULT_ROWS);
});
},
methods: {
- _initDate: function () {
+ _initDate: function() {
$(".startTime").datetimepicker({
minView: "month",
language: 'zh-CN',
@@ -79,12 +79,12 @@
todayBtn: true
});
$('.startTime').datetimepicker()
- .on('changeDate', function (ev) {
+ .on('changeDate', function(ev) {
var value = $(".startTime").val();
vc.component.reportFeeBreakdownInfo.conditions.startTime = value;
});
$('.endTime').datetimepicker()
- .on('changeDate', function (ev) {
+ .on('changeDate', function(ev) {
var value = $(".endTime").val();
vc.component.reportFeeBreakdownInfo.conditions.endTime = value;
let start = Date.parse(new Date($that.reportFeeBreakdownInfo.conditions.startTime))
@@ -108,11 +108,11 @@
}
},
//查询
- _queryMethod: function () {
+ _queryMethod: function() {
vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
},
//查询方法
- _listFees: function (_page, _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;
@@ -122,7 +122,7 @@
//发送get请求
vc.http.apiGet('/reportFeeMonthStatistics/queryFeeBreakdown',
param,
- function (json, res) {
+ function(json, res) {
var _reportFeeBreakdownInfo = JSON.parse(json);
vc.component.reportFeeBreakdownInfo.total = _reportFeeBreakdownInfo.total;
vc.component.reportFeeBreakdownInfo.records = _reportFeeBreakdownInfo.records;
@@ -158,17 +158,18 @@
dataCount: vc.component.reportFeeBreakdownInfo.total,
currentPage: _page
});
- }, function (errInfo, error) {
+ },
+ function(errInfo, error) {
console.log('请求失败处理');
}
);
},
//重置
- _resetMethod: function () {
+ _resetMethod: function() {
vc.component._resetListFee(DEFAULT_PAGE, DEFAULT_ROWS);
},
//重置方法
- _resetListFee: function (_page, _rows) {
+ _resetListFee: function(_page, _rows) {
vc.component.reportFeeBreakdownInfo.conditions.floorId = "";
vc.component.reportFeeBreakdownInfo.conditions.floorName = "";
vc.component.reportFeeBreakdownInfo.conditions.unitId = "";
@@ -179,7 +180,7 @@
vc.component.reportFeeBreakdownInfo.conditions.feeTypeCd = "";
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);
},
- loadUnits: function (_floorId) {
+ loadUnits: function(_floorId) {
let param = {
params: {
floorId: _floorId,
@@ -190,7 +191,7 @@
'room',
'loadUnits',
param,
- function (json, res) {
+ function(json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) {
let tmpUnits = JSON.parse(json);
@@ -199,35 +200,35 @@
}
vc.toast(json);
},
- function (errInfo, error) {
+ function(errInfo, error) {
console.log('请求失败处理');
vc.toast(errInfo);
});
},
- _openChooseFloorMethod: function () {
+ _openChooseFloorMethod: function() {
vc.emit('searchFloor', 'openSearchFloorModel', {});
},
- _moreCondition: function () {
+ _moreCondition: function() {
if (vc.component.reportFeeBreakdownInfo.moreCondition) {
vc.component.reportFeeBreakdownInfo.moreCondition = false;
} else {
vc.component.reportFeeBreakdownInfo.moreCondition = true;
}
},
- _exportExcel: function () {
+ _exportExcel: function() {
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportFeeBreakdown&' + vc.objToGetParam($that.reportFeeBreakdownInfo.conditions));
},
- _computeSum: function (a, b) {
+ _computeSum: function(a, b) {
return (parseFloat(a) + parseFloat(b)).toFixed(2)
},
- _computeOweFee: function (fee) {
+ _computeOweFee: function(fee) {
let _oweFee = (parseFloat(fee.hisOweAmount) + parseFloat(fee.curReceivableAmount) - parseFloat(fee.curReceivedAmount) - parseFloat(fee.hisOweReceivedAmount)).toFixed(2);
if (_oweFee < 0) {
return 0;
}
return _oweFee;
},
- _computeTotalOweAmount: function () {
+ _computeTotalOweAmount: function() {
if (!window.$that) {
return 0;
}
@@ -241,7 +242,7 @@
console.log(_amount)
return _amount.toFixed(2);
},
- _getCurrentMonth: function () {
+ _getCurrentMonth: function() {
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
@@ -252,7 +253,7 @@
return year + '' + month;
},
- _computeTotalHisOweReceivedAmount: function () {
+ _computeTotalHisOweReceivedAmount: function() {
if (!window.$that) {
return 0;
}
@@ -267,4 +268,4 @@
}
}
});
-})(window.vc);
+})(window.vc);
\ No newline at end of file
diff --git a/public/pages/property/roomCreateFee/roomCreateFee.html b/public/pages/property/roomCreateFee/roomCreateFee.html
index d0a87ed7a..917a4e3b2 100755
--- a/public/pages/property/roomCreateFee/roomCreateFee.html
+++ b/public/pages/property/roomCreateFee/roomCreateFee.html
@@ -31,7 +31,7 @@
-