zhangjq
2026-01-27 6f51f667ae7b13dca029045c221d0b1722cf98df
public/pages/property/reportFeeDetail/reportFeeDetail.js
@@ -20,11 +20,11 @@
            }
        },
        _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) {
@@ -33,10 +33,10 @@
        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;
@@ -46,7 +46,7 @@
                } 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) {
@@ -54,15 +54,15 @@
                } 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 () {
@@ -72,8 +72,8 @@
                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 = {
@@ -88,7 +88,7 @@
                    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('请求失败处理');
@@ -96,7 +96,7 @@
                );
            },
            _changCommunity: function () {
                $that.changeTab($that.reportFeeDetailInfo._currentTab);
                vc.component.changeTab(vc.component.reportFeeDetailInfo._currentTab);
            },
            _moreCondition: function () {
                if (vc.component.reportFeeDetailInfo.moreCondition) {