zhangjq
2026-01-27 6f51f667ae7b13dca029045c221d0b1722cf98df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
 入驻小区
 **/
(function (vc) {
    var DEFAULT_PAGE = 1;
    var DEFAULT_ROWS = 10;
    vc.extends({
        data: {
            reportFeeDetailOwnerInfo: {
                fees: [],
                feeTypeCds: [],
                conditions: {},
                total: 0,
                records: 0
            }
        },
        _initMethod: function () {
            vc.getDict('pay_fee_config', "fee_type_cd_show", function (_data) {
                vc.component.reportFeeDetailOwnerInfo.feeTypeCds = _data;
            });
        },
        _initEvent: function () {
            vc.on('reportFeeDetailOwner', 'switch', function (_data) {
                vc.component.reportFeeDetailOwnerInfo.conditions = _data;
                vc.component._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS);
            });
            vc.on('reportFeeDetailOwner', 'notify', function (_data) {
                vc.component.reportFeeDetailOwnerInfo.conditions = _data;
                vc.component._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS);
            });
            vc.on('reportFeeDetailOwner', 'paginationPlus', 'page_event', function (_currentPage) {
                vc.component._listReportFeeDetailOwners(_currentPage, DEFAULT_ROWS);
            });
        },
        methods: {
            _listReportFeeDetailOwners: function (_page, _rows) {
                vc.component.reportFeeDetailOwnerInfo.conditions.page = _page;
                vc.component.reportFeeDetailOwnerInfo.conditions.row = _rows;
                vc.component.reportFeeDetailOwnerInfo.conditions.floorId = vc.component.reportFeeDetailOwnerInfo.floorId;
                let param = {
                    params: vc.component.reportFeeDetailOwnerInfo.conditions
                };
                //发送get请求
                vc.http.apiGet('/reportFeeMonthStatistics.queryReportFeeDetailOwner',
                    param,
                    function (json, res) {
                        let _json = JSON.parse(json);
                        vc.component.reportFeeDetailOwnerInfo.total = _json.total;
                        vc.component.reportFeeDetailOwnerInfo.records = _json.records;
                        vc.component.reportFeeDetailOwnerInfo.fees = _json.data;
                        vc.emit('reportFeeDetailOwner', 'paginationPlus', 'init', {
                            total: vc.component.reportFeeDetailOwnerInfo.records,
                            dataCount: vc.component.reportFeeDetailOwnerInfo.total,
                            currentPage: _page,
                        });
                    },
                    function (errInfo, error) {
                        console.log('请求失败处理:', errInfo, error);
                    }
                );
            },
            _exportReportFeeDetailOwnerExcel: function() {
                vc.component.reportFeeDetailOwnerInfo.conditions.pagePath = 'reportFeeDetailOwner';
                let param = {
                    params: vc.component.reportFeeDetailOwnerInfo.conditions
                };
                //发送get请求
                vc.http.apiGet('/export.exportData', param,
                    function (json, res) {
                        let _json = JSON.parse(json);
                        vc.toast(_json.msg);
                        if (_json.code == 0) {
                            vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心');
                        }
                    },
                    function (errInfo, error) {
                        console.log('请求失败处理:', errInfo, error);
                    }
                );
            }
        }
    });
})(window.vc);