manage-client 3.2.196 → 3.2.197

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.
@@ -3,12 +3,13 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex" v-if="!show">
5
5
  <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
8
  <div class="row">
9
9
  <div class="col-sm-2 form-group">
10
10
 
11
- <label for="startDate" class="font_normal_body color-red" style="color: red;" title="归属日期">开始日期</label>
11
+ <label for="startDate" class="font_normal_body color-red" style="color: red;"
12
+ title="归属日期">开始日期</label>
12
13
  <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
14
  v-model="model.startDate"
14
15
  :value.sync="model.startDate"
@@ -18,7 +19,8 @@
18
19
  </datepicker>
19
20
  </div>
20
21
  <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body color-red" style="color: red;" title="归属日期">结束日期</label>
22
+ <label for="endDate" class="font_normal_body color-red" style="color: red;"
23
+ title="归属日期">结束日期</label>
22
24
  <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
25
  v-model="model.endDate"
24
26
  :value.sync="model.endDate"
@@ -51,18 +53,20 @@
51
53
  template-name='用户欠费查询导出'
52
54
  :choose-col="true"></export-excel>
53
55
 
54
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
55
- :defaultfield="$parent.$parent.defaultfield"
56
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
57
+ :field="$parent.$parent.getfield"
58
+ :defaultfield="$parent.$parent.defaultfield"
56
59
  titletable="用户欠费查询导出"
57
60
  :sumsmodel="$parent.$parent.sumsmodel"></print-data>
58
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
59
- 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
61
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
62
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
60
63
 
61
64
  </div>
62
65
  </div>
63
66
 
64
67
  <div class="row" v-show="$parent.$parent.criteriaShow">
65
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
68
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
69
+ v-ref:sel></res-select-group>
66
70
 
67
71
  <div class="col-sm-2 form-group">
68
72
  <label class="font_normal_body">客户名称</label>
@@ -81,7 +85,7 @@
81
85
  </div>
82
86
  <div class="col-sm-2 form-group">
83
87
 
84
- <label for="inputstartDate" class="font_normal_body color-red"style="color: red;">抄表日期</label>
88
+ <label for="inputstartDate" class="font_normal_body color-red" style="color: red;">抄表日期</label>
85
89
  <datepicker id="inputstartDate" placeholder="开始日期" style="width:60%"
86
90
  v-model="model.inputstartDate"
87
91
  :value.sync="model.inputstartDate"
@@ -103,9 +107,9 @@
103
107
 
104
108
 
105
109
  <!--<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.id"-->
108
- <!--condition="id = '{}'" placeholder="收费编号">-->
110
+ <!--<label class="font_normal_body">收费编号</label>-->
111
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
112
+ <!--condition="id = '{}'" placeholder="收费编号">-->
109
113
  <!--</div>-->
110
114
  <div class="col-sm-2 form-group">
111
115
  <label class="font_normal_body">客户电话</label>
@@ -113,9 +117,9 @@
113
117
  condition="f_user_phone like '%{}%'" placeholder="客户电话">
114
118
  </div>
115
119
  <!--<div class="col-sm-2 form-group">-->
116
- <!--<label class="font_normal_body">身份证号</label>-->
117
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
118
- <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
120
+ <!--<label class="font_normal_body">身份证号</label>-->
121
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
122
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
119
123
  <!--</div>-->
120
124
  <div class="col-sm-2 form-group">
121
125
  <label class="font_normal_body">客户地址</label>
@@ -137,7 +141,7 @@
137
141
  </v-select>
138
142
  </div>
139
143
  <div class="col-sm-2 form-group">
140
- <label class="font_normal_body" >缴费类型</label>
144
+ <label class="font_normal_body">缴费类型</label>
141
145
  <v-select :value.sync="model.f_payment" multiple
142
146
  v-model="model.f_payment"
143
147
  :options='$parent.$parent.dypayment' placeholder='请选择'
@@ -145,25 +149,25 @@
145
149
  close-on-select></v-select>
146
150
  </div>
147
151
  <!--<div class="col-sm-2 form-group">-->
148
- <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
149
- <!--<v-select :value.sync="model.f_payment" multiple-->
150
- <!--v-model="model.f_payment"-->
151
- <!--:options='$parent.$parent.payment' placeholder='请选择'-->
152
- <!--condition="f_payment in {}"-->
153
- <!--close-on-select></v-select>-->
152
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
153
+ <!--<v-select :value.sync="model.f_payment" multiple-->
154
+ <!--v-model="model.f_payment"-->
155
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
156
+ <!--condition="f_payment in {}"-->
157
+ <!--close-on-select></v-select>-->
154
158
  <!--</div>-->
155
159
  <!--<div class="col-sm-2 form-group">-->
156
- <!--<label class="font_normal_body">收费类型</label>-->
157
- <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
158
- <!--v-model="model.f_type"-->
159
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
160
- <!--condition="f_type = '{}'"-->
161
- <!--close-on-select></v-select>&ndash;&gt;-->
162
- <!--<v-select :value.sync="model.f_type" multiple-->
163
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
164
- <!--close-on-select clear-button-->
165
- <!--condition="f_type in {}"-->
166
- <!--v-model="model.f_type"></v-select>-->
160
+ <!--<label class="font_normal_body">收费类型</label>-->
161
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
162
+ <!--v-model="model.f_type"-->
163
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
164
+ <!--condition="f_type = '{}'"-->
165
+ <!--close-on-select></v-select>&ndash;&gt;-->
166
+ <!--<v-select :value.sync="model.f_type" multiple-->
167
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
168
+ <!--close-on-select clear-button-->
169
+ <!--condition="f_type in {}"-->
170
+ <!--v-model="model.f_type"></v-select>-->
167
171
  <!--</div>-->
