| | |
| | | } |
| | | }, |
| | | _initMethod: function () { |
| | | $that._initDate(); |
| | | $that._loadStaffCommunitys(); |
| | | $that.reportFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId; |
| | | $that.reportFeeDetailInfo.conditions.communityName = vc.getCurrentCommunity().name; |
| | | $that.changeTab($that.reportFeeDetailInfo._currentTab); |
| | | vc.component._initDate(); |
| | | vc.component._loadStaffCommunitys(); |
| | | vc.component.reportFeeDetailInfo.conditions.communityId = vc.getCurrentCommunity().communityId; |
| | | vc.component.reportFeeDetailInfo.conditions.communityName = vc.getCurrentCommunity().name; |
| | | vc.component.changeTab(vc.component.reportFeeDetailInfo._currentTab); |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on("indexContext", "_queryIndexContextData", function (_param) { |
| | |
| | | methods: { |
| | | _initDate: function () { |
| | | vc.initDate('startDate', function (_value) { |
| | | $that.reportFeeDetailInfo.conditions.startDate = _value; |
| | | vc.component.reportFeeDetailInfo.conditions.startDate = _value; |
| | | }); |
| | | vc.initDate('endDate', function (_value) { |
| | | $that.reportFeeDetailInfo.conditions.endDate = _value; |
| | | vc.component.reportFeeDetailInfo.conditions.endDate = _value; |
| | | }); |
| | | let _data = new Date(); |
| | | let _month = _data.getMonth() + 1; |
| | |
| | | } else { |
| | | _newDate = _data.getFullYear() + "-" + _month + "-01"; |
| | | } |
| | | $that.reportFeeDetailInfo.conditions.startDate = _newDate; |
| | | vc.component.reportFeeDetailInfo.conditions.startDate = _newDate; |
| | | _data.setMonth(_data.getMonth() + 1); |
| | | _month = _data.getMonth() + 1; |
| | | if (_month < 10) { |
| | |
| | | } else { |
| | | _newDate = _data.getFullYear() + "-" + _month + "-01"; |
| | | } |
| | | $that.reportFeeDetailInfo.conditions.endDate = _newDate; |
| | | vc.component.reportFeeDetailInfo.conditions.endDate = _newDate; |
| | | }, |
| | | changeTab: function (_tab) { |
| | | $that.reportFeeDetailInfo._currentTab = _tab; |
| | | vc.emit(_tab, 'switch', $that.reportFeeDetailInfo.conditions) |
| | | vc.component.reportFeeDetailInfo._currentTab = _tab; |
| | | vc.emit(_tab, 'switch', vc.component.reportFeeDetailInfo.conditions) |
| | | }, |
| | | //查询 |
| | | _queryMethod: function () { |
| | | $that.changeTab($that.reportFeeDetailInfo._currentTab); |
| | | vc.component.changeTab(vc.component.reportFeeDetailInfo._currentTab); |
| | | }, |
| | | //重置 |
| | | _resetMethod: function () { |
| | |
| | | vc.component.reportFeeDetailInfo.conditions.ownerName = ""; |
| | | vc.component.reportFeeDetailInfo.conditions.link = ""; |
| | | // vc.component.reportFeeDetailInfo.conditions.communityId = ""; |
| | | $that._initDate(); |
| | | $that.changeTab($that.reportFeeDetailInfo._currentTab); |
| | | vc.component._initDate(); |
| | | vc.component.changeTab(vc.component.reportFeeDetailInfo._currentTab); |
| | | }, |
| | | _loadStaffCommunitys: function () { |
| | | let param = { |
| | |
| | | function (json, res) { |
| | | if (res.status == 200) { |
| | | let _data = JSON.parse(json); |
| | | $that.reportFeeDetailInfo.communitys = _data.communitys; |
| | | vc.component.reportFeeDetailInfo.communitys = _data.communitys; |
| | | } |
| | | }, function () { |
| | | console.log('请求失败处理'); |
| | |
| | | ); |
| | | }, |
| | | _changCommunity: function () { |
| | | $that.changeTab($that.reportFeeDetailInfo._currentTab); |
| | | vc.component.changeTab(vc.component.reportFeeDetailInfo._currentTab); |
| | | }, |
| | | _moreCondition: function () { |
| | | if (vc.component.reportFeeDetailInfo.moreCondition) { |