manage-client 3.2.100 → 3.2.101

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