168
172
  <div class="col-sm-2 form-group">
169
173
  <label class="font_normal_body">客户类型</label>
@@ -223,7 +227,7 @@
223
227
  condition="c > '{}'" placeholder='欠费期数大于'>
224
228
  </div>
225
229
  <div class="col-sm-2 form-group">
226
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
230
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
227
231
  <v-select :value.sync="model.f_inputtor"
228
232
  v-model="model.f_inputtor"
229
233
  :options='$parent.$parent.inputtores' placeholder='请选择'
@@ -241,7 +245,7 @@
241
245
  condition="f_meter_book_num = '{}'"></v-select>
242
246
  </div>
243
247
  <div class="col-sm-2 form-group">
244
- <label class="font_normal_body" >档案抄表员</label>
248
+ <label class="font_normal_body">档案抄表员</label>
245
249
  <v-select :value.sync="model.f_dainputtores"
246
250
  v-model="model.f_dainputtores"
247
251
  :options='$parent.$parent.dainputtores' placeholder='请选择'
@@ -250,24 +254,24 @@
250
254
  </v-select>
251
255
  </div>
252
256
  <!--<div class="col-sm-2 form-group">-->
253
- <!--<label class="font_normal_body">气价类型</label>-->
254
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
255
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
256
- <!--close-on-select v-ref:type>-->
257
- <!--</v-select>-->
257
+ <!--<label class="font_normal_body">气价类型</label>-->
258
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
259
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
260
+ <!--close-on-select v-ref:type>-->
261
+ <!--</v-select>-->
258
262
  <!--</div>-->
259
263
  <!--<div class="col-sm-2 form-group">-->
260
- <!--<label class="font_normal_body">气价名称</label>-->
261
- <!--<v-select :value.sync="model.f_price_name"-->
262
- <!--v-model="model.f_price_name"-->
263
- <!--:options="$parent.$parent.getPricenames"-->
264
- <!--condition="f_price_name = '{}'"-->
265
- <!--close-on-select></v-select>-->
264
+ <!--<label class="font_normal_body">气价名称</label>-->
265
+ <!--<v-select :value.sync="model.f_price_name"-->
266
+ <!--v-model="model.f_price_name"-->
267
+ <!--:options="$parent.$parent.getPricenames"-->
268
+ <!--condition="f_price_name = '{}'"-->
269
+ <!--close-on-select></v-select>-->
266
270
  <!--</div>-->
267
271
  <!--<div class="col-sm-2 form-group">-->
268
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
269
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
270
- <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
272
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
273
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
274
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
271
275
  <!--</div>-->
272
276
  </div>
273
277
  </div>
@@ -328,14 +332,14 @@
328
332
  <th>
329
333
  <nobr>用气金额</nobr>
330
334
  </th>
331
- <!-- <th>-->
332
- <!-- <nobr>缴费时间</nobr>-->
333
- <!-- </th>-->
335
+ <!-- <th>-->
336
+ <!-- <nobr>缴费时间</nobr>-->
337
+ <!-- </th>-->
334
338
  <th>
335
339
  <nobr>已交金额</nobr>
336
340
  </th>
337
341
  <!--<th>-->
338
- <!--<nobr>回收率</nobr>-->
342
+ <!--<nobr>回收率</nobr>-->
339
343
  <!--</th>-->
340
344
  <th>
341
345
  <nobr>应交气费</nobr>
@@ -346,9 +350,9 @@
346
350
  <th>
347
351
  <nobr>附加费</nobr>
348
352
  </th>
349
- <!-- <th>-->
350
- <!-- <nobr>上期余额</nobr>-->
351
- <!-- </th>-->
353
+ <!-- <th>-->
354
+ <!-- <nobr>上期余额</nobr>-->
355
+ <!-- </th>-->
352
356
  <th>
353
357
  <nobr>合计欠费</nobr>
354
358
  </th>
@@ -380,104 +384,104 @@
380
384
  </template>
381
385
  <template partial='body'>
382
386
  <td style="text-align:center">
383
- <nobr>{{$index+1}}</nobr>
387
+ <nobr>{{ $index + 1 }}</nobr>
384
388
  </td>
385
389
  <td style="text-align: center;">
386
- <nobr>{{row.f_userinfo_code}}</nobr>
390
+ <nobr>{{ row.f_userinfo_code }}</nobr>
387
391
  </td>
388
392
  <td style="text-align: center;">
389
- <nobr>{{row.f_user_name}}</nobr>
393
+ <nobr>{{ row.f_user_name }}</nobr>
390
394
  </td>
391
395
  <td style="text-align: center;">
392
- <nobr>{{row.f_olduserinfo_code}}</nobr>
396
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
393
397
  </td>
394
398
  <td style="text-align: center;">
395
- <nobr>{{row.f_book_no}}</nobr>
399
+ <nobr>{{ row.f_book_no }}</nobr>
396
400
  </td>
397
401
  <td style="text-align: center;">
398
- <nobr>{{row.f_meter_book_sort}}</nobr>
402
+ <nobr>{{ row.f_meter_book_sort }}</nobr>
399
403
  </td>
400
404
  <td style="text-align: center;">
401
- <nobr>{{row.f_residential_area}}</nobr>
405
+ <nobr>{{ row.f_residential_area }}</nobr>
402
406
  </td>
403
407
  <td style="text-align: center;">
404
- <nobr>{{row.f_address}}</nobr>
408
+ <nobr>{{ row.f_address }}</nobr>
405
409
  </td>
406
410
  <td style="text-align: center;">
407
- <nobr>{{row.f_user_phone}}</nobr>
411
+ <nobr>{{ row.f_user_phone }}</nobr>
408
412
  </td>
