manage-client 4.1.82 → 4.1.84

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