sale-client 4.2.21 → 4.2.22

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.
Files changed (50) hide show
  1. package/build/dev-server.js +52 -32
  2. package/package.json +1 -1
  3. package/src/App.vue +1 -1
  4. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  5. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  6. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +2 -0
  7. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  8. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  9. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  10. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  11. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  12. package/src/filiale/bayan/StockListmain.vue +543 -543
  13. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  14. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  15. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  16. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  17. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  18. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  19. package/src/filiale/ronghao/CardService.js +2144 -2144
  20. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  21. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  22. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  23. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  24. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  25. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  26. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  27. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  28. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  29. package/src/filiale/ronghao/Upload.vue +654 -654
  30. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  31. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  32. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  33. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  34. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  35. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  36. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  37. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  38. package/src/filiale/ronghao/specificInformation.vue +537 -537
  39. package/src/filiale/yangchun/ChargeList.vue +954 -954
  40. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  41. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  42. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  43. package/src/main.js +1 -1
  44. package/src/plugins/CardService.js +2217 -2217
  45. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  46. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  47. package/.gradle/5.2.1/gc.properties +0 -0
  48. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  49. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  50. package/.gradle/vcs-1/gc.properties +0 -0
@@ -1,938 +1,938 @@
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="api/af-revenue/logic/saleExport"
49
- sql-name="salearrearsQuery"
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
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body" >缴费类型</label>
126
- <v-select :value.sync="model.f_payment" multiple
127
- v-model="model.f_payment"
128
- :options='$parent.$parent.dypayment' placeholder='请选择'
129
- condition="f_cost_type in {}"
130
- close-on-select></v-select>
131
- </div>
132
- <!--<div class="col-sm-2 form-group">-->
133
- <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
134
- <!--<v-select :value.sync="model.f_payment" multiple-->
135
- <!--v-model="model.f_payment"-->
136
- <!--:options='$parent.$parent.payment' placeholder='请选择'-->
137
- <!--condition="f_payment in {}"-->
138
- <!--close-on-select></v-select>-->
139
- <!--</div>-->
140
- <!--<div class="col-sm-2 form-group">-->
141
- <!--<label class="font_normal_body">收费类型</label>-->
142
- <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
143
- <!--v-model="model.f_type"-->
144
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
145
- <!--condition="f_type = '{}'"-->
146
- <!--close-on-select></v-select>&ndash;&gt;-->
147
- <!--<v-select :value.sync="model.f_type" multiple-->
148
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
- <!--close-on-select clear-button-->
150
- <!--condition="f_type in {}"-->
151
- <!--v-model="model.f_type"></v-select>-->
152
- <!--</div>-->
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">客户类型</label>
155
- <v-select :value.sync="model.f_user_type"
156
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
157
- condition="f_user_type = '{}'"
158
- close-on-select></v-select>
159
- </div>
160
- <div class="col-sm-2 form-group">
161
- <label class="font_normal_body">用气性质</label>
162
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
163
- :options='$parent.$parent.gasproperties' placeholder='请选择' multiple
164
- condition="f_gasproperties in {}"
165
- close-on-select></v-select>
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">气价类型</label>
169
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
170
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
171
- close-on-select v-ref:type>
172
- </v-select>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">气价名称</label>
176
- <v-select :value.sync="model.f_price_name"
177
- v-model="model.f_price_name"
178
- :options="$parent.$parent.getPricenames"
179
- condition="f_price_name = '{}'"
180
- close-on-select></v-select>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
184
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
185
- condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
186
- </div>
187
- <div class="col-sm-2 form-group">
188
- <label class="font_normal_body" title="气费金额大于">气费金额</label>
189
- <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
190
- condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
191
- </div>
192
- <div class="col-sm-2 form-group">
193
- <label class="font_normal_body">欠费金额</label>
194
- <input type="text" style="width:30%" class="input_search" title="大于等于" v-model="model.f_oughtfee_col_small"
195
- condition="f_oughtfee_col >= '{}' " placeholder="大于等于">
196
- <input type="text" style="width:30%" class="input_search" title="小于等于" v-model="model.f_oughtfee_col_big"
197
- condition="f_oughtfee_col <= '{}' " placeholder="小于等于">
198
- </div>
199
- <div class="col-sm-2 form-group">
200
- <label class="font_normal_body">欠费期数</label>
201
- <input type="text" style="width:60%" class="input_search" v-model="model.c"
202
- condition="c > '{}'" placeholder='欠费期数大于'>
203
- </div>
204
- <div class="col-sm-2 form-group">
205
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
206
- <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
207
- style="width:60%"
208
- multiple="true"
209
- :options='$parent.$parent.inputtores' placeholder='抄表员'
210
- condition="f_inputtor in {}" multiple
211
- close-on-select
212
- v-el:cc></v-select>
213
- </div>
214
- <div class="col-sm-2 form-group">
215
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
216
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
217
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
218
- style="width:60%" multiple
219
- close-on-select
220
- condition="f_meter_book_num in {}"></v-select>
221
- </div>
222
- <div class="col-sm-2 form-group">
223
- <label class="font_normal_body" >档案抄表员</label>
224
- <v-select :value.sync="model.f_dainputtores"
225
- v-model="model.f_dainputtores" multiple
226
- :options='$parent.$parent.dainputtores' placeholder='请选择'
227
- condition="f_dainputtores in {}"
228
- close-on-select>
229
- </v-select>
230
- </div>
231
- <!--<div class="col-sm-2 form-group">-->
232
- <!--<label class="font_normal_body">气价类型</label>-->
233
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
234
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
235
- <!--close-on-select v-ref:type>-->
236
- <!--</v-select>-->
237
- <!--</div>-->
238
- <!--<div class="col-sm-2 form-group">-->
239
- <!--<label class="font_normal_body">气价名称</label>-->
240
- <!--<v-select :value.sync="model.f_price_name"-->
241
- <!--v-model="model.f_price_name"-->
242
- <!--:options="$parent.$parent.getPricenames"-->
243
- <!--condition="f_price_name = '{}'"-->
244
- <!--close-on-select></v-select>-->
245
- <!--</div>-->
246
- <!--<div class="col-sm-2 form-group">-->
247
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
248
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
249
- <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
250
- <!--</div>-->
251
- </div>
252
- </div>
253
- </criteria>
254
-
255
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
256
- <template partial='head'>
257
- <tr>
258
- <th>
259
- <nobr>序号</nobr>
260
- </th>
261
- <th>
262
- <nobr>客户编号</nobr>
263
- </th>
264
- <th>
265
- <nobr>客户姓名</nobr>
266
- </th>
267
- <th>
268
- <nobr>小区名称</nobr>
269
- </th>
270
- <th>
271
- <nobr>身份证号</nobr>
272
- </th>
273
- <th>
274
- <nobr>地址</nobr>
275
- </th>
276
- <th>
277
- <nobr>客户电话</nobr>
278
- </th>
279
- <th>
280
- <nobr>表号</nobr>
281
- </th>
282
- <th>
283
- <nobr>备用电话</nobr>
284
- </th>
285
- <th>
286
- <nobr>气表类型</nobr>
287
- </th>
288
-
289
- <th>
290
- <nobr>欠费期数</nobr>
291
- </th>
292
- <th>
293
- <nobr>欠费区间</nobr>
294
- </th>
295
- <th>
296
- <nobr>上期抄表底数</nobr>
297
- </th>
298
- <th>
299
- <nobr>本期抄表底数</nobr>
300
- </th>
301
- <th>
302
- <nobr>用气量</nobr>
303
- </th>
304
- <th>
305
- <nobr>用气金额</nobr>
306
- </th>
307
- <th>
308
- <nobr>合计欠费</nobr>
309
- </th>
310
- <th>
311
- <nobr>实际欠费</nobr>
312
- </th>
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>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
354
- </th>
355
- </tr>
356
- </template>
357
- <template partial='body'>
358
- <td style="text-align:center">
359
- <nobr>{{$index+1}}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{row.f_userinfo_code}}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{row.f_user_name}}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{row.f_residential_area}}</nobr>
369
- </td>
370
- <td style="text-align: center;">
371
- <nobr>{{row.f_idnumber}}</nobr>
372
- </td>
373
- <td style="text-align: center;">
374
- <nobr>{{row.f_address}}</nobr>
375
- </td>
376
- <td style="text-align: center;">
377
- <nobr>{{row.f_user_phone}}</nobr>
378
- </td>
379
- <td style="text-align: center;">
380
- <nobr>{{row.f_meternumber}}</nobr>
381
- </td>
382
- <td style="text-align: center;">
383
- <nobr>{{row.f_rent_phone}}</nobr>
384
- </td>
385
- <td style="text-align: center;">
386
- <nobr>{{row.f_meter_classify}}</nobr>
387
- </td>
388
-
389
- <td style="text-align: center;">
390
- <nobr>{{row.c}}</nobr>
391
- </td>
392
- <td style="text-align: center;">
393
- <nobr>{{row.f_hand_date}}</nobr>
394
- </td>
395
- <td style="text-align: center;">
396
- <nobr>{{row.f_last_tablebase}}</nobr>
397
- </td>
398
- <td style="text-align: center;">
399
- <nobr>{{row.f_tablebase}}</nobr>
400
- </td>
401
- <td style="text-align: center;">
402
- <nobr>{{row.f_oughtamount}}</nobr>
403
- </td>
404
- <td style="text-align: center;">
405
- <nobr>{{row.f_oughtfee}}</nobr>
406
- </td>
407
- <td style="text-align: center;">
408
- <nobr>{{row.f_oughtfee_all}}</nobr>
409
- </td>
410
- <td style="text-align: center;">
411
- <nobr>{{row.f_oughtfee_col}}</nobr>
412
- </td>
413
- <td style="text-align: center;">
414
- <nobr>{{row.f_operate_date}}</nobr>
415
- </td>
416
- <td style="text-align: center;">
417
- <nobr>{{row.f_debt_money}}</nobr>
418
- </td>
419
- <!--<td style="text-align: center;">-->
420
- <!--<nobr>{{row.f_hand_bv}}</nobr>-->
421
- <!--</td>-->
422
- <td style="text-align: center;">
423
- <nobr>{{row.f_oughtfee_new}}</nobr>
424
- </td>
425
- <td style="text-align: center;">
426
- <nobr>{{row.overdue}}</nobr>
427
- </td>
428
- <td style="text-align: center;">
429
- <nobr>{{row.f_garbage_fee}}</nobr>
430
- </td>
431
- <td style="text-align: center;">
432
- <nobr>{{row.f_balance}}</nobr>
433
- </td>
434
- <td style="text-align: center;">
435
- <nobr>{{row.f_inputtor}}</nobr>
436
- </td>
437
- <td style="text-align: center;">
438
- <nobr>{{row.f_book_name}}</nobr>
439
- </td>
440
- <td style="text-align: center;">
441
- <nobr>{{row.f_dainputtores}}</nobr>
442
- </td>
443
- <td style="text-align: center;">
444
- <nobr>{{row.f_user_type}}</nobr>
445
- </td>
446
- <td style="text-align: center;">
447
- <nobr>{{row.f_gasproperties}}</nobr>
448
- </td>
449
- <td style="text-align: center;">
450
- <nobr>{{row.f_cost_type}}</nobr>
451
- </td>
452
- <td style="text-align: center;">
453
- <nobr>{{row.f_comments}}</nobr>
454
- </td>
455
- </template>
456
- <template partial='foot'></template>
457
- </data-grid>
458
- </criteria-paged>
459
- <table class="table-hover">
460
- <tr style="position: relative" class="table-bordered">
461
- <td
462
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
463
- 汇总信息
464
- </td>
465
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
466
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
467
- </td>
468
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
469
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
470
- </td>
471
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
472
- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
473
- </td>
474
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
475
- 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
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.overdue}}
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_garbage_fee}}
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_balance}}
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_all}}
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.f_oughtfee_col}}
491
- </td>
492
- </tr>
493
- </table>
494
- </div>
495
- <div v-if="show">
496
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
497
- </div>
498
- </div>
499
- </div>
500
- </template>
501
-
502
- <script>
503
- import {HttpResetClass, PagedList} from 'vue-client'
504
-
505
- let readySomething = async function (self) {
506
- self.getinputtores()
507
- // 加载抄表册
508
- self.initmeterbook()
509
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
510
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
511
- // self.$refs.paged.$refs.cri.search()
512
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
513
- await self.$LoadParams.loadParam()
514
- self.initParams()
515
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
516
- }
517
- export default {
518
- title: '欠费查询',
519
- data () {
520
- return {
521
- config: {
522
- defaultPrint: ['f_userinfo_code', 'f_address']
523
- },
524
- other: [],
525
- footer: [],
526
- // f_price_name:[],
527
- gasproperties: [],
528
- showinfo: false,
529
- data: {},
530
- show: false,
531
- rowdata: {},
532
- initres: {
533
- org: [this.$login.f.orgid],
534
- dep: [],
535
- user: []
536
- },
537
- model: new PagedList('api/af-revenue/sql/salearrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
538
- f_oughtamount: 0,
539
- f_oughtfee: 0,
540
- f_debt_money: 0,
541
- f_oughtfee_new: 0,
542
- overdue: 0,
543
- f_garbage_fee: 0,
544
- f_balance: 0,
545
- f_oughtfee_all: 0,
546
- f_oughtfee_col: 0
547
- }),
548
- criteriaShow: false,
549
- orgCondtionStr: '',
550
- // 下拉框
551
- meterbrands: [],
552
- pricenames: [],
553
- prices: [],
554
- area: [],
555
- // 合计数据
556
- defaultfield: [],
557
- // 小区
558
- residentialArea: [],
559
- sumsmodel: {},
560
- f_filialeid: this.$login.f.f_orgid,
561
- meterbooks: [{label: '全部', value: ''}], // 抄表册
562
- // inputtores:[{label: '全部',value: ''}],
563
- dainputtores: [{label: '全部', value: ''}],
564
- allorgid: [],
565
- tempfalg: false,
566
- lastorgstr: '',
567
- dypayment: [{label: '全部', value: ''}, {label: '银行代扣', value: '银行代扣'}, {label: '现金缴费', value: '现金缴费'}]
568
- }
569
- },
570
- ready () {
571
- this.hqdainputtores()
572
- this.getaddress()
573
- readySomething(this).then(() => {
574
- this.$emit('ready')
575
- }).catch((error) => {
576
- this.$emit('error', error)
577
- })
578
- },
579
- methods: {
580
-
581
- async hqdainputtores () {
582
- let param = {
583
- items: 'DISTINCT f_inputtor',
584
- tablename: 't_userfiles',
585
- condition: ` f_inputtor is NOT null`
586
- }
587
- let getDainputtores = await new HttpResetClass().load('POST', 'api/af-revenue/sql/singleTableParam', {data: param}, {
588
- resolveMsg: null,
589
- rejectMsg: null
590
- })
591
- if (getDainputtores.data.length > 0) {
592
- let rs = []
593
- getDainputtores.data.forEach((item) => {
594
- if (item.f_inputtor.length > 0) {
595
- let temp = {
596
- label: item.f_inputtor,
597
- value: item.f_inputtor
598
- }
599
- rs.push(temp)
600
- }
601
- })
602
- this.dainputtores = [{label: '全部', value: ''}, ...rs]
603
- } else {
604
- this.dainputtores = [{label: '全部', value: ''}]
605
- }
606
- },
607
- async inputtorchange () {
608
- let val = this.$refs.paged.$refs.cri.model.f_inputtor
609
- if (val != null && val != '') {
610
- let param = {
611
- items: '*',
612
- tablename: 't_meter_book',
613
- condition: ` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
614
- orderitem: 'id'
615
-
616
- }
617
- let getMeterBooks = await this.$resetpost('api/af-revenue/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
618
- if (getMeterBooks.data) {
619
- if (getMeterBooks.data.length > 0) {
620
- let rs = []
621
- getMeterBooks.data.forEach((item) => {
622
- let temp = {
623
- label: item.f_book_name,
624
- value: item.id
625
- }
626
- rs.push(temp)
627
- })
628
- this.meterbooks = [{label: '全部', value: ''}, ...rs]
629
- this.$set('$refs.paged.$refs.cri.model.f_meter_book', [getMeterBooks.data[0].id])
630
- } else {
631
- this.$set('$refs.paged.$refs.cri.model.f_meter_book', '')
632
- this.meterbooks = [{label: '全部', value: ''}]
633
- }
634
- }
635
- } else {
636
- this.$set('$refs.paged.$refs.cri.model.f_meter_book', '')
637
- this.meterbooks = [{label: '全部', value: ''}]
638
- this.initmeterbook()
639
- }
640
- },
641
- async initmeterbook (orgstr) {
642
- if (orgstr == null) {
643
- orgstr = this.f_filialeid
644
- }
645
- // 获取新的抄表册,先去清理所有的抄表册
646
- this.$GetSaleParam.meterbooks = []
647
- // 开始加载新的抄表册
648
- await this.$LoadParams.loadMeterBook(orgstr)
649
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
650
- },
651
- getinputtores () {
652
- // 获取抄表员
653
- let rs = []
654
- if (this.$login.f.f_gasman.length > 0) {
655
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
656
- let temp = {
657
- label: this.$login.f.f_gasman[i].name,
658
- value: this.$login.f.f_gasman[i].name
659
- }
660
- rs.push(temp)
661
- }
662
- }
663
- return [{label: '全部', value: ''}, ...rs]
664
- },
665
- // 加载抄表册
666
- loadMeterBooks () {
667
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
668
- },
669
- getotherfooter () {
670
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
671
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
672
- this.other = []
673
- this.footer = []
674
- let exportdata = this.getCondition
675
- let otherInData = []
676
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
677
- let footerData = [], exportfield = this.getfield
678
- footerData.push('合计')
679
- let self = this
680
- for (var field in self.sumsmodel) {
681
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
682
- }
683
- this.footer.push(footerData)
684
- this.other.push(otherInData)
685
- },
686
- async getaddress () {
687
- console.log('开始获取小区')
688
- let HttpReset = new HttpResetClass()
689
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
690
- data: {
691
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
692
- }
693
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
694
- console.log('小区', data)
695
- let house = [{label: '全部', value: ''}]
696
- for (let row of data.data) {
697
- console.log('开始保存小区')
698
- house.push({label: row.f_residential_area, value: row.f_residential_area})
699
- }
700
- this.residentialArea = house
701
- },
702
- // 把数据库查询数据转换为下拉数据
703
- calculate (rows) {
704
- let data = []
705
- rows.forEach((row, n) => {
706
- data[n] = {label: row.f_residential_area, value: row.id}
707
- })
708
- return data
709
- },
710
-
711
- search () {
712
- this.$refs.paged.$refs.cri.search()
713
- },
714
- cancel () {
715
- this.show = false
716
- },
717
- showmsg (obj) {
718
- this.rowdata = obj
719
- this.show = true
720
- },
721
- // userTypeChange () {
722
- // this.gasproperties = []
723
- // if (this.$refs.paged.$refs.cri.model !== null) {
724
- // this.$refs.paged.$refs.cri.model.f_gasproperties = ''
725
- //
726
- // console.log('查看客户类型是什么', this.$refs.paged.$refs.cri.model.f_user_type[0])
727
- // this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
728
- // // this.gasproperties.push({label: '全部', value: ''})
729
- // } else {
730
- // this.gasproperties = [{label: '全部', value: ''}]
731
- // }
732
- // },
733
- initParams () {
734
- // 初始化气表品牌
735
- let brandArr = []
736
- this.$GetSaleParam.getGasbrand().forEach((item) => {
737
- let temp = {}
738
- temp.label = item.label
739
- temp.value = item.value.id
740
- brandArr.push(temp)
741
- // // 取出对应气表型号
742
- // let styleArr = []
743
- // for (let row of item.value.gasmodel) {
744
- // styleArr.push({label: row.label, value: row.value.id})
745
- // }
746
- // this.meterstyle[temp.value] = styleArr
747
- })
748
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
749
- // 初始化气表价格
750
- this.prices = this.$GetSaleParam.getPrice(this.$login.f.orgid)
751
- },
752
- selfSearch (args) {
753
- console.log('开始时间', this.$refs.paged.$refs.cri.model.startDate)
754
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
755
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
756
- } else {
757
- // 小区查询条件
758
- let f_orgstr = this.orgCondtionStr
759
- let str = '1=1 '
760
- if (this.$refs.paged.$refs.cri.model.inputstartDate !== '') {
761
- str += `and f_input_date>='${this.$refs.paged.$refs.cri.model.inputstartDate}'`
762
- }
763
- if (this.$refs.paged.$refs.cri.model.inputendDate !== '') {
764
- str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
765
- }
766
- args.condition = `${args.condition} and f_meter_type='机表'` + f_orgstr
767
- this.model.search(args.condition, args.model, str)
768
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
769
- }
770
- },
771
- clear () {
772
- // 清空部门和人员
773
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
774
- // 部门和人员变为全选
775
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
776
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
777
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
778
- this.$refs.paged.$refs.cri.model[key] = []
779
- })
780
- },
781
- dealmsg (val) {
782
- val.model = this.model.model
783
- this.$dispatch('deal-msg', val)
784
- },
785
- show () {
786
- this.criteriaShow = true
787
- },
788
- hidden () {
789
- this.criteriaShow = !this.criteriaShow
790
- },
791
- async getRes (condition, obj) {
792
- this.orgCondtionStr = condition
793
- this.orgname = obj.orgnames[0]
794
- this.depname = obj.depnames[0]
795
- },
796
- async updateParams () {
797
- await this.$LoadParams.loadParam(this.f_filialeid)
798
- this.inputtores = []
799
- this.inputtores.push({label: '全部', value: ''})
800
- if (this.allorgid != null) {
801
- this.allorgid.forEach((res) => {
802
- this.inputtores = this.inputtores.concat(this.$GetSaleParam.getresinputtor(res))
803
- })
804
- }
805
- this.initParams()
806
- }
807
- },
808
- events: {
809
- 'getidcard' (IdCard) {
810
- this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
811
- }
812
- },
813
- watch: {
814
- 'model' (val) {
815
- },
816
- // async 'orgCondtionStr'(val) {
817
- // this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
818
- // this.$refs.paged.$refs.cri.model.f_meter_book = []
819
- // this.meterbooks = [{label: '全部',value: ''}];
820
- // if(this.lastorgstr != val){
821
- // this.tempfalg = true;
822
- // this.lastorgstr = val;
823
- // }
824
- // if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
825
- // this.tempfalg = false;
826
- // let a = val.substring(val.indexOf("(")+2)
827
- // await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
828
- // }
829
- // let res = val.match(/'(.*?)'/)
830
- // if (res) {
831
- // this.f_filialeid = res[1]
832
- // if(res.input !=null){
833
- // let resorgid = res.input.substring(res.input.indexOf("'"));
834
- // if(resorgid!= null && resorgid!=''){
835
- // resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
836
- // // resorgid = resorgid.replaceAll("'","");
837
- // resorgid = resorgid.replace(/'/g,"");
838
- // this.allorgid = resorgid.split(",")
839
- // }
840
- // }
841
- // this.updateParams()
842
- // }
843
- // },
844
- sumsmodel: {
845
- handler: function (val) {
846
- this.getotherfooter()
847
- },
848
- deep: true
849
- }
850
- },
851
- computed: {
852
- pricetypes () {
853
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
854
- },
855
- inputtores () {
856
- // 获取抄表员
857
- console.log('获取抄表员', this.$login.f)
858
- let rs = []
859
- if (this.$login.f.f_gasman.length > 0) {
860
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
861
- let temp = {
862
- label: this.$login.f.f_gasman[i].name,
863
- value: this.$login.f.f_gasman[i].name
864
- }
865
- rs.push(temp)
866
- }
867
- }
868
- return [...rs]
869
- },
870
- getPricenames () {
871
- let f_filialeid = this.f_filialeid
872
- let result = []
873
- this.$GetSaleParam.prices.forEach((item) => {
874
- if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
875
- let value = {
876
- label: item.f_price_name,
877
- value: item
878
- }
879
- result.push(value)
880
- }
881
- })
882
- return Array.from(new Set(result))
883
- },
884
- getCondition () {
885
- return {
886
- startDate: this.$refs.paged.$refs.cri.model.startDate,
887
- endDate: this.$refs.paged.$refs.cri.model.endDate,
888
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
889
- condValue: `${this.model.condValue}`
890
- }
891
- },
892
- getfield () {
893
- return {
894
- 'f_userinfo_code': '客户编号',
895
- 'f_user_name': '客户名称',
896
- 'f_residential_area': '小区名称',
897
- 'f_idnumber': '身份证号',
898
- 'f_address': '客户地址',
899
- 'f_user_phone': '客户电话',
900
- 'f_rent_phone': '备用电话',
901
- 'f_inputtor': '抄表员',
902
- 'f_book_name': '抄表册',
903
- 'f_user_type': '客户类型',
904
- 'f_gasproperties': '用气性质',
905
- 'f_comments': '备注',
906
- 'c': '欠费期数',
907
- 'f_hand_date': '欠费区间',
908
- 'f_oughtamount': '用气量',
909
- 'f_oughtfee': '用气金额',
910
- 'f_operate_date': '缴费时间',
911
- 'f_debt_money': '已交金额',
912
- 'f_oughtfee_new': '应交气费',
913
- 'overdue': '违约金',
914
- 'f_garbage_fee': '附加费',
915
- 'f_last_tablebase': '上期抄表底数',
916
- 'f_tablebase': '本期抄表底数',
917
- 'f_balance': '上期余额',
918
- 'f_oughtfee_all': '合计欠费金额',
919
- 'f_oughtfee_col': '实际欠费金额',
920
- 'f_cost_type': '缴费方式',
921
- 'f_meternumber': '表号'
922
- }
923
- },
924
- usertypes () {
925
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
926
- },
927
- gasproperties () {
928
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
929
- },
930
- metertypes () {
931
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
932
- },
933
- chargetype () {
934
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
935
- }
936
- }
937
- }
938
- </script>
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="api/af-revenue/logic/saleExport"
49
+ sql-name="salearrearsQuery"
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
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body" >缴费类型</label>
126
+ <v-select :value.sync="model.f_payment" multiple
127
+ v-model="model.f_payment"
128
+ :options='$parent.$parent.dypayment' placeholder='请选择'
129
+ condition="f_cost_type in {}"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <!--<div class="col-sm-2 form-group">-->
133
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
134
+ <!--<v-select :value.sync="model.f_payment" multiple-->
135
+ <!--v-model="model.f_payment"-->
136
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
137
+ <!--condition="f_payment in {}"-->
138
+ <!--close-on-select></v-select>-->
139
+ <!--</div>-->
140
+ <!--<div class="col-sm-2 form-group">-->
141
+ <!--<label class="font_normal_body">收费类型</label>-->
142
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
143
+ <!--v-model="model.f_type"-->
144
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
145
+ <!--condition="f_type = '{}'"-->
146
+ <!--close-on-select></v-select>&ndash;&gt;-->
147
+ <!--<v-select :value.sync="model.f_type" multiple-->
148
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
+ <!--close-on-select clear-button-->
150
+ <!--condition="f_type in {}"-->
151
+ <!--v-model="model.f_type"></v-select>-->
152
+ <!--</div>-->
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">客户类型</label>
155
+ <v-select :value.sync="model.f_user_type"
156
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
157
+ condition="f_user_type = '{}'"
158
+ close-on-select></v-select>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body">用气性质</label>
162
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
163
+ :options='$parent.$parent.gasproperties' placeholder='请选择' multiple
164
+ condition="f_gasproperties in {}"
165
+ close-on-select></v-select>
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">气价类型</label>
169
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
170
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
171
+ close-on-select v-ref:type>
172
+ </v-select>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">气价名称</label>
176
+ <v-select :value.sync="model.f_price_name"
177
+ v-model="model.f_price_name"
178
+ :options="$parent.$parent.getPricenames"
179
+ condition="f_price_name = '{}'"
180
+ close-on-select></v-select>
181
+ </div>
182
+ <div class="col-sm-2 form-group">
183
+ <label class="font_normal_body" title="欠费气量大于">欠费气量</label>
184
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtamount"
185
+ condition="f_oughtamount > '{}'" placeholder="欠费气量大于">
186
+ </div>
187
+ <div class="col-sm-2 form-group">
188
+ <label class="font_normal_body" title="气费金额大于">气费金额</label>
189
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_oughtfee_new"
190
+ condition="f_oughtfee_new > '{}'" placeholder="气费金额大于">
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body">欠费金额</label>
194
+ <input type="text" style="width:30%" class="input_search" title="大于等于" v-model="model.f_oughtfee_col_small"
195
+ condition="f_oughtfee_col >= '{}' " placeholder="大于等于">
196
+ <input type="text" style="width:30%" class="input_search" title="小于等于" v-model="model.f_oughtfee_col_big"
197
+ condition="f_oughtfee_col <= '{}' " placeholder="小于等于">
198
+ </div>
199
+ <div class="col-sm-2 form-group">
200
+ <label class="font_normal_body">欠费期数</label>
201
+ <input type="text" style="width:60%" class="input_search" v-model="model.c"
202
+ condition="c > '{}'" placeholder='欠费期数大于'>
203
+ </div>
204
+ <div class="col-sm-2 form-group">
205
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
206
+ <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
207
+ style="width:60%"
208
+ multiple="true"
209
+ :options='$parent.$parent.inputtores' placeholder='抄表员'
210
+ condition="f_inputtor in {}" multiple
211
+ close-on-select
212
+ v-el:cc></v-select>
213
+ </div>
214
+ <div class="col-sm-2 form-group">
215
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
216
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
217
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
218
+ style="width:60%" multiple
219
+ close-on-select
220
+ condition="f_meter_book_num in {}"></v-select>
221
+ </div>
222
+ <div class="col-sm-2 form-group">
223
+ <label class="font_normal_body" >档案抄表员</label>
224
+ <v-select :value.sync="model.f_dainputtores"
225
+ v-model="model.f_dainputtores" multiple
226
+ :options='$parent.$parent.dainputtores' placeholder='请选择'
227
+ condition="f_dainputtores in {}"
228
+ close-on-select>
229
+ </v-select>
230
+ </div>
231
+ <!--<div class="col-sm-2 form-group">-->
232
+ <!--<label class="font_normal_body">气价类型</label>-->
233
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
234
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
235
+ <!--close-on-select v-ref:type>-->
236
+ <!--</v-select>-->
237
+ <!--</div>-->
238
+ <!--<div class="col-sm-2 form-group">-->
239
+ <!--<label class="font_normal_body">气价名称</label>-->
240
+ <!--<v-select :value.sync="model.f_price_name"-->
241
+ <!--v-model="model.f_price_name"-->
242
+ <!--:options="$parent.$parent.getPricenames"-->
243
+ <!--condition="f_price_name = '{}'"-->
244
+ <!--close-on-select></v-select>-->
245
+ <!--</div>-->
246
+ <!--<div class="col-sm-2 form-group">-->
247
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
248
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
249
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
250
+ <!--</div>-->
251
+ </div>
252
+ </div>
253
+ </criteria>
254
+
255
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
256
+ <template partial='head'>
257
+ <tr>
258
+ <th>
259
+ <nobr>序号</nobr>
260
+ </th>
261
+ <th>
262
+ <nobr>客户编号</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>客户姓名</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>小区名称</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>身份证号</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>地址</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>客户电话</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>表号</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>备用电话</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>气表类型</nobr>
287
+ </th>
288
+
289
+ <th>
290
+ <nobr>欠费期数</nobr>
291
+ </th>
292
+ <th>
293
+ <nobr>欠费区间</nobr>
294
+ </th>
295
+ <th>
296
+ <nobr>上期抄表底数</nobr>
297
+ </th>
298
+ <th>
299
+ <nobr>本期抄表底数</nobr>
300
+ </th>
301
+ <th>
302
+ <nobr>用气量</nobr>
303
+ </th>
304
+ <th>
305
+ <nobr>用气金额</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>合计欠费</nobr>
309
+ </th>
310
+ <th>
311
+ <nobr>实际欠费</nobr>
312
+ </th>
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>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
354
+ </th>
355
+ </tr>
356
+ </template>
357
+ <template partial='body'>
358
+ <td style="text-align:center">
359
+ <nobr>{{$index+1}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_userinfo_code}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_user_name}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_residential_area}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.f_idnumber}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_address}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.f_user_phone}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;">
380
+ <nobr>{{row.f_meternumber}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>{{row.f_rent_phone}}</nobr>
384
+ </td>
385
+ <td style="text-align: center;">
386
+ <nobr>{{row.f_meter_classify}}</nobr>
387
+ </td>
388
+
389
+ <td style="text-align: center;">
390
+ <nobr>{{row.c}}</nobr>
391
+ </td>
392
+ <td style="text-align: center;">
393
+ <nobr>{{row.f_hand_date}}</nobr>
394
+ </td>
395
+ <td style="text-align: center;">
396
+ <nobr>{{row.f_last_tablebase}}</nobr>
397
+ </td>
398
+ <td style="text-align: center;">
399
+ <nobr>{{row.f_tablebase}}</nobr>
400
+ </td>
401
+ <td style="text-align: center;">
402
+ <nobr>{{row.f_oughtamount}}</nobr>
403
+ </td>
404
+ <td style="text-align: center;">
405
+ <nobr>{{row.f_oughtfee}}</nobr>
406
+ </td>
407
+ <td style="text-align: center;">
408
+ <nobr>{{row.f_oughtfee_all}}</nobr>
409
+ </td>
410
+ <td style="text-align: center;">
411
+ <nobr>{{row.f_oughtfee_col}}</nobr>
412
+ </td>
413
+ <td style="text-align: center;">
414
+ <nobr>{{row.f_operate_date}}</nobr>
415
+ </td>
416
+ <td style="text-align: center;">
417
+ <nobr>{{row.f_debt_money}}</nobr>
418
+ </td>
419
+ <!--<td style="text-align: center;">-->
420
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
421
+ <!--</td>-->
422
+ <td style="text-align: center;">
423
+ <nobr>{{row.f_oughtfee_new}}</nobr>
424
+ </td>
425
+ <td style="text-align: center;">
426
+ <nobr>{{row.overdue}}</nobr>
427
+ </td>
428
+ <td style="text-align: center;">
429
+ <nobr>{{row.f_garbage_fee}}</nobr>
430
+ </td>
431
+ <td style="text-align: center;">
432
+ <nobr>{{row.f_balance}}</nobr>
433
+ </td>
434
+ <td style="text-align: center;">
435
+ <nobr>{{row.f_inputtor}}</nobr>
436
+ </td>
437
+ <td style="text-align: center;">
438
+ <nobr>{{row.f_book_name}}</nobr>
439
+ </td>
440
+ <td style="text-align: center;">
441
+ <nobr>{{row.f_dainputtores}}</nobr>
442
+ </td>
443
+ <td style="text-align: center;">
444
+ <nobr>{{row.f_user_type}}</nobr>
445
+ </td>
446
+ <td style="text-align: center;">
447
+ <nobr>{{row.f_gasproperties}}</nobr>
448
+ </td>
449
+ <td style="text-align: center;">
450
+ <nobr>{{row.f_cost_type}}</nobr>
451
+ </td>
452
+ <td style="text-align: center;">
453
+ <nobr>{{row.f_comments}}</nobr>
454
+ </td>
455
+ </template>
456
+ <template partial='foot'></template>
457
+ </data-grid>
458
+ </criteria-paged>
459
+ <table class="table-hover">
460
+ <tr style="position: relative" class="table-bordered">
461
+ <td
462
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
463
+ 汇总信息
464
+ </td>
465
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
466
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
467
+ </td>
468
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
469
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
470
+ </td>
471
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
472
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
473
+ </td>
474
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
475
+ 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
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.overdue}}
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_garbage_fee}}
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_balance}}
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_all}}
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.f_oughtfee_col}}
491
+ </td>
492
+ </tr>
493
+ </table>
494
+ </div>
495
+ <div v-if="show">
496
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
497
+ </div>
498
+ </div>
499
+ </div>
500
+ </template>
501
+
502
+ <script>
503
+ import {HttpResetClass, PagedList} from 'vue-client'
504
+
505
+ let readySomething = async function (self) {
506
+ self.getinputtores()
507
+ // 加载抄表册
508
+ self.initmeterbook()
509
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
510
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
511
+ // self.$refs.paged.$refs.cri.search()
512
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
513
+ await self.$LoadParams.loadParam()
514
+ self.initParams()
515
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
516
+ }
517
+ export default {
518
+ title: '欠费查询',
519
+ data () {
520
+ return {
521
+ config: {
522
+ defaultPrint: ['f_userinfo_code', 'f_address']
523
+ },
524
+ other: [],
525
+ footer: [],
526
+ // f_price_name:[],
527
+ gasproperties: [],
528
+ showinfo: false,
529
+ data: {},
530
+ show: false,
531
+ rowdata: {},
532
+ initres: {
533
+ org: [this.$login.f.orgid],
534
+ dep: [],
535
+ user: []
536
+ },
537
+ model: new PagedList('api/af-revenue/sql/salearrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
538
+ f_oughtamount: 0,
539
+ f_oughtfee: 0,
540
+ f_debt_money: 0,
541
+ f_oughtfee_new: 0,
542
+ overdue: 0,
543
+ f_garbage_fee: 0,
544
+ f_balance: 0,
545
+ f_oughtfee_all: 0,
546
+ f_oughtfee_col: 0
547
+ }),
548
+ criteriaShow: false,
549
+ orgCondtionStr: '',
550
+ // 下拉框
551
+ meterbrands: [],
552
+ pricenames: [],
553
+ prices: [],
554
+ area: [],
555
+ // 合计数据
556
+ defaultfield: [],
557
+ // 小区
558
+ residentialArea: [],
559
+ sumsmodel: {},
560
+ f_filialeid: this.$login.f.f_orgid,
561
+ meterbooks: [{label: '全部', value: ''}], // 抄表册
562
+ // inputtores:[{label: '全部',value: ''}],
563
+ dainputtores: [{label: '全部', value: ''}],
564
+ allorgid: [],
565
+ tempfalg: false,
566
+ lastorgstr: '',
567
+ dypayment: [{label: '全部', value: ''}, {label: '银行代扣', value: '银行代扣'}, {label: '现金缴费', value: '现金缴费'}]
568
+ }
569
+ },
570
+ ready () {
571
+ this.hqdainputtores()
572
+ this.getaddress()
573
+ readySomething(this).then(() => {
574
+ this.$emit('ready')
575
+ }).catch((error) => {
576
+ this.$emit('error', error)
577
+ })
578
+ },
579
+ methods: {
580
+
581
+ async hqdainputtores () {
582
+ let param = {
583
+ items: 'DISTINCT f_inputtor',
584
+ tablename: 't_userfiles',
585
+ condition: ` f_inputtor is NOT null`
586
+ }
587
+ let getDainputtores = await new HttpResetClass().load('POST', 'api/af-revenue/sql/singleTableParam', {data: param}, {
588
+ resolveMsg: null,
589
+ rejectMsg: null
590
+ })
591
+ if (getDainputtores.data.length > 0) {
592
+ let rs = []
593
+ getDainputtores.data.forEach((item) => {
594
+ if (item.f_inputtor.length > 0) {
595
+ let temp = {
596
+ label: item.f_inputtor,
597
+ value: item.f_inputtor
598
+ }
599
+ rs.push(temp)
600
+ }
601
+ })
602
+ this.dainputtores = [{label: '全部', value: ''}, ...rs]
603
+ } else {
604
+ this.dainputtores = [{label: '全部', value: ''}]
605
+ }
606
+ },
607
+ async inputtorchange () {
608
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor
609
+ if (val != null && val != '') {
610
+ let param = {
611
+ items: '*',
612
+ tablename: 't_meter_book',
613
+ condition: ` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
614
+ orderitem: 'id'
615
+
616
+ }
617
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
618
+ if (getMeterBooks.data) {
619
+ if (getMeterBooks.data.length > 0) {
620
+ let rs = []
621
+ getMeterBooks.data.forEach((item) => {
622
+ let temp = {
623
+ label: item.f_book_name,
624
+ value: item.id
625
+ }
626
+ rs.push(temp)
627
+ })
628
+ this.meterbooks = [{label: '全部', value: ''}, ...rs]
629
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', [getMeterBooks.data[0].id])
630
+ } else {
631
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '')
632
+ this.meterbooks = [{label: '全部', value: ''}]
633
+ }
634
+ }
635
+ } else {
636
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '')
637
+ this.meterbooks = [{label: '全部', value: ''}]
638
+ this.initmeterbook()
639
+ }
640
+ },
641
+ async initmeterbook (orgstr) {
642
+ if (orgstr == null) {
643
+ orgstr = this.f_filialeid
644
+ }
645
+ // 获取新的抄表册,先去清理所有的抄表册
646
+ this.$GetSaleParam.meterbooks = []
647
+ // 开始加载新的抄表册
648
+ await this.$LoadParams.loadMeterBook(orgstr)
649
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
650
+ },
651
+ getinputtores () {
652
+ // 获取抄表员
653
+ let rs = []
654
+ if (this.$login.f.f_gasman.length > 0) {
655
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
656
+ let temp = {
657
+ label: this.$login.f.f_gasman[i].name,
658
+ value: this.$login.f.f_gasman[i].name
659
+ }
660
+ rs.push(temp)
661
+ }
662
+ }
663
+ return [{label: '全部', value: ''}, ...rs]
664
+ },
665
+ // 加载抄表册
666
+ loadMeterBooks () {
667
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
668
+ },
669
+ getotherfooter () {
670
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
671
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
672
+ this.other = []
673
+ this.footer = []
674
+ let exportdata = this.getCondition
675
+ let otherInData = []
676
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
677
+ let footerData = [], exportfield = this.getfield
678
+ footerData.push('合计')
679
+ let self = this
680
+ for (var field in self.sumsmodel) {
681
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
682
+ }
683
+ this.footer.push(footerData)
684
+ this.other.push(otherInData)
685
+ },
686
+ async getaddress () {
687
+ console.log('开始获取小区')
688
+ let HttpReset = new HttpResetClass()
689
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
690
+ data: {
691
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
692
+ }
693
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
694
+ console.log('小区', data)
695
+ let house = [{label: '全部', value: ''}]
696
+ for (let row of data.data) {
697
+ console.log('开始保存小区')
698
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
699
+ }
700
+ this.residentialArea = house
701
+ },
702
+ // 把数据库查询数据转换为下拉数据
703
+ calculate (rows) {
704
+ let data = []
705
+ rows.forEach((row, n) => {
706
+ data[n] = {label: row.f_residential_area, value: row.id}
707
+ })
708
+ return data
709
+ },
710
+
711
+ search () {
712
+ this.$refs.paged.$refs.cri.search()
713
+ },
714
+ cancel () {
715
+ this.show = false
716
+ },
717
+ showmsg (obj) {
718
+ this.rowdata = obj
719
+ this.show = true
720
+ },
721
+ // userTypeChange () {
722
+ // this.gasproperties = []
723
+ // if (this.$refs.paged.$refs.cri.model !== null) {
724
+ // this.$refs.paged.$refs.cri.model.f_gasproperties = ''
725
+ //
726
+ // console.log('查看客户类型是什么', this.$refs.paged.$refs.cri.model.f_user_type[0])
727
+ // this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
728
+ // // this.gasproperties.push({label: '全部', value: ''})
729
+ // } else {
730
+ // this.gasproperties = [{label: '全部', value: ''}]
731
+ // }
732
+ // },
733
+ initParams () {
734
+ // 初始化气表品牌
735
+ let brandArr = []
736
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
737
+ let temp = {}
738
+ temp.label = item.label
739
+ temp.value = item.value.id
740
+ brandArr.push(temp)
741
+ // // 取出对应气表型号
742
+ // let styleArr = []
743
+ // for (let row of item.value.gasmodel) {
744
+ // styleArr.push({label: row.label, value: row.value.id})
745
+ // }
746
+ // this.meterstyle[temp.value] = styleArr
747
+ })
748
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
749
+ // 初始化气表价格
750
+ this.prices = this.$GetSaleParam.getPrice(this.$login.f.orgid)
751
+ },
752
+ selfSearch (args) {
753
+ console.log('开始时间', this.$refs.paged.$refs.cri.model.startDate)
754
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
755
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
756
+ } else {
757
+ // 小区查询条件
758
+ let f_orgstr = this.orgCondtionStr
759
+ let str = '1=1 '
760
+ if (this.$refs.paged.$refs.cri.model.inputstartDate !== '') {
761
+ str += `and f_input_date>='${this.$refs.paged.$refs.cri.model.inputstartDate}'`
762
+ }
763
+ if (this.$refs.paged.$refs.cri.model.inputendDate !== '') {
764
+ str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
765
+ }
766
+ args.condition = `${args.condition} and f_meter_type='机表'` + f_orgstr
767
+ this.model.search(args.condition, args.model, str)
768
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
769
+ }
770
+ },
771
+ clear () {
772
+ // 清空部门和人员
773
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
774
+ // 部门和人员变为全选
775
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
776
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
777
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
778
+ this.$refs.paged.$refs.cri.model[key] = []
779
+ })
780
+ },
781
+ dealmsg (val) {
782
+ val.model = this.model.model
783
+ this.$dispatch('deal-msg', val)
784
+ },
785
+ show () {
786
+ this.criteriaShow = true
787
+ },
788
+ hidden () {
789
+ this.criteriaShow = !this.criteriaShow
790
+ },
791
+ async getRes (condition, obj) {
792
+ this.orgCondtionStr = condition
793
+ this.orgname = obj.orgnames[0]
794
+ this.depname = obj.depnames[0]
795
+ },
796
+ async updateParams () {
797
+ await this.$LoadParams.loadParam(this.f_filialeid)
798
+ this.inputtores = []
799
+ this.inputtores.push({label: '全部', value: ''})
800
+ if (this.allorgid != null) {
801
+ this.allorgid.forEach((res) => {
802
+ this.inputtores = this.inputtores.concat(this.$GetSaleParam.getresinputtor(res))
803
+ })
804
+ }
805
+ this.initParams()
806
+ }
807
+ },
808
+ events: {
809
+ 'getidcard' (IdCard) {
810
+ this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
811
+ }
812
+ },
813
+ watch: {
814
+ 'model' (val) {
815
+ },
816
+ // async 'orgCondtionStr'(val) {
817
+ // this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
818
+ // this.$refs.paged.$refs.cri.model.f_meter_book = []
819
+ // this.meterbooks = [{label: '全部',value: ''}];
820
+ // if(this.lastorgstr != val){
821
+ // this.tempfalg = true;
822
+ // this.lastorgstr = val;
823
+ // }
824
+ // if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
825
+ // this.tempfalg = false;
826
+ // let a = val.substring(val.indexOf("(")+2)
827
+ // await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
828
+ // }
829
+ // let res = val.match(/'(.*?)'/)
830
+ // if (res) {
831
+ // this.f_filialeid = res[1]
832
+ // if(res.input !=null){
833
+ // let resorgid = res.input.substring(res.input.indexOf("'"));
834
+ // if(resorgid!= null && resorgid!=''){
835
+ // resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
836
+ // // resorgid = resorgid.replaceAll("'","");
837
+ // resorgid = resorgid.replace(/'/g,"");
838
+ // this.allorgid = resorgid.split(",")
839
+ // }
840
+ // }
841
+ // this.updateParams()
842
+ // }
843
+ // },
844
+ sumsmodel: {
845
+ handler: function (val) {
846
+ this.getotherfooter()
847
+ },
848
+ deep: true
849
+ }
850
+ },
851
+ computed: {
852
+ pricetypes () {
853
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
854
+ },
855
+ inputtores () {
856
+ // 获取抄表员
857
+ console.log('获取抄表员', this.$login.f)
858
+ let rs = []
859
+ if (this.$login.f.f_gasman.length > 0) {
860
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
861
+ let temp = {
862
+ label: this.$login.f.f_gasman[i].name,
863
+ value: this.$login.f.f_gasman[i].name
864
+ }
865
+ rs.push(temp)
866
+ }
867
+ }
868
+ return [...rs]
869
+ },
870
+ getPricenames () {
871
+ let f_filialeid = this.f_filialeid
872
+ let result = []
873
+ this.$GetSaleParam.prices.forEach((item) => {
874
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
875
+ let value = {
876
+ label: item.f_price_name,
877
+ value: item
878
+ }
879
+ result.push(value)
880
+ }
881
+ })
882
+ return Array.from(new Set(result))
883
+ },
884
+ getCondition () {
885
+ return {
886
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
887
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
888
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
889
+ condValue: `${this.model.condValue}`
890
+ }
891
+ },
892
+ getfield () {
893
+ return {
894
+ 'f_userinfo_code': '客户编号',
895
+ 'f_user_name': '客户名称',
896
+ 'f_residential_area': '小区名称',
897
+ 'f_idnumber': '身份证号',
898
+ 'f_address': '客户地址',
899
+ 'f_user_phone': '客户电话',
900
+ 'f_rent_phone': '备用电话',
901
+ 'f_inputtor': '抄表员',
902
+ 'f_book_name': '抄表册',
903
+ 'f_user_type': '客户类型',
904
+ 'f_gasproperties': '用气性质',
905
+ 'f_comments': '备注',
906
+ 'c': '欠费期数',
907
+ 'f_hand_date': '欠费区间',
908
+ 'f_oughtamount': '用气量',
909
+ 'f_oughtfee': '用气金额',
910
+ 'f_operate_date': '缴费时间',
911
+ 'f_debt_money': '已交金额',
912
+ 'f_oughtfee_new': '应交气费',
913
+ 'overdue': '违约金',
914
+ 'f_garbage_fee': '附加费',
915
+ 'f_last_tablebase': '上期抄表底数',
916
+ 'f_tablebase': '本期抄表底数',
917
+ 'f_balance': '上期余额',
918
+ 'f_oughtfee_all': '合计欠费金额',
919
+ 'f_oughtfee_col': '实际欠费金额',
920
+ 'f_cost_type': '缴费方式',
921
+ 'f_meternumber': '表号'
922
+ }
923
+ },
924
+ usertypes () {
925
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
926
+ },
927
+ gasproperties () {
928
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
929
+ },
930
+ metertypes () {
931
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
932
+ },
933
+ chargetype () {
934
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
935
+ }
936
+ }
937
+ }
938
+ </script>