manage-client 3.3.113 → 3.3.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,915 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+
11
+ <label for="startDate" class="font_normal_body" title="归属日期">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ >
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body" title="归属日期">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ >
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name = '{}'" placeholder="客户名称">
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+
44
+ <export-excel :data="$parent.$parent.getCondition"
45
+ :field="$parent.$parent.getfield"
46
+ :footer="$parent.$parent.footer"
47
+ :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile"
49
+ sql-name="arrearsHistoryQuery"
50
+ template-name='用户欠费查询导出'
51
+ :choose-col="true"></export-excel>
52
+
53
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield"
55
+ titletable="用户欠费查询导出"
56
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
58
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
59
+
60
+ </div>
61
+ </div>
62
+
63
+ <div class="row" v-show="$parent.$parent.criteriaShow">
64
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
65
+
66
+
67
+ <div class="col-sm-2 form-group">
68
+
69
+ <label for="inputstartDate" class="font_normal_body">抄表日期</label>
70
+ <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
71
+ v-model="model.inputstartDate"
72
+ :value.sync="model.inputstartDate"
73
+ :format="'yyyy-MM-dd 00:00:00'"
74
+ :show-reset-button="true"
75
+ >
76
+ </datepicker>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label for="inputendDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
80
+ <datepicker id="inputendDate" placeholder="结束日期" style="width:60%"
81
+ v-model="model.inputendDate"
82
+ :value.sync="model.inputendDate"
83
+ :format="'yyyy-MM-dd 23:59:59'"
84
+ :show-reset-button="true"
85
+ >
86
+ </datepicker>
87
+ </div>
88
+
89
+
90
+ <!--<div class="col-sm-2 form-group">-->
91
+ <!--<label class="font_normal_body">收费编号</label>-->
92
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
93
+ <!--condition="id = '{}'" placeholder="收费编号">-->
94
+ <!--</div>-->
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">客户电话</label>
97
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
98
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
99
+ </div>
100
+ <!--<div class="col-sm-2 form-group">-->
101
+ <!--<label class="font_normal_body">身份证号</label>-->
102
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
103
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
104
+ <!--</div>-->
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">客户地址</label>
107
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
108
+ condition="f_address like '%{}%'" placeholder='客户地址'>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
112
+ <!-- <v-select :value.sync="model.f_residential_area"-->
113
+ <!-- class="select_list select"-->
114
+ <!-- enter-push-->
115
+ <!-- multiple-->
116
+ <!-- condition="f_residential_area in {}"-->
117
+ <!-- v-model="model.f_residential_area"-->
118
+ <!-- style="width: 60%"-->
119
+ <!-- :options='$parent.$parent.residentialArea' placeholder='选择小区'-->
120
+ <!-- close-on-select>-->
121
+
122
+ <!-- </v-select>-->
123
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
124
+ condition="f_residential_area like '%{}%'" placeholder="小区">
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
128
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
129
+ condition="f_building = '{}'" placeholder="楼栋">
130
+ </div>
131
+ <!-- add -->
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
134
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
135
+ condition="f_unit = '{}'" placeholder="单元"/>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
139
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
140
+ condition="f_floor = '{}'" placeholder="楼层"/>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
143
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
144
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
145
+ condition="f_room = '{}'" placeholder="门牌号">
146
+ </div>
147
+ <!-- end-->
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body" >缴费类型</label>
150
+ <v-select :value.sync="model.f_payment" multiple
151
+ v-model="model.f_payment"
152
+ :options='$parent.$parent.dypayment' placeholder='请选择'
153
+ condition="f_cost_type in {}"
154
+ close-on-select></v-select>
155
+ </div>
156
+ <!--<div class="col-sm-2 form-group">-->
157
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
158
+ <!--<v-select :value.sync="model.f_payment" multiple-->
159
+ <!--v-model="model.f_payment"-->
160
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
161
+ <!--condition="f_payment in {}"-->
162
+ <!--close-on-select></v-select>-->
163
+ <!--</div>-->
164
+ <!--<div class="col-sm-2 form-group">-->
165
+ <!--<label class="font_normal_body">收费类型</label>-->
166
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
167
+ <!--v-model="model.f_type"-->
168
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
169
+ <!--condition="f_type = '{}'"-->
170
+ <!--close-on-select></v-select>&ndash;&gt;-->
171
+ <!--<v-select :value.sync="model.f_type" multiple-->
172
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
173
+ <!--close-on-select clear-button-->
174
+ <!--condition="f_type in {}"-->
175
+ <!--v-model="model.f_type"></v-select>-->
176
+ <!--</div>-->
177
+ <div class="col-sm-2 form-group">
178
+ <label class="font_normal_body">客户类型</label>
179
+ <v-select :value.sync="model.f_user_type"
180
+ @change="$parent.$parent.userTypeChange()"
181
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
182
+ condition="f_user_type = '{}'"
183
+ close-on-select></v-select>
184
+ </div>
185
+ <div class="col-sm-2 form-group">
186
+ <label class="font_normal_body">气表类型</label>
187
+ <v-select :value.sync="model.f_meter_type" multiple
188
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
189
+ condition="f_meter_type in {}"
190
+ close-on-select></v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body">用气性质</label>
194
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
195
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
196
+ condition="f_gasproperties = '{}'"
197
+ close-on-select></v-select>
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body">气价类型</label>
201
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
202
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
203
+ close-on-select v-ref:type>
204
+ </v-select>
205
+ </div>
206
+ <div class="col-sm-2 form-group">
207
+ <label class="font_normal_body">气价名称</label>
208
+ <v-select :value.sync="model.f_price_name"
209
+ v-model="model.f_price_name"
210
+ :options="$parent.$parent.getPricenames"
211
+ condition="f_price_name = '{}'"
212
+ close-on-select></v-select>
213
+ </div>
214
+ <div class="col-sm-2 form-group">
215
+ <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
216
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
217
+ condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
218
+ </div>
219
+ <div class="col-sm-2 form-group">
220
+ <label class="font_normal_body" title="气费金额大于">气费金额</label>
221
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
222
+ condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
223
+ </div>
224
+ <div class="col-sm-2 form-group">
225
+ <label class="font_normal_body" title="欠费金额大于">欠费金额</label>
226
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_all"
227
+ condition="f_oughtfee_all > '{}'" placeholder="欠费金额大于">
228
+ </div>
229
+ <div class="col-sm-2 form-group">
230
+ <label class="font_normal_body">欠费期数</label>
231
+ <input type="text" style="width:60%" class="input_search" v-model="model.c"
232
+ condition="c > '{}'" placeholder='欠费期数大于'>
233
+ </div>
234
+ <div class="col-sm-2 form-group">
235
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
236
+ <v-select :value.sync="model.f_inputtor"
237
+ v-model="model.f_inputtor"
238
+ :options='$parent.$parent.inputtores' placeholder='请选择'
239
+ condition="f_inputtor = '{}'"
240
+ @change="$parent.$parent.inputtorchange"
241
+ close-on-select :search="false">
242
+ </v-select>
243
+ </div>
244
+ <div class="col-sm-2 form-group">
245
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
246
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
247
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
248
+ style="width:60%"
249
+ close-on-select
250
+ condition="f_meter_book_num = '{}'"></v-select>
251
+ </div>
252
+ <div class="col-sm-2 form-group">
253
+ <label class="font_normal_body" >档案抄表员</label>
254
+ <v-select :value.sync="model.f_dainputtores"
255
+ v-model="model.f_dainputtores"
256
+ :options='$parent.$parent.dainputtores' placeholder='请选择'
257
+ condition="f_dainputtores = '{}'"
258
+ close-on-select>
259
+ </v-select>
260
+ </div>
261
+ <!--<div class="col-sm-2 form-group">-->
262
+ <!--<label class="font_normal_body">气价类型</label>-->
263
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
264
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
265
+ <!--close-on-select v-ref:type>-->
266
+ <!--</v-select>-->
267
+ <!--</div>-->
268
+ <!--<div class="col-sm-2 form-group">-->
269
+ <!--<label class="font_normal_body">气价名称</label>-->
270
+ <!--<v-select :value.sync="model.f_price_name"-->
271
+ <!--v-model="model.f_price_name"-->
272
+ <!--:options="$parent.$parent.getPricenames"-->
273
+ <!--condition="f_price_name = '{}'"-->
274
+ <!--close-on-select></v-select>-->
275
+ <!--</div>-->
276
+ <!--<div class="col-sm-2 form-group">-->
277
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
278
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
279
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
280
+ <!--</div>-->
281
+ </div>
282
+ </div>
283
+ </criteria>
284
+
285
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
286
+ <template partial='head'>
287
+ <tr>
288
+ <th>
289
+ <nobr>序号</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>客户编号</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>客户姓名</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>小区名称</nobr>
299
+ </th>
300
+ <th>
301
+ <nobr>地址</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>客户电话</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>备用电话</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>气表类型</nobr>
311
+ </th>
312
+
313
+ <th>
314
+ <nobr>欠费期数</nobr>
315
+ </th>
316
+ <th>
317
+ <nobr>欠费区间</nobr>
318
+ </th>
319
+ <th>
320
+ <nobr>上期抄表底数</nobr>
321
+ </th>
322
+ <th>
323
+ <nobr>本期抄表底数</nobr>
324
+ </th>
325
+ <th>
326
+ <nobr>用气量</nobr>
327
+ </th>
328
+ <th>
329
+ <nobr>用气金额</nobr>
330
+ </th>
331
+ <th>
332
+ <nobr>缴费时间</nobr>
333
+ </th>
334
+ <th>
335
+ <nobr>已交金额</nobr>
336
+ </th>
337
+ <!--<th>-->
338
+ <!--<nobr>回收率</nobr>-->
339
+ <!--</th>-->
340
+ <th>
341
+ <nobr>应交气费</nobr>
342
+ </th>
343
+ <th>
344
+ <nobr>违约金</nobr>
345
+ </th>
346
+ <th>
347
+ <nobr>附加费</nobr>
348
+ </th>
349
+ <th>
350
+ <nobr>上期余额</nobr>
351
+ </th>
352
+ <th>
353
+ <nobr>合计欠费</nobr>
354
+ </th>
355
+ <th>
356
+ <nobr>抄表员</nobr>
357
+ </th>
358
+ <th>
359
+ <nobr>抄表册</nobr>
360
+ </th>
361
+ <th>
362
+ <nobr>档案抄表员</nobr>
363
+ </th>
364
+ <th>
365
+ <nobr>客户类型</nobr>
366
+ </th>
367
+ <th>
368
+ <nobr>缴费类型</nobr>
369
+ </th>
370
+ <th>
371
+ <nobr>用气性质</nobr>
372
+ </th>
373
+ <th>
374
+ <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
375
+ </th>
376
+ </tr>
377
+ </template>
378
+ <template partial='body'>
379
+ <td style="text-align:center">
380
+ <nobr>{{$index+1}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>{{row.f_userinfo_code}}</nobr>
384
+ </td>
385
+ <td style="text-align: center;">
386
+ <nobr>{{row.f_user_name}}</nobr>
387
+ </td>
388
+ <td style="text-align: center;">
389
+ <nobr>{{row.f_residential_area}}</nobr>
390
+ </td>
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.f_address}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.f_user_phone}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.f_rent_phone}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;">
401
+ <nobr>{{row.f_meter_classify}}</nobr>
402
+ </td>
403
+
404
+ <td style="text-align: center;">
405
+ <nobr>{{row.c}}</nobr>
406
+ </td>
407
+ <td style="text-align: center;">
408
+ <nobr>{{row.f_hand_date}}</nobr>
409
+ </td>
410
+ <td style="text-align: center;">
411
+ <nobr>{{row.f_last_tablebase}}</nobr>
412
+ </td>
413
+ <td style="text-align: center;">
414
+ <nobr>{{row.f_tablebase}}</nobr>
415
+ </td>
416
+ <td style="text-align: center;">
417
+ <nobr>{{row.f_oughtamount}}</nobr>
418
+ </td>
419
+ <td style="text-align: center;">
420
+ <nobr>{{row.f_oughtfee}}</nobr>
421
+ </td>
422
+ <td style="text-align: center;">
423
+ <nobr>{{row.f_operate_date}}</nobr>
424
+ </td>
425
+ <td style="text-align: center;">
426
+ <nobr>{{row.f_debt_money}}</nobr>
427
+ </td>
428
+ <!--<td style="text-align: center;">-->
429
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
430
+ <!--</td>-->
431
+ <td style="text-align: center;">
432
+ <nobr>{{row.f_oughtfee_new}}</nobr>
433
+ </td>
434
+ <td style="text-align: center;">
435
+ <nobr>{{row.overdue}}</nobr>
436
+ </td>
437
+ <td style="text-align: center;">
438
+ <nobr>{{row.f_garbage_fee}}</nobr>
439
+ </td>
440
+ <td style="text-align: center;">
441
+ <nobr>{{row.f_balance}}</nobr>
442
+ </td>
443
+ <td style="text-align: center;">
444
+ <nobr>{{row.f_oughtfee_all}}</nobr>
445
+ </td>
446
+ <td style="text-align: center;">
447
+ <nobr>{{row.f_inputtor}}</nobr>
448
+ </td>
449
+ <td style="text-align: center;">
450
+ <nobr>{{row.f_book_name}}</nobr>
451
+ </td>
452
+ <td style="text-align: center;">
453
+ <nobr>{{row.f_dainputtores}}</nobr>
454
+ </td>
455
+ <td style="text-align: center;">
456
+ <nobr>{{row.f_user_type}}</nobr>
457
+ </td>
458
+ <td style="text-align: center;">
459
+ <nobr>{{row.f_gasproperties}}</nobr>
460
+ </td>
461
+ <td style="text-align: center;">
462
+ <nobr>{{row.f_cost_type}}</nobr>
463
+ </td>
464
+ <td style="text-align: center;">
465
+ <nobr>{{row.f_comments}}</nobr>
466
+ </td>
467
+ </template>
468
+ <template partial='foot'></template>
469
+ </data-grid>
470
+ </criteria-paged>
471
+ <table class="table-hover">
472
+ <tr style="position: relative" class="table-bordered">
473
+ <td
474
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
475
+ 汇总信息
476
+ </td>
477
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
478
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
479
+ </td>
480
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
481
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
482
+ </td>
483
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
484
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
485
+ </td>
486
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
487
+ 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
488
+ </td>
489
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
490
+ 违约金合计:&emsp;{{sumsmodel.overdue}}
491
+ </td>
492
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
493
+ 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
494
+ </td>
495
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
496
+ 上期余额合计:&emsp;{{sumsmodel.f_balance}}
497
+ </td>
498
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
499
+ 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
500
+ </td>
501
+ </tr>
502
+ </table>
503
+ </div>
504
+ <div v-if="show">
505
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
506
+ </div>
507
+ </div>
508
+ </div>
509
+ </template>
510
+
511
+ <script>
512
+ import {HttpResetClass, PagedList} from 'vue-client'
513
+ import exportConfig from './config/exportConfig'
514
+
515
+ let readySomething = async function (self) {
516
+ self.$MagGetSaleParam.initinputtor();
517
+ self.getinputtores();
518
+ //加载抄表册
519
+ self.initmeterbook();
520
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
521
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
522
+ // self.$refs.paged.$refs.cri.search()
523
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
524
+ await self.$MagLoadParams.loadParam()
525
+ self.initParams()
526
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
527
+ }
528
+ export default {
529
+ title: '历史欠费查询',
530
+ data() {
531
+ return {
532
+ config: {
533
+ defaultPrint: ['f_userinfo_code', 'f_address']
534
+ },
535
+ other:[],
536
+ footer:[],
537
+ //f_price_name:[],
538
+ gasproperties:[],
539
+ showinfo: false,
540
+ data: {},
541
+ show:false,
542
+ rowdata:{},
543
+ initres: {
544
+ org:[this.$login.f.orgid],
545
+ dep:[],
546
+ user:[]
547
+ },
548
+ model: new PagedList('rs/sql/arrearsHistoryQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
549
+ f_oughtamount: 0,
550
+ f_oughtfee: 0,
551
+ f_debt_money: 0,
552
+ f_oughtfee_new: 0,
553
+ overdue: 0,
554
+ f_garbage_fee: 0,
555
+ f_balance:0,
556
+ f_oughtfee_all: 0
557
+ }),
558
+ criteriaShow: false,
559
+ orgCondtionStr: '',
560
+ // 下拉框
561
+ meterbrands: [],
562
+ pricenames: [],
563
+ prices: [],
564
+ area: [],
565
+ //合计数据
566
+ defaultfield: [],
567
+ //小区
568
+ // residentialArea: [],
569
+ sumsmodel: {},
570
+ f_filialeid: this.$login.f.f_orgid,
571
+ meterbooks:[{label: '全部',value: ''}], //抄表册
572
+ inputtores:[{label: '全部',value: ''}],
573
+ dainputtores:[{label: '全部',value: ''}],
574
+ allorgid:[],
575
+ tempfalg :false,
576
+ lastorgstr:'',
577
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
578
+ }
579
+ },
580
+ ready() {
581
+ this.hqdainputtores()
582
+ // this.getaddress()
583
+ readySomething(this).then(() => {
584
+ this.$emit('ready')
585
+ }).catch((error) => {
586
+ this.$emit('error', error)
587
+ })
588
+ },
589
+ methods: {
590
+
591
+ async hqdainputtores() {
592
+ let param = {
593
+ items: 'DISTINCT f_inputtor',
594
+ tablename: 't_userfiles',
595
+ condition: ` f_inputtor is NOT null`,
596
+ }
597
+ let getDainputtores = await new HttpResetClass().load("POST",'rs/sql/singleTableParam', {data: param}, {
598
+ resolveMsg: null,
599
+ rejectMsg: null
600
+ });
601
+ if (getDainputtores.data.length > 0) {
602
+ let rs = [];
603
+ getDainputtores.data.forEach((item) => {
604
+ if (item.f_inputtor.length > 0) {
605
+ let temp = {
606
+ label: item.f_inputtor,
607
+ value: item.f_inputtor
608
+ };
609
+ rs.push(temp);
610
+ }
611
+ })
612
+ this.dainputtores = [{label: '全部', value: ''}, ...rs];
613
+ } else {
614
+ this.dainputtores = [{label: '全部', value: ''}];
615
+ }
616
+ },
617
+ async inputtorchange(){
618
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor;
619
+ if(val!=null && val !=""){
620
+ let param={
621
+ items:'*',
622
+ tablename:'t_meter_book',
623
+ condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
624
+ orderitem:'id'
625
+
626
+ }
627
+ let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
628
+ if (getMeterBooks.data) {
629
+ if(getMeterBooks.data.length >0){
630
+ let rs = [];
631
+ getMeterBooks.data.forEach((item)=>{
632
+ let temp = {
633
+ label:item.f_book_name,
634
+ value:item.id
635
+ };
636
+ rs.push(temp);
637
+
638
+ })
639
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
640
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
641
+ }else{
642
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
643
+ this.meterbooks = [{label: '全部',value: ''}];
644
+ }
645
+ }
646
+ }else{
647
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
648
+ this.meterbooks = [{label: '全部',value: ''}];
649
+ this.initmeterbook();
650
+ }
651
+ },
652
+ async initmeterbook(orgstr){
653
+ if(orgstr == null ){
654
+ orgstr = this.f_filialeid;
655
+ }
656
+ //获取新的抄表册,先去清理所有的抄表册
657
+ this.$GetSaleParam.meterbooks = [];
658
+ //开始加载新的抄表册
659
+ await this.$LoadParams.loadMeterBook(orgstr)
660
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
661
+ },
662
+ getinputtores () {
663
+ // 获取抄表员
664
+ let rs = []
665
+ if (this.$login.f.f_gasman.length > 0) {
666
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
667
+ let temp = {
668
+ label: this.$login.f.f_gasman[i].name,
669
+ value: this.$login.f.f_gasman[i].name
670
+ }
671
+ rs.push(temp)
672
+ }
673
+ }
674
+ return [{label: '全部', value: ''}, ...rs]
675
+ },
676
+ //加载抄表册
677
+ loadMeterBooks(){
678
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
679
+ },
680
+ getotherfooter(){
681
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
682
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
683
+ this.other=[];
684
+ this.footer=[];
685
+ let exportdata = this.getCondition;
686
+ let otherInData=[];
687
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
688
+ let footerData=[],exportfield=this.getfield;
689
+ footerData.push("合计");
690
+ let self =this;
691
+ for(var field in self.sumsmodel){
692
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
693
+ }
694
+ this.footer.push(footerData);
695
+ this.other.push(otherInData);
696
+ },
697
+ // async getaddress(){
698
+ // console.log('开始获取小区')
699
+ // let HttpReset = new HttpResetClass()
700
+ // var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
701
+ // data: {
702
+ // condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
703
+ // }
704
+ // }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
705
+ // console.log('小区',data)
706
+ // let house = [{label: '全部', value: ''}]
707
+ // for (let row of data.data){
708
+ // console.log('开始保存小区')
709
+ // house.push({label: row.f_residential_area, value: row.f_residential_area})
710
+ // }
711
+ // this.residentialArea = house
712
+ // },
713
+ //把数据库查询数据转换为下拉数据
714
+ calculate(rows){
715
+ let data = []
716
+ rows.forEach((row, n) => {
717
+ data[n] = {label: row.f_residential_area, value: row.id}
718
+ })
719
+ return data
720
+ },
721
+
722
+ search(){
723
+ this.$refs.paged.$refs.cri.search()
724
+ },
725
+ cancel() {
726
+ this.show = false
727
+ },
728
+ showmsg(obj){
729
+ this.rowdata=obj
730
+ this.show=true
731
+ },
732
+ userTypeChange () {
733
+ this.gasproperties=[]
734
+ if(this.$refs.paged.$refs.cri.model !==null) {
735
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
736
+
737
+ console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
738
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
739
+ // this.gasproperties.push({label: '全部', value: ''})
740
+ }
741
+ else{
742
+ this.gasproperties =[{label: '全部', value: ''}]
743
+ }
744
+ },
745
+ initParams() {
746
+ // 初始化气表品牌
747
+ let brandArr = []
748
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
749
+ let temp = {}
750
+ temp.label = item.label
751
+ temp.value = item.value.f_meter_brand
752
+ brandArr.push(temp)
753
+ })
754
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
755
+ //初始化气表价格
756
+ this.prices = this.$MagGetSaleParam.getPrices();
757
+ },
758
+ selfSearch(args) {
759
+ console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
760
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
761
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
762
+ } else {
763
+ //小区查询条件
764
+ let f_orgstr = this.orgCondtionStr
765
+ let str='1=1 '
766
+ if(this.$refs.paged.$refs.cri.model.inputstartDate !== ''){
767
+ str += `and f_input_date>='${this.$refs.paged.$refs.cri.model.inputstartDate}'`
768
+ }
769
+ if(this.$refs.paged.$refs.cri.model.inputendDate !== ''){
770
+ str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
771
+ }
772
+ args.condition = `${args.condition} ` + f_orgstr
773
+ this.model.search(args.condition, args.model,str)
774
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
775
+ }
776
+ },
777
+ clear() {
778
+ //清空部门和人员
779
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
780
+ //部门和人员变为全选
781
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
782
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
783
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
784
+ this.$refs.paged.$refs.cri.model[key] = []
785
+ })
786
+
787
+ },
788
+ dealmsg(val) {
789
+ val.model = this.model.model
790
+ this.$dispatch('deal-msg', val)
791
+ },
792
+ show() {
793
+ this.criteriaShow = true
794
+ },
795
+ hidden() {
796
+ this.criteriaShow = !this.criteriaShow
797
+ },
798
+ async getRes(condition,obj) {
799
+ this.orgCondtionStr = condition
800
+ this.orgname = obj.orgnames[0]
801
+ this.depname = obj.depnames[0]
802
+
803
+ },
804
+ async updateParams() {
805
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
806
+ this.inputtores = [];
807
+ this.inputtores.push({label: "全部", value: ""})
808
+ if(this.allorgid!=null){
809
+ this.allorgid.forEach((res)=>{
810
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
811
+ })
812
+ }
813
+ this.initParams()
814
+ },
815
+ },
816
+ events:{
817
+ 'getidcard'(IdCard){
818
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
819
+ }
820
+ },
821
+ watch: {
822
+ 'model'(val) {
823
+ },
824
+ async 'orgCondtionStr'(val) {
825
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
826
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
827
+ this.meterbooks = [{label: '全部',value: ''}];
828
+ if(this.lastorgstr != val){
829
+ this.tempfalg = true;
830
+ this.lastorgstr = val;
831
+ }
832
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
833
+ this.tempfalg = false;
834
+ let a = val.substring(val.indexOf("(")+2)
835
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
836
+ }
837
+ let res = val.match(/'(.*?)'/)
838
+ if (res) {
839
+ this.f_filialeid = res[1]
840
+ if(res.input !=null){
841
+ let resorgid = res.input.substring(res.input.indexOf("'"));
842
+ if(resorgid!= null && resorgid!=''){
843
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
844
+ // resorgid = resorgid.replaceAll("'","");
845
+ resorgid = resorgid.replace(/'/g,"");
846
+ this.allorgid = resorgid.split(",")
847
+ }
848
+ }
849
+ this.updateParams()
850
+ }
851
+ },
852
+ sumsmodel:{
853
+ handler: function(val) {
854
+ this.getotherfooter();
855
+ },
856
+ deep: true
857
+ }
858
+ },
859
+ computed: {
860
+ pricetypes() {
861
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
862
+ },
863
+
864
+ getPricenames() {
865
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
866
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
867
+ let pricetype = this.$refs.paged.model.model.pricetype;
868
+ if(this.$refs.paged.model.model !==null) {
869
+ let rs = []
870
+ let priceArr = []
871
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
872
+ let params = {
873
+ f_user_type: f_user_type[0],
874
+ f_gasproperties: f_gasproperties[0],
875
+ f_price_type: pricetype[0],
876
+ filter: this.f_filialeid,
877
+ prices: this.prices
878
+ }
879
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
880
+ let temp = {}
881
+ temp.label = item.label
882
+ temp.value = item.value.f_price_name
883
+ priceArr.push(temp)
884
+ })
885
+ rs = [{label: '全部', value: ''}, ...priceArr]
886
+ }
887
+ if (rs.length === 0) {
888
+ this.$refs.paged.model.model.f_price_name = ''
889
+ }
890
+ return rs
891
+ }
892
+ },
893
+ getCondition() {
894
+ return {
895
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
896
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
897
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
898
+ condValue: `${this.model.condValue}`
899
+ }
900
+ },
901
+ getfield() {
902
+ return exportConfig.arrearsConfig
903
+ },
904
+ usertypes() {
905
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
906
+ },
907
+ metertypes() {
908
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
909
+ },
910
+ chargetype() {
911
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
912
+ }
913
+ }
914
+ }
915
+ </script>