sale-client 4.2.64 → 4.2.65

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