safecheck-client 3.0.33-3 → 3.0.33-31
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.
- package/package.json +3 -3
- package/src/App.vue +2 -2
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +303 -301
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +809 -651
- package/src/filiale/fugou/pc/CheckBookUser.vue +47 -44
- package/src/filiale/fugou/pc/PlanManage.vue +27 -8
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
- package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/wensu/pc/checkUserList.vue +8 -8
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/wuhai/pc/PaperList.vue +785 -0
- package/src/filiale/wuhai/pc.js +1 -0
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
- package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
- package/src/filiale/yongzhou/pc.js +3 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
- package/src/main.js +1 -1
@@ -1,651 +1,809 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex
|
3
|
-
<
|
4
|
-
<criteria
|
5
|
-
<
|
6
|
-
<div
|
7
|
-
<div class="
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
<
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<div class="col-sm-
|
170
|
-
<
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
<
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
<
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
</
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
<
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
if (!this.
|
380
|
-
this.$
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
}
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
this
|
421
|
-
|
422
|
-
|
423
|
-
this.
|
424
|
-
this.
|
425
|
-
|
426
|
-
|
427
|
-
this.$refs.paged.$refs.
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
}
|
434
|
-
if
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
this
|
440
|
-
},
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
this.
|
485
|
-
|
486
|
-
|
487
|
-
this
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
this.
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
}
|
553
|
-
},
|
554
|
-
|
555
|
-
|
556
|
-
this.
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
console.log("
|
635
|
-
|
636
|
-
|
637
|
-
this
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
1
|
+
<template>
|
2
|
+
<div id='MbpeopleList' class="flex">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-3 form-group">
|
8
|
+
<label class="font_normal_body">用户编号</label>
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
10
|
+
condition="f_userinfo_code like '%{}%'" placeholder='用户编号'>
|
11
|
+
</div>
|
12
|
+
<div class="col-sm-3 form-group">
|
13
|
+
<label class="font_normal_body">用户姓名</label>
|
14
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
|
15
|
+
condition="f_user_name like '%{}%'" placeholder='用户姓名'>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="form-group button-range" style="float: right">
|
19
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
20
|
+
<button class="button_clear button_spacing" @click="clear">清空</button>
|
21
|
+
<!-- <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>-->
|
22
|
+
<!-- <export-excel-->
|
23
|
+
<!-- :data="{condition:$parent.$parent.condition}"-->
|
24
|
+
<!-- :field="$parent.$parent.getfield"-->
|
25
|
+
<!-- sqlurl="api/af-revenue/logic/exportfile" sql-name="salembPeopleList" template-name='表册用户导出'-->
|
26
|
+
<!-- :choose-col="true"></export-excel>-->
|
27
|
+
<div style="float: right" class="button_spacing"
|
28
|
+
:class="{'button_shrink_top': $parent.$parent.criteriaShow,'button_shrink_bottom': !$parent.$parent.criteriaShow}"
|
29
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
33
|
+
<div class="col-sm-3 form-group">
|
34
|
+
<label class="font_normal_body"> 小 区 域</label>
|
35
|
+
<v-select :value.sync="model.f_small_area" v-model="model.f_small_area"
|
36
|
+
:options='$parent.$parent.smallareas' placeholder='小区域'
|
37
|
+
close-on-select :search='true'
|
38
|
+
condition="f_small_area = '{}'"></v-select>
|
39
|
+
</div>
|
40
|
+
<div class="form-group col-sm-3">
|
41
|
+
<label class="font_normal_body">用户电话</label>
|
42
|
+
<input type="text" class="form-control" v-model="model.f_user_phone" placeholder='用户电话'
|
43
|
+
condition="f_user_phone like '%{}%'" v-next-el='yhxm' style="width: 60%"
|
44
|
+
>
|
45
|
+
</div>
|
46
|
+
<div class="col-sm-2 form-group" title="参数名称:【用气类型】">
|
47
|
+
<label class="font_normal_body" >用气类型</label>
|
48
|
+
<v-select :value.sync="model.f_user_gas_type"
|
49
|
+
v-model="model.f_user_gas_type"
|
50
|
+
:options='$parent.$parent.usergastype' placeholder='请选择'
|
51
|
+
condition="f_user_gas_type in {}"
|
52
|
+
close-on-select></v-select>
|
53
|
+
</div>
|
54
|
+
<div class="col-sm-2 form-group" title="参数名称:【用户标签】">
|
55
|
+
<label class="font_normal_body" >用户标签</label>
|
56
|
+
<v-select :value.sync="model.f_user_tags"
|
57
|
+
v-model="model.f_user_tags"
|
58
|
+
:options='$parent.$parent.usertags' placeholder='请选择'
|
59
|
+
condition="f_user_tags in {}"
|
60
|
+
close-on-select></v-select>
|
61
|
+
</div>
|
62
|
+
<div class="form-group col-sm-3">
|
63
|
+
<label class="font_normal_body">客户类型</label>
|
64
|
+
<v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
|
65
|
+
close-on-select condition="f_user_type='{}'"
|
66
|
+
placeholder='用户类型' v-model="model.f_user_type"></v-select>
|
67
|
+
</div>
|
68
|
+
<div class="form-group col-sm-3">
|
69
|
+
<label class="font_normal_body">客户状态</label>
|
70
|
+
<v-select :options='$parent.$parent.user_state' :value.sync="model.f_user_state"
|
71
|
+
close-on-select condition="f_user_state = '{}'"
|
72
|
+
placeholder='客户状态' v-model="model.f_user_state"></v-select>
|
73
|
+
</div>
|
74
|
+
<div class="col-sm-3 form-group">
|
75
|
+
<label class="font_normal_body">所属表册</label>
|
76
|
+
<v-select :value.sync="model.f_check_book_num" v-model="model.f_check_book_num"
|
77
|
+
:options='$parent.$parent.meterbooks' placeholder='安检册'
|
78
|
+
:value-single="true"
|
79
|
+
condition="f_check_book_name='{}'"
|
80
|
+
style="width:60%"
|
81
|
+
close-on-select></v-select>
|
82
|
+
</div>
|
83
|
+
<div class="col-sm-3 form-group">
|
84
|
+
<label class="font_normal_body">抄 表 员 </label>
|
85
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
86
|
+
style="width:60%"
|
87
|
+
condition="f_inputtor in {}"
|
88
|
+
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
89
|
+
close-on-select
|
90
|
+
v-el:cc></v-select>
|
91
|
+
</div>
|
92
|
+
<div class="col-sm-3 form-group">
|
93
|
+
<label class="font_normal_body">表箱号 </label>
|
94
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_metertitles"
|
95
|
+
condition="f_metertitles like '%{}%'" placeholder='表箱号'
|
96
|
+
>
|
97
|
+
</div>
|
98
|
+
<div class="form-group col-sm-3">
|
99
|
+
<label class="font_normal_body">用气性质</label>
|
100
|
+
<v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
|
101
|
+
close-on-select condition="f_gasproperties='{}'"
|
102
|
+
placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
|
103
|
+
</div>
|
104
|
+
<div class="form-group col-sm-3">
|
105
|
+
<label class="font_normal_body">气表类型</label>
|
106
|
+
<v-select :options='$parent.$parent.meter_classify' :value.sync="model.f_meter_classify"
|
107
|
+
close-on-select condition="f_meter_classify='{}'"
|
108
|
+
placeholder='气表类型' v-model="model.f_meter_classify"></v-select>
|
109
|
+
</div>
|
110
|
+
<div class="col-sm-3 form-group">
|
111
|
+
<label class="font_normal_body">气表品牌</label>
|
112
|
+
<v-select :value.sync="model.f_meter_brand"
|
113
|
+
v-model="model.f_meter_brand"
|
114
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
115
|
+
condition="f_meter_brand in {}"
|
116
|
+
close-on-select></v-select>
|
117
|
+
</div>
|
118
|
+
<div class="form-group col-sm-3">
|
119
|
+
<label class="font_normal_body">气表状态</label>
|
120
|
+
<v-select :options='$parent.$parent.table_state' :value.sync="model.f_table_state"
|
121
|
+
close-on-select condition="f_table_state = '{}'"
|
122
|
+
placeholder='气表状态' v-model="model.f_table_state"></v-select>
|
123
|
+
</div>
|
124
|
+
<div class="col-sm-3 form-group">
|
125
|
+
<label class="font_normal_body">小 区 </label>
|
126
|
+
<input type="text" class="input_search" v-model="model.f_residential_area" style="width: 60%"
|
127
|
+
condition=" f_residential_area like '{}%'" placeholder="输入小区">
|
128
|
+
</div>
|
129
|
+
<div class="form-group col-sm-3">
|
130
|
+
<label class="font_normal_body">客户地址</label>
|
131
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_address"
|
132
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
133
|
+
</div>
|
134
|
+
<div class="col-sm-3 form-group">
|
135
|
+
<label class="font_normal_body">楼 号 </label>
|
136
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_building"
|
137
|
+
condition="f_building = '{}'" placeholder='楼号'>
|
138
|
+
</div>
|
139
|
+
<div class="form-group col-sm-3">
|
140
|
+
<label class="font_normal_body">组织机构</label>
|
141
|
+
<res-select :initresid='$parent.$parent.curorgid'
|
142
|
+
@res-select="$parent.$parent.getorg"
|
143
|
+
class="select select_list"
|
144
|
+
restype='organization' :is-mul="false"
|
145
|
+
style="width: 60%">
|
146
|
+
</res-select>
|
147
|
+
</div>
|
148
|
+
<div class="form-group col-sm-3">
|
149
|
+
<label class="font_normal_body">是否在册</label>
|
150
|
+
<v-select :options='$parent.$parent.whether_list'
|
151
|
+
:value.sync="model.f_book_name"
|
152
|
+
v-model="model.f_book_name"
|
153
|
+
close-on-select condition="f_book_name {}"
|
154
|
+
placeholder='是否在册' ></v-select>
|
155
|
+
</div>
|
156
|
+
<div class="col-sm-3 form-group">
|
157
|
+
<label class="font_normal_body">入户证号</label>
|
158
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_book_no"
|
159
|
+
condition="f_book_no like '%{}%'" placeholder='入户证号'
|
160
|
+
>
|
161
|
+
</div>
|
162
|
+
<div class="col-sm-3 form-group">
|
163
|
+
<label class="font_normal_body">表 号 </label>
|
164
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_meternumber"
|
165
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'
|
166
|
+
>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div class="col-sm-3 form-group">
|
170
|
+
<label class="font_normal_body">街道/乡镇</label>
|
171
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
172
|
+
:options='$parent.$parent.streetslist' placeholder='请选择'
|
173
|
+
condition="f_street_id = '{}'"
|
174
|
+
v-model='model.f_street_id'
|
175
|
+
@change="$parent.$parent.streetChange"
|
176
|
+
close-on-select :search="true" >
|
177
|
+
</v-select>
|
178
|
+
</div>
|
179
|
+
<div class="col-sm-3 form-group">
|
180
|
+
<label class="font_normal_body">片区/行政村</label>
|
181
|
+
<v-select :value.sync="model.f_community_id" v-model='model.f_community_id'
|
182
|
+
:options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
|
183
|
+
condition="f_community_id = '{}'"
|
184
|
+
@change="$parent.$parent.communityChange"
|
185
|
+
close-on-select v-ref:slice>
|
186
|
+
</v-select>
|
187
|
+
</div>
|
188
|
+
<div class="col-sm-3 form-group">
|
189
|
+
<label class="font_normal_body">小区/自然村</label>
|
190
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
191
|
+
:options='$parent.$parent.areaslist' placeholder='请选择'
|
192
|
+
condition="f_residential_area_id = '{}'"
|
193
|
+
v-model='model.f_residential_area_id'
|
194
|
+
close-on-select>
|
195
|
+
</v-select>
|
196
|
+
</div>
|
197
|
+
<div class="col-sm-3 form-group">
|
198
|
+
<label class="font_normal_body">开户时间</label>
|
199
|
+
<datepicker
|
200
|
+
:value.sync="$parent.$parent.f_open_date"
|
201
|
+
placeholder='开户时间' style="width:60%"
|
202
|
+
:disabled-days-of-week="[]"
|
203
|
+
:format="'yyyy-MM-dd'"
|
204
|
+
:select-month="true"
|
205
|
+
v-model='model.f_open_date'
|
206
|
+
:show-rest-button="reset">
|
207
|
+
</datepicker>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
</div>
|
211
|
+
</criteria>
|
212
|
+
<data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid :optional="true">
|
213
|
+
<template partial='head'>
|
214
|
+
<!--<th>-->
|
215
|
+
<!--<input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"-->
|
216
|
+
<!--@change="$parent.$parent.$parent.select()"/>-->
|
217
|
+
<!--</th>-->
|
218
|
+
<th><nobr>序号</nobr></th>
|
219
|
+
<th><nobr>客户编号</nobr></th>
|
220
|
+
<th><nobr>客户名称</nobr></th>
|
221
|
+
<th><nobr>客户状态</nobr></th>
|
222
|
+
|
223
|
+
<th><nobr>区/县</nobr></th>
|
224
|
+
<th><nobr>街道/乡镇</nobr></th>
|
225
|
+
<th><nobr>片区/行政村</nobr></th>
|
226
|
+
<th><nobr>小区/自然村</nobr></th>
|
227
|
+
<th><nobr>客户地址</nobr></th>
|
228
|
+
<th><nobr>表号</nobr></th>
|
229
|
+
<th><nobr>气表状态</nobr></th>
|
230
|
+
<th><nobr>所属表册</nobr></th>
|
231
|
+
<th><nobr>册内排序</nobr></th>
|
232
|
+
<th><nobr>表箱号</nobr></th>
|
233
|
+
<th><nobr>入户证号</nobr></th>
|
234
|
+
<th><nobr>表底数</nobr></th>
|
235
|
+
</template>
|
236
|
+
<template partial='body'>
|
237
|
+
<!--<td>-->
|
238
|
+
<!--<input :id="'body'+model.pageIndex" type='checkbox' @change="$parent.$parent.$parent.selectOne($event,row,$index)"-->
|
239
|
+
<!--:checked="$parent.$parent.$parent.ischecked(model.pageIndex-1,$index)"/>-->
|
240
|
+
<!--</td>-->
|
241
|
+
<td>{{$index+1}}</td>
|
242
|
+
<td>{{row.f_userinfo_code}}</td>
|
243
|
+
<td>{{row.f_user_name}}</td>
|
244
|
+
<td>{{row.f_user_state}}</td>
|
245
|
+
|
246
|
+
<td>{{row.f_pcd}}</td>
|
247
|
+
<td>{{row.f_street}}</td>
|
248
|
+
<td>{{row.f_community}}</td>
|
249
|
+
<td>{{row.f_residential_area}}</td>
|
250
|
+
<td>{{row.f_address}}</td>
|
251
|
+
<td>{{row.f_meternumber}}</td>
|
252
|
+
<td>{{row.f_table_state}}</td>
|
253
|
+
<td>{{row.f_book_name}}</td>
|
254
|
+
<td>{{row.f_meter_book_sort}}</td>
|
255
|
+
<!-- <td>{{row.f_adjustable_id}}</td>-->
|
256
|
+
<td style="text-align:center">{{row.f_metertitles}}</td>
|
257
|
+
<td style="text-align:center"><nobr>{{row.f_book_no}}</nobr></td>
|
258
|
+
<td style="text-align:center">{{row.f_meter_base}}</td>
|
259
|
+
</template>
|
260
|
+
</data-grid>
|
261
|
+
</criteria-paged>
|
262
|
+
</div>
|
263
|
+
<modal :show.sync="show" width="500px" title="文件导入" v-ref:modal large backdrop="false">
|
264
|
+
<article slot="modal-body" class="modal-body">
|
265
|
+
<file-upload class="my-file-uploader " name="UploadFile" style="border-radius: 2px;"
|
266
|
+
action="api/af-revenue/file/uploadFile" tagname="导入表册用户" v-ref:file multiple></file-upload>
|
267
|
+
</article>
|
268
|
+
<footer slot="modal-footer" class="modal-footer">
|
269
|
+
</footer>
|
270
|
+
</modal>
|
271
|
+
</template>
|
272
|
+
|
273
|
+
<script>
|
274
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
275
|
+
import Vue from 'vue'
|
276
|
+
|
277
|
+
let getAreaConfig = async function (self) {
|
278
|
+
// 获取气价里面的配置
|
279
|
+
await self.$getConfig(self, 'UserAddress')
|
280
|
+
Object.assign(self.model, self.config)
|
281
|
+
self.initdata()
|
282
|
+
}
|
283
|
+
let loadParamGem = async function (self) {
|
284
|
+
await self.$LoadParams.loadParam()
|
285
|
+
self.getfield = self.config.excelHeaders
|
286
|
+
// self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
|
287
|
+
self.$refs.paged.$refs.cri.model.f_book_name = ['is null']
|
288
|
+
await self.initAdjustables()
|
289
|
+
// await self.search()
|
290
|
+
}
|
291
|
+
export default {
|
292
|
+
name: 'MbpeopleList',
|
293
|
+
data () {
|
294
|
+
return {
|
295
|
+
f_filialeids: this.$login.f.orgid,
|
296
|
+
// 初始化省市区数据
|
297
|
+
pcdslist: [],
|
298
|
+
//初始化街道数据
|
299
|
+
streetslist:[],
|
300
|
+
communitylist:[],
|
301
|
+
areaslist: [],
|
302
|
+
// 选中所有地址
|
303
|
+
addresslist: [],
|
304
|
+
sliceArea: [],
|
305
|
+
orgCondtionStr: '',
|
306
|
+
f_filialeid: this.$login.f.orgid,
|
307
|
+
f_orgid: '',
|
308
|
+
invoiceuse: [{label: '是', value: 'is not null'}, {label: '否', value: 'is null'}],
|
309
|
+
model: new PagedList('rs/sql/mb_peopleList', 20),
|
310
|
+
f_orgstr: this.$login.f.orgid,
|
311
|
+
// 要操作的用户
|
312
|
+
rowsdata: [],
|
313
|
+
aaa: '',
|
314
|
+
// 控制全选
|
315
|
+
all: [],
|
316
|
+
// 控制单选
|
317
|
+
radio: [],
|
318
|
+
show: false,
|
319
|
+
meterbooks: [{label: '全部', value: ''}],
|
320
|
+
criteriaShow: false,
|
321
|
+
gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
322
|
+
user_type: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
323
|
+
meter_classify: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
324
|
+
table_state: this.$appdata.getParam('气表状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')] : [],
|
325
|
+
f_small_areas: this.$appdata.getParam('小区域') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('小区域')] : [],
|
326
|
+
user_state: [{label: '正常', value: '正常'}, {label: '预备', value: '预备'}, {label: '销户', value: '销户'}],
|
327
|
+
whether_list: [{label: '已在册内', value: 'is not null'}, {label: '不在册内', value: 'is null'}],
|
328
|
+
meterbrands: [],
|
329
|
+
condition: '',
|
330
|
+
adjustables: [],
|
331
|
+
unnullrowdata: [],
|
332
|
+
getfield: {},
|
333
|
+
config: {
|
334
|
+
// 导出列要和查询列相同
|
335
|
+
excelHeaders: {
|
336
|
+
'f_userfiles_id': '系统识别号',
|
337
|
+
'f_userinfo_code': '用户编号',
|
338
|
+
'f_user_name': '用户姓名',
|
339
|
+
'f_address': '用户地址'
|
340
|
+
}
|
341
|
+
},
|
342
|
+
curorgid: [this.$login.f.orgid]
|
343
|
+
}
|
344
|
+
},
|
345
|
+
created () {
|
346
|
+
},
|
347
|
+
ready () {
|
348
|
+
getAreaConfig(this)
|
349
|
+
loadParamGem(this)
|
350
|
+
this.getmeterbook()
|
351
|
+
},
|
352
|
+
methods: {
|
353
|
+
async meterbook(){
|
354
|
+
this.meterbooks=[]
|
355
|
+
if(this.f_orgid==''){
|
356
|
+
this.f_orgid=this.$login.f.orgid
|
357
|
+
}
|
358
|
+
let res=await this.$resetpost('rs/sql/tel_singleTable_OrderBy',{data:{items:' * ',tablename:'t_check_book',condition:` 1=1 `,orderitem:' id desc'}},{resolveMsg:null,rejectMsg:null})
|
359
|
+
for(let i=0;i<res.data.length;i++){
|
360
|
+
console.log("res",res.data[i])
|
361
|
+
let temp=[]
|
362
|
+
temp.label=res.data[i].f_check_book_name
|
363
|
+
temp.value=res.data[i].id
|
364
|
+
this.meterbooks.push(temp)
|
365
|
+
}
|
366
|
+
|
367
|
+
},
|
368
|
+
invoiceuseChange (val) {
|
369
|
+
// 查询已开票记录清空选项
|
370
|
+
if (val == 'is not null') {
|
371
|
+
this.rowsdata = []
|
372
|
+
this.radio = []
|
373
|
+
}
|
374
|
+
},
|
375
|
+
|
376
|
+
select () {
|
377
|
+
let index = this.model.pageIndex - 1
|
378
|
+
console.log('全选', this.all[index])
|
379
|
+
if (!this.radio[index]) {
|
380
|
+
this.radio.$set(index, [])
|
381
|
+
}
|
382
|
+
if (this.all[index]) {
|
383
|
+
// 数据
|
384
|
+
this.rowsdata[index] = Object.assign([], this.model.rows)
|
385
|
+
// 勾选
|
386
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
387
|
+
this.radio[index].$set(i, true)
|
388
|
+
}
|
389
|
+
} else {
|
390
|
+
// 数据
|
391
|
+
this.rowsdata[index] = []
|
392
|
+
// 不勾选
|
393
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
394
|
+
this.radio[index].$set(i, false)
|
395
|
+
}
|
396
|
+
}
|
397
|
+
this.mergeRowData()
|
398
|
+
},
|
399
|
+
importFile () {
|
400
|
+
this.show = true
|
401
|
+
},
|
402
|
+
async initAdjustables () {
|
403
|
+
let arr = []
|
404
|
+
let filter = this.$login.f.orgid
|
405
|
+
this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
|
406
|
+
let temp = {}
|
407
|
+
temp.label = '[' + item.value.f_adjustable_id + ']-' + item.label
|
408
|
+
temp.value = item.value.id
|
409
|
+
arr.push(temp)
|
410
|
+
})
|
411
|
+
this.adjustables = [{label: '全部', value: ''}, ...arr]
|
412
|
+
// 初始化气表品牌
|
413
|
+
let brandArr = []
|
414
|
+
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
415
|
+
let temp1 = {}
|
416
|
+
temp1.label = item.label
|
417
|
+
temp1.value = item.value.f_meter_brand
|
418
|
+
brandArr.push(temp1)
|
419
|
+
})
|
420
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
421
|
+
//
|
422
|
+
// // 加载安检册
|
423
|
+
// console.log("------------------this.$GetSaleParam.getMeterBooks()",this.$GetSaleParam.getMeterBooks())
|
424
|
+
// this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
|
425
|
+
},
|
426
|
+
search () {
|
427
|
+
this.$refs.paged.$refs.cri.search()
|
428
|
+
console.log('mbpeople this = ', this)
|
429
|
+
},
|
430
|
+
selfSearch (args) {
|
431
|
+
let f_orgstr = this.orgCondtionStr ? this.orgCondtionStr : "and f_orgid in ('" + this.f_orgid + "')"
|
432
|
+
args.condition = `${args.condition} ` + f_orgstr
|
433
|
+
// args.condition += ` and f_orgid = ${this.f_orgstr}`
|
434
|
+
if(args.model.f_open_date){
|
435
|
+
args.condition += ` and f_open_date <='${args.model.f_open_date}' `
|
436
|
+
}
|
437
|
+
this.condition = args.condition
|
438
|
+
this.$parent.condition = this.condition
|
439
|
+
this.model.search(args.condition, args.model)
|
440
|
+
},
|
441
|
+
// 合并二维数组并去空
|
442
|
+
mergeRowData () {
|
443
|
+
console.log('!!!!!!!!!!!!!数组去空', this.rowsdata)
|
444
|
+
let data = []
|
445
|
+
// 合并
|
446
|
+
for (let array of this.rowsdata) {
|
447
|
+
data.push.apply(data, array)
|
448
|
+
}
|
449
|
+
// 去空
|
450
|
+
// 拓展数组去空值的方法
|
451
|
+
Array.prototype.removeEmpty = function () {
|
452
|
+
for (var i = 0; i < this.length; i++) {
|
453
|
+
if (this[i] == '' || typeof (this[i]) == 'undefined') {
|
454
|
+
this.splice(i, 1)
|
455
|
+
i--
|
456
|
+
}
|
457
|
+
}
|
458
|
+
return this
|
459
|
+
}
|
460
|
+
data = data.removeEmpty()
|
461
|
+
this.unnullrowdata = []
|
462
|
+
data.forEach((row) => {
|
463
|
+
this.unnullrowdata.push(row.f_userfiles_id + '')
|
464
|
+
})
|
465
|
+
this.$parent.rowsdata = this.unnullrowdata
|
466
|
+
// this.$parent.rowsdata = this.rowsdata
|
467
|
+
},
|
468
|
+
selectOne (event, row, i) {
|
469
|
+
console.log('单选', event.target.checked)
|
470
|
+
let index = this.model.pageIndex - 1
|
471
|
+
if (!this.rowsdata[index]) {
|
472
|
+
this.rowsdata[index] = []
|
473
|
+
}
|
474
|
+
if (!this.radio[index]) {
|
475
|
+
this.radio.$set(index, [])
|
476
|
+
}
|
477
|
+
if (event.target.checked) {
|
478
|
+
// 数据
|
479
|
+
this.rowsdata[index][i] = row
|
480
|
+
// 勾选
|
481
|
+
this.radio[index].$set(i, true)
|
482
|
+
// 判断是否全部选中
|
483
|
+
var allState = true
|
484
|
+
if (this.model.rows.length != this.radio[index].length) {
|
485
|
+
allState = false
|
486
|
+
}
|
487
|
+
for (var state of this.radio[index]) {
|
488
|
+
if (!state) {
|
489
|
+
allState = false
|
490
|
+
}
|
491
|
+
}
|
492
|
+
if (allState) {
|
493
|
+
this.all.$set(index, true)
|
494
|
+
} else {
|
495
|
+
this.all.$set(index, false)
|
496
|
+
}
|
497
|
+
} else {
|
498
|
+
// 数据
|
499
|
+
this.rowsdata[index][i] = []
|
500
|
+
// 不勾选
|
501
|
+
this.radio[index].$set(i, false)
|
502
|
+
// 任意取消一个则全选状态设为false
|
503
|
+
this.all.$set(index, false)
|
504
|
+
}
|
505
|
+
this.mergeRowData()
|
506
|
+
},
|
507
|
+
getorg (val) {
|
508
|
+
console.log('getorg:val=', val)
|
509
|
+
console.log('getorg:this.f_orgid=', this.f_orgid)
|
510
|
+
this.f_orgid = val
|
511
|
+
this.f_filialeid = val[0]
|
512
|
+
},
|
513
|
+
async getmeterbook(){
|
514
|
+
await this.meterbook()
|
515
|
+
this.$emit('childre',this.meterbooks)
|
516
|
+
},
|
517
|
+
async initdata () {
|
518
|
+
this.initAreas(this.f_filialeids)
|
519
|
+
// 添加特殊地址选省市区
|
520
|
+
|
521
|
+
this.initpcds(` f_orgid = '${this.f_filialeids}'`)
|
522
|
+
this.initstreets(` f_orgid = '${this.f_filialeids}' `)
|
523
|
+
this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
524
|
+
},
|
525
|
+
// 初始化片区
|
526
|
+
async initAreas (val) {
|
527
|
+
if (val) {
|
528
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
529
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
530
|
+
userid: this.$login.f.id
|
531
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
532
|
+
|
533
|
+
let arr = getAllArea.data.filter((res) => {
|
534
|
+
return res.parentid == val
|
535
|
+
})
|
536
|
+
console.log('过滤之后的片区', arr)
|
537
|
+
this.sliceArea = []
|
538
|
+
arr.forEach((res) => {
|
539
|
+
this.sliceArea.push({label: res.name, value: res.name})
|
540
|
+
})
|
541
|
+
}
|
542
|
+
},
|
543
|
+
initModel () {
|
544
|
+
if (this.row) {
|
545
|
+
this.cleardata()
|
546
|
+
this.model = Object.assign({}, this.model, this.row)
|
547
|
+
// 处理片区代码
|
548
|
+
this.model.slice_area = [{
|
549
|
+
name: this.model.f_slice_area,
|
550
|
+
code: this.model.f_area_code
|
551
|
+
}]
|
552
|
+
}
|
553
|
+
},
|
554
|
+
// 初始化省市区,添加街道
|
555
|
+
async initpcds (pconditon) {
|
556
|
+
this.pcdslist = []
|
557
|
+
let HttpReset = new HttpResetClass()
|
558
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
559
|
+
data: {
|
560
|
+
items: '*',
|
561
|
+
tablename: 't_pcd',
|
562
|
+
orderitem: 'id',
|
563
|
+
condition: pconditon
|
564
|
+
}
|
565
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
566
|
+
let redata = []
|
567
|
+
req.data.forEach((row, n) => {
|
568
|
+
redata[n] = {
|
569
|
+
label: row.f_pcd,
|
570
|
+
value: row.id,
|
571
|
+
data: row,
|
572
|
+
id: row.id
|
573
|
+
}
|
574
|
+
})
|
575
|
+
this.pcdslist = redata
|
576
|
+
console.log("xxxxxxxxxxxxxx")
|
577
|
+
console.log(this.pcdslist)
|
578
|
+
console.log("redataxxxxxxxx")
|
579
|
+
},
|
580
|
+
// 初始化街道 添加小区
|
581
|
+
async initstreets (pconditon) {
|
582
|
+
this.streetslist = []
|
583
|
+
let HttpReset = new HttpResetClass()
|
584
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
585
|
+
data: {
|
586
|
+
items: '*',
|
587
|
+
tablename: 't_street',
|
588
|
+
orderitem: 'id',
|
589
|
+
condition: pconditon
|
590
|
+
}
|
591
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
592
|
+
let redata = []
|
593
|
+
req.data.forEach((row, n) => {
|
594
|
+
redata[n] = {
|
595
|
+
label: row.f_street,
|
596
|
+
value: row.id,
|
597
|
+
data: row,
|
598
|
+
id: row.id
|
599
|
+
}
|
600
|
+
})
|
601
|
+
this.streetslist = redata
|
602
|
+
console.log("xxxxxxxxxxxxxx")
|
603
|
+
console.log(this.streetslist)
|
604
|
+
console.log("redataxxxxxxxx")
|
605
|
+
},
|
606
|
+
// 初始化小区添加小区
|
607
|
+
async initareas (pconditon) {
|
608
|
+
// if(this.usertype){
|
609
|
+
// pconditon=pconditon+` and f_special='1' `
|
610
|
+
// }
|
611
|
+
this.areaslist = []
|
612
|
+
let HttpReset = new HttpResetClass()
|
613
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
614
|
+
data: {
|
615
|
+
items: '*',
|
616
|
+
tablename: 't_area',
|
617
|
+
orderitem: 'id',
|
618
|
+
condition: pconditon
|
619
|
+
}
|
620
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
621
|
+
let redata = []
|
622
|
+
req.data.forEach((row) => {
|
623
|
+
redata.push({
|
624
|
+
label: row.f_residential_area,
|
625
|
+
value: row.id,
|
626
|
+
data: row,
|
627
|
+
id: row.id
|
628
|
+
})
|
629
|
+
})
|
630
|
+
this.areaslist = redata
|
631
|
+
},
|
632
|
+
//小区变化
|
633
|
+
areaChange(val){
|
634
|
+
console.log("小区变化",val)
|
635
|
+
// 选择小区后级联出省市区和街道
|
636
|
+
let selectArea // 选中的小区数据
|
637
|
+
for (let row of this.areaslist) {
|
638
|
+
if (val == row.value) {
|
639
|
+
selectArea = row.data
|
640
|
+
break
|
641
|
+
}
|
642
|
+
}
|
643
|
+
if (selectArea) {
|
644
|
+
this.model.f_street_id = selectArea.f_street_id
|
645
|
+
this.model.f_pcd_id = selectArea.f_pcd_id
|
646
|
+
this.model.f_community_id = selectArea.f_community_id
|
647
|
+
console.log( this.model.f_community_id)
|
648
|
+
|
649
|
+
this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
|
650
|
+
this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
|
651
|
+
if(selectArea.f_community_id){
|
652
|
+
this.initcommunity(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_community_id}' `)
|
653
|
+
}
|
654
|
+
// this.model.f_slice_area = selectArea.f_slice_area
|
655
|
+
// 拼接地址
|
656
|
+
this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
|
657
|
+
console.log( this.model.f_community_id)
|
658
|
+
}
|
659
|
+
this.$nextTick(() => {
|
660
|
+
this.$resetValidation()
|
661
|
+
})
|
662
|
+
},
|
663
|
+
// 片区变化 f_area_code
|
664
|
+
async areasChange (val) {
|
665
|
+
console.log('街道变化', val)
|
666
|
+
if (this.streetslist[0]) {
|
667
|
+
var street = ''
|
668
|
+
this.streetslist.forEach((item) => {
|
669
|
+
if (item.id === val) {
|
670
|
+
street = item.label
|
671
|
+
}
|
672
|
+
})
|
673
|
+
// this.model.f_address = street
|
674
|
+
}
|
675
|
+
if (val) {
|
676
|
+
// 那就把[小区]重新组织一下
|
677
|
+
await this.initareas(` f_area_code ='${val}' `)
|
678
|
+
if (this.$refs.paged.$refs.criteria.model.f_residential_area_id) {
|
679
|
+
if (this.findbyid(this.areaslist, this.$refs.paged.$refs.criteria.model.f_residential_area_id)) {
|
680
|
+
let street_id = this.findbyid(this.areaslist,this.$refs.paged.$refs.criteria.model.f_residential_area_id).f_street_id
|
681
|
+
if (street_id != val) {
|
682
|
+
this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
|
683
|
+
}
|
684
|
+
} else {
|
685
|
+
this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
|
686
|
+
}
|
687
|
+
}
|
688
|
+
}
|
689
|
+
},
|
690
|
+
//街道变化
|
691
|
+
//初始化街道 添加小区
|
692
|
+
async initcommunity(pconditon){
|
693
|
+
this.communitylist = []
|
694
|
+
let HttpReset = new HttpResetClass()
|
695
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
696
|
+
data: {
|
697
|
+
items: '*',
|
698
|
+
tablename: 't_community',
|
699
|
+
orderitem: 'id',
|
700
|
+
condition: pconditon
|
701
|
+
}
|
702
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
703
|
+
let redata = []
|
704
|
+
req.data.forEach((row, n) => {
|
705
|
+
redata[n] = {
|
706
|
+
label: row.f_community_name,
|
707
|
+
value: row.id,
|
708
|
+
data:row,
|
709
|
+
id:row.id
|
710
|
+
}
|
711
|
+
})
|
712
|
+
this.communitylist=redata
|
713
|
+
},
|
714
|
+
async streetChange(val){
|
715
|
+
if(val){
|
716
|
+
await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
|
717
|
+
}
|
718
|
+
},
|
719
|
+
async communityChange(val){
|
720
|
+
console.log(val)
|
721
|
+
if(val){
|
722
|
+
await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
|
723
|
+
}
|
724
|
+
}
|
725
|
+
},
|
726
|
+
computed: {
|
727
|
+
usergastype () {
|
728
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
729
|
+
},
|
730
|
+
usertags () {
|
731
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户标签')]
|
732
|
+
},
|
733
|
+
ischecked () {
|
734
|
+
return function (index, i) {
|
735
|
+
if (!this.radio[index]) {
|
736
|
+
return false
|
737
|
+
}
|
738
|
+
return this.radio[index][i]
|
739
|
+
}
|
740
|
+
},
|
741
|
+
smallareas () {
|
742
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('小区域')]
|
743
|
+
},
|
744
|
+
inputtores () {
|
745
|
+
// 获取抄表员
|
746
|
+
console.log('获取抄表员', this.$login.f)
|
747
|
+
let rs = []
|
748
|
+
if (this.$login.f.f_gasman.length > 0) {
|
749
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
750
|
+
let temp = {
|
751
|
+
label: this.$login.f.f_gasman[i].name,
|
752
|
+
value: this.$login.f.f_gasman[i].name
|
753
|
+
}
|
754
|
+
rs.push(temp)
|
755
|
+
}
|
756
|
+
}
|
757
|
+
this.inputtores2 = rs
|
758
|
+
return [ ...rs]
|
759
|
+
}
|
760
|
+
},
|
761
|
+
watch: {
|
762
|
+
async 'f_orgid'(){
|
763
|
+
this.meterbooks=[]
|
764
|
+
await this.meterbook()
|
765
|
+
this.$emit('childre',this.meterbooks)
|
766
|
+
},
|
767
|
+
batchMeterShow () {
|
768
|
+
if (this.batchMeterShow == false) {
|
769
|
+
// 将选的文件清空
|
770
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
771
|
+
}
|
772
|
+
},
|
773
|
+
'f_filialeid' (val) {
|
774
|
+
loadParamGem(this)
|
775
|
+
}
|
776
|
+
},
|
777
|
+
events: {
|
778
|
+
onFileUpload: function (file, res) {
|
779
|
+
// let URL = res.f_downloadpath.substring(res.f_downloadpath.lastIndexOf(":\\") + 2)
|
780
|
+
// res.f_downloadpath = "http://" + location.host + "/" + URL
|
781
|
+
// res.f_downloadpath.replace('\\','/')
|
782
|
+
this.$resetpost('api/af-revenue/logic/upLoadBookFile',
|
783
|
+
{data: {
|
784
|
+
condition: this.condition,
|
785
|
+
filepath: res.f_downloadpath
|
786
|
+
}
|
787
|
+
},
|
788
|
+
{resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
|
789
|
+
this.show = false
|
790
|
+
this.$showAlert(`导入成功`, 'success', 2000)
|
791
|
+
this.search()
|
792
|
+
})
|
793
|
+
}
|
794
|
+
}
|
795
|
+
}
|
796
|
+
</script>
|
797
|
+
|
798
|
+
<style lang="less">
|
799
|
+
#MbpeopleList {
|
800
|
+
tr {
|
801
|
+
th {
|
802
|
+
text-align: center;
|
803
|
+
}
|
804
|
+
td {
|
805
|
+
text-align: center;
|
806
|
+
}
|
807
|
+
}
|
808
|
+
}
|
809
|
+
</style>
|