409
413
  <td style="text-align: center;">
410
- <nobr>{{row.f_rent_phone}}</nobr>
414
+ <nobr>{{ row.f_rent_phone }}</nobr>
411
415
  </td>
412
416
  <td style="text-align: center;">
413
- <nobr>{{row.f_meter_classify}}</nobr>
417
+ <nobr>{{ row.f_meter_classify }}</nobr>
414
418
  </td>
415
419
 
416
420
  <td style="text-align: center;">
417
- <nobr>{{row.c}}</nobr>
421
+ <nobr>{{ row.c }}</nobr>
418
422
  </td>
419
423
  <td style="text-align: center;">
420
- <nobr>{{row.f_hand_date}}</nobr>
424
+ <nobr>{{ row.f_hand_date }}</nobr>
421
425
  </td>
422
426
  <td style="text-align: center;">
423
- <nobr>{{row.f_last_tablebase}}</nobr>
427
+ <nobr>{{ row.f_last_tablebase }}</nobr>
424
428
  </td>
425
429
  <td style="text-align: center;">
426
- <nobr>{{row.f_tablebase}}</nobr>
430
+ <nobr>{{ row.f_tablebase }}</nobr>
427
431
  </td>
428
432
  <td style="text-align: center;">
429
- <nobr>{{row.f_oughtamount}}</nobr>
433
+ <nobr>{{ row.f_oughtamount }}</nobr>
430
434
  </td>
431
435
  <td style="text-align: center;">
432
- <nobr>{{row.f_oughtfee}}</nobr>
436
+ <nobr>{{ row.f_oughtfee }}</nobr>
433
437
  </td>
434
- <!-- <td style="text-align: center;">-->
435
- <!-- <nobr>{{row.f_operate_date}}</nobr>-->
436
- <!-- </td>-->
438
+ <!-- <td style="text-align: center;">-->
439
+ <!-- <nobr>{{row.f_operate_date}}</nobr>-->
440
+ <!-- </td>-->
437
441
  <td style="text-align: center;">
438
- <nobr>{{row.f_debt_money}}</nobr>
442
+ <nobr>{{ row.f_debt_money }}</nobr>
439
443
  </td>
440
444
  <!--<td style="text-align: center;">-->
441
- <!--<nobr>{{row.f_hand_bv}}</nobr>-->
445
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
442
446
  <!--</td>-->
443
447
  <td style="text-align: center;">
444
- <nobr>{{row.f_oughtfee_new}}</nobr>
448
+ <nobr>{{ row.f_oughtfee_new }}</nobr>
445
449
  </td>
446
450
  <td style="text-align: center;">
447
- <nobr>{{row.overdue}}</nobr>
451
+ <nobr>{{ row.overdue }}</nobr>
448
452
  </td>
449
453
  <td style="text-align: center;">
450
- <nobr>{{row.f_garbage_fee}}</nobr>
454
+ <nobr>{{ row.f_garbage_fee }}</nobr>
451
455
  </td>
452
- <!-- <td style="text-align: center;">-->
453
- <!-- <nobr>{{row.f_balance}}</nobr>-->
454
- <!-- </td>-->
456
+ <!-- <td style="text-align: center;">-->
457
+ <!-- <nobr>{{row.f_balance}}</nobr>-->
458
+ <!-- </td>-->
455
459
  <td style="text-align: center;">
456
- <nobr>{{row.f_oughtfee_all}}</nobr>
460
+ <nobr>{{ row.f_oughtfee_all }}</nobr>
457
461
  </td>
458
462
  <td style="text-align: center;">
459
- <nobr>{{row.f_oughtfee_col}}</nobr>
463
+ <nobr>{{ row.f_oughtfee_col }}</nobr>
460
464
  </td>
461
465
  <td style="text-align: center;">
462
- <nobr>{{row.f_inputtor}}</nobr>
466
+ <nobr>{{ row.f_inputtor }}</nobr>
463
467
  </td>
464
468
  <td style="text-align: center;">
465
- <nobr>{{row.f_book_name}}</nobr>
469
+ <nobr>{{ row.f_book_name }}</nobr>
466
470
  </td>
467
471
  <td style="text-align: center;">
468
- <nobr>{{row.f_dainputtores}}</nobr>
472
+ <nobr>{{ row.f_dainputtores }}</nobr>
469
473
  </td>
470
474
  <td style="text-align: center;">
471
- <nobr>{{row.f_user_type}}</nobr>
475
+ <nobr>{{ row.f_user_type }}</nobr>
472
476
  </td>
473
477
  <td style="text-align: center;">
474
- <nobr>{{row.f_gasproperties}}</nobr>
478
+ <nobr>{{ row.f_gasproperties }}</nobr>
475
479
  </td>
476
480
  <td style="text-align: center;">
477
- <nobr>{{row.f_cost_type}}</nobr>
481
+ <nobr>{{ row.f_cost_type }}</nobr>
478
482
  </td>
479
483
  <td style="text-align: center;">
480
- <nobr>{{row.f_comments}}</nobr>
484
+ <nobr>{{ row.f_comments }}</nobr>
481
485
  </td>
482
486
  </template>
483
487
  <template partial='foot'></template>
@@ -489,454 +493,473 @@
489
493
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
490
494
  汇总信息
491
495
  </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_oughtamount}}
496
+ <td
497
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
498
+ 用气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
494
499
  </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_oughtfee}}
500
+ <td
501
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
502
+ 用气金额合计:&emsp;{{ sumsmodel.f_oughtfee }}
497
503
  </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_debt_money}}
504
+ <td
505
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
506
+ 已交金额合计:&emsp;{{ sumsmodel.f_debt_money }}
500
507
  </td>
