manage-client 3.3.3 → 3.3.6-1

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.
@@ -1,1325 +1,1325 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
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
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
42
- <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
43
- <button class="button_search button_spacing" @click="search()">查询</button>
44
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
-
46
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
- :defaultselect="$parent.$parent.defaultexport"
49
- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
50
- :choose-col="true">
51
- </export-excel>
52
-
53
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
- :defaultfield="$parent.$parent.defaultfield"
55
- titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
56
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
58
-
59
- </div>
60
- </div>
61
- <div class="row" v-show="$parent.$parent.criteriaShow">
62
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">收费编号</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.id"
66
- condition="id = '{}'" placeholder="收费编号">
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">客户电话</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
71
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">身份证号</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
76
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">客户地址</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
- condition="f_address like '%{}%'" placeholder='客户地址'>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
85
- <v-select :value.sync="model.f_residential_area"
86
- class="select_list select"
87
- v-model="model.f_residential_area"
88
- style="width: 60%"
89
- multiple
90
- condition="f_residential_area in {}"
91
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
92
- close-on-select>
93
- </v-select>
94
- </div>
95
- <div
96
- class="col-sm-2 form-group">
97
- <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
98
- <v-select
99
- v-model="model.f_pcd"
100
- placeholder='选择区域'
101
- :value.sync="model.f_pcd"
102
- :options='$parent.$parent.pcdslist'
103
- condition="f_pcd_id = '{}'"
104
- style="width: 60%"
105
- close-on-select >
106
- </v-select>
107
- </div>
108
- <div class="col-sm-2 form-group">
109
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
110
- <v-select :value.sync="model.f_payment" multiple
111
- v-model="model.f_payment"
112
- :options='$parent.$parent.payment' placeholder='请选择'
113
- condition="f_payment in {}"
114
- close-on-select></v-select>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
118
- <v-select :value.sync="model.f_bank_type" multiple
119
- v-model="model.f_bank_type"
120
- :options='$parent.$parent.banktype' placeholder='请选择'
121
- condition="f_bank_type in {}"
122
- close-on-select></v-select>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body">收费类型</label>
126
- <!-- <v-select :value.sync="model.f_type"
127
- v-model="model.f_type"
128
- :options='$parent.$parent.chargetype' placeholder='请选择'
129
- condition="f_type = '{}'"
130
- close-on-select></v-select>-->
131
- <v-select :value.sync="model.f_type" multiple
132
- :options='$parent.$parent.chargetype' placeholder='请选择'
133
- close-on-select clear-button
134
- condition="f_type in {}"
135
- v-model="model.f_type"></v-select>
136
- </div>
137
- <!-- <div class="col-sm-2 form-group">-->
138
- <!-- <label class="font_normal_body">票据类型</label>-->
139
- <!-- <v-select :options='$parent.$parent.papertype'-->
140
- <!-- condition="f_paper_type = '{}'"-->
141
- <!-- v-model="model.f_paper_type"-->
142
- <!-- :value.sync="model.f_paper_type" close-on-select-->
143
- <!-- placeholder='请选择'></v-select>-->
144
- <!-- </div>-->
145
- <div class="col-sm-2 form-group">
146
- <label class="font_normal_body">客户类型</label>
147
- <v-select :value.sync="model.f_user_type"
148
- @change="$parent.$parent.userTypeChange()"
149
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
150
- condition="f_user_type = '{}'"
151
- close-on-select></v-select>
152
- </div>
153
- <div class="col-sm-2 form-group">
154
- <label class="font_normal_body">用气性质</label>
155
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
156
- :options='$parent.$parent.gasproperties' placeholder='请选择'
157
- condition="f_gasproperties = '{}'"
158
- close-on-select></v-select>
159
- </div>
160
- <div class="col-sm-2 form-group">
161
- <label class="font_normal_body" title="二级用气性质">二级性质</label>
162
- <v-select :value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
163
- :options='$parent.$parent.gaspropertiessecond' placeholder='二级用气性质'
164
- condition="f_gasproperties_second = '{}'"
165
- close-on-select></v-select>
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">气价类型</label>
169
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
170
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
171
- close-on-select v-ref:type>
172
- </v-select>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">气价名称</label>
176
- <v-select :value.sync="model.f_price_name"
177
- v-model="model.f_price_name"
178
- :options="$parent.$parent.getPricenames"
179
- condition="f_price_name = '{}'"
180
- close-on-select></v-select>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body">表&emsp;&emsp;号</label>
184
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
185
- condition="f_meternumber = '{}'" placeholder='表号'>
186
- </div>
187
- <div class="col-sm-2 form-group">
188
- <label class="font_normal_body">气表类型</label>
189
- <v-select :value.sync="model.f_meter_type" multiple
190
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
191
- condition="f_meter_type in {}"
192
- close-on-select></v-select>
193
- </div>
194
- <div class="col-sm-2 form-group">
195
- <label class="font_normal_body">气表品牌</label>
196
- <v-select :value.sync="model.f_meter_brand" multiple
197
- v-model="model.f_meter_brand"
198
- :options='$parent.$parent.meterbrands' placeholder='请选择'
199
- condition="f_meter_brand in {}"
200
- close-on-select></v-select>
201
- </div>
202
-
203
- <div class="col-sm-2 form-group">
204
- <label class="font_normal_body">收费状态</label>
205
- <v-select :value.sync="model.f_state" multiple
206
- v-model="model.f_state"
207
- :options='$parent.$parent.charge_state' placeholder='请选择'
208
- condition="f_state in {}"
209
- close-on-select></v-select>
210
- </div>
211
- <div class="col-sm-2 form-group">
212
- <label class="font_normal_body">银行名称</label>
213
- <v-select :value.sync="model.f_bank_name"
214
- v-model="model.f_bank_name"
215
- :options='$parent.$parent.bank' placeholder='请选择'
216
- condition="f_bank_name = '{}'"
217
- close-on-select></v-select>
218
- </div>
219
- <div class="col-sm-2 form-group">
220
- <label class="font_normal_body">是否优惠</label>
221
- <v-select :value.sync="model.f_privilege_money"
222
- v-model="model.f_privilege_money"
223
- :options='$parent.$parent.privilege_money' placeholder='请选择'
224
- condition="f_privilege_money {}"
225
- close-on-select></v-select>
226
- </div>
227
- <div class="col-sm-2 form-group">
228
- <label class="font_normal_body">优惠金额</label>
229
- <input type="text" style="width:30%" class="input_search" title="大于等于"
230
- v-model="model.f_privilege_money_big" condition="f_privilege_money >= {}" placeholder='大于等于'>
231
- <input type="text" style="width:30%" class="input_search" title="小于等于"
232
- v-model="model.f_privilege_money_small" condition="f_privilege_money <= {}" placeholder='小于等于'>
233
- </div>
234
- <div class="col-sm-2 form-group">
235
- <label class="font_normal_body">收&ensp;据&ensp;号</label>
236
- <input type="text" style="width:30%" class="input_search" title="大于等于"
237
- v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>
238
- <input type="text" style="width:30%" class="input_search" title="小于等于"
239
- v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>
240
- </div>
241
- <div class="col-sm-2 form-group">
242
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;流水号</label>
243
- <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
244
- condition="f_serial_id like '%{}%'" placeholder='流水号'>
245
- </div>
246
- <div class="col-sm-2 form-group">
247
- <label class="font_normal_body">发票号码</label>
248
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
249
- condition="f_invoice_num = '{}'" placeholder='发票号码'>
250
- </div>
251
- <div class="col-sm-2 form-group">
252
- <label class="font_normal_body" title="发票类型查询">发票类型</label>
253
- <v-select :value.sync="model.f_invoice_type"
254
- v-model="model.f_invoice_type"
255
- :options='$parent.$parent.invoiceType' placeholder='请选择'
256
- condition="f_invoice_type = '{}'"
257
- close-on-select :value-single="true" :search="false">
258
- </v-select>
259
- </div>
260
- <div class="col-sm-2 form-group">
261
- <label class="font_normal_body">开&ensp;票&ensp;人</label>
262
- <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
263
- condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
264
- </div>
265
- <div class="col-sm-2 form-group">
266
- <label for="startDate" class="font_normal_body">开票时间</label>
267
- <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
268
- v-model="model.invoice_startDate"
269
- :value.sync="model.invoice_startDate"
270
- :format="'yyyy-MM-dd'"
271
- :show-reset-button="true"
272
- condition="f_invoice_date >= '{}'">
273
- </datepicker>
274
- </div>
275
- <div class="col-sm-2 form-group">
276
- <label for="endDate" class="font_normal_body">开票时间</label>
277
- <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
278
- v-model="model.invoice_endDate"
279
- :value.sync="model.invoice_endDate"
280
- :format="'yyyy-MM-dd'"
281
- :show-reset-button="true"
282
- condition="f_invoice_date <= '{}'">
283
- </datepicker>
284
- </div>
285
- <div class="col-sm-2 form-group">
286
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
287
- <v-select :value.sync="model.f_inputtor"
288
- v-model="model.f_inputtor"
289
- :options='$parent.$parent.inputtores' placeholder='请选择'
290
- condition="f_inputtor = '{}'"
291
- close-on-select :search="false">
292
- </v-select>
293
- </div>
294
- <div class="col-sm-2 form-group">
295
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
296
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
297
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
298
- style="width:60%"
299
- close-on-select
300
- condition="f_meter_book_num = '{}'"></v-select>
301
- </div>
302
- <div class="col-sm-2 form-group">
303
- <label class="font_normal_body">写卡状态</label>
304
- <v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
305
- :options='$parent.$parent.writecard' placeholder='写卡状态'
306
- style="width:60%"
307
- close-on-select
308
- condition="f_write_card = '{}'"></v-select>
309
- </div>
310
- <div class="col-sm-2 form-group">
311
- <label class="font_normal_body">街&ensp;&ensp;&ensp;&ensp;道</label>
312
- <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
313
- condition="f_street like '%{}%'" placeholder='街道'>
314
- </div>
315
- <div class="col-sm-2 form-group">
316
- <label class="font_normal_body">数&ensp;据&ensp;包</label>
317
- <v-select :value.sync="model.f_bluetooth_package" v-model="model.f_bluetooth_package"
318
- :options='$parent.$parent.bluetoothpackage' placeholder='数据包状态'
319
- style="width:60%"
320
- close-on-select
321
- condition="f_bluetooth_package = '{}'"></v-select>
322
- </div>
323
- <div class="col-sm-2 form-group">
324
- <label class="font_normal_body">pos设备&nbsp;</label>
325
- <v-select :value.sync="model.f_terminal_name" multiple
326
- v-model="model.f_terminal_name"
327
- :options='$parent.$parent.posEquipment' placeholder='请选择'
328
- condition="f_operator in {}"
329
- close-on-select></v-select>
330
- </div>
331
- <div class="col-sm-2 form-group">
332
- <label class="font_normal_body">终端号</label>
333
- <input type="text" style="width:60%" class="input_search" v-model="model.f_terminal_num"
334
- condition="f_terminal_num like '{}'" placeholder='终端号'>
335
- </div>
336
- <div class="col-sm-2 form-group">
337
- <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
338
- <v-select :value.sync="model.isbgl"
339
- v-model="model.isbgl"
340
- :options='$parent.$parent.bgl' placeholder='请选择'
341
- condition="isbgl = '{}'"
342
- close-on-select></v-select>
343
- </div>
344
- </div>
345
- </div>
346
- </criteria>
347
-
348
- <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
349
- <template partial='head'>
350
- <tr>
351
- <th>
352
- <nobr>收费编号</nobr>
353
- </th>
354
- <th>
355
- <!-- <nobr>客户编号</nobr>-->
356
- <data-order field="f_userinfo_code" name="客户编号"
357
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
358
- </th>
359
- <th><nobr>街道</nobr></th>
360
- <th>
361
- <nobr>客户名称</nobr>
362
- </th>
363
- <th>
364
- <nobr>客户电话</nobr>
365
- </th>
366
-
367
- <!-- <th>-->
368
- <!-- <nobr>片区</nobr>-->
369
- <!-- </th>-->
370
- <th>
371
- <!-- <nobr>客户地址</nobr>-->
372
- <data-order field="f_address" name="客户地址"
373
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
374
- </th>
375
- <th>
376
- <nobr>客户类型</nobr>
377
- </th>
378
- <th>
379
- <nobr>用气性质</nobr>
380
- </th>
381
- <th>
382
- <nobr>二级用气性质</nobr>
383
- </th>
384
- <th>
385
- <nobr>表号</nobr>
386
- </th>
387
- <th>
388
- <nobr>气表品牌</nobr>
389
- </th>
390
- <th>
391
- <nobr>卡号</nobr>
392
- </th>
393
- <th>
394
- <nobr>购气次数</nobr>
395
- </th>
396
- <th>
397
- <nobr>气量</nobr>
398
- </th>
399
- <th>
400
- <nobr>气费金额</nobr>
401
- </th>
402
- <th>
403
- <nobr>滞纳金</nobr>
404
- </th>
405
- <th>
406
- <nobr>应收金额</nobr>
407
- </th>
408
- <th>
409
- <nobr>清缴金额</nobr>
410
- </th>
411
- <th>
412
- <nobr>预存金额</nobr>
413
- </th>
414
-
415
- <th>
416
- <nobr>实际收款</nobr>
417
- </th>
418
- <th>
419
- <!-- <nobr>收费日期</nobr>-->
420
- <data-order field="f_operate_date" name="收费日期"
421
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
422
- </th>
423
- <th>
424
- <nobr>优惠金额</nobr>
425
- </th>
426
- <th>
427
- <nobr>上期结余</nobr>
428
- </th>
429
- <th>
430
- <nobr>本期结余</nobr>
431
- </th>
432
- <th>
433
- <nobr>付款方式</nobr>
434
- </th>
435
- <th>
436
- <nobr>写卡状态</nobr>
437
- </th>
438
- <th>
439
- <nobr>支付渠道</nobr>
440
- </th>
441
- <th>
442
- <nobr>银行名称</nobr>
443
- </th>
444
- <th>
445
- <nobr>收费类型</nobr>
446
- </th>
447
- <th>
448
- <nobr>终端号</nobr>
449
- </th>
450
- <th>
451
- <nobr>蓝牙数据包状态</nobr>
452
- </th>
453
- <th>
454
- <nobr>状态</nobr>
455
- </th>
456
-
457
- <th>
458
- <nobr>备注</nobr>
459
- </th>
460
- <th>
461
- <nobr>补打次数</nobr>
462
- </th>
463
- <th>
464
- <nobr>人员</nobr>
465
- </th>
466
- <th>
467
- <nobr>部门</nobr>
468
- </th>
469
- <th>
470
- <nobr>公司</nobr>
471
- </th>
472
- <th>
473
- <nobr>流水号</nobr>
474
- </th>
475
- <th>
476
- <nobr>收据号</nobr>
477
- </th>
478
- <th>
479
- <nobr>业务单号</nobr>
480
- </th>
481
- <th>
482
- <nobr>发票号码</nobr>
483
- </th>
484
- <th>
485
- <nobr>发票类型</nobr>
486
- </th>
487
- <th>
488
- <nobr>开票人</nobr>
489
- </th>
490
- <th>
491
- <nobr>开票时间</nobr>
492
- </th>
493
- <th>
494
- <nobr>是否征税</nobr>
495
- </th>
496
- <th>
497
- <nobr>累计写卡气量</nobr>
498
- </th>
499
- <th>
500
- <nobr>实际写卡金额</nobr>
501
- </th>
502
- <th>
503
- <nobr>冲正人</nobr>
504
- </th>
505
- <th>
506
- <nobr>冲正时间</nobr>
507
- </th>
508
- <th>
509
- <nobr>一阶气量</nobr>
510
- </th>
511
- <th>
512
- <nobr>一阶单价</nobr>
513
- </th>
514
- <th>
515
- <nobr>一阶气费</nobr>
516
- </th>
517
- <th>
518
- <nobr>二阶气量</nobr>
519
- </th>
520
- <th>
521
- <nobr>二阶单价</nobr>
522
- </th>
523
- <th>
524
- <nobr>二阶气费</nobr>
525
- </th>
526
- <th>
527
- <nobr>三阶气量</nobr>
528
- </th>
529
- <th>
530
- <nobr>三阶单价</nobr>
531
- </th>
532
- <th>
533
- <nobr>三阶气费</nobr>
534
- </th>
535
- <th>
536
- <nobr>是否壁挂炉</nobr>
537
- </th>
538
- <th><nobr>附件</nobr></th>
539
- </tr>
540
- </template>
541
- <template partial='body'>
542
- <td style="text-align: center;">
543
- <nobr>{{row.id}}</nobr>
544
- </td>
545
- <td style="text-align: center;"><nobr>
546
- <nobr>{{row.f_userinfo_code}}</nobr>
547
- </nobr> </td>
548
- <td style="text-align: center;">
549
- <nobr>{{row.f_street}}</nobr>
550
- </td>
551
- <td style="text-align: center;">
552
- <nobr>{{row.f_user_name}}</nobr>
553
- </td>
554
- <td style="text-align: center;">
555
- <nobr>{{row.f_user_phone}}</nobr>
556
- </td>
557
- <td style="text-align: center;">
558
- <nobr>{{row.f_address}}</nobr>
559
- </td>
560
- <td style="text-align: center;">
561
- <nobr>{{row.f_user_type}}</nobr>
562
- </td>
563
- <td style="text-align: center;">
564
- <nobr>{{row.f_gasproperties}}</nobr>
565
- </td>
566
- <td style="text-align: center;">
567
- <nobr>{{row.f_gasproperties_second}}</nobr>
568
- </td>
569
- <td style="text-align: center;">
570
- <nobr>{{row.f_meternumber}}</nobr>
571
- </td>
572
- <td style="text-align: center;">
573
- <nobr>{{row.f_meter_brand}}</nobr>
574
- </td>
575
- <td style="text-align: center;">
576
- <nobr>{{row.f_card_id}}</nobr>
577
- </td>
578
- <td style="text-align: center;">
579
- <nobr>{{row.f_times}}</nobr>
580
- </td>
581
- <td style="text-align: center;">
582
- <nobr>{{row.f_pregas}}</nobr>
583
- </td>
584
- <td style="text-align: center;">
585
- <nobr>{{row.fee}}</nobr>
586
- </td>
587
- <td style="text-align: center;">
588
- <nobr>{{row.f_delaypay}}</nobr>
589
- </td>
590
- <td style="text-align: center;">
591
- <nobr>{{row.f_preamount}}</nobr>
592
- </td>
593
- <td style="text-align: center;">
594
- <nobr>{{row.f_charge_money}}</nobr>
595
- </td>
596
- <td style="text-align: center;">
597
- <nobr>{{row.f_yucun}}</nobr>
598
- </td>
599
-
600
- <td style="text-align: center;">
601
- <nobr>{{row.f_collection}}</nobr>
602
- </td>
603
- <!--<td style="text-align: center;">-->
604
- <!--<nobr>{{row.f_rest_date}}</nobr>-->
605
- <!--</td>-->
606
- <td style="text-align: center;">
607
- <nobr>{{row.f_operate_date}}</nobr>
608
- </td>
609
- <td style="text-align: center;">
610
- <nobr>{{row.f_privilege_money}}</nobr>
611
- </td>
612
-
613
- <td style="text-align: center;">
614
- <nobr >{{row.f_balance}}</nobr>
615
- </td>
616
- <td style="text-align: center;">
617
- <nobr>{{row.f_curbalance}}</nobr>
618
-
619
- </td>
620
- <td style="text-align: center;">
621
- <nobr>{{row.f_payment}}</nobr>
622
- </td>
623
- <td style="text-align: center;">
624
- <nobr>{{row.f_write_card}}</nobr>
625
- </td>
626
- <td style="text-align: center;">
627
- <nobr>{{row.f_bank_type}}</nobr>
628
- </td>
629
- <td style="text-align: center;">
630
- <nobr>{{row.f_bank_name}}</nobr>
631
- </td>
632
- <td style="text-align: center;">
633
- <nobr>{{row.f_type}}</nobr>
634
- </td>
635
- <td style="text-align: center;">
636
- <nobr>{{row.f_terminal_num}}</nobr>
637
- </td>
638
- <td style="text-align: center;">
639
- <nobr>{{row.f_bluetooth_package}}</nobr>
640
- </td>
641
- <td style="text-align: center;">
642
- <nobr>{{row.f_state}}</nobr>
643
- </td>
644
-
645
- <td style="text-align: center;">
646
- <nobr>{{row.f_comments}}</nobr>
647
- </td>
648
- <td style="text-align: center;">
649
- <nobr>{{row.filltimes}}</nobr>
650
- </td>
651
- <td style="text-align: center;">
652
- <nobr>{{row.f_operator}}</nobr>
653
- </td>
654
- <td style="text-align: center;">
655
- <nobr>{{row.f_depname}}</nobr>
656
- </td>
657
- <td style="text-align: center;">
658
- <nobr>{{row.f_orgname}}</nobr>
659
- </td>
660
- <td style="text-align: center;">
661
- <nobr>{{row.f_serial_id}}</nobr>
662
- </td>
663
- <td style="text-align: center;">
664
- <nobr>{{row.f_bill_number}}</nobr>
665
- </td>
666
- <td style="text-align: center;">
667
- <nobr>{{row.f_serial_number}}</nobr>
668
- </td>
669
- <td style="text-align: center;">
670
- <nobr>{{row.f_invoice_num}}</nobr>
671
- </td>
672
- <td style="text-align: center;">
673
- <nobr>{{row.f_invoice_type}}</nobr>
674
- </td>
675
- <td style="text-align: center;">
676
- <nobr>{{row.f_invoiceuse_operator}}</nobr>
677
- </td>
678
- <td style="text-align: center;">
679
- <nobr>{{row.f_invoice_date}}</nobr>
680
- </td>
681
- <td style="text-align: center;">
682
- <nobr>{{row.f_tax_logotype}}</nobr>
683
- </td>
684
- <td style="text-align: center;">
685
- <nobr>{{row.f_write_totalgas}}</nobr>
686
- </td>
687
- <td style="text-align: center;">
688
- <nobr>{{row.f_write_money}}</nobr>
689
- </td>
690
- <td style="text-align: center;">
691
- <nobr>{{row.f_corr_operator}}</nobr>
692
- </td>
693
- <td style="text-align: center;">
694
- <nobr>{{row.f_corr_operate_date}}</nobr>
695
- </td>
696
- <td style="text-align: center;">
697
- <nobr>{{row.f_stairamount1}}</nobr>
698
- </td>
699
- <td style="text-align: center;">
700
- <nobr>{{row.f_stair1price}}</nobr>
701
- </td>
702
- <td style="text-align: center;">
703
- <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
704
- </td>
705
- <td style="text-align: center;">
706
- <nobr>{{row.f_stair2amount}}</nobr>
707
- </td>
708
- <td style="text-align: center;">
709
- <nobr>{{row.f_stair2price}}</nobr>
710
- </td>
711
- <td style="text-align: center;">
712
- <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
713
- </td>
714
- <td style="text-align: center;">
715
- <nobr>{{row.f_stair3amount}}</nobr>
716
- </td>
717
- <td style="text-align: center;">
718
- <nobr>{{row.f_stair3price}}</nobr>
719
- </td>
720
- <td style="text-align: center;">
721
- <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
722
- </td>
723
- <td style="text-align: center;">
724
- <nobr>{{row.isbgl}}</nobr>
725
- </td>
726
- <td style="text-align: center;"><nobr>
727
- <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
728
- </nobr></td>
729
- </template>
730
- <template partial='foot'></template>
731
- </data-grid>
732
- </criteria-paged>
733
- <table class="table-hover">
734
- <tr style="position: relative" class="table-bordered">
735
- <td
736
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
737
- 汇总信息
738
- </td>
739
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
740
- 气量合计:&emsp;{{sumsmodel.f_pregas}}
741
- </td>
742
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
743
- 气费金额合计:&emsp;{{sumsmodel.fee}}
744
- </td>
745
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
746
- 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
747
- </td>
748
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
749
- 应交金额合计:&emsp;{{sumsmodel.f_preamount}}
750
- </td>
751
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
752
- 预存金额合计:&emsp;{{sumsmodel.f_yucun}}
753
- </td>
754
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
755
- 实际收款合计:&emsp;{{sumsmodel.f_collection}}
756
- </td>
757
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
758
- 优惠合计:&emsp;{{sumsmodel.f_privilege_money}}
759
- </td>
760
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
761
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
762
- </td>
763
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
764
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
765
- </td>
766
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
767
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
768
- </td>
769
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
770
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
771
- </td>
772
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
773
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
774
- </td>
775
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
776
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
777
- </td>
778
- </tr>
779
- </table>
780
- </div>
781
- </div>
782
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
783
- <article slot="modal-body">
784
- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
785
- </article>
786
- <footer slot="modal-footer" class="modal-footer">
787
- </footer>
788
- </modal>
789
- </div>
790
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
791
- </template>
792
-
793
- <script>
794
- import {HttpResetClass, PagedList} from 'vue-client'
795
- import exportConfig from './config/exportConfig'
796
- let cardBtnGen = async function (self, val) {
797
- self.cardInfo = val.data
798
-
799
- // 判断读卡是否需要卡密码
800
- console.log('读卡上的信息', self.cardInfo)
801
-
802
- if (self.cardInfo.NewParam) {
803
- if (self.cardInfo.NewParam.error) {
804
- if (self.cardInfo.NewParam.error === '0001') {
805
- // 需要重新读卡并传卡密码
806
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
807
- self.readCardParam = self.model.rows[0].f_card_password
808
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
809
- } else {
810
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
811
- return
812
- }
813
- }
814
- }
815
- }
816
- self.card=self.cardInfo.CardID
817
- self.search()
818
- }
819
- let readySomething = async function (self) {
820
- //加载抄表册
821
- self.initmeterbook();
822
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
823
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
824
- // self.$refs.paged.$refs.cri.model.f_state=['有效'];
825
- // self.$refs.paged.$refs.cri.search()
826
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
827
- await self.$MagLoadParams.loadParam()
828
- self.initParams()
829
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
830
- }
831
- export default {
832
- props:['data'],
833
- title: '收费查询',
834
- data() {
835
- return {
836
- IdCardInfo:'',
837
- card:'',
838
- isSingleUser: null,
839
- startDate1:'',
840
- endDate1:'',
841
- resshow:['company','department','operator','slicearea'],
842
- other:[],
843
- pcdslist:[],
844
-
845
- footer:[],
846
- config: {
847
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount','f_operate_date']
848
- },
849
- //排序
850
- orderitem:'f_operate_date desc',
851
- orderFields: {
852
- f_operate_date: 'no'
853
- },
854
- //f_price_name:[],
855
- gasproperties:[],
856
- // papertype: this.$appdata.getParam('票据类型') ? [{
857
- // label: '全部',
858
- // value: ''
859
- // }, ...this.$appdata.getParam('票据类型')] : [],
860
- gaspropertiessecond: this.$appdata.getParam('二级用气性质') ? [{
861
- label: '全部',
862
- value: ''
863
- }, ...this.$appdata.getParam('二级用气性质')] : [],
864
- showinfo: false,
865
- data: {},
866
- getstart:'',
867
- show:false,
868
- rowdata:{},
869
- initres: {
870
- org:[this.$login.f.orgid],
871
- dep:[],
872
- user:[]
873
- },
874
- model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
875
- f_pregas: 0,
876
- f_preamount: 0,
877
- f_delaypay: 0,
878
- fee:0,
879
- f_yucun:0,
880
- f_privilege_money: 0,
881
- f_collection: 0,
882
- f_stairamount1:0,
883
- f_stair1fee:0,
884
- f_stair2amount:0,
885
- f_stair2fee:0,
886
- f_stair3amount:0,
887
- f_stair3fee:0,
888
- }),
889
- criteriaShow: false,
890
- orgCondtionStr: '',
891
- // 下拉框
892
- meterbrands: [],
893
- pricenames: [],
894
- prices: [],
895
- area: [],
896
- //默认打印列
897
- defaultfield: [],
898
- //小区
899
- residentialArea: [],
900
- sumsmodel: {},
901
- f_filialeid: this.$login.f.orgid,
902
- wxstate:[
903
- {label: '全部', value: ''},
904
- {label: '已退款', value: `= '3'`},
905
- {label: '未退款', value: `!= '3'`}
906
- ],
907
- privilege_money:[
908
- {label: '全部', value: ''},
909
- {label: '已优惠', value: '> 0'},
910
- {label: '未优惠', value: '= 0'}
911
- ],
912
- showupload:false,
913
- selected:{},
914
- meterbooks:[{label: '全部',value: ''}], //抄表册
915
- inputtores:[{label: '全部',value: ''}],
916
- writecard:[{label: '全部',value: ''},{label: '已写卡',value: '已写卡'},{label: '未写卡',value: '未写卡'},{label: '写卡失败',value: '写卡失败'}],
917
- bluetoothpackage:[{label: '全部',value: ''},{label: '发送成功',value: '发送成功'},{label: '执行成功',value: '执行成功'}],
918
- allorgid:[],
919
- tempfalg :false,
920
- lastorgstr:'',
921
- // pos设备列表
922
- posEquipment: [{label: '全部',value: ''}],
923
- showbottomsum:false, //页面下方是否有合计: 默认为false, 在watch修改
924
- bgl:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
925
- }
926
- },
927
- ready() {
928
- this.$refs.paged.$refs.cri.model.f_state=['有效']
929
- this.getaddress()
930
- this.getEquipment()
931
- //加载抄表册
932
- this.$MagGetSaleParam.initinputtor();
933
- this.getinputtores();
934
- // this.initres.dep.push(this.$login.f.depids)
935
- readySomething(this).then(() => {
936
- this.$emit('ready')
937
- }).catch((error) => {
938
- this.$emit('error', error)
939
- })
940
- },
941
- methods: {
942
- // 获取设备下拉选
943
- async getEquipment () {
944
- let HttpReset = new HttpResetClass()
945
- let param = {
946
- items: 'f_terminal_name',
947
- tablename: 't_equipment',
948
- condition: `f_equipment_type = 'POS' and f_state = '正常'`,
949
- orderitem: 'id'
950
- }
951
- var data = await HttpReset.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
952
- for (let row of data.data) {
953
- this.posEquipment.push({label: row.f_terminal_name, value: row.f_terminal_name})
954
- }
955
- },
956
- ReadIDCard(){
957
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
958
- console.log('======',msg)
959
- if(msg.err !== 0){ return}
960
- this.IdCardInfo=msg.strID
961
- })
962
- if(this.IdCardInfo) {
963
- this.search()
964
- }else{
965
- alert("读取失败,找不到用户信息")
966
- }
967
- },
968
- cardBtn (val) {
969
- // this.clear()
970
- cardBtnGen(this, val)
971
- },
972
- async initmeterbook(orgstr){
973
- if(orgstr == null ){
974
- orgstr = this.f_filialeid;
975
- }
976
- //获取新的抄表册,先去清理所有的抄表册
977
- this.$GetSaleParam.meterbooks = [];
978
- //开始加载新的抄表册
979
- await this.$LoadParams.loadMeterBook(orgstr)
980
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
981
- },
982
- async getinputtores () {
983
- // 获取抄表员
984
- let rs = []
985
- if (this.$login.f.f_gasman.length > 0) {
986
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
987
- let temp = {
988
- label: this.$login.f.f_gasman[i].name,
989
- value: this.$login.f.f_gasman[i].name
990
- }
991
- rs.push(temp)
992
- }
993
- }
994
- this.inputtores = [{label: '全部', value: ''}, ...rs]
995
- },
996
- //显示附件
997
- view(row){
998
- this.showupload = true
999
- this.selected= row
1000
- },
1001
- getotherfooter () {
1002
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
1003
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
1004
- this.other = [];
1005
- this.footer = [];
1006
- let exportdata = this.getCondition;
1007
- let otherInData = [];
1008
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
1009
- let footerData = [], exportfield = this.getfield;
1010
- footerData.push("合计");
1011
- let self = this;
1012
- for (var field in self.sumsmodel) {
1013
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
1014
- }
1015
- this.footer.push(footerData);
1016
- this.other.push(otherInData);
1017
- },
1018
- async getaddress(){
1019
- let HttpReset = new HttpResetClass()
1020
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
1021
- data: {
1022
- // condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
1023
- condition: `1=1`
1024
- }
1025
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
1026
- console.log('小区',data)
1027
- let house = [{label: '全部', value: ''}]
1028
- for (let row of data.data){
1029
- house.push({label: row.f_residential_area, value: row.f_residential_area})
1030
- }
1031
- console.log('开始获取区域')
1032
- var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
1033
- data: {
1034
- items: '*',
1035
- tablename: 't_pcd',
1036
- orderitem: 'id',
1037
- condition: `1=1`
1038
- }
1039
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
1040
- this.residentialArea = house
1041
- let redata = []
1042
- console.log('区域是:',req)
1043
- req.data.forEach((row, n) => {
1044
- redata[n] = {
1045
- label: row.f_pcd,
1046
- value: row.id,
1047
- data: row,
1048
- id: row.id
1049
- }
1050
- })
1051
- console.log('获取到的小区',redata)
1052
- this.pcdslist = redata
1053
- },
1054
- //把数据库查询数据转换为下拉数据
1055
- calculate(rows){
1056
- let data = []
1057
- rows.forEach((row, n) => {
1058
- data[n] = {label: row.f_residential_area, value: row.id}
1059
- })
1060
- return data
1061
- },
1062
-
1063
- search(){
1064
-
1065
- this.$refs.paged.$refs.cri.search()
1066
- },
1067
- cancel() {
1068
- this.show = false
1069
- },
1070
- showmsg(obj){
1071
- this.rowdata=obj
1072
- this.show=true
1073
- },
1074
- userTypeChange () {
1075
- this.gasproperties=[]
1076
- if(this.$refs.paged.$refs.cri.model !==null) {
1077
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
1078
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1079
- }
1080
- else{
1081
- this.gasproperties =[{label: '全部', value: ''}]
1082
- }
1083
- },
1084
- initParams() {
1085
- // 初始化气表品牌
1086
- let brandArr = []
1087
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1088
- let temp = {}
1089
- temp.label = item.label
1090
- temp.value = item.value.f_meter_brand
1091
- brandArr.push(temp)
1092
- })
1093
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1094
- //初始化气表价格
1095
- this.prices = this.$MagGetSaleParam.getPrices();
1096
- },
1097
- selfSearch(args) {
1098
- if (this.data) {
1099
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
1100
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
1101
- }
1102
-
1103
- let f_orgstr = this.orgCondtionStr
1104
- args.condition = `${args.condition} ` + f_orgstr
1105
- if(this.card!=''){
1106
- args.condition+=` and f_card_id='${this.card}'`
1107
- }
1108
- if(this.IdCardInfo!=''){
1109
- args.condition +=` and f_idnumber='${this.IdCardInfo}'`
1110
- }
1111
- this.model.search(args.condition, args.model)
1112
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
1113
- this.card=''
1114
- this.IdCardInfo=''
1115
- },
1116
- clear() {
1117
- //清空部门和人员
1118
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1119
- //部门和人员变为全选
1120
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1121
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1122
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1123
- this.$refs.paged.$refs.cri.model[key] = []
1124
- })
1125
-
1126
- },
1127
- dealmsg(val,startDate,endDate) {
1128
- val.model = this.model.model
1129
- startDate=this.startDate1
1130
- endDate=this.endDate1
1131
- this.$dispatch('deal-msg', val,startDate,endDate)
1132
- },
1133
- show() {
1134
- this.criteriaShow = true
1135
- },
1136
- hidden() {
1137
- this.criteriaShow = !this.criteriaShow
1138
- },
1139
- async getRes(condition,obj) {
1140
- this.orgCondtionStr = condition
1141
- this.orgname = obj.orgnames[0]
1142
- this.depname = obj.depnames[0]
1143
-
1144
-
1145
- },
1146
- async updateParams() {
1147
- await this.$MagLoadParams.loadParam(this.f_filialeid)
1148
- this.inputtores = [];
1149
- this.inputtores.push({label: "全部", value: ""})
1150
- if(this.allorgid!=null){
1151
- this.allorgid.forEach((res)=>{
1152
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1153
- })
1154
- }
1155
- this.initParams()
1156
- },
1157
- sort (field, rule) {
1158
- // 将所有排序方式设为不排序,实现相互排斥
1159
- for (let key in this.orderFields) {
1160
- if (key === field) {
1161
- this.orderFields[key] = rule
1162
- } else {
1163
- this.orderFields[key] = 'no'
1164
- }
1165
- }
1166
- // 如果新规则不排序,还原为默认排序
1167
- if (rule === 'no') {
1168
- this.model.paramSource.orderitem = `'${this.orderitem}'`
1169
- } else {
1170
- this.model.paramSource.orderitem = `'${field} ${rule}'`
1171
- }
1172
-
1173
- this.search()
1174
- }
1175
-
1176
- },
1177
- events:{
1178
- 'getidcard'(IdCard){
1179
- // console.log(param)
1180
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
1181
- }
1182
- },
1183
- watch: {
1184
- 'model.rows'(val) {
1185
- //如果有合计 这里为true, 其他为false ,反正相反
1186
- this.showbottomsum=true;
1187
- if(val.length === 0){
1188
- this.sumsmodel = {}
1189
- this.showbottomsum=false;
1190
- }
1191
- },
1192
- 'model.rows.length' () {
1193
- this.isSingleUser = this.model.rows
1194
- },
1195
- async 'orgCondtionStr'(val) {
1196
- //更新抄表册
1197
- this.$refs.paged.$refs.cri.model.f_inputtor=[]
1198
- this.$refs.paged.$refs.cri.model.f_meter_book = []
1199
- this.meterbooks = [{label: '全部',value: ''}];
1200
- if(this.lastorgstr != val){
1201
- this.tempfalg = true;
1202
- this.lastorgstr = val;
1203
- }
1204
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1205
- this.tempfalg = false;
1206
- let a = val.substring(val.indexOf("(")+2)
1207
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1208
- }
1209
- let res = val.match(/'(.*?)'/)
1210
- console.log('正则提取:',res && res[1])
1211
- if (res) {
1212
- this.f_filialeid = res[1]
1213
- if(res.input !=null){
1214
- let resorgid = res.input.substring(res.input.indexOf("'"));
1215
- if(resorgid!= null && resorgid!=''){
1216
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1217
- // resorgid = resorgid.replaceAll("'","");
1218
- resorgid = resorgid.replace(/'/g,"");
1219
- this.allorgid = resorgid.split(",")
1220
- }
1221
- }
1222
- this.updateParams()
1223
- }
1224
- },
1225
- sumsmodel:{
1226
- handler: function(val) {
1227
- this.getotherfooter();
1228
- },
1229
- deep: true
1230
- }
1231
- },
1232
- computed: {
1233
- getstart(){
1234
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
1235
- },
1236
- chooserow(){
1237
- let aaa= true
1238
- if(this.$login.r && this.$login.r.includes('打印项选择')){
1239
- aaa = false
1240
- }
1241
- return aaa
1242
- },
1243
- getPricenames() {
1244
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1245
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1246
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1247
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1248
- if(this.$refs.paged.$refs.cri.model !==null) {
1249
- let rs = []
1250
- let priceArr = []
1251
- if ( pricetype.length >0) {
1252
- let params = {
1253
- f_price_type: pricetype[0],
1254
- filter: this.f_filialeid,
1255
- prices: this.prices
1256
- }
1257
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1258
- let temp = {}
1259
- temp.label = item.label
1260
- temp.value = item.value.f_price_name
1261
- priceArr.push(temp)
1262
- })
1263
- rs = [{label: '全部', value: ''}, ...priceArr]
1264
- }
1265
- if (rs.length === 0) {
1266
- console.log('rs读出来是空')
1267
- this.$refs.paged.$refs.cri.model.f_price_name = ''
1268
- }
1269
- return rs
1270
- }
1271
- },
1272
- getCondition() {
1273
- return {
1274
- startDate: this.$refs.paged.$refs.cri.model.startDate,
1275
- endDate: this.$refs.paged.$refs.cri.model.endDate,
1276
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1277
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
1278
- }
1279
- },
1280
- getfield() {
1281
- return exportConfig.chargeConfig
1282
- },
1283
- defaultexport() {
1284
- return exportConfig.chargeexportConfig
1285
- },
1286
- pricetypes() {
1287
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1288
- },
1289
-
1290
- invoiceType() {
1291
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
1292
- },
1293
- usertypes() {
1294
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
1295
- },
1296
- metertypes() {
1297
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1298
- },
1299
-
1300
- tablestate() {
1301
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
1302
- },
1303
- chargetype() {
1304
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
1305
- },
1306
- payment() {
1307
- return [...this.$appdata.getParam('付款方式查询')]
1308
- },
1309
- banktype() {
1310
- return [...this.$appdata.getParam('支付渠道查询')]
1311
- },
1312
- charge_state() {
1313
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
1314
- },
1315
- bank(){
1316
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
1317
- }
1318
- }
1319
- }
1320
- </script>
1321
- <style scoped>
1322
- .showbottom{
1323
- height:95%
1324
- }
1325
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
42
+ <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ :defaultselect="$parent.$parent.defaultexport"
49
+ sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
50
+ :choose-col="true">
51
+ </export-excel>
52
+
53
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield"
55
+ titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
56
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
58
+
59
+ </div>
60
+ </div>
61
+ <div class="row" v-show="$parent.$parent.criteriaShow">
62
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">收费编号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.id"
66
+ condition="id = '{}'" placeholder="收费编号">
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">客户电话</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
71
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">身份证号</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
76
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">客户地址</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
81
+ condition="f_address like '%{}%'" placeholder='客户地址'>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
85
+ <v-select :value.sync="model.f_residential_area"
86
+ class="select_list select"
87
+ v-model="model.f_residential_area"
88
+ style="width: 60%"
89
+ multiple
90
+ condition="f_residential_area in {}"
91
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
92
+ close-on-select>
93
+ </v-select>
94
+ </div>
95
+ <div
96
+ class="col-sm-2 form-group">
97
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
98
+ <v-select
99
+ v-model="model.f_pcd"
100
+ placeholder='选择区域'
101
+ :value.sync="model.f_pcd"
102
+ :options='$parent.$parent.pcdslist'
103
+ condition="f_pcd_id = '{}'"
104
+ style="width: 60%"
105
+ close-on-select >
106
+ </v-select>
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
110
+ <v-select :value.sync="model.f_payment" multiple
111
+ v-model="model.f_payment"
112
+ :options='$parent.$parent.payment' placeholder='请选择'
113
+ condition="f_payment in {}"
114
+ close-on-select></v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
118
+ <v-select :value.sync="model.f_bank_type" multiple
119
+ v-model="model.f_bank_type"
120
+ :options='$parent.$parent.banktype' placeholder='请选择'
121
+ condition="f_bank_type in {}"
122
+ close-on-select></v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body">收费类型</label>
126
+ <!-- <v-select :value.sync="model.f_type"
127
+ v-model="model.f_type"
128
+ :options='$parent.$parent.chargetype' placeholder='请选择'
129
+ condition="f_type = '{}'"
130
+ close-on-select></v-select>-->
131
+ <v-select :value.sync="model.f_type" multiple
132
+ :options='$parent.$parent.chargetype' placeholder='请选择'
133
+ close-on-select clear-button
134
+ condition="f_type in {}"
135
+ v-model="model.f_type"></v-select>
136
+ </div>
137
+ <!-- <div class="col-sm-2 form-group">-->
138
+ <!-- <label class="font_normal_body">票据类型</label>-->
139
+ <!-- <v-select :options='$parent.$parent.papertype'-->
140
+ <!-- condition="f_paper_type = '{}'"-->
141
+ <!-- v-model="model.f_paper_type"-->
142
+ <!-- :value.sync="model.f_paper_type" close-on-select-->
143
+ <!-- placeholder='请选择'></v-select>-->
144
+ <!-- </div>-->
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">客户类型</label>
147
+ <v-select :value.sync="model.f_user_type"
148
+ @change="$parent.$parent.userTypeChange()"
149
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
150
+ condition="f_user_type = '{}'"
151
+ close-on-select></v-select>
152
+ </div>
153
+ <div class="col-sm-2 form-group">
154
+ <label class="font_normal_body">用气性质</label>
155
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
156
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
157
+ condition="f_gasproperties = '{}'"
158
+ close-on-select></v-select>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body" title="二级用气性质">二级性质</label>
162
+ <v-select :value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
163
+ :options='$parent.$parent.gaspropertiessecond' placeholder='二级用气性质'
164
+ condition="f_gasproperties_second = '{}'"
165
+ close-on-select></v-select>
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">气价类型</label>
169
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
170
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
171
+ close-on-select v-ref:type>
172
+ </v-select>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">气价名称</label>
176
+ <v-select :value.sync="model.f_price_name"
177
+ v-model="model.f_price_name"
178
+ :options="$parent.$parent.getPricenames"
179
+ condition="f_price_name = '{}'"
180
+ close-on-select></v-select>
181
+ </div>
182
+ <div class="col-sm-2 form-group">
183
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
184
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
185
+ condition="f_meternumber = '{}'" placeholder='表号'>
186
+ </div>
187
+ <div class="col-sm-2 form-group">
188
+ <label class="font_normal_body">气表类型</label>
189
+ <v-select :value.sync="model.f_meter_type" multiple
190
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
191
+ condition="f_meter_type in {}"
192
+ close-on-select></v-select>
193
+ </div>
194
+ <div class="col-sm-2 form-group">
195
+ <label class="font_normal_body">气表品牌</label>
196
+ <v-select :value.sync="model.f_meter_brand" multiple
197
+ v-model="model.f_meter_brand"
198
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
199
+ condition="f_meter_brand in {}"
200
+ close-on-select></v-select>
201
+ </div>
202
+
203
+ <div class="col-sm-2 form-group">
204
+ <label class="font_normal_body">收费状态</label>
205
+ <v-select :value.sync="model.f_state" multiple
206
+ v-model="model.f_state"
207
+ :options='$parent.$parent.charge_state' placeholder='请选择'
208
+ condition="f_state in {}"
209
+ close-on-select></v-select>
210
+ </div>
211
+ <div class="col-sm-2 form-group">
212
+ <label class="font_normal_body">银行名称</label>
213
+ <v-select :value.sync="model.f_bank_name"
214
+ v-model="model.f_bank_name"
215
+ :options='$parent.$parent.bank' placeholder='请选择'
216
+ condition="f_bank_name = '{}'"
217
+ close-on-select></v-select>
218
+ </div>
219
+ <div class="col-sm-2 form-group">
220
+ <label class="font_normal_body">是否优惠</label>
221
+ <v-select :value.sync="model.f_privilege_money"
222
+ v-model="model.f_privilege_money"
223
+ :options='$parent.$parent.privilege_money' placeholder='请选择'
224
+ condition="f_privilege_money {}"
225
+ close-on-select></v-select>
226
+ </div>
227
+ <div class="col-sm-2 form-group">
228
+ <label class="font_normal_body">优惠金额</label>
229
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
230
+ v-model="model.f_privilege_money_big" condition="f_privilege_money >= {}" placeholder='大于等于'>
231
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
232
+ v-model="model.f_privilege_money_small" condition="f_privilege_money <= {}" placeholder='小于等于'>
233
+ </div>
234
+ <div class="col-sm-2 form-group">
235
+ <label class="font_normal_body">收&ensp;据&ensp;号</label>
236
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
237
+ v-model="model.f_bill_number_big" condition="f_bill_number >= {}" placeholder='大于等于'>
238
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
239
+ v-model="model.f_bill_number_small" condition="f_bill_number <= {}" placeholder='小于等于'>
240
+ </div>
241
+ <div class="col-sm-2 form-group">
242
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;流水号</label>
243
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
244
+ condition="f_serial_id like '%{}%'" placeholder='流水号'>
245
+ </div>
246
+ <div class="col-sm-2 form-group">
247
+ <label class="font_normal_body">发票号码</label>
248
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
249
+ condition="f_invoice_num = '{}'" placeholder='发票号码'>
250
+ </div>
251
+ <div class="col-sm-2 form-group">
252
+ <label class="font_normal_body" title="发票类型查询">发票类型</label>
253
+ <v-select :value.sync="model.f_invoice_type"
254
+ v-model="model.f_invoice_type"
255
+ :options='$parent.$parent.invoiceType' placeholder='请选择'
256
+ condition="f_invoice_type = '{}'"
257
+ close-on-select :value-single="true" :search="false">
258
+ </v-select>
259
+ </div>
260
+ <div class="col-sm-2 form-group">
261
+ <label class="font_normal_body">开&ensp;票&ensp;人</label>
262
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoiceuse_operator"
263
+ condition="f_invoiceuse_operator like '%{}%'" placeholder='开票人'>
264
+ </div>
265
+ <div class="col-sm-2 form-group">
266
+ <label for="startDate" class="font_normal_body">开票时间</label>
267
+ <datepicker id="startDate1" placeholder="开始日期" style="width:60%"
268
+ v-model="model.invoice_startDate"
269
+ :value.sync="model.invoice_startDate"
270
+ :format="'yyyy-MM-dd'"
271
+ :show-reset-button="true"
272
+ condition="f_invoice_date >= '{}'">
273
+ </datepicker>
274
+ </div>
275
+ <div class="col-sm-2 form-group">
276
+ <label for="endDate" class="font_normal_body">开票时间</label>
277
+ <datepicker id="endDate1" placeholder="结束日期" style="width:60%"
278
+ v-model="model.invoice_endDate"
279
+ :value.sync="model.invoice_endDate"
280
+ :format="'yyyy-MM-dd'"
281
+ :show-reset-button="true"
282
+ condition="f_invoice_date <= '{}'">
283
+ </datepicker>
284
+ </div>
285
+ <div class="col-sm-2 form-group">
286
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
287
+ <v-select :value.sync="model.f_inputtor"
288
+ v-model="model.f_inputtor"
289
+ :options='$parent.$parent.inputtores' placeholder='请选择'
290
+ condition="f_inputtor = '{}'"
291
+ close-on-select :search="false">
292
+ </v-select>
293
+ </div>
294
+ <div class="col-sm-2 form-group">
295
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
296
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
297
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
298
+ style="width:60%"
299
+ close-on-select
300
+ condition="f_meter_book_num = '{}'"></v-select>
301
+ </div>
302
+ <div class="col-sm-2 form-group">
303
+ <label class="font_normal_body">写卡状态</label>
304
+ <v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
305
+ :options='$parent.$parent.writecard' placeholder='写卡状态'
306
+ style="width:60%"
307
+ close-on-select
308
+ condition="f_write_card = '{}'"></v-select>
309
+ </div>
310
+ <div class="col-sm-2 form-group">
311
+ <label class="font_normal_body">街&ensp;&ensp;&ensp;&ensp;道</label>
312
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
313
+ condition="f_street like '%{}%'" placeholder='街道'>
314
+ </div>
315
+ <div class="col-sm-2 form-group">
316
+ <label class="font_normal_body">数&ensp;据&ensp;包</label>
317
+ <v-select :value.sync="model.f_bluetooth_package" v-model="model.f_bluetooth_package"
318
+ :options='$parent.$parent.bluetoothpackage' placeholder='数据包状态'
319
+ style="width:60%"
320
+ close-on-select
321
+ condition="f_bluetooth_package = '{}'"></v-select>
322
+ </div>
323
+ <div class="col-sm-2 form-group">
324
+ <label class="font_normal_body">pos设备&nbsp;</label>
325
+ <v-select :value.sync="model.f_terminal_name" multiple
326
+ v-model="model.f_terminal_name"
327
+ :options='$parent.$parent.posEquipment' placeholder='请选择'
328
+ condition="f_operator in {}"
329
+ close-on-select></v-select>
330
+ </div>
331
+ <div class="col-sm-2 form-group">
332
+ <label class="font_normal_body">终端号</label>
333
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_terminal_num"
334
+ condition="f_terminal_num like '{}'" placeholder='终端号'>
335
+ </div>
336
+ <div class="col-sm-2 form-group">
337
+ <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
338
+ <v-select :value.sync="model.isbgl"
339
+ v-model="model.isbgl"
340
+ :options='$parent.$parent.bgl' placeholder='请选择'
341
+ condition="isbgl = '{}'"
342
+ close-on-select></v-select>
343
+ </div>
344
+ </div>
345
+ </div>
346
+ </criteria>
347
+
348
+ <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
349
+ <template partial='head'>
350
+ <tr>
351
+ <th>
352
+ <nobr>收费编号</nobr>
353
+ </th>
354
+ <th>
355
+ <!-- <nobr>客户编号</nobr>-->
356
+ <data-order field="f_userinfo_code" name="客户编号"
357
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
358
+ </th>
359
+ <th><nobr>街道</nobr></th>
360
+ <th>
361
+ <nobr>客户名称</nobr>
362
+ </th>
363
+ <th>
364
+ <nobr>客户电话</nobr>
365
+ </th>
366
+
367
+ <!-- <th>-->
368
+ <!-- <nobr>片区</nobr>-->
369
+ <!-- </th>-->
370
+ <th>
371
+ <!-- <nobr>客户地址</nobr>-->
372
+ <data-order field="f_address" name="客户地址"
373
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
374
+ </th>
375
+ <th>
376
+ <nobr>客户类型</nobr>
377
+ </th>
378
+ <th>
379
+ <nobr>用气性质</nobr>
380
+ </th>
381
+ <th>
382
+ <nobr>二级用气性质</nobr>
383
+ </th>
384
+ <th>
385
+ <nobr>表号</nobr>
386
+ </th>
387
+ <th>
388
+ <nobr>气表品牌</nobr>
389
+ </th>
390
+ <th>
391
+ <nobr>卡号</nobr>
392
+ </th>
393
+ <th>
394
+ <nobr>购气次数</nobr>
395
+ </th>
396
+ <th>
397
+ <nobr>气量</nobr>
398
+ </th>
399
+ <th>
400
+ <nobr>气费金额</nobr>
401
+ </th>
402
+ <th>
403
+ <nobr>滞纳金</nobr>
404
+ </th>
405
+ <th>
406
+ <nobr>应收金额</nobr>
407
+ </th>
408
+ <th>
409
+ <nobr>清缴金额</nobr>
410
+ </th>
411
+ <th>
412
+ <nobr>预存金额</nobr>
413
+ </th>
414
+
415
+ <th>
416
+ <nobr>实际收款</nobr>
417
+ </th>
418
+ <th>
419
+ <!-- <nobr>收费日期</nobr>-->
420
+ <data-order field="f_operate_date" name="收费日期"
421
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
422
+ </th>
423
+ <th>
424
+ <nobr>优惠金额</nobr>
425
+ </th>
426
+ <th>
427
+ <nobr>上期结余</nobr>
428
+ </th>
429
+ <th>
430
+ <nobr>本期结余</nobr>
431
+ </th>
432
+ <th>
433
+ <nobr>付款方式</nobr>
434
+ </th>
435
+ <th>
436
+ <nobr>写卡状态</nobr>
437
+ </th>
438
+ <th>
439
+ <nobr>支付渠道</nobr>
440
+ </th>
441
+ <th>
442
+ <nobr>银行名称</nobr>
443
+ </th>
444
+ <th>
445
+ <nobr>收费类型</nobr>
446
+ </th>
447
+ <th>
448
+ <nobr>终端号</nobr>
449
+ </th>
450
+ <th>
451
+ <nobr>蓝牙数据包状态</nobr>
452
+ </th>
453
+ <th>
454
+ <nobr>状态</nobr>
455
+ </th>
456
+
457
+ <th>
458
+ <nobr>备注</nobr>
459
+ </th>
460
+ <th>
461
+ <nobr>补打次数</nobr>
462
+ </th>
463
+ <th>
464
+ <nobr>人员</nobr>
465
+ </th>
466
+ <th>
467
+ <nobr>部门</nobr>
468
+ </th>
469
+ <th>
470
+ <nobr>公司</nobr>
471
+ </th>
472
+ <th>
473
+ <nobr>流水号</nobr>
474
+ </th>
475
+ <th>
476
+ <nobr>收据号</nobr>
477
+ </th>
478
+ <th>
479
+ <nobr>业务单号</nobr>
480
+ </th>
481
+ <th>
482
+ <nobr>发票号码</nobr>
483
+ </th>
484
+ <th>
485
+ <nobr>发票类型</nobr>
486
+ </th>
487
+ <th>
488
+ <nobr>开票人</nobr>
489
+ </th>
490
+ <th>
491
+ <nobr>开票时间</nobr>
492
+ </th>
493
+ <th>
494
+ <nobr>是否征税</nobr>
495
+ </th>
496
+ <th>
497
+ <nobr>累计写卡气量</nobr>
498
+ </th>
499
+ <th>
500
+ <nobr>实际写卡金额</nobr>
501
+ </th>
502
+ <th>
503
+ <nobr>冲正人</nobr>
504
+ </th>
505
+ <th>
506
+ <nobr>冲正时间</nobr>
507
+ </th>
508
+ <th>
509
+ <nobr>一阶气量</nobr>
510
+ </th>
511
+ <th>
512
+ <nobr>一阶单价</nobr>
513
+ </th>
514
+ <th>
515
+ <nobr>一阶气费</nobr>
516
+ </th>
517
+ <th>
518
+ <nobr>二阶气量</nobr>
519
+ </th>
520
+ <th>
521
+ <nobr>二阶单价</nobr>
522
+ </th>
523
+ <th>
524
+ <nobr>二阶气费</nobr>
525
+ </th>
526
+ <th>
527
+ <nobr>三阶气量</nobr>
528
+ </th>
529
+ <th>
530
+ <nobr>三阶单价</nobr>
531
+ </th>
532
+ <th>
533
+ <nobr>三阶气费</nobr>
534
+ </th>
535
+ <th>
536
+ <nobr>是否壁挂炉</nobr>
537
+ </th>
538
+ <th><nobr>附件</nobr></th>
539
+ </tr>
540
+ </template>
541
+ <template partial='body'>
542
+ <td style="text-align: center;">
543
+ <nobr>{{row.id}}</nobr>
544
+ </td>
545
+ <td style="text-align: center;"><nobr>
546
+ <nobr>{{row.f_userinfo_code}}</nobr>
547
+ </nobr> </td>
548
+ <td style="text-align: center;">
549
+ <nobr>{{row.f_street}}</nobr>
550
+ </td>
551
+ <td style="text-align: center;">
552
+ <nobr>{{row.f_user_name}}</nobr>
553
+ </td>
554
+ <td style="text-align: center;">
555
+ <nobr>{{row.f_user_phone}}</nobr>
556
+ </td>
557
+ <td style="text-align: center;">
558
+ <nobr>{{row.f_address}}</nobr>
559
+ </td>
560
+ <td style="text-align: center;">
561
+ <nobr>{{row.f_user_type}}</nobr>
562
+ </td>
563
+ <td style="text-align: center;">
564
+ <nobr>{{row.f_gasproperties}}</nobr>
565
+ </td>
566
+ <td style="text-align: center;">
567
+ <nobr>{{row.f_gasproperties_second}}</nobr>
568
+ </td>
569
+ <td style="text-align: center;">
570
+ <nobr>{{row.f_meternumber}}</nobr>
571
+ </td>
572
+ <td style="text-align: center;">
573
+ <nobr>{{row.f_meter_brand}}</nobr>
574
+ </td>
575
+ <td style="text-align: center;">
576
+ <nobr>{{row.f_card_id}}</nobr>
577
+ </td>
578
+ <td style="text-align: center;">
579
+ <nobr>{{row.f_times}}</nobr>
580
+ </td>
581
+ <td style="text-align: center;">
582
+ <nobr>{{row.f_pregas}}</nobr>
583
+ </td>
584
+ <td style="text-align: center;">
585
+ <nobr>{{row.fee}}</nobr>
586
+ </td>
587
+ <td style="text-align: center;">
588
+ <nobr>{{row.f_delaypay}}</nobr>
589
+ </td>
590
+ <td style="text-align: center;">
591
+ <nobr>{{row.f_preamount}}</nobr>
592
+ </td>
593
+ <td style="text-align: center;">
594
+ <nobr>{{row.f_charge_money}}</nobr>
595
+ </td>
596
+ <td style="text-align: center;">
597
+ <nobr>{{row.f_yucun}}</nobr>
598
+ </td>
599
+
600
+ <td style="text-align: center;">
601
+ <nobr>{{row.f_collection}}</nobr>
602
+ </td>
603
+ <!--<td style="text-align: center;">-->
604
+ <!--<nobr>{{row.f_rest_date}}</nobr>-->
605
+ <!--</td>-->
606
+ <td style="text-align: center;">
607
+ <nobr>{{row.f_operate_date}}</nobr>
608
+ </td>
609
+ <td style="text-align: center;">
610
+ <nobr>{{row.f_privilege_money}}</nobr>
611
+ </td>
612
+
613
+ <td style="text-align: center;">
614
+ <nobr >{{row.f_balance}}</nobr>
615
+ </td>
616
+ <td style="text-align: center;">
617
+ <nobr>{{row.f_curbalance}}</nobr>
618
+
619
+ </td>
620
+ <td style="text-align: center;">
621
+ <nobr>{{row.f_payment}}</nobr>
622
+ </td>
623
+ <td style="text-align: center;">
624
+ <nobr>{{row.f_write_card}}</nobr>
625
+ </td>
626
+ <td style="text-align: center;">
627
+ <nobr>{{row.f_bank_type}}</nobr>
628
+ </td>
629
+ <td style="text-align: center;">
630
+ <nobr>{{row.f_bank_name}}</nobr>
631
+ </td>
632
+ <td style="text-align: center;">
633
+ <nobr>{{row.f_type}}</nobr>
634
+ </td>
635
+ <td style="text-align: center;">
636
+ <nobr>{{row.f_terminal_num}}</nobr>
637
+ </td>
638
+ <td style="text-align: center;">
639
+ <nobr>{{row.f_bluetooth_package}}</nobr>
640
+ </td>
641
+ <td style="text-align: center;">
642
+ <nobr>{{row.f_state}}</nobr>
643
+ </td>
644
+
645
+ <td style="text-align: center;">
646
+ <nobr>{{row.f_comments}}</nobr>
647
+ </td>
648
+ <td style="text-align: center;">
649
+ <nobr>{{row.filltimes}}</nobr>
650
+ </td>
651
+ <td style="text-align: center;">
652
+ <nobr>{{row.f_operator}}</nobr>
653
+ </td>
654
+ <td style="text-align: center;">
655
+ <nobr>{{row.f_depname}}</nobr>
656
+ </td>
657
+ <td style="text-align: center;">
658
+ <nobr>{{row.f_orgname}}</nobr>
659
+ </td>
660
+ <td style="text-align: center;">
661
+ <nobr>{{row.f_serial_id}}</nobr>
662
+ </td>
663
+ <td style="text-align: center;">
664
+ <nobr>{{row.f_bill_number}}</nobr>
665
+ </td>
666
+ <td style="text-align: center;">
667
+ <nobr>{{row.f_serial_number}}</nobr>
668
+ </td>
669
+ <td style="text-align: center;">
670
+ <nobr>{{row.f_invoice_num}}</nobr>
671
+ </td>
672
+ <td style="text-align: center;">
673
+ <nobr>{{row.f_invoice_type}}</nobr>
674
+ </td>
675
+ <td style="text-align: center;">
676
+ <nobr>{{row.f_invoiceuse_operator}}</nobr>
677
+ </td>
678
+ <td style="text-align: center;">
679
+ <nobr>{{row.f_invoice_date}}</nobr>
680
+ </td>
681
+ <td style="text-align: center;">
682
+ <nobr>{{row.f_tax_logotype}}</nobr>
683
+ </td>
684
+ <td style="text-align: center;">
685
+ <nobr>{{row.f_write_totalgas}}</nobr>
686
+ </td>
687
+ <td style="text-align: center;">
688
+ <nobr>{{row.f_write_money}}</nobr>
689
+ </td>
690
+ <td style="text-align: center;">
691
+ <nobr>{{row.f_corr_operator}}</nobr>
692
+ </td>
693
+ <td style="text-align: center;">
694
+ <nobr>{{row.f_corr_operate_date}}</nobr>
695
+ </td>
696
+ <td style="text-align: center;">
697
+ <nobr>{{row.f_stairamount1}}</nobr>
698
+ </td>
699
+ <td style="text-align: center;">
700
+ <nobr>{{row.f_stair1price}}</nobr>
701
+ </td>
702
+ <td style="text-align: center;">
703
+ <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
704
+ </td>
705
+ <td style="text-align: center;">
706
+ <nobr>{{row.f_stair2amount}}</nobr>
707
+ </td>
708
+ <td style="text-align: center;">
709
+ <nobr>{{row.f_stair2price}}</nobr>
710
+ </td>
711
+ <td style="text-align: center;">
712
+ <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
713
+ </td>
714
+ <td style="text-align: center;">
715
+ <nobr>{{row.f_stair3amount}}</nobr>
716
+ </td>
717
+ <td style="text-align: center;">
718
+ <nobr>{{row.f_stair3price}}</nobr>
719
+ </td>
720
+ <td style="text-align: center;">
721
+ <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
722
+ </td>
723
+ <td style="text-align: center;">
724
+ <nobr>{{row.isbgl}}</nobr>
725
+ </td>
726
+ <td style="text-align: center;"><nobr>
727
+ <button style=" height: 28px;line-height: 16px;" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
728
+ </nobr></td>
729
+ </template>
730
+ <template partial='foot'></template>
731
+ </data-grid>
732
+ </criteria-paged>
733
+ <table class="table-hover">
734
+ <tr style="position: relative" class="table-bordered">
735
+ <td
736
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
737
+ 汇总信息
738
+ </td>
739
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
740
+ 气量合计:&emsp;{{sumsmodel.f_pregas}}
741
+ </td>
742
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
743
+ 气费金额合计:&emsp;{{sumsmodel.fee}}
744
+ </td>
745
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
746
+ 滞纳金合计:&emsp;{{sumsmodel.f_delaypay}}
747
+ </td>
748
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
749
+ 应交金额合计:&emsp;{{sumsmodel.f_preamount}}
750
+ </td>
751
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
752
+ 预存金额合计:&emsp;{{sumsmodel.f_yucun}}
753
+ </td>
754
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
755
+ 实际收款合计:&emsp;{{sumsmodel.f_collection}}
756
+ </td>
757
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
758
+ 优惠合计:&emsp;{{sumsmodel.f_privilege_money}}
759
+ </td>
760
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
761
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
762
+ </td>
763
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
764
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
765
+ </td>
766
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
767
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
768
+ </td>
769
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
770
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
771
+ </td>
772
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
773
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
774
+ </td>
775
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
776
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
777
+ </td>
778
+ </tr>
779
+ </table>
780
+ </div>
781
+ </div>
782
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
783
+ <article slot="modal-body">
784
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="%收费" :isremark="false" style="width:auto" ></upload>
785
+ </article>
786
+ <footer slot="modal-footer" class="modal-footer">
787
+ </footer>
788
+ </modal>
789
+ </div>
790
+ <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
791
+ </template>
792
+
793
+ <script>
794
+ import {HttpResetClass, PagedList} from 'vue-client'
795
+ import exportConfig from './config/exportConfig'
796
+ let cardBtnGen = async function (self, val) {
797
+ self.cardInfo = val.data
798
+
799
+ // 判断读卡是否需要卡密码
800
+ console.log('读卡上的信息', self.cardInfo)
801
+
802
+ if (self.cardInfo.NewParam) {
803
+ if (self.cardInfo.NewParam.error) {
804
+ if (self.cardInfo.NewParam.error === '0001') {
805
+ // 需要重新读卡并传卡密码
806
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
807
+ self.readCardParam = self.model.rows[0].f_card_password
808
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
809
+ } else {
810
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
811
+ return
812
+ }
813
+ }
814
+ }
815
+ }
816
+ self.card=self.cardInfo.CardID
817
+ self.search()
818
+ }
819
+ let readySomething = async function (self) {
820
+ //加载抄表册
821
+ self.initmeterbook();
822
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
823
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
824
+ // self.$refs.paged.$refs.cri.model.f_state=['有效'];
825
+ // self.$refs.paged.$refs.cri.search()
826
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
827
+ await self.$MagLoadParams.loadParam()
828
+ self.initParams()
829
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
830
+ }
831
+ export default {
832
+ props:['data'],
833
+ title: '收费查询',
834
+ data() {
835
+ return {
836
+ IdCardInfo:'',
837
+ card:'',
838
+ isSingleUser: null,
839
+ startDate1:'',
840
+ endDate1:'',
841
+ resshow:['company','department','operator','slicearea'],
842
+ other:[],
843
+ pcdslist:[],
844
+
845
+ footer:[],
846
+ config: {
847
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount','f_operate_date']
848
+ },
849
+ //排序
850
+ orderitem:'f_operate_date desc',
851
+ orderFields: {
852
+ f_operate_date: 'no'
853
+ },
854
+ //f_price_name:[],
855
+ gasproperties:[],
856
+ // papertype: this.$appdata.getParam('票据类型') ? [{
857
+ // label: '全部',
858
+ // value: ''
859
+ // }, ...this.$appdata.getParam('票据类型')] : [],
860
+ gaspropertiessecond: this.$appdata.getParam('二级用气性质') ? [{
861
+ label: '全部',
862
+ value: ''
863
+ }, ...this.$appdata.getParam('二级用气性质')] : [],
864
+ showinfo: false,
865
+ data: {},
866
+ getstart:'',
867
+ show:false,
868
+ rowdata:{},
869
+ initres: {
870
+ org:[this.$login.f.orgid],
871
+ dep:[],
872
+ user:[]
873
+ },
874
+ model: new PagedList('rs/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
875
+ f_pregas: 0,
876
+ f_preamount: 0,
877
+ f_delaypay: 0,
878
+ fee:0,
879
+ f_yucun:0,
880
+ f_privilege_money: 0,
881
+ f_collection: 0,
882
+ f_stairamount1:0,
883
+ f_stair1fee:0,
884
+ f_stair2amount:0,
885
+ f_stair2fee:0,
886
+ f_stair3amount:0,
887
+ f_stair3fee:0,
888
+ }),
889
+ criteriaShow: false,
890
+ orgCondtionStr: '',
891
+ // 下拉框
892
+ meterbrands: [],
893
+ pricenames: [],
894
+ prices: [],
895
+ area: [],
896
+ //默认打印列
897
+ defaultfield: [],
898
+ //小区
899
+ residentialArea: [],
900
+ sumsmodel: {},
901
+ f_filialeid: this.$login.f.orgid,
902
+ wxstate:[
903
+ {label: '全部', value: ''},
904
+ {label: '已退款', value: `= '3'`},
905
+ {label: '未退款', value: `!= '3'`}
906
+ ],
907
+ privilege_money:[
908
+ {label: '全部', value: ''},
909
+ {label: '已优惠', value: '> 0'},
910
+ {label: '未优惠', value: '= 0'}
911
+ ],
912
+ showupload:false,
913
+ selected:{},
914
+ meterbooks:[{label: '全部',value: ''}], //抄表册
915
+ inputtores:[{label: '全部',value: ''}],
916
+ writecard:[{label: '全部',value: ''},{label: '已写卡',value: '已写卡'},{label: '未写卡',value: '未写卡'},{label: '写卡失败',value: '写卡失败'}],
917
+ bluetoothpackage:[{label: '全部',value: ''},{label: '发送成功',value: '发送成功'},{label: '执行成功',value: '执行成功'}],
918
+ allorgid:[],
919
+ tempfalg :false,
920
+ lastorgstr:'',
921
+ // pos设备列表
922
+ posEquipment: [{label: '全部',value: ''}],
923
+ showbottomsum:false, //页面下方是否有合计: 默认为false, 在watch修改
924
+ bgl:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
925
+ }
926
+ },
927
+ ready() {
928
+ this.$refs.paged.$refs.cri.model.f_state=['有效']
929
+ this.getaddress()
930
+ this.getEquipment()
931
+ //加载抄表册
932
+ this.$MagGetSaleParam.initinputtor();
933
+ this.getinputtores();
934
+ // this.initres.dep.push(this.$login.f.depids)
935
+ readySomething(this).then(() => {
936
+ this.$emit('ready')
937
+ }).catch((error) => {
938
+ this.$emit('error', error)
939
+ })
940
+ },
941
+ methods: {
942
+ // 获取设备下拉选
943
+ async getEquipment () {
944
+ let HttpReset = new HttpResetClass()
945
+ let param = {
946
+ items: 'f_terminal_name',
947
+ tablename: 't_equipment',
948
+ condition: `f_equipment_type = 'POS' and f_state = '正常'`,
949
+ orderitem: 'id'
950
+ }
951
+ var data = await HttpReset.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
952
+ for (let row of data.data) {
953
+ this.posEquipment.push({label: row.f_terminal_name, value: row.f_terminal_name})
954
+ }
955
+ },
956
+ ReadIDCard(){
957
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
958
+ console.log('======',msg)
959
+ if(msg.err !== 0){ return}
960
+ this.IdCardInfo=msg.strID
961
+ })
962
+ if(this.IdCardInfo) {
963
+ this.search()
964
+ }else{
965
+ alert("读取失败,找不到用户信息")
966
+ }
967
+ },
968
+ cardBtn (val) {
969
+ // this.clear()
970
+ cardBtnGen(this, val)
971
+ },
972
+ async initmeterbook(orgstr){
973
+ if(orgstr == null ){
974
+ orgstr = this.f_filialeid;
975
+ }
976
+ //获取新的抄表册,先去清理所有的抄表册
977
+ this.$GetSaleParam.meterbooks = [];
978
+ //开始加载新的抄表册
979
+ await this.$LoadParams.loadMeterBook(orgstr)
980
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
981
+ },
982
+ async getinputtores () {
983
+ // 获取抄表员
984
+ let rs = []
985
+ if (this.$login.f.f_gasman.length > 0) {
986
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
987
+ let temp = {
988
+ label: this.$login.f.f_gasman[i].name,
989
+ value: this.$login.f.f_gasman[i].name
990
+ }
991
+ rs.push(temp)
992
+ }
993
+ }
994
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
995
+ },
996
+ //显示附件
997
+ view(row){
998
+ this.showupload = true
999
+ this.selected= row
1000
+ },
1001
+ getotherfooter () {
1002
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
1003
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
1004
+ this.other = [];
1005
+ this.footer = [];
1006
+ let exportdata = this.getCondition;
1007
+ let otherInData = [];
1008
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
1009
+ let footerData = [], exportfield = this.getfield;
1010
+ footerData.push("合计");
1011
+ let self = this;
1012
+ for (var field in self.sumsmodel) {
1013
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
1014
+ }
1015
+ this.footer.push(footerData);
1016
+ this.other.push(otherInData);
1017
+ },
1018
+ async getaddress(){
1019
+ let HttpReset = new HttpResetClass()
1020
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
1021
+ data: {
1022
+ // condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
1023
+ condition: `1=1`
1024
+ }
1025
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
1026
+ console.log('小区',data)
1027
+ let house = [{label: '全部', value: ''}]
1028
+ for (let row of data.data){
1029
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
1030
+ }
1031
+ console.log('开始获取区域')
1032
+ var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
1033
+ data: {
1034
+ items: '*',
1035
+ tablename: 't_pcd',
1036
+ orderitem: 'id',
1037
+ condition: `1=1`
1038
+ }
1039
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
1040
+ this.residentialArea = house
1041
+ let redata = []
1042
+ console.log('区域是:',req)
1043
+ req.data.forEach((row, n) => {
1044
+ redata[n] = {
1045
+ label: row.f_pcd,
1046
+ value: row.id,
1047
+ data: row,
1048
+ id: row.id
1049
+ }
1050
+ })
1051
+ console.log('获取到的小区',redata)
1052
+ this.pcdslist = redata
1053
+ },
1054
+ //把数据库查询数据转换为下拉数据
1055
+ calculate(rows){
1056
+ let data = []
1057
+ rows.forEach((row, n) => {
1058
+ data[n] = {label: row.f_residential_area, value: row.id}
1059
+ })
1060
+ return data
1061
+ },
1062
+
1063
+ search(){
1064
+
1065
+ this.$refs.paged.$refs.cri.search()
1066
+ },
1067
+ cancel() {
1068
+ this.show = false
1069
+ },
1070
+ showmsg(obj){
1071
+ this.rowdata=obj
1072
+ this.show=true
1073
+ },
1074
+ userTypeChange () {
1075
+ this.gasproperties=[]
1076
+ if(this.$refs.paged.$refs.cri.model !==null) {
1077
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
1078
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1079
+ }
1080
+ else{
1081
+ this.gasproperties =[{label: '全部', value: ''}]
1082
+ }
1083
+ },
1084
+ initParams() {
1085
+ // 初始化气表品牌
1086
+ let brandArr = []
1087
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1088
+ let temp = {}
1089
+ temp.label = item.label
1090
+ temp.value = item.value.f_meter_brand
1091
+ brandArr.push(temp)
1092
+ })
1093
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1094
+ //初始化气表价格
1095
+ this.prices = this.$MagGetSaleParam.getPrices();
1096
+ },
1097
+ selfSearch(args) {
1098
+ if (this.data) {
1099
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
1100
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
1101
+ }
1102
+
1103
+ let f_orgstr = this.orgCondtionStr
1104
+ args.condition = `${args.condition} ` + f_orgstr
1105
+ if(this.card!=''){
1106
+ args.condition+=` and f_card_id='${this.card}'`
1107
+ }
1108
+ if(this.IdCardInfo!=''){
1109
+ args.condition +=` and f_idnumber='${this.IdCardInfo}'`
1110
+ }
1111
+ this.model.search(args.condition, args.model)
1112
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
1113
+ this.card=''
1114
+ this.IdCardInfo=''
1115
+ },
1116
+ clear() {
1117
+ //清空部门和人员
1118
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1119
+ //部门和人员变为全选
1120
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1121
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1122
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1123
+ this.$refs.paged.$refs.cri.model[key] = []
1124
+ })
1125
+
1126
+ },
1127
+ dealmsg(val,startDate,endDate) {
1128
+ val.model = this.model.model
1129
+ startDate=this.startDate1
1130
+ endDate=this.endDate1
1131
+ this.$dispatch('deal-msg', val,startDate,endDate)
1132
+ },
1133
+ show() {
1134
+ this.criteriaShow = true
1135
+ },
1136
+ hidden() {
1137
+ this.criteriaShow = !this.criteriaShow
1138
+ },
1139
+ async getRes(condition,obj) {
1140
+ this.orgCondtionStr = condition
1141
+ this.orgname = obj.orgnames[0]
1142
+ this.depname = obj.depnames[0]
1143
+
1144
+
1145
+ },
1146
+ async updateParams() {
1147
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
1148
+ this.inputtores = [];
1149
+ this.inputtores.push({label: "全部", value: ""})
1150
+ if(this.allorgid!=null){
1151
+ this.allorgid.forEach((res)=>{
1152
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1153
+ })
1154
+ }
1155
+ this.initParams()
1156
+ },
1157
+ sort (field, rule) {
1158
+ // 将所有排序方式设为不排序,实现相互排斥
1159
+ for (let key in this.orderFields) {
1160
+ if (key === field) {
1161
+ this.orderFields[key] = rule
1162
+ } else {
1163
+ this.orderFields[key] = 'no'
1164
+ }
1165
+ }
1166
+ // 如果新规则不排序,还原为默认排序
1167
+ if (rule === 'no') {
1168
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
1169
+ } else {
1170
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
1171
+ }
1172
+
1173
+ this.search()
1174
+ }
1175
+
1176
+ },
1177
+ events:{
1178
+ 'getidcard'(IdCard){
1179
+ // console.log(param)
1180
+ this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
1181
+ }
1182
+ },
1183
+ watch: {
1184
+ 'model.rows'(val) {
1185
+ //如果有合计 这里为true, 其他为false ,反正相反
1186
+ this.showbottomsum=true;
1187
+ if(val.length === 0){
1188
+ this.sumsmodel = {}
1189
+ this.showbottomsum=false;
1190
+ }
1191
+ },
1192
+ 'model.rows.length' () {
1193
+ this.isSingleUser = this.model.rows
1194
+ },
1195
+ async 'orgCondtionStr'(val) {
1196
+ //更新抄表册
1197
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
1198
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1199
+ this.meterbooks = [{label: '全部',value: ''}];
1200
+ if(this.lastorgstr != val){
1201
+ this.tempfalg = true;
1202
+ this.lastorgstr = val;
1203
+ }
1204
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1205
+ this.tempfalg = false;
1206
+ let a = val.substring(val.indexOf("(")+2)
1207
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1208
+ }
1209
+ let res = val.match(/'(.*?)'/)
1210
+ console.log('正则提取:',res && res[1])
1211
+ if (res) {
1212
+ this.f_filialeid = res[1]
1213
+ if(res.input !=null){
1214
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1215
+ if(resorgid!= null && resorgid!=''){
1216
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1217
+ // resorgid = resorgid.replaceAll("'","");
1218
+ resorgid = resorgid.replace(/'/g,"");
1219
+ this.allorgid = resorgid.split(",")
1220
+ }
1221
+ }
1222
+ this.updateParams()
1223
+ }
1224
+ },
1225
+ sumsmodel:{
1226
+ handler: function(val) {
1227
+ this.getotherfooter();
1228
+ },
1229
+ deep: true
1230
+ }
1231
+ },
1232
+ computed: {
1233
+ getstart(){
1234
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
1235
+ },
1236
+ chooserow(){
1237
+ let aaa= true
1238
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
1239
+ aaa = false
1240
+ }
1241
+ return aaa
1242
+ },
1243
+ getPricenames() {
1244
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1245
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1246
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1247
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1248
+ if(this.$refs.paged.$refs.cri.model !==null) {
1249
+ let rs = []
1250
+ let priceArr = []
1251
+ if ( pricetype.length >0) {
1252
+ let params = {
1253
+ f_price_type: pricetype[0],
1254
+ filter: this.f_filialeid,
1255
+ prices: this.prices
1256
+ }
1257
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1258
+ let temp = {}
1259
+ temp.label = item.label
1260
+ temp.value = item.value.f_price_name
1261
+ priceArr.push(temp)
1262
+ })
1263
+ rs = [{label: '全部', value: ''}, ...priceArr]
1264
+ }
1265
+ if (rs.length === 0) {
1266
+ console.log('rs读出来是空')
1267
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1268
+ }
1269
+ return rs
1270
+ }
1271
+ },
1272
+ getCondition() {
1273
+ return {
1274
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1275
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1276
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1277
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
1278
+ }
1279
+ },
1280
+ getfield() {
1281
+ return exportConfig.chargeConfig
1282
+ },
1283
+ defaultexport() {
1284
+ return exportConfig.chargeexportConfig
1285
+ },
1286
+ pricetypes() {
1287
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1288
+ },
1289
+
1290
+ invoiceType() {
1291
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
1292
+ },
1293
+ usertypes() {
1294
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
1295
+ },
1296
+ metertypes() {
1297
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1298
+ },
1299
+
1300
+ tablestate() {
1301
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
1302
+ },
1303
+ chargetype() {
1304
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
1305
+ },
1306
+ payment() {
1307
+ return [...this.$appdata.getParam('付款方式查询')]
1308
+ },
1309
+ banktype() {
1310
+ return [...this.$appdata.getParam('支付渠道查询')]
1311
+ },
1312
+ charge_state() {
1313
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
1314
+ },
1315
+ bank(){
1316
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
1317
+ }
1318
+ }
1319
+ }
1320
+ </script>
1321
+ <style scoped>
1322
+ .showbottom{
1323
+ height:95%
1324
+ }
1325
+ </style>