|
36 | 36 | }
|
37 | 37 | },
|
38 | 38 | _initMethod: function () {
|
39 |
| - // vc.component.initFeeConfig(); |
40 |
| - vc.component._initDate(); |
| 39 | + // $that.initFeeConfig(); |
| 40 | + $that._initDate(); |
41 | 41 | //与字典表收费状态关联
|
42 | 42 | vc.getDict('pay_fee', "state", function (_data) {
|
43 |
| - vc.component.reportPayFeeDepositInfo.states = _data; |
| 43 | + $that.reportPayFeeDepositInfo.states = _data; |
44 | 44 | });
|
45 | 45 | //与字典表付费对象类型关联
|
46 | 46 | vc.getDict('pay_fee', "payer_obj_type", function (_data) {
|
47 |
| - vc.component.reportPayFeeDepositInfo.payerObjTypes = _data; |
| 47 | + $that.reportPayFeeDepositInfo.payerObjTypes = _data; |
48 | 48 | });
|
49 | 49 | //与字典表退费状态关联
|
50 | 50 | vc.getDict('pay_fee_detail', "state", function (_data) {
|
51 |
| - vc.component.reportPayFeeDepositInfo.detailStates = _data; |
| 51 | + $that.reportPayFeeDepositInfo.detailStates = _data; |
52 | 52 | });
|
53 |
| - vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
| 53 | + $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
54 | 54 | $(".popover-show").mouseover(() => {
|
55 | 55 | $('.popover-show').popover('show');
|
56 | 56 | })
|
|
60 | 60 | },
|
61 | 61 | _initEvent: function () {
|
62 | 62 | vc.on('reportPayFeeDeposit', 'chooseFloor', function (_param) {
|
63 |
| - vc.component.reportPayFeeDepositInfo.conditions.floorId = _param.floorId; |
64 |
| - vc.component.reportPayFeeDepositInfo.conditions.floorName = _param.floorName; |
65 |
| - vc.component.loadUnits(_param.floorId); |
| 63 | + $that.reportPayFeeDepositInfo.conditions.floorId = _param.floorId; |
| 64 | + $that.reportPayFeeDepositInfo.conditions.floorName = _param.floorName; |
| 65 | + $that.loadUnits(_param.floorId); |
66 | 66 | });
|
67 | 67 | vc.on('pagination', 'page_event', function (_currentPage) {
|
68 |
| - vc.component._listFees(_currentPage, DEFAULT_ROWS); |
| 68 | + $that._listFees(_currentPage, DEFAULT_ROWS); |
69 | 69 | });
|
70 | 70 | },
|
71 | 71 | methods: {
|
|
93 | 93 | $('.startTime').datetimepicker()
|
94 | 94 | .on('changeDate', function (ev) {
|
95 | 95 | var value = $(".startTime").val();
|
96 |
| - vc.component.reportPayFeeDepositInfo.conditions.startTime = value; |
| 96 | + $that.reportPayFeeDepositInfo.conditions.startTime = value; |
97 | 97 | });
|
98 | 98 | $('.endTime').datetimepicker()
|
99 | 99 | .on('changeDate', function (ev) {
|
100 | 100 | var value = $(".endTime").val();
|
101 |
| - vc.component.reportPayFeeDepositInfo.conditions.endTime = value; |
| 101 | + $that.reportPayFeeDepositInfo.conditions.endTime = value; |
102 | 102 | let start = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.startTime))
|
103 | 103 | let end = Date.parse(new Date($that.reportPayFeeDepositInfo.conditions.endTime))
|
104 | 104 | if (start - end >= 0) {
|
|
121 | 121 | },
|
122 | 122 | //查询
|
123 | 123 | _queryMethod: function () {
|
124 |
| - vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
| 124 | + $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
125 | 125 | },
|
126 | 126 | //查询方法
|
127 | 127 | _listFees: function (_page, _rows) {
|
128 |
| - vc.component.reportPayFeeDepositInfo.conditions.page = _page; |
129 |
| - vc.component.reportPayFeeDepositInfo.conditions.row = _rows; |
130 |
| - var param = { |
131 |
| - params: vc.component.reportPayFeeDepositInfo.conditions |
| 128 | + $that.reportPayFeeDepositInfo.conditions.page = _page; |
| 129 | + $that.reportPayFeeDepositInfo.conditions.row = _rows; |
| 130 | + let param = { |
| 131 | + params: $that.reportPayFeeDepositInfo.conditions |
132 | 132 | };
|
133 | 133 | param.params.feeId = param.params.feeId.trim();
|
134 | 134 | //发送get请求
|
135 | 135 | vc.http.apiGet('/reportFeeMonthStatistics/queryPayFeeDeposit',
|
136 | 136 | param,
|
137 | 137 | function (json, res) {
|
138 |
| - var _reportPayFeeDepositInfo = JSON.parse(json); |
139 |
| - vc.component.reportPayFeeDepositInfo.total = _reportPayFeeDepositInfo.total; |
140 |
| - vc.component.reportPayFeeDepositInfo.records = _reportPayFeeDepositInfo.records; |
141 |
| - vc.component.reportPayFeeDepositInfo.depositFees = _reportPayFeeDepositInfo.data; |
142 |
| - vc.component.reportPayFeeDepositInfo.sumTotal = _reportPayFeeDepositInfo.sumTotal; |
143 |
| - if (_reportPayFeeDepositInfo.data.length > 0) { |
144 |
| - vc.component.reportPayFeeDepositInfo.feeConfigs = _reportPayFeeDepositInfo.data[0].feeConfigDtos |
| 138 | + let _json = JSON.parse(json); |
| 139 | + $that.reportPayFeeDepositInfo.total = _json.total; |
| 140 | + $that.reportPayFeeDepositInfo.records = _json.records; |
| 141 | + $that.reportPayFeeDepositInfo.depositFees = _json.data; |
| 142 | + $that.reportPayFeeDepositInfo.sumTotal = _json.sumTotal; |
| 143 | + if (_json.data.length > 0) { |
| 144 | + $that.reportPayFeeDepositInfo.feeConfigs = _json.data[0].feeConfigDtos |
145 | 145 | }
|
146 | 146 | vc.emit('pagination', 'init', {
|
147 |
| - total: vc.component.reportPayFeeDepositInfo.records, |
| 147 | + total: $that.reportPayFeeDepositInfo.records, |
148 | 148 | currentPage: _page,
|
149 |
| - dataCount: vc.component.reportPayFeeDepositInfo.total |
| 149 | + dataCount: $that.reportPayFeeDepositInfo.total |
150 | 150 | });
|
151 | 151 | },
|
152 | 152 | function (errInfo, error) {
|
|
156 | 156 | },
|
157 | 157 | //重置
|
158 | 158 | _resetMethod: function (_page, _rows) {
|
159 |
| - vc.component.reportPayFeeDepositInfo.conditions.configId = ''; |
160 |
| - vc.component.reportPayFeeDepositInfo.conditions.feeId = ''; |
161 |
| - vc.component.reportPayFeeDepositInfo.conditions.payerObjType = ''; |
162 |
| - vc.component.reportPayFeeDepositInfo.conditions.state = ''; |
163 |
| - vc.component.reportPayFeeDepositInfo.conditions.startTime = ''; |
164 |
| - vc.component.reportPayFeeDepositInfo.conditions.endTime = ''; |
165 |
| - vc.component.reportPayFeeDepositInfo.conditions.detailState = ''; |
166 |
| - vc.component.reportPayFeeDepositInfo.conditions.floorId = ''; |
167 |
| - vc.component.reportPayFeeDepositInfo.conditions.floorName = ''; |
168 |
| - vc.component.reportPayFeeDepositInfo.conditions.roomNum = ''; |
169 |
| - vc.component.reportPayFeeDepositInfo.conditions.unitId = ''; |
170 |
| - vc.component._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
| 159 | + $that.reportPayFeeDepositInfo.conditions.configId = ''; |
| 160 | + $that.reportPayFeeDepositInfo.conditions.feeId = ''; |
| 161 | + $that.reportPayFeeDepositInfo.conditions.payerObjType = ''; |
| 162 | + $that.reportPayFeeDepositInfo.conditions.state = ''; |
| 163 | + $that.reportPayFeeDepositInfo.conditions.startTime = ''; |
| 164 | + $that.reportPayFeeDepositInfo.conditions.endTime = ''; |
| 165 | + $that.reportPayFeeDepositInfo.conditions.detailState = ''; |
| 166 | + $that.reportPayFeeDepositInfo.conditions.floorId = ''; |
| 167 | + $that.reportPayFeeDepositInfo.conditions.floorName = ''; |
| 168 | + $that.reportPayFeeDepositInfo.conditions.roomNum = ''; |
| 169 | + $that.reportPayFeeDepositInfo.conditions.unitId = ''; |
| 170 | + $that._listFees(DEFAULT_PAGE, DEFAULT_ROWS); |
171 | 171 | },
|
172 | 172 | _moreCondition: function () {
|
173 |
| - if (vc.component.reportPayFeeDepositInfo.moreCondition) { |
174 |
| - vc.component.reportPayFeeDepositInfo.moreCondition = false; |
| 173 | + if ($that.reportPayFeeDepositInfo.moreCondition) { |
| 174 | + $that.reportPayFeeDepositInfo.moreCondition = false; |
175 | 175 | } else {
|
176 |
| - vc.component.reportPayFeeDepositInfo.moreCondition = true; |
| 176 | + $that.reportPayFeeDepositInfo.moreCondition = true; |
177 | 177 | }
|
178 | 178 | },
|
179 | 179 | _openChooseFloorMethod: function () {
|
|
193 | 193 | //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
194 | 194 | if (res.status == 200) {
|
195 | 195 | let tmpUnits = JSON.parse(json);
|
196 |
| - vc.component.reportPayFeeDepositInfo.roomUnits = tmpUnits; |
| 196 | + $that.reportPayFeeDepositInfo.roomUnits = tmpUnits; |
197 | 197 | return;
|
198 | 198 | }
|
199 | 199 | vc.toast(json);
|
|
204 | 204 | });
|
205 | 205 | },
|
206 | 206 | _exportFee: function () {
|
207 |
| - vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportPayFeeDeposit&' + vc.objToGetParam($that.reportPayFeeDepositInfo.conditions)); |
| 207 | + $that.reportPayFeeDepositInfo.conditions.pagePath = 'reportPayFeeDeposit'; |
| 208 | + let param = { |
| 209 | + params: $that.reportPayFeeDepositInfo.conditions |
| 210 | + }; |
| 211 | + //发送get请求 |
| 212 | + vc.http.apiGet('/export.exportData', param, |
| 213 | + function (json, res) { |
| 214 | + let _json = JSON.parse(json); |
| 215 | + vc.toast(_json.msg); |
| 216 | + if (_json.code == 0) { |
| 217 | + vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') |
| 218 | + } |
| 219 | + }, |
| 220 | + function (errInfo, error) { |
| 221 | + console.log('请求失败处理'); |
| 222 | + }); |
208 | 223 | },
|
209 | 224 | _openPayFeeDetail: function (_param) {
|
210 | 225 | vc.jumpToPage('/#/pages/property/propertyFee?feeId=' + _param.feeId);
|
|
0 commit comments