501
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
502
- 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
508
+ <td
509
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
510
+ 气费金额合计:&emsp;{{ sumsmodel.f_oughtfee_new }}
503
511
  </td>
504
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
505
- 违约金合计:&emsp;{{sumsmodel.overdue}}
512
+ <td
513
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
514
+ 违约金合计:&emsp;{{ sumsmodel.overdue }}
506
515
  </td>
507
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
508
- 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
516
+ <td
517
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
518
+ 附加费合计:&emsp;{{ sumsmodel.f_garbage_fee }}
509
519
  </td>
510
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
511
- <!-- 上期余额合计:&emsp;{{sumsmodel.f_balance}}-->
512
- <!-- </td>-->
513
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
514
- 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
520
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
521
+ <!-- 上期余额合计:&emsp;{{sumsmodel.f_balance}}-->
522
+ <!-- </td>-->
523
+ <td
524
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
525
+ 合计欠费:&emsp;{{ sumsmodel.f_oughtfee_all }}
515
526
  </td>
516
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
517
- 实际欠费:&emsp;{{sumsmodel.f_oughtfee_col}}
527
+ <td
528
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
529
+ 实际欠费:&emsp;{{ sumsmodel.f_oughtfee_col }}
518
530
  </td>
519
531
  </tr>
520
532
  </table>
521
533
  </div>
522
534
  <div v-if="show">
523
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
535
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
536
+ @cancel-main="cancel"></user-info-detail-manage-new>
524
537
  </div>
525
538
  </div>
526
539
  </div>
527
540
  </template>
528
541
 
529
542
  <script>
530
- import {HttpResetClass, PagedList} from 'vue-client'
531
- import exportConfig from '../config/exportConfig'
543
+ import {HttpResetClass, PagedList} from 'vue-client'
544
+ import exportConfig from '../config/exportConfig'
532
545
 
533
- let readySomething = async function (self) {
534
- self.$MagGetSaleParam.initinputtor();
535
- self.getinputtores();
536
- //加载抄表册
537
- self.initmeterbook();
538
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0] + ' 00:00:00'
539
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
546
+ let readySomething = async function (self) {
547
+ self.$MagGetSaleParam.initinputtor();
548
+ self.getinputtores();
549
+ //加载抄表册
550
+ self.initmeterbook();
551
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0] + ' 00:00:00'
552
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
540
553
 
