manage-client 4.0.85 → 4.0.86

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,1425 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">录入日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate"
21
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true">
27
+ </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="span" style="float:right;">
35
+ <button class="button_search button_spacing" @click="search()">查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
+
38
+ <!-- <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>-->
39
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
40
+ <!-- :field="$parent.$parent.getBankfield" :header="$parent.$parent.other"-->
41
+ <!-- sqlurl="rs/logic/exportfile" sql-name="newhandplanQuery" template-name='送盘导出'-->
42
+ <!-- btn-name="送盘导出"-->
43
+ <!-- :choose-col="true"></export-excel>-->
44
+ <export-excel :data="$parent.$parent.getCondition"
45
+ :footer="$parent.$parent.footer"
46
+ :field="$parent.$parent.getfield"
47
+ :header="$parent.$parent.other"
48
+ sqlurl="rs/easyExcel/exportExcel"
49
+ sql-name="handplanQuery" template-name='抄表查询导出'
50
+ :choose-col="true">
51
+ </export-excel>
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
53
+ :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
55
+ titletable="抄表查询"
56
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+
58
+ <div style="float: right" class="button_spacing"
59
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
60
+ @click="$parent.$parent.hidden()"></div>
61
+ </div>
62
+ </div>
63
+ <div class="row" v-show="$parent.$parent.criteriaShow">
64
+ <div class="col-sm-2 form-group">
65
+ <label for="startDate" class="font_normal_body">下发日期</label>
66
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
67
+ v-model="model.handStartDate"
68
+ :value.sync="model.handStartDate"
69
+ :format="'yyyy-MM-dd 00:00:00'"
70
+ :show-reset-button="true"
71
+ condition="f_hand_date >= '{}'">
72
+ </datepicker>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label for="endDate"
76
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
77
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
78
+ v-model="model.handEndDate"
79
+ :value.sync="model.handEndDate"
80
+ :format="'yyyy-MM-dd 23:59:59'"
81
+ :show-reset-button="true"
82
+ condition="f_hand_date <= '{}'">
83
+ </datepicker>
84
+ </div>
85
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
86
+ v-ref:sel></res-select-group>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
89
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
90
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">抄表状态</label>
94
+ <v-select :value.sync="model.f_meter_state"
95
+ v-model="model.f_meter_state"
96
+ :options='$parent.$parent.meterstate' placeholder='请选择'
97
+ condition="f_meter_state = '{}'"
98
+ close-on-select></v-select>
99
+ </div>
100
+ <div class="col-sm-2 form-group">
101
+ <label class="font_normal_body">表单状态</label>
102
+ <v-select :value.sync="model.f_hand_state"
103
+ v-model="model.f_hand_state"
104
+ :options='$parent.$parent.handstate' placeholder='请选择'
105
+ condition="f_hand_state = '{}'"
106
+ close-on-select></v-select>
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label class="font_normal_body">客户名称</label>
110
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
111
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
112
+ </div>
113
+
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">小区名称</label>
116
+ <v-select :value.sync="model.f_residential_area"
117
+ class="select_list select"
118
+ enter-push
119
+ multiple="true"
120
+ v-model="model.f_residential_area"
121
+ style="width: 60%"
122
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
123
+ close-on-select>
124
+
125
+ </v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
130
+ condition="f_building like '%{}%'" placeholder="楼栋">
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">客户地址</label>
134
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
135
+ condition="f_address like '%{}%'" placeholder='客户地址'>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label for="startDate" class="font_normal_body">审核日期</label>
139
+ <datepicker id="f_audit_date" placeholder="开始日期" style="width:60%"
140
+ v-model="model.auditStartDate"
141
+ :value.sync="model.auditStartDate"
142
+ :format="'yyyy-MM-dd 00:00:00'"
143
+ :show-reset-button="true"
144
+ condition="f_audit_date >= '{}'">
145
+ </datepicker>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label for="endDate"
149
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
150
+ <datepicker id="f_audit_date" placeholder="结束日期" style="width:60%"
151
+ v-model="model.auditEndDate"
152
+ :value.sync="model.auditEndDate"
153
+ :format="'yyyy-MM-dd 23:59:59'"
154
+ :show-reset-button="true"
155
+ condition="f_audit_date <= '{}'">
156
+ </datepicker>
157
+ </div>
158
+
159
+ <div class="col-sm-2 form-group">
160
+ <label class="font_normal_body">客户类型</label>
161
+ <v-select :value.sync="model.f_user_type"
162
+ @change="$parent.$parent.userTypeChange()"
163
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
164
+ condition="f_user_type = '{}'"
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.f_gasproperties" v-model="model.f_gasproperties"
170
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
171
+ condition="f_gasproperties = '{}'"
172
+ close-on-select></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.pricetype" v-model="model.pricetype"
177
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
178
+ close-on-select v-ref:type>
179
+ </v-select>
180
+ </div>
181
+ <div class="col-sm-2 form-group">
182
+ <label class="font_normal_body">气价名称</label>
183
+ <v-select :value.sync="model.f_price_name"
184
+ v-model="model.f_price_name"
185
+ :options="$parent.$parent.getPricenames"
186
+ condition="f_price_name = '{}'"
187
+ close-on-select></v-select>
188
+ </div>
189
+ <div class="col-sm-2 form-group">
190
+ <label class="font_normal_body">气表类型</label>
191
+ <v-select :value.sync="model.f_meter_classify" multiple
192
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
193
+ condition="f_meter_classify in {}"
194
+ close-on-select></v-select>
195
+ </div>
196
+ <div class="col-sm-2 form-group">
197
+ <label class="font_normal_body">气表品牌</label>
198
+ <v-select :value.sync="model.f_meter_brand" multiple
199
+ v-model="model.f_meter_brand"
200
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
201
+ condition="f_meter_brand in {}"
202
+ close-on-select></v-select>
203
+ </div>
204
+ <div class="col-sm-2 form-group">
205
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
206
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
207
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
208
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
209
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
210
+ </div>
211
+ <div class="col-sm-2 form-group">
212
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
213
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
214
+ condition="f_meternumber = '{}' " placeholder="表号">
215
+ </div>
216
+ <div class="col-sm-2 form-group">
217
+ <label for="startDate" class="font_normal_body">收费日期</label>
218
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
219
+ v-model="model.sellStartDate"
220
+ :value.sync="model.sellStartDate"
221
+ :format="'yyyy-MM-dd 00:00:00'"
222
+ :show-reset-button="true"
223
+ condition="f_sellinggas_operate_date >= '{}'">
224
+ </datepicker>
225
+ </div>
226
+ <div class="col-sm-2 form-group">
227
+ <label for="endDate"
228
+ class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
229
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
230
+ v-model="model.sellEndDate"
231
+ :value.sync="model.sellEndDate"
232
+ :format="'yyyy-MM-dd 23:59:59'"
233
+ :show-reset-button="true"
234
+ condition="f_sellinggas_operate_date <= '{}'">
235
+ </datepicker>
236
+ </div>
237
+ <div class="col-sm-2 form-group">
238
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
239
+ <v-select :value.sync="model.f_inputtor"
240
+ v-model="model.f_inputtor"
241
+ :options='$parent.$parent.inputtores' placeholder='请选择'
242
+ condition="f_inputtor = '{}'"
243
+ close-on-select :search="false">
244
+ </v-select>
245
+ </div>
246
+ <!--表册片区-->
247
+ <div class="col-sm-2 form-group">
248
+ <label class="font_normal_body">表册片区</label>
249
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
250
+ @change="$parent.$parent.inputtorchange"
251
+ multiple
252
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
253
+ style="width:60%"
254
+ close-on-select
255
+ condition="f_book_slice_area in {}"></v-select>
256
+ </div>
257
+ <div class="col-sm-2 form-group">
258
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
259
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
260
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
261
+ style="width:60%"
262
+ multiple
263
+ close-on-select
264
+ condition="f_meter_book_num in {}"></v-select>
265
+ </div>
266
+ <div class="col-sm-2 form-group">
267
+ <label class="font_normal_body">录入人员</label>
268
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
269
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
270
+ </div>
271
+ <div class="col-sm-2 form-group">
272
+ <label class="font_normal_body">是否缴费</label>
273
+ <v-select :value.sync="model.f_whether_pay"
274
+ v-model="model.f_whether_pay"
275
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
276
+ condition="f_whether_pay = '{}'"
277
+ close-on-select></v-select>
278
+ </div>
279
+ <div class="col-sm-2 form-group">
280
+ <label for="belongmonth" class="font_normal_body">所属年月</label>
281
+ <datepicker placeholder="所属年月" style="width:60%"
282
+ v-model="model.belongmonth"
283
+ :value.sync="model.belongmonth"
284
+ :format="'yyyy-MM'"
285
+ :show-reset-button="true"
286
+ condition="belongmonth = '{}'"
287
+ :select-month="true">
288
+ </datepicker>
289
+ </div>
290
+ <div class="col-sm-2 form-group">
291
+ <label class="font_normal_body">银行名称</label>
292
+ <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
293
+ :options='$parent.$parent.banklist' placeholder='银行名称'
294
+ style="width:60%"
295
+ close-on-select
296
+ condition="f_bank_name = '{}'"></v-select>
297
+ </div>
298
+
299
+ <div class="col-sm-2 form-group">
300
+ <label class="font_normal_body">下账状态</label>
301
+ <v-select :value.sync="model.f_accounts_state"
302
+ :options='$parent.$parent.accountsState' placeholder='请选择'
303
+ v-model="model.f_accounts_state"
304
+ condition="f_accounts_state = '{}'"
305
+ close-on-select></v-select>
306
+ </div>
307
+ <div class="col-sm-2 form-group">
308
+ <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
309
+ <v-select :value.sync="model.f_bgl"
310
+ v-model="model.f_bgl"
311
+ :options='$parent.$parent.bgl' placeholder='请选择'
312
+ condition="f_bgl = '{}'"
313
+ close-on-select></v-select>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </criteria>
318
+
319
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
320
+ <template partial='head'>
321
+ <tr>
322
+ <th>
323
+ <!-- <nobr>客户编号</nobr>-->
324
+ <data-order field="f_userinfo_code" name="客户编号"
325
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
326
+ </th>
327
+ <th>
328
+ <nobr>客户名称</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>档案编号</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>片区</nobr>
335
+ </th>
336
+ <th>
337
+ <nobr>表册片区</nobr>
338
+ </th>
339
+ <th>
340
+ <!-- <nobr>客户地址</nobr>-->
341
+ <data-order field="f_address" name="客户地址"
342
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
343
+ </th>
344
+ <th>
345
+ <nobr>客户手机</nobr>
346
+ </th>
347
+ <th>
348
+ <nobr>表号</nobr>
349
+ </th>
350
+ <th>
351
+ <!-- <nobr>数据年月</nobr>-->
352
+ <data-order field="ym_data" name="数据年月"
353
+ :order.sync="$parent.$parent.$parent.orderFields.ym_data"></data-order>
354
+ </th>
355
+ <th>
356
+ <!-- <nobr>审核日期</nobr>-->
357
+ <data-order field="f_audit_date" name="审核日期"
358
+ :order.sync="$parent.$parent.$parent.orderFields.f_audit_date"></data-order>
359
+ </th>
360
+ <th>
361
+ <nobr>用气性质</nobr>
362
+ </th>
363
+ <th>
364
+ <nobr>上期底数</nobr>
365
+ </th>
366
+ <th>
367
+ <nobr>本期底数</nobr>
368
+ </th>
369
+ <th>
370
+ <nobr>用气量</nobr>
371
+ </th>
372
+ <th>
373
+ <nobr>违约金</nobr>
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
+ <data-order field="f_sellinggas_operate_date" name="收费时间"
399
+ :order.sync="$parent.$parent.$parent.orderFields.f_sellinggas_operate_date"></data-order>
400
+ </th>
401
+ <th>
402
+ <nobr>收费人员</nobr>
403
+ </th>
404
+ <th>
405
+ <!-- <nobr>冲正时间</nobr>-->
406
+ <data-order field="f_corrhand_date" name="冲正时间"
407
+ :order.sync="$parent.$parent.$parent.orderFields.f_corrhand_date"></data-order>
408
+ </th>
409
+ <th>
410
+ <nobr>冲正人员</nobr>
411
+ </th>
412
+ <th>
413
+ <!-- <nobr>下发日期</nobr>-->
414
+ <data-order field="f_hand_date" name="下发日期"
415
+ :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
416
+ </th>
417
+ <th>
418
+ <!-- <nobr>所属年月</nobr>-->
419
+ <data-order field="belongmonth" name="所属年月"
420
+ :order.sync="$parent.$parent.$parent.orderFields.belongmonth"></data-order>
421
+ </th>
422
+ <th>
423
+ <!-- <nobr>录入日期</nobr>-->
424
+ <data-order field="f_input_date" name="录入日期"
425
+ :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
426
+ </th>
427
+ <th>
428
+ <nobr>气价名称</nobr>
429
+ </th>
430
+ <th>
431
+ <nobr>一阶气量</nobr>
432
+ </th>
433
+ <th>
434
+ <nobr>一阶单价</nobr>
435
+ </th>
436
+ <th>
437
+ <nobr>一阶气费</nobr>
438
+ </th>
439
+ <th>
440
+ <nobr>二阶气量</nobr>
441
+ </th>
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
+
470
+ <th>
471
+ <nobr>抄表状态</nobr>
472
+ </th>
473
+ <th>
474
+ <nobr>状态</nobr>
475
+ </th>
476
+ <th>
477
+ <nobr>下发人员</nobr>
478
+ </th>
479
+ <th>
480
+ <nobr>部门</nobr>
481
+ </th>
482
+ <th>
483
+ <nobr>公司</nobr>
484
+ </th>
485
+ <th>
486
+ <nobr>附件</nobr>
487
+ </th>
488
+ </tr>
489
+ </template>
490
+ <template partial='body'>
491
+ <td style="text-align: center;">
492
+ <nobr>
493
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
494
+ </td>
495
+ <td style="text-align: center;">
496
+ <nobr>{{ row.f_user_name }}</nobr>
497
+ </td>
498
+ <td style="text-align: center;">
499
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
500
+ </td>
501
+ <td style="text-align: center;">
502
+ <nobr>{{ row.f_zones }}</nobr>
503
+ </td>
504
+ <td style="text-align: center;">
505
+ <nobr>{{ row.f_book_slice_area }}</nobr>
506
+ </td>
507
+ <td style="text-align: center;">
508
+ <nobr>{{ row.f_address }}</nobr>
509
+ </td>
510
+
511
+ <td style="text-align: center;">
512
+ <nobr>{{ row.phone }}</nobr>
513
+ </td>
514
+ <td style="text-align: center;">
515
+ <nobr>{{ row.f_meternumber }}</nobr>
516
+ </td>
517
+ <td style="text-align: center;">
518
+ <nobr>{{ row.ym_data }}</nobr>
519
+ </td>
520
+ <td style="text-align: center;">
521
+ <nobr>{{ row.f_audit_date }}</nobr>
522
+ </td>
523
+ <td style="text-align: center;">
524
+ <nobr>{{ row.f_gasproperties }}</nobr>
525
+ </td>
526
+ <td style="text-align: center;">
527
+ <nobr>{{ row.f_last_tablebase }}</nobr>
528
+ </td>
529
+ <td style="text-align: center;">
530
+ <nobr>{{ row.f_tablebase }}</nobr>
531
+ </td>
532
+ <td style="text-align: center;">
533
+ <nobr>{{ row.f_oughtamount }}</nobr>
534
+ </td>
535
+ <td style="text-align: center;">
536
+ <nobr>{{ row.overdue }}</nobr>
537
+ </td>
538
+ <td style="text-align: center;">
539
+ <nobr>{{ row.f_oughtfee }}</nobr>
540
+ </td>
541
+ <td style="text-align: center;">
542
+ <nobr>{{ row.f_debt_money }}</nobr>
543
+ </td>
544
+ <td style="text-align: center;">
545
+ <nobr>{{ row.f_actual_arrears }}</nobr>
546
+ </td>
547
+ <td style="text-align: center;">
548
+ <nobr>{{ row.f_privilege_money }}</nobr>
549
+ </td>
550
+ <td style="text-align: center;">
551
+ <nobr>{{ row.f_balance }}</nobr>
552
+ </td>
553
+ <td style="text-align: center;">
554
+ <nobr>{{ row.f_curbalance }}</nobr>
555
+ </td>
556
+ <td style="text-align: center;">
557
+ <nobr>{{ row.f_accounts_state }}</nobr>
558
+ </td>
559
+ <td style="text-align: center;">
560
+ <nobr>{{ row.f_sellinggas_operate_date }}</nobr>
561
+ </td>
562
+ <td style="text-align: center;">
563
+ <nobr>{{ row.f_sell_operator }}</nobr>
564
+ </td>
565
+ <td style="text-align: center;">
566
+ <nobr>{{ row.f_corrhand_date }}</nobr>
567
+ </td>
568
+ <td style="text-align: center;">
569
+ <nobr>{{ row.f_corrhand_operator }}</nobr>
570
+ </td>
571
+ <td style="text-align: center;">
572
+ <nobr>{{ row.f_hand_date }}</nobr>
573
+ </td>
574
+ <td>
575
+ <nobr>{{ row.belongmonth }}</nobr>
576
+ </td>
577
+ <td style="text-align: center;">
578
+ <nobr>{{ row.f_input_date }}</nobr>
579
+ </td>
580
+ <td style="text-align: center;">
581
+ <nobr>{{ row.f_price_name }}</nobr>
582
+ </td>
583
+ <td style="text-align: center;">
584
+ <nobr>{{ row.f_stair1amount }}</nobr>
585
+ </td>
586
+ <td style="text-align: center;">
587
+ <nobr>{{ row.f_stair1price }}</nobr>
588
+ </td>
589
+ <td style="text-align: center;">
590
+ <nobr>{{ row.f_stair1fee }}</nobr>
591
+ </td>
592
+ <td style="text-align: center;">
593
+ <nobr>{{ row.f_stair2amount }}</nobr>
594
+ </td>
595
+ <td style="text-align: center;">
596
+ <nobr>{{ row.f_stair2price }}</nobr>
597
+ </td>
598
+ <td style="text-align: center;">
599
+ <nobr>{{ row.f_stair2fee }}</nobr>
600
+ </td>
601
+ <td style="text-align: center;">
602
+ <nobr>{{ row.f_stair3amount }}</nobr>
603
+ </td>
604
+ <td style="text-align: center;">
605
+ <nobr>{{ row.f_stair3price }}</nobr>
606
+ </td>
607
+ <td style="text-align: center;">
608
+ <nobr>{{ row.f_stair3fee }}</nobr>
609
+ </td>
610
+ <td style="text-align: center;">
611
+ <nobr>{{ row.dd }}</nobr>
612
+ </td>
613
+ <td style="text-align: center;">
614
+ <nobr>{{ row.f_inputtor }}</nobr>
615
+ </td>
616
+ <td style="text-align: center;">
617
+ <nobr>{{ row.f_input_person }}</nobr>
618
+ </td>
619
+ <td style="text-align: center;">
620
+ <nobr>{{ row.f_whether_pay }}</nobr>
621
+ </td>
622
+
623
+ <td style="text-align: center;">
624
+ <nobr>{{ row.f_meter_state }}</nobr>
625
+ </td>
626
+ <td style="text-align: center;">
627
+ <nobr>{{ row.f_hand_state }}</nobr>
628
+ </td>
629
+ <td style="text-align: center;">
630
+ <nobr>{{ row.f_operator }}</nobr>
631
+ </td>
632
+ <td style="text-align: center;">
633
+ <nobr>{{ row.f_depname }}</nobr>
634
+ </td>
635
+ <td style="text-align: center;">
636
+ <nobr>{{ row.f_orgname }}</nobr>
637
+ </td>
638
+ <td style="text-align: center;">
639
+ <nobr>
640
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">
641
+ 查看
642
+ </button>
643
+ <button v-if="row.f_notified_path" class="button_search button_spacing width-60"
644
+ @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别
645
+ </button>
646
+ </nobr>
647
+ </td>
648
+ </template>
649
+ <template partial='foot'></template>
650
+ </data-grid>
651
+ </criteria-paged>
652
+
653
+ <table class="table-hover">
654
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
655
+ <td
656
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
657
+ 汇总信息
658
+ </td>
659
+ <td
660
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
661
+ 用气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
662
+ </td>
663
+ <td
664
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
665
+ 气费合计:&emsp;{{ sumsmodel.f_oughtfee }}
666
+ </td>
667
+ <td
668
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
669
+ 已交金额合计:&emsp;{{ sumsmodel.f_debt_money }}
670
+ </td>
671
+ <td
672
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
673
+ 欠费金额合计:&emsp;{{ sumsmodel.f_actual_arrears }}
674
+ </td>
675
+ <td
676
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
677
+ 一阶气量合计:&emsp;{{ sumsmodel.f_stair1amount }}
678
+ </td>
679
+ <td
680
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
681
+ 一阶气费合计:&emsp;{{ sumsmodel.f_stair1fee }}
682
+ </td>
683
+ <td
684
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
685
+ 二阶气量合计:&emsp;{{ sumsmodel.f_stair2amount }}
686
+ </td>
687
+ <td
688
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
689
+ 二阶气费合计:&emsp;{{ sumsmodel.f_stair2fee }}
690
+ </td>
691
+ <td
692
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
693
+ 三阶气量合计:&emsp;{{ sumsmodel.f_stair3amount }}
694
+ </td>
695
+ <td
696
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
697
+ 三阶气费合计:&emsp;{{ sumsmodel.f_stair3fee }}
698
+ </td>
699
+ <td
700
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
701
+ 剩余气量合计:&emsp;{{ sumsmodel.f_surplus_gas }}
702
+ </td>
703
+ <td
704
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
705
+ 扣减气量合计:&emsp;{{ sumsmodel.f_haircut_gas }}
706
+ </td>
707
+ <td
708
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
709
+ 应交气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
710
+ </td>
711
+ <td
712
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
713
+ 已交气费金额合计:&emsp;{{ sumsmodel.alloughtfee }}
714
+ </td>
715
+ </tr>
716
+ </table>
717
+ </div>
718
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
719
+ <article slot="modal-body" class="modal-body">
720
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定"
721
+ multiple v-ref:file></file-upload>
722
+ </article>
723
+ <footer slot="modal-footer" class="modal-footer">
724
+ </footer>
725
+ </modal>
726
+ </div>
727
+ <div class="flex" v-if="show">
728
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
729
+ @cancel-main="cancel"></user-info-detail-manage-new>
730
+ </div>
731
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle
732
+ backdrop="false">
733
+ <article slot="modal-body">
734
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false"
735
+ fusetype="机表抄表" :isremark="false" style="width:auto"></upload>
736
+ </article>
737
+ <footer slot="modal-footer" class="modal-footer">
738
+ </footer>
739
+ </modal>
740
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
741
+ <header slot="modal-header" class="modal-header">
742
+ 抄表图像识别照片
743
+ </header>
744
+ <article slot="modal-body" class="modal-body">
745
+ <div class="from-group">
746
+ <img-self :src="imgfilename" width="500" height="500"></img-self>
747
+ </div>
748
+ </article>
749
+ </modal>
750
+
751
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;">
752
+ <header slot="modal-header" class="modal-header">
753
+ 反盘导入
754
+ </header>
755
+ <article slot="modal-body" class="modal-body">
756
+ <div class="progress" style="margin: 20px">
757
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
758
+ {{ percent }}%
759
+ </div>
760
+ </div>
761
+ </article>
762
+ <footer slot="modal-footer" class="modal-footer">
763
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
764
+ </footer>
765
+ </modal>
766
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
767
+ </div>
768
+ </template>
769
+
770
+ <script>
771
+ import {PagedList, HttpResetClass} from 'vue-client'
772
+ import defaultPrint from '../../../../components/sale/config/DefaultPrint'
773
+ import exportConfig from '../../exportConfig'
774
+ import axios from 'axios'
775
+
776
+ let readySomething = async function (self) {
777
+ //加载抄表册
778
+ self.$MagGetSaleParam.initinputtor();
779
+ self.getinputtores();
780
+ self.initmeterbook();
781
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
782
+ // self.loadMeterBooks()
783
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
784
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
785
+ // self.$refs.paged.$refs.cri.model.handStartDate = self.$login.toStandardDateString() + ' 00:00:00'
786
+ // self.$refs.paged.$refs.cri.model.handEndDate = self.$login.toStandardDateString() + ' 23:59:59'
787
+
788
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
789
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
790
+ // await self.$refs.paged.$refs.cri.search()
791
+ await self.$getConfig(self, 'HandplanQuery')
792
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
793
+ await self.$MagLoadParams.loadParam()
794
+ // await self.$MagLoadParams.loadParam()
795
+ self.initParams()
796
+ console.log('开始查询')
797
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
798
+ }
799
+ export default {
800
+ props: ['data'],
801
+ title: '机表抄表查询',
802
+ data() {
803
+ return {
804
+ iswork: false,
805
+ other: [],
806
+ footer: [],
807
+ data: {},
808
+ model: new PagedList('api/af-revenue/sql/handplanQuery', 20, {
809
+ orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `' z '`,
810
+ startDate: 'this.model.startDate',
811
+ endDate: 'this.model.endDate'
812
+ }, {
813
+ f_oughtamount: 0,
814
+ f_oughtfee: 0,
815
+ f_debt_money: 0,
816
+ f_actual_arrears: 0,
817
+ f_stair1amount: 0,
818
+ f_stair1fee: 0,
819
+ f_stair2amount: 0,
820
+ f_stair2fee: 0,
821
+ f_stair3amount: 0,
822
+ f_stair3fee: 0,
823
+ f_surplus_gas: 0,
824
+ f_haircut_gas: 0,
825
+ alloughtfee: 0
826
+ }),
827
+ //排序
828
+ orderitem: ' z ',
829
+ orderFields: {
830
+ f_userinfo_code: 'no'
831
+ },
832
+ initres: {
833
+ org: [this.$login.f.orgid],
834
+ dep: [],
835
+ user: [],
836
+ },
837
+ show: false,
838
+ rowdata: {},
839
+ criteriaShow: false,
840
+ residentialArea: [],
841
+ orgCondtionStr: '',
842
+ modelval: [],
843
+ gasproperties: [],
844
+ inputtouPerson: [],
845
+ meterbrands: [],
846
+ printshow: false,
847
+ f_filialeid: this.$login.f.f_orgid,
848
+ all: false,
849
+ fields: {},
850
+ thead: '',
851
+ tfoot: '',
852
+ showupload: false,
853
+ selected: {},
854
+
855
+ // 下拉框
856
+
857
+ //合计数据
858
+ sumsmodel: {},
859
+ defaultfield: [],
860
+ config: {
861
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
862
+ },
863
+ batchmoneyShow: false,
864
+ prices: [],
865
+ bgl: [{label: '全部', value: ''}, {label: '有', value: '1'}, {label: '无', value: '0'}],
866
+ meterbooks: [{label: '全部', value: ''}], //抄表册
867
+ tempfalg: false,
868
+ lastorgstr: '',
869
+ allorgid: [],
870
+ inputtores: [{label: '全部', value: ''}], //抄表员
871
+ //表册片区
872
+ bookSlice: [{label: '全部', value: ''}],
873
+ imgshow: false,
874
+ imgfilename: '',
875
+ percent: 0,
876
+ progressShow: false,
877
+ uuida: '',
878
+ timer: '',
879
+ }
880
+ },
881
+ ready() {
882
+ this.getaddress()
883
+ readySomething(this).then(() => {
884
+ this.$emit('ready')
885
+ }).catch((error) => {
886
+ this.$emit('error', error)
887
+ })
888
+ },
889
+ methods: {
890
+ getuuid() {
891
+ let uuidA = '';
892
+ var s = [];
893
+ var hexDigits = '0123456789abcdef';
894
+ for (var i = 0; i < 36; i++) {
895
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
896
+ }
897
+ s[14] = '4';
898
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
899
+ s[8] = s[13] = s[18] = s[23] = '-';
900
+ uuidA = s.join('');
901
+ this.uuida = uuidA;
902
+ },
903
+ progressclose() {
904
+ this.progressShow = false;
905
+ if (this.timer != null) {
906
+ clearInterval(this.timer);
907
+ }
908
+ },
909
+ async initmeterbook(orgstr) {
910
+ if (orgstr == null) {
911
+ orgstr = this.f_filialeid;
912
+ }
913
+ //获取新的抄表册,先去清理所有的抄表册
914
+ this.$GetSaleParam.meterbooks = [];
915
+ //开始加载新的抄表册
916
+ await this.$LoadParams.loadMeterBook(orgstr)
917
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
918
+ },
919
+ //初始化片区
920
+ async initSlice(val) {
921
+ if (val) {
922
+ let getAllArea = await this.$resetpost('/rs/search', {
923
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
924
+ userid: this.$login.f.id
925
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
926
+ let arr = getAllArea.data.filter((res) => {
927
+ return res.parentid == val
928
+ })
929
+ this.bookSlice = []
930
+ arr.forEach((res) => {
931
+ this.bookSlice.push({label: res.name, value: res.name})
932
+ })
933
+ }
934
+ },
935
+ //表册片区和抄表册关联
936
+ async inputtorchange() {
937
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', []);
938
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
939
+ let val2 = this.$refs.paged.$refs.cri.model.f_book_slice_area
940
+ if ((val2.length > 0)) {
941
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
942
+ let aaa = '('
943
+ val2.forEach((item) => {
944
+ aaa = aaa + `'${item}',`
945
+ })
946
+ aaa = aaa + `'')`
947
+ condition = condition + ` and f_book_slice_area in ${aaa} `
948
+ let param = {
949
+ items: '*',
950
+ tablename: 't_meter_book',
951
+ condition: condition,
952
+ orderitem: 'id'
953
+ }
954
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {
955
+ resolveMsg: null,
956
+ rejectMsg: '获取营收参数出错!!!'
957
+ })
958
+ if (getMeterBooks.data) {
959
+ if (getMeterBooks.data.length > 0) {
960
+ let rs = [];
961
+ getMeterBooks.data.forEach((item) => {
962
+ let temp = {
963
+ label: item.f_book_name,
964
+ value: item.id
965
+ };
966
+ rs.push(temp);
967
+
968
+ })
969
+ this.meterbooks = [{label: '全部', value: ''}, ...rs];
970
+ } else {
971
+ this.meterbooks = [{label: '全部', value: ''}];
972
+ }
973
+ }
974
+ } else {
975
+ this.meterbooks = [{label: '全部', value: ''}];
976
+ this.initmeterbook();
977
+ }
978
+ },
979
+ async initmeterbook(orgstr) {
980
+ if (orgstr == null) {
981
+ orgstr = this.f_filialeid;
982
+ }
983
+ //获取新的抄表册,先去清理所有的抄表册
984
+ this.$GetSaleParam.meterbooks = [];
985
+ //开始加载新的抄表册
986
+ await this.$LoadParams.loadMeterBook(orgstr)
987
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
988
+ },
989
+
990
+ async getinputtores() {
991
+ // 获取抄表员
992
+ let rs = []
993
+ if (this.$login.f.f_gasman.length > 0) {
994
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
995
+ let temp = {
996
+ label: this.$login.f.f_gasman[i].name,
997
+ value: this.$login.f.f_gasman[i].name
998
+ }
999
+ rs.push(temp)
1000
+ }
1001
+ }
1002
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
1003
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
1004
+ },
1005
+ async updateParams() {
1006
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
1007
+ this.inputtores = [];
1008
+ this.inputtores.push({label: "全部", value: ""})
1009
+ this.initSlice(this.f_filialeid)
1010
+ if (this.allorgid != null) {
1011
+ this.allorgid.forEach((res) => {
1012
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1013
+ })
1014
+ }
1015
+ this.initParams()
1016
+ },
1017
+ view(row) {
1018
+ this.showupload = true
1019
+ this.selected = row
1020
+ },
1021
+ imgclose() {
1022
+ this.imgshow = false
1023
+ },
1024
+ imgShow(val) {
1025
+ this.imgfilename = `rs/image/file/` + val
1026
+ this.imgshow = true
1027
+ },
1028
+ initParams() {
1029
+ // 初始化气表品牌
1030
+ let brandArr = []
1031
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1032
+ let temp = {}
1033
+ temp.label = item.label
1034
+ temp.value = item.value.f_meter_brand
1035
+ brandArr.push(temp)
1036
+ })
1037
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1038
+ //初始化气价
1039
+ let result = []
1040
+ this.$MagGetSaleParam.prices.forEach((item) => {
1041
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
1042
+ let value = {
1043
+ label: item.f_price_name,
1044
+ value: item.f_price_name
1045
+ }
1046
+ result.push(value)
1047
+ }
1048
+ })
1049
+ let hash = {}
1050
+ result = result.reduce((item, next) => {
1051
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
1052
+ return item
1053
+ }, [])
1054
+ this.prices = Array.from(new Set(result))
1055
+ },
1056
+ getotherfooter() {
1057
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
1058
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
1059
+ this.other = [];
1060
+ this.footer = [];
1061
+ let exportdata = this.getCondition;
1062
+ let otherInData = [];
1063
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
1064
+ let footerData = [], exportfield = this.getfield;
1065
+ footerData.push("合计");
1066
+ let self = this;
1067
+ for (var field in self.sumsmodel) {
1068
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
1069
+ }
1070
+ this.footer.push(footerData);
1071
+ this.other.push(otherInData);
1072
+ },
1073
+ async getaddress() {
1074
+ let HttpReset = new HttpResetClass()
1075
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
1076
+ data: {
1077
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
1078
+ }
1079
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
1080
+ console.log('小区', data)
1081
+ let house = [{label: '全部', value: ''}]
1082
+ for (let row of data.data) {
1083
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
1084
+ }
1085
+ this.residentialArea = house
1086
+ },
1087
+ Fileinput() {
1088
+ this.batchmoneyShow = true;
1089
+ },
1090
+ search() {
1091
+ this.$refs.paged.$refs.cri.search()
1092
+ },
1093
+ cancel() {
1094
+ this.show = false
1095
+ },
1096
+ selfSearch(args) {
1097
+ if (this.data) {
1098
+ this.$parent.$parent.$parent.data.startDate = this.$refs.paged.$refs.cri.model.startDate
1099
+ this.$parent.$parent.$parent.data.endDate = this.$refs.paged.$refs.cri.model.endDate
1100
+ }
1101
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
1102
+ this.$showMessage('请选择录入日期开始时间和结束时间!')
1103
+ return
1104
+ }
1105
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
1106
+ if (this.area.length !== 0) {
1107
+ let str = JSON.stringify(this.area)
1108
+ str = str.replace(/"/g, `'`)
1109
+ str = str.replace(/\[/g, ``)
1110
+ str = str.replace(/\]/g, ``)
1111
+ //查询多个小区时条件
1112
+ args.condition += ` and f_residential_area in ( ${str} )`
1113
+ }
1114
+ //抄表员查询条件
1115
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
1116
+ if (this.inputtouPerson.length !== 0) {
1117
+ let str = JSON.stringify(this.inputtouPerson)
1118
+ str = str.replace(/"/g, `'`)
1119
+ str = str.replace(/\[/g, ``)
1120
+ str = str.replace(/\]/g, ``)
1121
+ //查询多个抄表员时条件
1122
+ args.condition += ` and f_inputtor in ( ${str} )`
1123
+ }
1124
+
1125
+ args.condition = `${args.condition} ` + this.orgCondtionStr
1126
+ this.model.search(args.condition, args.model)
1127
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
1128
+ },
1129
+ clear() {
1130
+ //清空部门和人员
1131
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1132
+ //部门和人员变为全选
1133
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1134
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1135
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1136
+ this.$refs.paged.$refs.cri.model[key] = []
1137
+ })
1138
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
1139
+ },
1140
+ show() {
1141
+ this.criteriaShow = true
1142
+ },
1143
+ hidden() {
1144
+ this.criteriaShow = !this.criteriaShow
1145
+ },
1146
+ async getRes(condition, obj) {
1147
+ this.orgCondtionStr = condition
1148
+
1149
+ },
1150
+ stamp() {
1151
+ this.all = false
1152
+ //默认选择要打印的列
1153
+ this.modelval = defaultPrint.config
1154
+ this.fields = this.getfield
1155
+ this.printshow = true
1156
+ this.put()
1157
+ },
1158
+ put() {
1159
+ // 对Modelval进行排序
1160
+ this.sortModelval()
1161
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
1162
+ for (let key of this.modelval) {
1163
+ this.thead += '<th>' + this.fields[key] + '</th>'
1164
+ }
1165
+ this.thead += '</tr>'
1166
+ },
1167
+ sort(field, rule) {
1168
+ // 将所有排序方式设为不排序,实现相互排斥
1169
+ for (let key in this.orderFields) {
1170
+ if (key === field) {
1171
+ this.orderFields[key] = rule
1172
+ } else {
1173
+ this.orderFields[key] = 'no'
1174
+ }
1175
+ }
1176
+ // 如果新规则不排序,还原为默认排序
1177
+ if (rule === 'no') {
1178
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
1179
+ } else {
1180
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
1181
+ }
1182
+
1183
+ this.search()
1184
+ },
1185
+ print() {
1186
+ this.$refs.print.PrintAsFile()
1187
+ this.printshow = false
1188
+ },
1189
+ dealmsg(val) {
1190
+ this.rowdata = val
1191
+ this.show = true
1192
+ val.model = this.model.model
1193
+ this.$dispatch('deal-msg', val)
1194
+ },
1195
+ close() {
1196
+ this.printshow = false
1197
+ this.all = false
1198
+ },
1199
+
1200
+ userTypeChange() {
1201
+ this.gasproperties = []
1202
+ if (this.$refs.paged.$refs.cri.model !== null) {
1203
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
1204
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1205
+ } else {
1206
+ this.gasproperties = [{label: '全部', value: ''}]
1207
+ }
1208
+ },
1209
+ // 对选择的列进行排序
1210
+ sortModelval() {
1211
+ let sortModel = []
1212
+ Object.keys(this.fields).forEach((key) => {
1213
+ if (this.modelval.includes(key)) {
1214
+ sortModel.push(key)
1215
+ }
1216
+ })
1217
+ this.modelval = sortModel
1218
+ }
1219
+ },
1220
+ watch: {
1221
+ 'model.rows'(val) {
1222
+ if (val.length === 0) {
1223
+ this.sumsmodel = {}
1224
+ }
1225
+ },
1226
+ async 'orgCondtionStr'(val) {
1227
+ this.$refs.paged.$refs.cri.model.f_inputtor = []
1228
+ this.$refs.paged.$refs.cri.model.f_book_slice_area = []
1229
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1230
+ this.meterbooks = [{label: '全部', value: ''}];
1231
+ if (this.lastorgstr != val) {
1232
+ this.tempfalg = true;
1233
+ this.lastorgstr = val;
1234
+ }
1235
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
1236
+ this.tempfalg = false;
1237
+ let a = val.substring(val.indexOf("(") + 2)
1238
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
1239
+ }
1240
+ let res = val.match(/'(.*?)'/)
1241
+ console.log('正则提取:', res && res[1])
1242
+ if (res) {
1243
+ this.f_filialeid = res[1]
1244
+ if (res.input != null) {
1245
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1246
+ if (resorgid != null && resorgid != '') {
1247
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
1248
+ // resorgid = resorgid.replaceAll("'","");
1249
+ resorgid = resorgid.replace(/'/g, "");
1250
+ this.allorgid = resorgid.split(",")
1251
+ }
1252
+ }
1253
+ this.updateParams()
1254
+ }
1255
+ },
1256
+ 'all'(val) {
1257
+ if (val) {
1258
+ this.modelval = this.bodyData
1259
+ } else {
1260
+ this.modelval = defaultPrint.config
1261
+ this.put()
1262
+ }
1263
+ },
1264
+ 'modelval.length'() {
1265
+ this.put()
1266
+ },
1267
+ sumsmodel: {
1268
+ handler: function (val) {
1269
+ this.getotherfooter();
1270
+ },
1271
+ deep: true
1272
+ }
1273
+ },
1274
+ computed: {
1275
+
1276
+ metertypes() {
1277
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1278
+ },
1279
+ banklist() {
1280
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1281
+ },
1282
+ getCondition() {
1283
+ return {
1284
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1285
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1286
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1287
+ orderitem: this.orderitem ? `${this.orderitem}` : " z "
1288
+ }
1289
+ },
1290
+ getfield() {
1291
+ return exportConfig.handplanConfig
1292
+ },
1293
+ getBankfield() {
1294
+ return exportConfig.batchBankConfig2
1295
+ },
1296
+ usertypes() {
1297
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1298
+ },
1299
+ accountsState() {
1300
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
1301
+ },
1302
+ meterstate() {
1303
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
1304
+ },
1305
+ handstate() {
1306
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1307
+ },
1308
+ // inputtor() {
1309
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1310
+ // },
1311
+ pricetypes() {
1312
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1313
+ },
1314
+ getPricenames() {
1315
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1316
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1317
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1318
+ console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
1319
+ if (this.$refs.paged.$refs.cri.model !== null) {
1320
+ let rs = []
1321
+ let priceArr = []
1322
+ if (pricetype.length > 0) {
1323
+ let params = {
1324
+ f_price_type: pricetype[0],
1325
+ filter: this.f_filialeid,
1326
+ prices: this.prices
1327
+ }
1328
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1329
+ let temp = {}
1330
+ temp.label = item.label
1331
+ temp.value = item.value.f_price_name
1332
+ priceArr.push(temp)
1333
+ })
1334
+ rs = [{label: '全部', value: ''}, ...priceArr]
1335
+ }
1336
+ if (rs.length === 0) {
1337
+ console.log('rs读出来是空')
1338
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1339
+ }
1340
+ return rs
1341
+ }
1342
+ },
1343
+ inputtor() {
1344
+ // 获取抄表员
1345
+ console.log('获取抄表员', this.$login.f)
1346
+ let rs = []
1347
+ if (this.$login.f.f_gasman.length > 0) {
1348
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1349
+ let temp = {
1350
+ label: this.$login.f.f_gasman[i].name,
1351
+ value: this.$login.f.f_gasman[i].name
1352
+ }
1353
+ rs.push(temp)
1354
+ }
1355
+ }
1356
+
1357
+ return [{label: '全部', value: ''}, ...rs]
1358
+ },
1359
+ whetherPay() {
1360
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
1361
+ },
1362
+
1363
+ },
1364
+ events: {
1365
+ 'onFileUpload': async function (file, res) {
1366
+ if (this.batchmoneyShow) {
1367
+ this.percent = 0;
1368
+ this.getuuid();
1369
+ let param = {
1370
+ filepath: res.f_downloadpath,
1371
+ f_operator: this.$login.f.name,
1372
+ f_operatorid: this.$login.f.id,
1373
+ f_orgid: this.$login.f.orgid,
1374
+ f_orgname: this.$login.f.orgs,
1375
+ f_depid: this.$login.f.depids,
1376
+ f_depname: this.$login.f.deps,
1377
+ uuid: this.uuida
1378
+ }
1379
+ this.batchmoneyShow = false;
1380
+ try {
1381
+ await this.$resetpost('rs/logic/SumSettleFileImport', {data: param}, {
1382
+ resolveMsg: null,
1383
+ rejectMsg: null
1384
+ }, 1000).then((res) => {
1385
+ if (res.data) {
1386
+ }
1387
+ })
1388
+ } catch (error) {
1389
+ }
1390
+ let getparam = {
1391
+ uuid: this.uuida
1392
+ }
1393
+ let self = this;
1394
+ this.progressShow = true;
1395
+ this.timer = setInterval(function () {
1396
+ self.$resetpost('/rs/logic/getBatchOperaPro', {data: getparam}, {
1397
+ resolveMsg: null,
1398
+ rejectMsg: null
1399
+ }, 0).then((res) => {
1400
+ if (res.data) {
1401
+ if (res.data.speed) {
1402
+ if (res.data.speed >= 100) {
1403
+ clearInterval(self.timer);
1404
+ if (res.data.speed) {
1405
+ self.percent = 99;
1406
+ }
1407
+ setTimeout(() => {
1408
+ self.percent = 100;
1409
+ self.progressclose();
1410
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
1411
+ }, 600);
1412
+ } else {
1413
+ self.percent = res.data.speed
1414
+ }
1415
+ } else {
1416
+ self.percent = 0;
1417
+ }
1418
+ }
1419
+ });
1420
+ }, 3000);
1421
+ }
1422
+ }
1423
+ }
1424
+ }
1425
+ </script>