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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<div>
    <div class="row margin-top-lg">
        <div class="col-lg-1 padding-right-xs padding-left-xl" v-if="simplifyRoomFeeInfo.roomId">
            <select class="custom-select custom-select-sm" v-model="simplifyRoomFeeInfo.feeTypeCd"
                    @change="_changeSimplifyRoomFeeFeeTypeCd(simplifyRoomFeeInfo.feeTypeCd)">
                <option selected value="">{{vc.i18n('请选择费用类型','simplifyRoomFee')}}</option>
                <option v-for="(item,index) in simplifyRoomFeeInfo.feeTypeCds" :key="index" v-bind:value="item.statusCd"
                        v-if="item.statusCd !='888800010008'">{{item.name}}
                </option>
            </select>
        </div>
        <div class="col-lg-1 padding-lr-xs" v-if="simplifyRoomFeeInfo.roomId">
            <select class="custom-select custom-select-sm" v-model="simplifyRoomFeeInfo.configId"
                    @change="_changeSimplifyRoomConfigId()">
                <option selected value="">{{vc.i18n('请选择收费项目','simplifyRoomFee')}}</option>
                <option v-for="(item,index) in simplifyRoomFeeInfo.feeConfigs" :key="index"
                        v-bind:value="item.configId">{{item.feeName}}
                </option>
            </select>
        </div>
        <div class="col-lg-1 padding-lr-xs" v-if="simplifyRoomFeeInfo.roomId">
            <select class="custom-select custom-select-sm" v-model="simplifyRoomFeeInfo.state"
                    @change="_changeSimplifyRoomConfigId()">
                <option selected value="">{{vc.i18n('请选择状态','simplifyRoomFee')}}</option>
                <option value="">{{vc.i18n('全部','simplifyRoomFee')}}</option>
                <option value="2008001">{{vc.i18n('有效','simplifyRoomFee')}}</option>
                <option value="2009001">{{vc.i18n('收费结束','simplifyRoomFee')}}</option>
            </select>
        </div>
        <div class="col-lg-1 padding-lr-xs" v-if="simplifyRoomFeeInfo.roomId">
            <select class="custom-select custom-select-sm" v-model="simplifyRoomFeeInfo.ownerFee"
                    @change="_changeSimplifyRoomConfigId()">
                <option selected value="N">{{vc.i18n('当前房屋','simplifyRoomFee')}}</option>
                <option value="Y">{{vc.i18n('当前业主','simplifyRoomFee')}}</option>
            </select>
        </div>
        <div class="col-lg-1 padding-lr-xs" v-if="simplifyRoomFeeInfo.roomId && simplifyRoomFeeInfo.state == '2008001'">
            <select class="custom-select custom-select-sm" v-model="simplifyRoomFeeInfo.showFlag"
                    @change="_changeSimplifyRoomShowFlag()">
                <option value="DEFAULT">{{vc.i18n('默认','simplifyRoomFee')}}</option>
                <option value="MONTH">{{vc.i18n('按月','simplifyRoomFee')}}</option>
            </select>
        </div>
        <div class="col-lg-1 padding-lr-xs" v-else></div>
        <!--<div class="col-lg-1 padding-lr-xs"></div>-->
        <div class="col-lg-7 text-right" v-if="simplifyRoomFeeInfo.roomId">
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502020082314267912')" v-on:click="_openBatchPayRoomFeeModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="批量缴费" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502022073007100003')" v-on:click="_openTempImportRoomFeeModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="临时收费" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502022073049300004')" v-on:click="_openProxyFeeModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="按量缴费" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502022073042960005')" v-on:click="_openAddMeterWaterSimplifyModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="水电抄表" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502022073006890006')" v-on:click="_openRoomCreateFeeComboModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="费用套餐" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502022073096990007')" v-on:click="_openRoomCreateFeeAddModal()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="创建费用" namespace="simplifyRoomFee"></vc:i18n>
            </button>
            <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-if="vc.hasPrivilege('502020080570210194')" v-on:click="_toOwnerPayFee()">
                <i class="fa fa-plus"></i>
                <vc:i18n name="欠费缴费" namespace="simplifyRoomFee"></vc:i18n>
            </button>
        </div>
    </div>
    <div class="margin-top" v-show="simplifyRoomFeeInfo.showFlag == 'DEFAULT'">
        <table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
            <thead>
            <tr>
                <th class="text-center">
                    <vc:i18n name="收费内容" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="费用标识" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="费用类型" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="费用子类型" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="应收金额" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <span><vc:i18n name="建账时间" namespace="simplifyRoomFee"></vc:i18n></span>
                    <span class="fa fa-info-circle popover-show hand" data-content="费用生成时间"></span>
                </th>
                <th class="text-center">
                    <span><vc:i18n name="应收时间段" namespace="simplifyRoomFee"></vc:i18n></span>
                    <span class="fa fa-info-circle popover-show-endTime hand" data-content="该费用欠费时间段"></span>
                </th>
                <th class="text-center">
                    <vc:i18n name="说明" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="状态" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="操作" namespace="simplifyRoomFee"></vc:i18n>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="fee in simplifyRoomFeeInfo.fees">
                <!-- <td class="text-center">{{fee.feeId}}</td> -->
                <td class="text-center hand" @click="_viewRoomFeeConfig(fee)">
                    {{fee.feeName}}{{_getSimplifyRoomFeeRoomName(fee)}}
                    <span class="fa fa-info-circle"></span>
                </td>
                <td class="text-center">{{fee.feeFlagName}}</td>
                <td class="text-center">{{fee.feeTypeCdName}}</td>
                <td class="text-center">{{fee.secondaryFeeTypeCdName}}</td>
                <td class="text-center">{{fee.amountOwed ? fee.amountOwed.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') : '0'}}</td>
                <td class="text-center">{{fee.startTime}}</td>
                <td class="text-center">{{_getEndTime(fee)}}~<br/>{{_getDeadlineTime(fee)}}</td>
                <td class="text-center" v-if="fee.computingFormula == '5005' || fee.computingFormula == '9009'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span><vc:i18n name="上期度数:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.preDegrees}}
                    </div>
                    <div>
                        <span><vc:i18n name="本期度数:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.curDegrees}}
                    </div>
                    <div>
                        <span><vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n></span>{{getOnePrice1(fee) ? getOnePrice1(fee).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') : '0'}}
                    </div>
                    <div>
                        <span><vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.additionalAmount ? fee.additionalAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') : '0'}}
                    </div>
                </td>
                <td class="text-center" v-else-if="fee.computingFormula == '6006'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span><vc:i18n name="用量:" namespace="simplifyRoomFee"></vc:i18n></span>{{_getAttrValue(fee.feeAttrs,'390006')}}
                    </div>
                    <div>
                        <span><vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.squarePrice}}
                    </div>
                    <div>
                        <span><vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.additionalAmount}}
                    </div>
                </td>
                <td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span><vc:i18n name="算法:" namespace="simplifyRoomFee"></vc:i18n></span>{{_getAttrValue(fee.feeAttrs,'390005')}}
                    </div>
                    <div>
                        <span><vc:i18n name="用量:" namespace="simplifyRoomFee"></vc:i18n></span>{{_getAttrValue(fee.feeAttrs,'390003')}}
                    </div>
                </td>
                <td class="text-center" v-else :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span><vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.squarePrice}}
                    </div>
                    <div v-if="fee.feeFlag == '1003006'">
                        <span><vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.additionalAmount}}
                    </div>
                    <div v-else>
                        <span><vc:i18n name="固定费:" namespace="simplifyRoomFee"></vc:i18n></span>{{fee.additionalAmount}}
                    </div>
                </td>
                <td class="text-center">{{fee.stateName}}</td>
                <td class="text-center">
                    <button class="btn btn-link btn-xs"
                            v-if="fee.state != '2009001' && vc.hasPrivilege('502020082314267912')"
                            v-on:click="_payFee(fee)">
                        <vc:i18n name="缴费" namespace="simplifyRoomFee"></vc:i18n>
                    </button>
                    <button class="btn btn-link btn-xs" v-on:click="_payFeeHis(fee)">
                        <vc:i18n name="缴费历史" namespace="simplifyRoomFee"></vc:i18n>
                    </button>
                    <div class="btn-group btn-link btn-xs" v-if="vc.hasPrivilege('502020090604200029')
                        || vc.hasPrivilege('502021070488970005') || vc.hasPrivilege('502020090427190001')">
                        <button class="btn-white btn btn-xs dropdown-toggle" data-toggle="dropdown"
                                aria-haspopup="true" aria-expanded="false">
                            <vc:i18n name="更多操作" namespace="simplifyRoomFee"></vc:i18n>
                        </button>
                        <div class="dropdown-menu p-4 text-muted" style="max-width: 500px;">
                            <p v-if="vc.hasPrivilege('502020090604200029')">
                                <a href="javascript:void(0)" v-on:click="_deleteFee(fee)">
                                    <vc:i18n name="取消费用" namespace="simplifyRoomFee"></vc:i18n>
                                </a>
                            </p>
                            <p>
                                <a href="javascript:void(0)" v-on:click="_finishFee(fee)">
                                    <vc:i18n name="手工结束" namespace="simplifyRoomFee"></vc:i18n>
                                </a>
                            </p>
                            <p v-if="fee.state != '2009001' && vc.hasPrivilege('502020090427190001')">
                                <a href="javascript:void(0)" v-on:click="_editFee(fee)">
                                    <vc:i18n name="费用变更" namespace="simplifyRoomFee"></vc:i18n>
                                </a>
                            </p>
                            <p>
                                <a target="_blank" :href="'/#/pages/fee/feeDetail?feeId='+fee.feeId">
                                    <vc:i18n name="详情" namespace="listRoomFee"></vc:i18n>
                                </a>
                            </p>
                        </div>
                    </div>
                </td>
            </tr>
            </tbody>
            <tr>
                <td colspan="12">
                    <ul class="pagination float-right"></ul>
                </td>
            </tr>
        </table>
    </div>
    <div class="margin-top" v-show="simplifyRoomFeeInfo.showFlag == 'MONTH'">
        <table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
            <thead>
            <tr>
                <th class="text-center">
                    <vc:i18n name="收费内容" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="费用标识" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="费用类型" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="收费年月" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="应收金额" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="说明" namespace="simplifyRoomFee"></vc:i18n>
                </th>
                <th class="text-center">
                    <vc:i18n name="操作" namespace="simplifyRoomFee"></vc:i18n>
                </th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="fee in simplifyRoomFeeInfo.monthFees">
                <!-- <td class="text-center">{{fee.feeId}}</td> -->
                <td class="text-center hand" @click="_viewRoomFeeConfig(fee)">
                    {{fee.feeName}}{{_getSimplifyRoomFeeRoomName(fee)}}
                    <span class="fa fa-info-circle"></span>
                </td>
                <td class="text-center">{{fee.feeFlagName}}</td>
                <td class="text-center">{{fee.feeTypeCdName}}</td>
                <td class="text-center">{{fee.detailYear}}-{{fee.detailMonth}}</td>
                <td class="text-center">{{fee.receivableAmount || '0'}}</td>
                <td class="text-center" v-if="fee.computingFormula == '5005' || fee.computingFormula == '9009'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span>
                            <vc:i18n name="上期度数:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.preDegrees}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="本期度数:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.curDegrees}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{getOnePrice1(fee)}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.additionalAmount}}
                    </div>
                </td>
                <td class="text-center" v-else-if="fee.computingFormula == '6006'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span>
                            <vc:i18n name="用量:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{_getAttrValue(fee.feeAttrs,'390006')}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.squarePrice || '0'}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.additionalAmount || '0'}}
                    </div>
                </td>
                <td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'"
                    :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span>
                            <vc:i18n name="算法:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{_getAttrValue(fee.feeAttrs,'390005')}}
                    </div>
                    <div>
                        <span>
                            <vc:i18n name="用量:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{_getAttrValue(fee.feeAttrs,'390003')}}
                    </div>
                </td>
                <td class="text-center" v-else :title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
                    <div>
                        <span>
                            <vc:i18n name="单价:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.squarePrice}}
                    </div>
                    <div v-if="fee.feeFlag == '1003006'">
                        <span>
                            <vc:i18n name="附加费:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.additionalAmount}}
                    </div>
                    <div v-else>
                        <span>
                            <vc:i18n name="固定费:" namespace="simplifyRoomFee"></vc:i18n>
                        </span>{{fee.additionalAmount}}
                    </div>
                </td>
                <td class="text-center">
                    <a target="_blank" :href="'/#/pages/fee/feeDetail?feeId='+fee.feeId">
                        <vc:i18n name="详情" namespace="listRoomFee"></vc:i18n>
                    </a>
                </td>
            </tr>
            </tbody>
            <tr>
                <td colspan="12">
                    <ul class="pagination float-right"></ul>
                </td>
            </tr>
        </table>
    </div>
    <div class="row">
        <div class="col-sm-5">
            <div>注意: 应收结束时间 “-” 表示未到应收时间 或 收费已结束</div>
            <div>应收金额 为-1 一般为费用项公式设置出错请检查</div>
        </div>
        <div class="col-sm-2">
            <span>
                <span>
                    <vc:i18n name="欠费小计:" namespace="simplifyRoomFee"></vc:i18n>
                </span>{{simplifyRoomFeeInfo.totalAmount}}
            </span>
        </div>
        <div class="col-sm-5 float-right" v-show="simplifyRoomFeeInfo.showFlag == 'DEFAULT'">
            <vc:create namespace="simplifyRoomFee" path="frame/paginationPlus"></vc:create>
        </div>
    </div>
    <vc:create path="property/tempImportRoomFee"></vc:create>
    <vc:create path="property/finishFee"></vc:create>
    <vc:create path="property/deleteFee"></vc:create>
    <vc:create path="property/editFee"></vc:create>
    <vc:create path="property/roomCreateFeeAdd"></vc:create>
    <vc:create path="property/carCreateFeeAdd"></vc:create>
    <vc:create path="property/addMeterWater" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="property/addProxyFee" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="property/searchRoom" emitChooseRoom="simplifyAcceptance" emitLoadData="list" roomFlag="1"
               showSearchCondition="false"></vc:create>
    <vc:create path="property/editMachineTranslate"></vc:create>
</div>