541
- self.$refs.paged.$refs.cri.model.inputstartDate = self.$login.toStartAndEndDateString()[0] + ' 00:00:00'
542
- self.$refs.paged.$refs.cri.model.inputendDate = self.$login.toStandardDateString() + ' 23:59:59'
543
- // self.$refs.paged.$refs.cri.search()
544
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
545
- await self.$MagLoadParams.loadParam()
546
- self.initParams()
547
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
548
- }
549
- export default {
550
- title: '欠费查询',
551
- data() {
552
- return {
553
- config: {
554
- defaultPrint: ['f_userinfo_code', 'f_address']
555
- },
556
- other:[],
557
- footer:[],
558
- //f_price_name:[],
559
- gasproperties:[],
560
- showinfo: false,
561
- data: {},
562
- show:false,
563
- rowdata:{},
564
- initres: {
565
- org:[this.$login.f.orgid],
566
- dep:[],
567
- user:[]
568
- },
569
- model: new PagedList('rs/sql/arrearsQuery', 20, {startDate: 'this.model.inputstartDate', endDate: 'this.model.inputendDate',startDate1: 'this.model.startDate', endDate1: 'this.model.endDate'}, {
570
- f_oughtamount: 0,
571
- f_oughtfee: 0,
572
- f_debt_money: 0,
573
- f_oughtfee_new: 0,
574
- overdue: 0,
575
- f_garbage_fee: 0,
576
- f_oughtfee_all: 0,
577
- f_oughtfee_col: 0
578
- }),
579
- criteriaShow: false,
580
- orgCondtionStr: '',
581
- // 下拉框
582
- meterbrands: [],
583
- pricenames: [],
584
- prices: [],
585
- area: [],
586
- //合计数据
587
- defaultfield: [],
588
- //小区
589
- residentialArea: [],
590
- sumsmodel: {},
591
- f_filialeid: this.$login.f.f_orgid,
592
- meterbooks:[{label: '全部',value: ''}], //抄表册
593
- inputtores:[{label: '全部',value: ''}],
594
- dainputtores:[{label: '全部',value: ''}],
595
- allorgid:[],
596
- tempfalg :false,
597
- lastorgstr:'',
598
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
554
+ self.$refs.paged.$refs.cri.model.inputstartDate = self.$login.toStartAndEndDateString()[0] + ' 00:00:00'
555
+ self.$refs.paged.$refs.cri.model.inputendDate = self.$login.toStandardDateString() + ' 23:59:59'
556
+ // self.$refs.paged.$refs.cri.search()
557
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
558
+ await self.$MagLoadParams.loadParam()
559
+ self.initParams()
560
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
561
+ }
562
+ export default {
563
+ title: '欠费查询',
564
+ data() {
565
+ return {
566
+ config: {
567
+ defaultPrint: ['f_userinfo_code', 'f_address']
568
+ },
569
+ other: [],
570
+ footer: [],
571
+ //f_price_name:[],
572
+ gasproperties: [],
573
+ showinfo: false,
574
+ data: {},
575
+ show: false,
576
+ rowdata: {},
577
+ initres: {
578
+ org: [this.$login.f.orgid],
579
+ dep: [],
580
+ user: []
581
+ },
582
+ model: new PagedList('rs/sql/arrearsQuery', 20, {
583
+ startDate: 'this.model.inputstartDate',
584
+ endDate: 'this.model.inputendDate',
585
+ startDate1: 'this.model.startDate',
586
+ endDate1: 'this.model.endDate'
587
+ }, {
588
+ f_oughtamount: 0,
589
+ f_oughtfee: 0,
590
+ f_debt_money: 0,
591
+ f_oughtfee_new: 0,
592
+ overdue: 0,
593
+ f_garbage_fee: 0,
594
+ f_oughtfee_all: 0,
595
+ f_oughtfee_col: 0
596
+ }),
597
+ criteriaShow: false,
598
+ orgCondtionStr: '',
599
+ // 下拉框
600
+ meterbrands: [],
601
+ pricenames: [],
602
+ prices: [],
603
+ area: [],
604
+ //合计数据
605
+ defaultfield: [],
606
+ //小区
607
+ residentialArea: [],
608
+ sumsmodel: {},
609
+ f_filialeid: this.$login.f.f_orgid,
610
+ meterbooks: [{label: '全部', value: ''}], //抄表册
611
+ inputtores: [{label: '全部', value: ''}],
612
+ dainputtores: [{label: '全部', value: ''}],
613
+ allorgid: [],
614
+ tempfalg: false,
615
+ lastorgstr: '',
616
+ dypayment: [{label: "全部", value: ""}, {label: "银行代扣", value: "银行代扣",}, {
617
+ label: "现金缴费",
618
+ value: "现金缴费",
619
+ }],
620
+ }
621
+ },
622
+ ready() {
623
+ this.hqdainputtores()
624
+ this.getaddress()
625
+ readySomething(this).then(() => {
626
+ this.$emit('ready')
627
+ }).catch((error) => {
628
+ this.$emit('error', error)
629
+ })
630
+ },
631
+ methods: {
632
+
633
+ async hqdainputtores() {
634
+ let param = {
635
+ items: 'DISTINCT f_inputtor',
636
+ tablename: 't_userfiles',
637
+ condition: ` f_inputtor is NOT null`,
638
+ }
639
+ let getDainputtores = await new HttpResetClass().load("POST", 'rs/sql/singleTableParam', {data: param}, {
640
+ resolveMsg: null,
641
+ rejectMsg: null
642
+ });
643
+ if (getDainputtores.data.length > 0) {
644
+ let rs = [];
645
+ getDainputtores.data.forEach((item) => {
646
+ if (item.f_inputtor.length > 0) {
647
+ let temp = {
648
+ label: item.f_inputtor,
649
+ value: item.f_inputtor
650
+ };
651
+ rs.push(temp);
652
+ }
653
+ })
654
+ this.dainputtores = [{label: '全部', value: ''}, ...rs];
655
+ } else {
656
+ this.dainputtores = [{label: '全部', value: ''}];
599
657
  }
600
658
  },
601
- ready() {
602
- this.hqdainputtores()
603
- this.getaddress()
604
- readySomething(this).then(() => {
605
- this.$emit('ready')
606
- }).catch((error) => {
607
- this.$emit('error', error)
608
- })
609
- },
610
- methods: {
611
-
612
- async hqdainputtores() {
613
- let param = {
614
- items: 'DISTINCT f_inputtor',
615
- tablename: 't_userfiles',
616
- condition: ` f_inputtor is NOT null`,
617
- }
618
- let getDainputtores = await new HttpResetClass().load("POST",'rs/sql/singleTableParam', {data: param}, {
619
- resolveMsg: null,
620
- rejectMsg: null
621
- });
622
- if (getDainputtores.data.length > 0) {
623
- let rs = [];
624
- getDainputtores.data.forEach((item) => {
625
- if (item.f_inputtor.length > 0) {
626
- let temp = {
627
- label: item.f_inputtor,
628
- value: item.f_inputtor
629
- };
630
- rs.push(temp);
631
- }
632
- })
633
- this.dainputtores = [{label: '全部', value: ''}, ...rs];
634
- } else {
635
- this.dainputtores = [{label: '全部', value: ''}];
636
- }
637
- },
638
- async inputtorchange(){
639
- let val = this.$refs.paged.$refs.cri.model.f_inputtor;
640
- if(val!=null && val !=""){
641
- let param={
642
- items:'*',
643
- tablename:'t_meter_book',
644
- condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
645
- orderitem:'id'
659
+ async inputtorchange() {
660
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor;
661
+ if (val != null && val != "") {
662
+ let param = {
663
+ items: '*',
664
+ tablename: 't_meter_book',
665
+ condition: ` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
666
+ orderitem: 'id'
646
667
 
647
- }
648
- let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
649
- if (getMeterBooks.data) {
650
- if(getMeterBooks.data.length >0){
651
- let rs = [];
652
- getMeterBooks.data.forEach((item)=>{
653
- let temp = {
654
- label:item.f_book_name,
655
- value:item.id
656
- };
657
- rs.push(temp);
668
+ }
669
+ let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {
670
+ resolveMsg: null,
671
+ rejectMsg: '获取营收参数出错!!!'
672
+ })
673
+ if (getMeterBooks.data) {
674
+ if (getMeterBooks.data.length > 0) {
675
+ let rs = [];
676
+ getMeterBooks.data.forEach((item) => {
677
+ let temp = {
678
+ label: item.f_book_name,
679
+ value: item.id
680
+ };
681
+ rs.push(temp);
658
682
 
659
- })
660
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
661
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
662
- }else{
663
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
664
- this.meterbooks = [{label: '全部',value: ''}];
665
- }
683
+ })
684
+ this.meterbooks = [{label: '全部', value: ''}, ...rs];
685
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', [getMeterBooks.data[0].id]);
686
+ } else {
687
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '');
688
+ this.meterbooks = [{label: '全部', value: ''}];
666
689
  }
667
- }else{
668
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
669
- this.meterbooks = [{label: '全部',value: ''}];
670
- this.initmeterbook();
671
690
  }
672
- },
673
- async initmeterbook(orgstr){
674
- if(orgstr == null ){
675
- orgstr = this.f_filialeid;
676
- }
677
- //获取新的抄表册,先去清理所有的抄表册
678
- this.$GetSaleParam.meterbooks = [];
679
- //开始加载新的抄表册
680
- await this.$LoadParams.loadMeterBook(orgstr)
681
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
682
- },
683
- getinputtores () {
684
- // 获取抄表员
685
- let rs = []
686
- if (this.$login.f.f_gasman.length > 0) {
687
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
688
- let temp = {
689
- label: this.$login.f.f_gasman[i].name,
690
- value: this.$login.f.f_gasman[i].name
691
- }
692
- rs.push(temp)
691
+ } else {
692
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '');
693
+ this.meterbooks = [{label: '全部', value: ''}];
694
+ this.initmeterbook();
695
+ }
696
+ },
697
+ async initmeterbook(orgstr) {
698
+ if (orgstr == null) {
699
+ orgstr = this.f_filialeid;
700
+ }
701
+ //获取新的抄表册,先去清理所有的抄表册
702
+ this.$GetSaleParam.meterbooks = [];
703
+ //开始加载新的抄表册
704
+ await this.$LoadParams.loadMeterBook(orgstr)
705
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
706
+ },
707
+ getinputtores() {
708
+ // 获取抄表员
709
+ let rs = []
710
+ if (this.$login.f.f_gasman.length > 0) {
711
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
712
+ let temp = {
713
+ label: this.$login.f.f_gasman[i].name,
714
+ value: this.$login.f.f_gasman[i].name
693
715
  }
716
+ rs.push(temp)
694
717
  }
695
- return [{label: '全部', value: ''}, ...rs]
696
- },
697
- //加载抄表册
698
- loadMeterBooks(){
699
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
700
- },
701
- getotherfooter(){
702
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
703
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
704
- this.other=[];
705
- this.footer=[];
706
- let exportdata = this.getCondition;
707
- let otherInData=[];
708
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
709
- let footerData=[],exportfield=this.getfield;
710
- footerData.push("合计");
711
- let self =this;
712
- for(var field in self.sumsmodel){
713
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
714
- }
715
- this.footer.push(footerData);
716
- this.other.push(otherInData);
717
- },
718
- async getaddress(){
719
- console.log('开始获取小区')
720
- let HttpReset = new HttpResetClass()
721
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
722
- data: {
723
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
724
- }
725
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
726
- console.log('小区',data)
727
- let house = [{label: '全部', value: ''}]
728
- for (let row of data.data){
729
- console.log('开始保存小区')
730
- house.push({label: row.f_residential_area, value: row.f_residential_area})
718
+ }
719
+ return [{label: '全部', value: ''}, ...rs]
720
+ },
721
+ //加载抄表册
722
+ loadMeterBooks() {
723
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
724
+ },
725
+ getotherfooter() {
726
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
727
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
728
+ this.other = [];
729
+ this.footer = [];
730
+ let exportdata = this.getCondition;
731
+ let otherInData = [];
732
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
733
+ let footerData = [], exportfield = this.getfield;
734
+ footerData.push("合计");
735
+ let self = this;
736
+ for (var field in self.sumsmodel) {
737
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
738
+ }
739
+ this.footer.push(footerData);
740
+ this.other.push(otherInData);
741
+ },
742
+ async getaddress() {
743
+ console.log('开始获取小区')
744
+ let HttpReset = new HttpResetClass()
745
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
746
+ data: {
747
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
731
748
  }
732
- this.residentialArea = house
733
- },
734
- //把数据库查询数据转换为下拉数据
735
- calculate(rows){
736
- let data = []
737
- rows.forEach((row, n) => {
738
- data[n] = {label: row.f_residential_area, value: row.id}
739
- })
740
- return data
741
- },
749
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
750
+ console.log('小区', data)
751
+ let house = [{label: '全部', value: ''}]
752
+ for (let row of data.data) {
753
+ console.log('开始保存小区')
754
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
755
+ }
756
+ this.residentialArea = house
757
+ },
758
+ //把数据库查询数据转换为下拉数据
759
+ calculate(rows) {
760
+ let data = []
761
+ rows.forEach((row, n) => {
762
+ data[n] = {label: row.f_residential_area, value: row.id}
763
+ })
764
+ return data
765
+ },
742
766
 
743
- search(){
744
- this.$refs.paged.$refs.cri.search()
745
- },
746
- cancel() {
747
- this.show = false
748
- },
749
- showmsg(obj){
750
- this.rowdata=obj
751
- this.show=true
752
- },
753
- userTypeChange () {
754
- this.gasproperties=[]
755
- if(this.$refs.paged.$refs.cri.model !==null) {
756
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
767
+ search() {
768
+ this.$refs.paged.$refs.cri.search()
769
+ },
770
+ cancel() {
771
+ this.show = false
772
+ },
773
+ showmsg(obj) {
774
+ this.rowdata = obj
775
+ this.show = true
776
+ },
777
+ userTypeChange() {
778
+ this.gasproperties = []
779
+ if (this.$refs.paged.$refs.cri.model !== null) {
780
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
757
781
 
758
- console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
759
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
760
- // this.gasproperties.push({label: '全部', value: ''})
782
+ console.log("查看客户类型是什么", this.$refs.paged.$refs.cri.model.f_user_type[0])
783
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
784
+ // this.gasproperties.push({label: '全部', value: ''})
785
+ } else {
786
+ this.gasproperties = [{label: '全部', value: ''}]
787
+ }
788
+ },
789
+ initParams() {
790
+ // 初始化气表品牌
791
+ let brandArr = []
792
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
793
+ let temp = {}
794
+ temp.label = item.label
795
+ temp.value = item.value.f_meter_brand
796
+ brandArr.push(temp)
797
+ })
798
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
799
+ //初始化气表价格
800
+ this.prices = this.$MagGetSaleParam.getPrices();
801
+ },
802
+ selfSearch(args) {
803
+ console.log('开始时间', this.$refs.paged.$refs.cri.model.startDate)
804
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
805
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
806
+ } else if (this.$refs.paged.$refs.cri.model.inputstartDate === '' || this.$refs.paged.$refs.cri.model.inputendDate === '') {
807
+ this.$showAlert('请先选择抄表开始时间、抄表结束时间,再进行查询操作!', 'warning', 3000)
808
+ } else {
809
+ //小区查询条件
810
+ let f_orgstr = this.orgCondtionStr
811
+ let str = '1=1 '
812
+ if (this.$refs.paged.$refs.cri.model.inputstartDate !== '') {
813
+ str += `and f_input_date>='${this.$refs.paged.$refs.cri.model.inputstartDate}'`
761
814
  }
762
- else{
763
- this.gasproperties =[{label: '全部', value: ''}]
815
+ if (this.$refs.paged.$refs.cri.model.inputendDate !== '') {
816
+ str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
764
817
  }
765
- },
766
- initParams() {
767
- // 初始化气表品牌
768
- let brandArr = []
769
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
770
- let temp = {}
771
- temp.label = item.label
772
- temp.value = item.value.f_meter_brand
773
- brandArr.push(temp)
774
- })
775
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
776
- //初始化气表价格
777
- this.prices = this.$MagGetSaleParam.getPrices();
778
- },
779
- selfSearch(args) {
780
- console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
781
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
782
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
783
- }else if(this.$refs.paged.$refs.cri.model.inputstartDate === '' || this.$refs.paged.$refs.cri.model.inputendDate === ''){
784
- this.$showAlert('请先选择抄表开始时间、抄表结束时间,再进行查询操作!', 'warning', 3000)
785
- }else {
786
- //小区查询条件
787
- let f_orgstr = this.orgCondtionStr
788
- let str='1=1 '
789
- if(this.$refs.paged.$refs.cri.model.inputstartDate !== ''){
790
- str += `and f_input_date>='${this.$refs.paged.$refs.cri.model.inputstartDate}'`
791
- }
792
- if(this.$refs.paged.$refs.cri.model.inputendDate !== ''){
793
- str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
794
- }
795
- args.condition = `${args.condition} ` + f_orgstr
796
- this.model.search(args.condition, args.model,str)
797
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
798
- }
799
- },
800
- clear() {
801
- //清空部门和人员
802
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
803
- //部门和人员变为全选
804
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
805
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
806
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
807
- this.$refs.paged.$refs.cri.model[key] = []
808
- })
818
+ args.condition = `${args.condition} ` + f_orgstr
819
+ this.model.search(args.condition, args.model, str)
820
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
821
+ }
822
+ },
823
+ clear() {
824
+ //清空部门和人员
825
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
826
+ //部门和人员变为全选
827
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
828
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
829
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
830
+ this.$refs.paged.$refs.cri.model[key] = []
831
+ })
809
832
 
810
- },
811
- dealmsg(val) {
812
- val.model = this.model.model
813
- this.$dispatch('deal-msg', val)
814
- },
815
- show() {
816
- this.criteriaShow = true
817
- },
818
- hidden() {
819
- this.criteriaShow = !this.criteriaShow
820
- },
821
- async getRes(condition,obj) {
822
- this.orgCondtionStr = condition
823
- this.orgname = obj.orgnames[0]
824
- this.depname = obj.depnames[0]
833
+ },
834
+ dealmsg(val) {
835
+ val.model = this.model.model
836
+ this.$dispatch('deal-msg', val)
837
+ },
838
+ show() {
839
+ this.criteriaShow = true
840
+ },
841
+ hidden() {
842
+ this.criteriaShow = !this.criteriaShow
843
+ },
844
+ async getRes(condition, obj) {
845
+ this.orgCondtionStr = condition
846
+ this.orgname = obj.orgnames[0]
847
+ this.depname = obj.depnames[0]
825
848
 
826
- },
827
- async updateParams() {
828
- await this.$MagLoadParams.loadParam(this.f_filialeid)
829
- this.inputtores = [];
830
- this.inputtores.push({label: "全部", value: ""})
831
- if(this.allorgid!=null){
832
- this.allorgid.forEach((res)=>{
833
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
834
- })
835
- }
836
- this.initParams()
837
- },
838
849
  },
839
- events:{
840
- 'getidcard'(IdCard){
841
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
850
+ async updateParams() {
851
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
852
+ this.inputtores = [];
853
+ this.inputtores.push({label: "全部", value: ""})
854
+ if (this.allorgid != null) {
855
+ this.allorgid.forEach((res) => {
856
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
857
+ })
842
858
  }
859
+ this.initParams()
843
860
  },
844
- watch: {
845
- 'model'(val) {
846
- },
847
- async 'orgCondtionStr'(val) {
848
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
849
- this.$refs.paged.$refs.cri.model.f_meter_book = []
850
- this.meterbooks = [{label: '全部',value: ''}];
851
- if(this.lastorgstr != val){
852
- this.tempfalg = true;
853
- this.lastorgstr = val;
854
- }
855
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
856
- this.tempfalg = false;
857
- let a = val.substring(val.indexOf("(")+2)
858
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
859
- }
860
- let res = val.match(/'(.*?)'/)
861
- if (res) {
862
- this.f_filialeid = res[1]
863
- if(res.input !=null){
864
- let resorgid = res.input.substring(res.input.indexOf("'"));
865
- if(resorgid!= null && resorgid!=''){
866
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
867
- // resorgid = resorgid.replaceAll("'","");
868
- resorgid = resorgid.replace(/'/g,"");
869
- this.allorgid = resorgid.split(",")
870
- }
861
+ },
862
+ events: {
863
+ 'getidcard'(IdCard) {
864
+ this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
865
+ }
866
+ },
867
+ watch: {
868
+ 'model'(val) {
869
+ },
870
+ async 'orgCondtionStr'(val) {
871
+ this.$refs.paged.$refs.cri.model.f_book_slice_area = []
872
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
873
+ this.meterbooks = [{label: '全部', value: ''}];
874
+ if (this.lastorgstr != val) {
875
+ this.tempfalg = true;
876
+ this.lastorgstr = val;
877
+ }
878
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
879
+ this.tempfalg = false;
880
+ let a = val.substring(val.indexOf("(") + 2)
881
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
882
+ }
883
+ let res = val.match(/'(.*?)'/)
884
+ if (res) {
885
+ this.f_filialeid = res[1]
886
+ if (res.input != null) {
887
+ let resorgid = res.input.substring(res.input.indexOf("'"));
888
+ if (resorgid != null && resorgid != '') {
889
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
890
+ // resorgid = resorgid.replaceAll("'","");
891
+ resorgid = resorgid.replace(/'/g, "");
892
+ this.allorgid = resorgid.split(",")
871
893
  }
872
- this.updateParams()
873
894
  }
874
- },
875
- sumsmodel:{
876
- handler: function(val) {
877
- this.getotherfooter();
878
- },
879
- deep: true
895
+ this.updateParams()
880
896
  }
881
897
  },
882
- computed: {
883
- pricetypes() {
884
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
898
+ sumsmodel: {
899
+ handler: function (val) {
900
+ this.getotherfooter();
885
901
  },
902
+ deep: true
903
+ }
904
+ },
905
+ computed: {
906
+ pricetypes() {
907
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
908
+ },
886
909
 
887
- getPricenames() {
888
- let f_user_type = this.$refs.paged.model.model.f_user_type;
889
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
890
- let pricetype = this.$refs.paged.model.model.pricetype;
891
- if(this.$refs.paged.model.model !==null) {
892
- let rs = []
893
- let priceArr = []
894
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
895
- let params = {
896
- f_user_type: f_user_type[0],
897
- f_gasproperties: f_gasproperties[0],
898
- f_price_type: pricetype[0],
899
- filter: this.f_filialeid,
900
- prices: this.prices
901
- }
902
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
903
- let temp = {}
904
- temp.label = item.label
905
- temp.value = item.value.f_price_name
906
- priceArr.push(temp)
907
- })
908
- rs = [{label: '全部', value: ''}, ...priceArr]
909
- }
910
- if (rs.length === 0) {
911
- this.$refs.paged.model.model.f_price_name = ''
910
+ getPricenames() {
911
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
912
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
913
+ let pricetype = this.$refs.paged.model.model.pricetype;
914
+ if (this.$refs.paged.model.model !== null) {
915
+ let rs = []
916
+ let priceArr = []
917
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length > 0) {
918
+ let params = {
919
+ f_user_type: f_user_type[0],
920
+ f_gasproperties: f_gasproperties[0],
921
+ f_price_type: pricetype[0],
922
+ filter: this.f_filialeid,
923
+ prices: this.prices
912
924
  }
913
- return rs
925
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
926
+ let temp = {}
927
+ temp.label = item.label
928
+ temp.value = item.value.f_price_name
929
+ priceArr.push(temp)
930
+ })
931
+ rs = [{label: '全部', value: ''}, ...priceArr]
914
932
  }
915
- },
916
- getCondition() {
917
- return {
918
- startDate: this.$refs.paged.$refs.cri.model.inputstartDate,
919
- endDate: this.$refs.paged.$refs.cri.model.inputendDate,
920
- startDate1: this.$refs.paged.$refs.cri.model.startDate,
921
- endDate1: this.$refs.paged.$refs.cri.model.endDate,
922
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
923
- condValue: `${this.model.condValue}`
933
+ if (rs.length === 0) {
934
+ this.$refs.paged.model.model.f_price_name = ''
924
935
  }
925
- },
926
- getfield() {
927
- return exportConfig.arrearsConfig
928
- },
929
- usertypes() {
930
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
931
- },
932
- metertypes() {
933
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
934
- },
935
- chargetype() {
936
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
936
+ return rs
937
+ }
938
+ },
939
+ getCondition() {
940
+ return {
941
+ startDate: this.$refs.paged.$refs.cri.model.inputstartDate,
942
+ endDate: this.$refs.paged.$refs.cri.model.inputendDate,
943
+ startDate1: this.$refs.paged.$refs.cri.model.startDate,
944
+ endDate1: this.$refs.paged.$refs.cri.model.endDate,
945
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
946
+ condValue: `${this.model.condValue}`
937
947
  }
948
+ },
949
+ getfield() {
950
+ return exportConfig.arrearsConfig
951
+ },
952
+ usertypes() {
953
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
954
+ },
955
+ metertypes() {
956
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
957
+ },
958
+ chargetype() {
959
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
938
960
  }
939
961
  }
962
+ }
940
963
  </script>
941
964
  <style lang="less">
942
965
  .color-red {