safecheck-client 3.0.35-gongyi-25 → 3.0.35-gongyi-26
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,929 +1,918 @@
|
|
1
|
-
<template
|
2
|
-
<
|
3
|
-
|
4
|
-
<div class="panel auto"
|
5
|
-
<div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">
|
6
|
-
<span class="spanboder"
|
7
|
-
<img
|
8
|
-
<img class="butt3" :src="imgback('基本信息')">
|
9
|
-
</span>
|
10
|
-
</div>
|
11
|
-
<div class="panel-body " id="upuserinfo_sel" v-show="headername=='基本信息'">
|
12
|
-
<div class="row auto" style="margin: 5px 0">
|
13
|
-
<labe class="righttxt">用户编号:</labe>
|
14
|
-
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code"
|
15
|
-
</div>
|
16
|
-
<div class="row auto" style="margin: 5px 0">
|
17
|
-
<labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
</div>
|
28
|
-
<div class="row auto" style="margin: 5px 0">
|
29
|
-
<labe class="righttxt"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
47
|
-
|
48
|
-
<!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
|
49
|
-
:width="'60%'"
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
:
|
60
|
-
v-model="
|
61
|
-
:options='
|
62
|
-
</div
|
63
|
-
<div class="row auto" style="margin: 5px 0">
|
64
|
-
<labe class="righttxt"
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
:options='
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
v-model="
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<labe class="righttxt"
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
</div
|
101
|
-
<div class="row auto" style="margin: 5px 0">
|
102
|
-
<labe class="righttxt"
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<labe class="righttxt"
|
111
|
-
|
112
|
-
</div
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
</div>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<
|
122
|
-
<
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<
|
130
|
-
<
|
131
|
-
</div
|
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
|
-
|
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
|
-
</div>
|
210
|
-
<div class="row auto" style="margin: 5px 0">
|
211
|
-
<labe class="righttxt"
|
212
|
-
</div>
|
213
|
-
<div class="row auto" style="margin: 5px 0">
|
214
|
-
<labe class="righttxt"
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
:format="'yyyy-MM-dd'"
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
|
240
|
-
<labe class="righttxt"
|
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
|
-
|
380
|
-
|
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
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
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
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
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
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
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
|
-
this.
|
593
|
-
|
594
|
-
this.
|
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
|
-
this.
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
}
|
711
|
-
this.
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
this.
|
729
|
-
}
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
}
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
}
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
//
|
808
|
-
|
809
|
-
|
810
|
-
this.
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
position: absolute;
|
920
|
-
bottom: 10px;
|
921
|
-
right: 10px;
|
922
|
-
}
|
923
|
-
</style>
|
924
|
-
<style lang="less">
|
925
|
-
#upuserinfo_sel ul{
|
926
|
-
width: 100% !important;
|
927
|
-
left:0 !important;
|
928
|
-
}
|
929
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div style="height: 100%">
|
3
|
+
<work-busy :is-busy="excessive"></work-busy>
|
4
|
+
<div class="panel auto">
|
5
|
+
<div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">
|
6
|
+
<span class="spanboder">
|
7
|
+
<img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息
|
8
|
+
<img class="butt3" :src="imgback('基本信息')">
|
9
|
+
</span>
|
10
|
+
</div>
|
11
|
+
<div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
|
12
|
+
<div class="row auto" style="margin: 5px 0">
|
13
|
+
<labe class="righttxt">用户编号:</labe>
|
14
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly />
|
15
|
+
</div>
|
16
|
+
<div class="row auto" style="margin: 5px 0">
|
17
|
+
<labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt"
|
18
|
+
v-model="userinfo.baseinfo.base.f_user_name" readonly />
|
19
|
+
</div>
|
20
|
+
<div class="row auto" style="margin: 5px 0">
|
21
|
+
<labe class="righttxt">用户状态:</labe><input type="text" class="form-control rightipt" readonly
|
22
|
+
v-model="userinfo.baseinfo.base.f_user_state" />
|
23
|
+
</div>
|
24
|
+
<div class="row auto" style="margin: 5px 0">
|
25
|
+
<labe class="righttxt">用户电话:</labe><input type="text" class="form-control rightipt"
|
26
|
+
v-model="userinfo.baseinfo.base.f_user_phone" />
|
27
|
+
</div>
|
28
|
+
<div class="row auto" style="margin: 5px 0">
|
29
|
+
<labe class="righttxt">租户姓名:</labe><input type="text" class="form-control rightipt"
|
30
|
+
v-model="userinfo.baseinfo.base.f_rent_name" />
|
31
|
+
</div>
|
32
|
+
<div class="row auto" style="margin: 5px 0">
|
33
|
+
<labe class="righttxt">租户电话:</labe><input type="text" class="form-control rightipt"
|
34
|
+
v-model="userinfo.baseinfo.base.f_zuhu_phone" />
|
35
|
+
</div>
|
36
|
+
<div class="row auto" style="margin: 5px 0">
|
37
|
+
<labe class="righttxt">地址类型:</labe>
|
38
|
+
<div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
|
39
|
+
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
40
|
+
id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
|
41
|
+
for="phone_addressType1">普通地址</label></div>
|
42
|
+
<div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
|
43
|
+
id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
|
44
|
+
for="phone_addressType2">特殊地址</label></div>
|
45
|
+
</div>
|
46
|
+
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
47
|
+
<!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
|
48
|
+
<!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
|
49
|
+
:width="'60%'"
|
50
|
+
v-model="userinfo.addressinfo.f_iscity"
|
51
|
+
:options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
|
52
|
+
</div>
|
53
|
+
<!-- <div class="row auto" style="margin: 5px 0">-->
|
54
|
+
<!-- <labe class="righttxt">地区类型:</labe>-->
|
55
|
+
<!-- <!–<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />–>-->
|
56
|
+
<!-- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />-->
|
57
|
+
<!-- <!–<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"-->
|
58
|
+
<!-- :width="'60%'"-->
|
59
|
+
<!-- :disabled="true"-->
|
60
|
+
<!-- v-model="userinfo.addressinfo.f_iscity"-->
|
61
|
+
<!-- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>–>-->
|
62
|
+
<!-- </div>-->
|
63
|
+
<div class="row auto" style="margin: 5px 0">
|
64
|
+
<labe class="righttxt">省 市 区:</labe>
|
65
|
+
<!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
|
66
|
+
<!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
|
67
|
+
<v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
68
|
+
v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
|
69
|
+
@change="pcd_change()"></v-select>
|
70
|
+
</div>
|
71
|
+
<div class="row auto" style="margin: 5px 0">
|
72
|
+
<labe class="righttxt">街道名称:</labe>
|
73
|
+
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
|
74
|
+
<v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
75
|
+
v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
|
76
|
+
@change="street_change()"></v-select>
|
77
|
+
</div>
|
78
|
+
<div class="row auto" style="margin: 5px 0">
|
79
|
+
<labe class="righttxt">集收单位:</labe>
|
80
|
+
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
|
81
|
+
<v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
82
|
+
v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
|
83
|
+
close-on-select clear-button value-single @change="area_change()"></v-select>
|
84
|
+
</div>
|
85
|
+
<div class="row auto" style="margin: 5px 0">
|
86
|
+
<labe class="righttxt">所属片区:</labe>
|
87
|
+
<!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
|
88
|
+
<v-select :value.sync="userinfo.addressinfo.f_slice_area" class="input-font" style="margin-left: 5%;" :width="'60%'"
|
89
|
+
v-model="userinfo.addressinfo.f_slice_area" :timeout="500" :options='slice_areas' placeholder='请选择所属片区'
|
90
|
+
close-on-select clear-button value-single></v-select>
|
91
|
+
</div>
|
92
|
+
<!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
|
93
|
+
<labe class="righttxt">集收单位:</labe>
|
94
|
+
<!–<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />–>
|
95
|
+
<v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
|
96
|
+
:width="'60%'"
|
97
|
+
v-model="selectArea"
|
98
|
+
@select-search="select_search"
|
99
|
+
:options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
|
100
|
+
</div>-->
|
101
|
+
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
102
|
+
<labe class="righttxt">楼    号:</labe><input type="text" @change="changeNewAddress"
|
103
|
+
class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
|
104
|
+
</div>
|
105
|
+
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
106
|
+
<labe class="righttxt">单    元:</labe><input type="text" @change="changeNewAddress"
|
107
|
+
class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
|
108
|
+
</div>
|
109
|
+
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
110
|
+
<labe class="righttxt">楼    层:</labe><input type="text" @change="changeNewAddress"
|
111
|
+
class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
|
112
|
+
</div>
|
113
|
+
<div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
|
114
|
+
<labe class="righttxt">门 牌 号:</labe><input type="text" @change="changeNewAddress"
|
115
|
+
class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
|
116
|
+
</div>
|
117
|
+
<div class="row auto" style="margin: 5px 0">
|
118
|
+
<labe class="righttxt">详细地址:</labe><input type="text" class="form-control rightipt" readonly
|
119
|
+
v-model="userinfo_old.addressinfo.f_address" />
|
120
|
+
</div>
|
121
|
+
<div class="row auto" style="margin: 5px 0">
|
122
|
+
<labe class="righttxt">新 地 址:</labe>
|
123
|
+
<!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
|
124
|
+
<textarea :readonly="addressType == '普通地址'" class="form-control rightipt" style="height: 80px"
|
125
|
+
v-model="userinfo.addressinfo.f_address"></textarea>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
|
129
|
+
<labe class="righttxt">新 地 址:</labe><!–<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />–>
|
130
|
+
<textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
|
131
|
+
</div>-->
|
132
|
+
|
133
|
+
<div class="row auto" style="margin: 5px 0">
|
134
|
+
<labe class="righttxt">备    注:</labe><textarea class="form-control rightipt"
|
135
|
+
style="height: 150px"
|
136
|
+
v-model="userinfo.baseinfo.base.f_remark"></textarea><!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
<div class="panel auto" v-if="false">
|
141
|
+
<div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
|
142
|
+
<span class="spanboder">
|
143
|
+
<img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
|
144
|
+
<img class="butt3" :src="imgback('表具信息')">
|
145
|
+
</span>
|
146
|
+
</div>
|
147
|
+
<div class="panel-body " v-show="headername == '表具信息'">
|
148
|
+
<div class="row auto" style="margin: 5px 0">
|
149
|
+
<labe class="righttxt">表    号:</labe>
|
150
|
+
<input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
|
151
|
+
style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
|
152
|
+
<button type="button" :disabled="userinfo.meterinfo[0].f_meter_classify != '机表'" name="button"
|
153
|
+
class="btn btn-primary" style="width: 15%" @click="scan">扫码</button>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
|
157
|
+
<div class="auto">
|
158
|
+
<div class="panel" style="padding: 0px 15px 5px 10px;">
|
159
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
160
|
+
<div class="row" style="height: 240px;">
|
161
|
+
<div class="col-sm-4">
|
162
|
+
<img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
|
163
|
+
</div>
|
164
|
+
</div>
|
165
|
+
<div class="row text-right div-photo" :class="style__">
|
166
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
|
167
|
+
<img src="../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
</div>-->
|
173
|
+
<div class="row auto" style="margin: 5px 0">
|
174
|
+
<labe class="righttxt">表 封 号:</labe>
|
175
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />
|
176
|
+
</div>
|
177
|
+
<div class="row auto" style="margin: 5px 0">
|
178
|
+
<labe class="righttxt">表 位 置:</labe>
|
179
|
+
<!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
|
180
|
+
<v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
|
181
|
+
v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
|
182
|
+
close-on-select value-single></v-select>
|
183
|
+
</div>
|
184
|
+
<div class="row auto" style="margin: 5px 0">
|
185
|
+
<labe class="righttxt">气表类型:</labe>
|
186
|
+
<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
|
187
|
+
</div>
|
188
|
+
<div class="row auto" style="margin: 5px 0">
|
189
|
+
<div style="display: flex;justify-content: center;">
|
190
|
+
<button v-if="userinfo.meterinfo[0].f_meter_classify == '机表'" class="col-sm-3 btn btn-primary"
|
191
|
+
@click="upUserState()">机表关阀停用</button>
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
<div class="panel auto">
|
197
|
+
<div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
|
198
|
+
|
199
|
+
<span class="spanboder"><img src="../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
|
200
|
+
class="butt3" :src="imgback('设备信息')"></span>
|
201
|
+
</div>
|
202
|
+
<div class="panel-body" v-show="headername == '设备信息'">
|
203
|
+
<div class="row" v-for="row in model" :key="row.id" style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
|
204
|
+
<div class="row auto" style="margin: 5px 0">
|
205
|
+
<labe class="righttxt">设备类型:</labe>
|
206
|
+
<!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
|
207
|
+
<v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
|
208
|
+
:width='wid' readonly :options="devices_types" close-on-select value-single></v-select>
|
209
|
+
</div>
|
210
|
+
<div class="row auto" style="margin: 5px 0">
|
211
|
+
<labe class="righttxt">设备品牌:</labe><input type="text" class="form-control rightipt" v-model="row.f_brand" />
|
212
|
+
</div>
|
213
|
+
<div class="row auto" style="margin: 5px 0">
|
214
|
+
<labe class="righttxt">设备型号:</labe><input type="text" class="form-control rightipt"
|
215
|
+
v-model="row.f_devices_model" />
|
216
|
+
</div>
|
217
|
+
<div class="row auto" style="margin: 5px 0">
|
218
|
+
<labe class="righttxt">生产日期:</labe>
|
219
|
+
<!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
|
220
|
+
<datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
|
221
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
|
222
|
+
</datepicker>
|
223
|
+
</div>
|
224
|
+
<div class="row auto" style="margin: 5px 0">
|
225
|
+
<labe class="righttxt">使用年限:</labe><input type="number" class="form-control rightipt"
|
226
|
+
v-model="row.f_service_life" />
|
227
|
+
</div>
|
228
|
+
<div class="row auto" style="margin: 5px 0">
|
229
|
+
<labe class="righttxt">到期日期:</labe>
|
230
|
+
<!--<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />-->
|
231
|
+
<datepicker class="rightipt" :value.sync="row.f_expire_date" v-model="row.f_expire_date"
|
232
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
|
233
|
+
</datepicker>
|
234
|
+
</div>
|
235
|
+
<div class="row auto" style="margin: 5px 0">
|
236
|
+
<labe class="righttxt">安 装 人:</labe><input type="text" class="form-control rightipt"
|
237
|
+
v-model="row.f_input_person" />
|
238
|
+
</div>
|
239
|
+
<div class="row auto" style="margin: 5px 0">
|
240
|
+
<labe class="righttxt">安装日期:</labe>
|
241
|
+
<!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
|
242
|
+
<datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
|
243
|
+
:disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
|
244
|
+
</datepicker>
|
245
|
+
</div>
|
246
|
+
<div class="row auto" style="margin: 5px 0">
|
247
|
+
<labe class="righttxt">设备数量:</labe><input type="number" class="form-control rightipt"
|
248
|
+
v-model="row.f_devices_num" />
|
249
|
+
</div>
|
250
|
+
<!--<div class="row auto" style="margin: 5px 0">
|
251
|
+
<labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
|
252
|
+
</div>-->
|
253
|
+
<!--<div class="row auto" style="margin: 5px 0">
|
254
|
+
<labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
|
255
|
+
</div>-->
|
256
|
+
<!--<div class="row auto" style="margin: 5px 0">
|
257
|
+
<labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
|
258
|
+
</div>-->
|
259
|
+
<div style="display: flex;justify-content: center;margin-bottom: 3px"
|
260
|
+
v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
|
261
|
+
<button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
<div style="display: flex;justify-content: space-around;">
|
265
|
+
<button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
<div class="panel auto">
|
270
|
+
<div class="panel-body">
|
271
|
+
<div style="display: flex;justify-content: center;">
|
272
|
+
<button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传</button>
|
273
|
+
</div>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
</template>
|
278
|
+
|
279
|
+
<script>
|
280
|
+
import { PagedList, HttpResetClass } from 'vue-client'
|
281
|
+
import * as Util from "../Util";
|
282
|
+
import Vue from 'vue'
|
283
|
+
import co from 'co'
|
284
|
+
export default {
|
285
|
+
title: '设备查看',
|
286
|
+
data() {
|
287
|
+
return {
|
288
|
+
model: [],
|
289
|
+
show: false,
|
290
|
+
row: Object,
|
291
|
+
userinfo: Object,
|
292
|
+
userinfo_old: Object,
|
293
|
+
wid: "60%",
|
294
|
+
devices_types: [],
|
295
|
+
pipe_types: [{ label: '橡胶管', value: '橡胶管' }, { label: '波纹管', value: '波纹管' }, { label: '钢管', value: '钢管' }],
|
296
|
+
wz_types: [],
|
297
|
+
cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
|
298
|
+
pcds: [],
|
299
|
+
streets: [],
|
300
|
+
update: false,
|
301
|
+
headername: '基本信息',
|
302
|
+
excessive: false,
|
303
|
+
area: [],
|
304
|
+
slice_areas:this.$appdata.getParam('所属片区'),
|
305
|
+
enable: false,
|
306
|
+
f_meterno_path: Vue.nopic,
|
307
|
+
selectArea: { id: '' },
|
308
|
+
selectPcd: { id: '' },
|
309
|
+
selectStreet: { id: '' },
|
310
|
+
changemeterno: false,//是否修改了机表表号
|
311
|
+
approveChange: false,//是否需要进行信息变更审核
|
312
|
+
newAddress: '',
|
313
|
+
addressType: '',
|
314
|
+
//需要审核的字段
|
315
|
+
checkField: {
|
316
|
+
checkUserinfoField: [
|
317
|
+
'f_user_name'
|
318
|
+
],
|
319
|
+
checkUserFilesField: [
|
320
|
+
'f_meternumber'
|
321
|
+
],
|
322
|
+
checkAddressField: [
|
323
|
+
'f_pcd_id',
|
324
|
+
'f_street_id',
|
325
|
+
'f_residential_area_id',
|
326
|
+
'f_building',
|
327
|
+
'f_unit',
|
328
|
+
'f_floor',
|
329
|
+
'f_room',
|
330
|
+
'f_slice_area',
|
331
|
+
'f_special',
|
332
|
+
'f_address'
|
333
|
+
],
|
334
|
+
}
|
335
|
+
}
|
336
|
+
},
|
337
|
+
props: {
|
338
|
+
user: {
|
339
|
+
type: Object
|
340
|
+
},
|
341
|
+
f_userinfo_id: '',
|
342
|
+
f_source: ''
|
343
|
+
},
|
344
|
+
methods: {
|
345
|
+
scan() {
|
346
|
+
HostApp.__this__ = this,
|
347
|
+
HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
|
348
|
+
},
|
349
|
+
getCode() {
|
350
|
+
var datapa = HostApp.getCode().data;
|
351
|
+
console.log(`扫码返回值${datapa}`)
|
352
|
+
this.userinfo.meterinfo[0].f_meternumber = datapa
|
353
|
+
},
|
354
|
+
//数据检查
|
355
|
+
checkVal() {
|
356
|
+
//检查一些必要信息是否未填
|
357
|
+
this.approveChange = false
|
358
|
+
this.changemeterno = false
|
359
|
+
let checked = { ischeck: true, msg: '' }
|
360
|
+
console.log("表号改动验证 源表号---" + this.userinfo_old.meterinfo[0].f_meternumber)
|
361
|
+
console.log("表号改动验证 新表号---" + this.userinfo.meterinfo[0].f_meternumber)
|
362
|
+
console.log("表号改动验证 新表号---" + this.userinfo.meterinfo[0].f_meter_classify)
|
363
|
+
if (!this.userinfo.baseinfo.base.f_user_name) {
|
364
|
+
checked = { ischeck: false, msg: '请输入用户名称!' }
|
365
|
+
}
|
366
|
+
if (!this.selectPcd.id) {
|
367
|
+
checked = { ischeck: false, msg: '请选择省市区!' }
|
368
|
+
}
|
369
|
+
if (!this.selectStreet.id) {
|
370
|
+
checked = { ischeck: false, msg: '请选择街道!' }
|
371
|
+
}
|
372
|
+
if (!this.userinfo.addressinfo.f_address) {
|
373
|
+
checked = { ischeck: false, msg: '新地址不能为空!' }
|
374
|
+
}
|
375
|
+
if (this.addressType == '普通地址') {
|
376
|
+
if (!this.selectArea.id) {
|
377
|
+
checked = { ischeck: false, msg: '请选择集收单位!' }
|
378
|
+
}
|
379
|
+
if (!this.userinfo.addressinfo.f_room) {
|
380
|
+
checked = { ischeck: false, msg: '新输入门牌号!' }
|
381
|
+
}
|
382
|
+
}
|
383
|
+
if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
|
384
|
+
|
385
|
+
console.log("表号改动验证 源表号---" + this.userinfo_old.meterinfo[0].f_meternumber)
|
386
|
+
console.log("表号改动验证 新表号---" + this.userinfo.meterinfo[0].f_meternumber)
|
387
|
+
if (this.userinfo.meterinfo[0].f_meternumber) {
|
388
|
+
if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
|
389
|
+
if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
|
390
|
+
checked = { ischeck: false, msg: '请拍摄表号照片!' }
|
391
|
+
} else {
|
392
|
+
//用来标识当前有修改机表表号,后台需要进行照片上传
|
393
|
+
this.changemeterno = true
|
394
|
+
}
|
395
|
+
}
|
396
|
+
} else {
|
397
|
+
checked = { ischeck: false, msg: '请输入表号!' }
|
398
|
+
}
|
399
|
+
}
|
400
|
+
//检查本次修改信息中是否包含需要审核的内容
|
401
|
+
for (let check in this.checkField) {
|
402
|
+
console.log('check:' + check)
|
403
|
+
if (typeof check != 'function') {
|
404
|
+
for (let i = 0; i < this.checkField[check].length; i++) {
|
405
|
+
console.log("this.checkField[check][i]:" + this.checkField[check][i])
|
406
|
+
if (check == 'checkUserinfoField') {
|
407
|
+
console.log("用户信息源内容---" + this.userinfo_old.baseinfo.base[this.checkField[check][i]])
|
408
|
+
console.log("用户信息新内容---" + this.userinfo.baseinfo.base[this.checkField[check][i]])
|
409
|
+
if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
|
410
|
+
console.log("用户信息需要审核?")
|
411
|
+
this.approveChange = true
|
412
|
+
}
|
413
|
+
} else if (check == 'checkUserFilesField') {
|
414
|
+
console.log("表信息原内容---" + this.userinfo_old.meterinfo[0][this.checkField[check][i]])
|
415
|
+
console.log("表信息新内容---" + this.userinfo.meterinfo[0][this.checkField[check][i]])
|
416
|
+
if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
|
417
|
+
console.log("表信息需要审核?")
|
418
|
+
this.approveChange = true
|
419
|
+
}
|
420
|
+
} else if (check == 'checkAddressField') {
|
421
|
+
console.log("原地址---" + this.userinfo_old.addressinfo[this.checkField[check][i]])
|
422
|
+
console.log("新地址---" + this.userinfo.addressinfo[this.checkField[check][i]])
|
423
|
+
if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
|
424
|
+
console.log("地址信息需要审核?")
|
425
|
+
this.approveChange = true
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}
|
430
|
+
}
|
431
|
+
console.log("检查遍历完成---:" + this.approveChange + "修改表号" + this.changemeterno)
|
432
|
+
return checked
|
433
|
+
},
|
434
|
+
select_search(text) {
|
435
|
+
console.log("----------------" + text)
|
436
|
+
if (this.selectStreet.id) {
|
437
|
+
let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
|
438
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_area", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} ` } }, { resolveMsg: null, rejectMsg: null }).then((res) => {
|
439
|
+
console.log('请求发送完成!!!!!' + JSON.stringify(res))
|
440
|
+
if (res.data.length > 0) {
|
441
|
+
this.area = []
|
442
|
+
res.data.forEach((result) => {
|
443
|
+
this.area.push({ label: result.f_residential_area, value: result })
|
444
|
+
})
|
445
|
+
}
|
446
|
+
})
|
447
|
+
} else {
|
448
|
+
this.area = []
|
449
|
+
}
|
450
|
+
},
|
451
|
+
cameraCallBack(prop, fileName) {
|
452
|
+
HostApp.__this__.$set(prop, fileName + '?' + Math.random())
|
453
|
+
console.log('photo file name:' + HostApp.__this__.f_nongasuser_path)
|
454
|
+
HostApp.__callback__ = null
|
455
|
+
HostApp.__this__ = null
|
456
|
+
},
|
457
|
+
takePic(prop, title) {
|
458
|
+
HostApp.__callback__ = this.cameraCallBack
|
459
|
+
HostApp.__this__ = this
|
460
|
+
console.log('this[prop]:' + this[prop])
|
461
|
+
let fileName
|
462
|
+
if (!this[prop] || this[prop].includes("nopic.png")) {
|
463
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
464
|
+
} else {
|
465
|
+
fileName = Util.getFileName(this[prop])
|
466
|
+
}
|
467
|
+
HostApp._open_a_page({
|
468
|
+
type: 'boomerang',
|
469
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
470
|
+
param: {
|
471
|
+
file: fileName,
|
472
|
+
requestCode: 111,
|
473
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
474
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
475
|
+
}
|
476
|
+
})
|
477
|
+
},
|
478
|
+
delfile(prop, fileName) {
|
479
|
+
if (fileName == Vue.nopic)
|
480
|
+
return
|
481
|
+
else {
|
482
|
+
HostApp.delfile(fileName)
|
483
|
+
this[prop] = Vue.nopic
|
484
|
+
}
|
485
|
+
},
|
486
|
+
editUserInfo() {
|
487
|
+
// let checked=this.checkVal()
|
488
|
+
// if(!checked.ischeck){
|
489
|
+
// this.$showMessage(checked.msg)
|
490
|
+
// return
|
491
|
+
// }
|
492
|
+
for (let i = 0; i < this.model.length; i++) {
|
493
|
+
this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
|
494
|
+
}
|
495
|
+
this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
|
496
|
+
if (res === 'confirm') {
|
497
|
+
this.excessive = true
|
498
|
+
let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
|
499
|
+
// userinfoms.f_user_name=row.f_user_name
|
500
|
+
userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
|
501
|
+
userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
|
502
|
+
userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
|
503
|
+
userinfoms.f_user_state = this.userinfo.baseinfo.base.f_user_state
|
504
|
+
userinfoms.f_operator_record = Vue.user.name
|
505
|
+
userinfoms.f_operatorid_record = Vue.user.id
|
506
|
+
userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
|
507
|
+
userinfoms.f_orgid_record = Vue.user.orgid
|
508
|
+
userinfoms.f_orgname_record = Vue.user.orgs
|
509
|
+
userinfoms.f_depid_record = Vue.user.depids
|
510
|
+
userinfoms.f_depname_record = Vue.user.deps
|
511
|
+
userinfoms.f_contractdate = this.userinfo.baseinfo.base.f_contractdate
|
512
|
+
userinfoms.f_contract_date = this.userinfo.baseinfo.base.f_contractdate
|
513
|
+
this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
|
514
|
+
this.userinfo_old.meterinfo[0].f_table_state = this.userinfo.meterinfo[0].f_table_state
|
515
|
+
this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
|
516
|
+
this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
|
517
|
+
userinfoms.userfiles = []
|
518
|
+
this.userinfo_old.meterinfo[0].devicesinfo = this.model
|
519
|
+
userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
|
520
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
|
521
|
+
data: {
|
522
|
+
userinfo: userinfoms,
|
523
|
+
modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
|
524
|
+
address: {
|
525
|
+
id: this.userinfo_old.addressinfo.id,
|
526
|
+
oldid: this.userinfo_old.addressinfo.id,
|
527
|
+
f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
|
528
|
+
}
|
529
|
+
}
|
530
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res1) => {
|
531
|
+
if (res1.data.status == 200) {
|
532
|
+
let data = this.userinfo.addressinfo
|
533
|
+
data.f_address = this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
|
534
|
+
data.f_operator = Vue.user.name
|
535
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
|
536
|
+
this.$showMessage("修改用户地址信息成功!")
|
537
|
+
this.excessive = false
|
538
|
+
}).catch(error => {
|
539
|
+
this.$showMessage("修改用户地址信息!")
|
540
|
+
this.excessive = false
|
541
|
+
})
|
542
|
+
this.$showMessage("修改用户信息成功!")
|
543
|
+
this.enable = true
|
544
|
+
}
|
545
|
+
this.excessive = false
|
546
|
+
}).catch((msg) => {
|
547
|
+
this.$showMessage("修改用户信息失败,请检查手机网络状况!")
|
548
|
+
this.excessive = false
|
549
|
+
})
|
550
|
+
|
551
|
+
}
|
552
|
+
})
|
553
|
+
},
|
554
|
+
|
555
|
+
imgback(header) {
|
556
|
+
if (this.headername == header) {
|
557
|
+
return require('../../assets/xiangxia1.png')
|
558
|
+
} else {
|
559
|
+
return require('../../assets/xiangyou1.png')
|
560
|
+
}
|
561
|
+
this.headername = header
|
562
|
+
},
|
563
|
+
selectVal(header) {
|
564
|
+
if (this.headername == header) {
|
565
|
+
this.headername = ''
|
566
|
+
} else {
|
567
|
+
this.headername = header
|
568
|
+
}
|
569
|
+
|
570
|
+
},
|
571
|
+
changeNewAddress() {
|
572
|
+
this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
|
573
|
+
},
|
574
|
+
area_change() {
|
575
|
+
console.log("area改变")
|
576
|
+
this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
|
577
|
+
this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
|
578
|
+
this.changeNewAddress()
|
579
|
+
//this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
|
580
|
+
},
|
581
|
+
async street_change() {
|
582
|
+
console.log("street改变----" + this.selectStreet.id)
|
583
|
+
if (this.selectStreet.id) {
|
584
|
+
//如果街道改变--给街道赋值!
|
585
|
+
this.userinfo.addressinfo.f_street = this.selectStreet.f_street
|
586
|
+
this.userinfo.addressinfo.f_street_id = this.selectStreet.id
|
587
|
+
this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
|
588
|
+
//清空当前选中小区的值
|
589
|
+
this.userinfo.addressinfo.f_residential_area = ''
|
590
|
+
this.userinfo.addressinfo.f_residential_area_id = ''
|
591
|
+
this.selectArea = { id: '' }
|
592
|
+
this.area = []
|
593
|
+
let pcdText = ` and f_street_id=${this.selectStreet.id}`
|
594
|
+
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_area", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} ` } }, { resolveMsg: null, rejectMsg: null })
|
595
|
+
//console.log('请求发送完成!!!!!'+JSON.stringify(res))
|
596
|
+
res.data.forEach((result) => {
|
597
|
+
this.area.push({ label: result.f_residential_area, value: result })
|
598
|
+
})
|
599
|
+
} else {
|
600
|
+
this.area = []
|
601
|
+
}
|
602
|
+
|
603
|
+
this.changeNewAddress()
|
604
|
+
},
|
605
|
+
async pcd_change() {
|
606
|
+
console.log("selectPcd.id--------" + this.selectPcd.id)
|
607
|
+
if (this.selectPcd.id) {
|
608
|
+
console.log("pcd改变")
|
609
|
+
//如果省市区改变-重新赋值
|
610
|
+
this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
|
611
|
+
this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
|
612
|
+
//清空 选中的街道和集收单位
|
613
|
+
this.selectStreet = { id: '' }
|
614
|
+
this.userinfo.addressinfo.f_street = ''
|
615
|
+
this.userinfo.addressinfo.f_street_id = ''
|
616
|
+
this.userinfo.addressinfo.f_iscity = ''
|
617
|
+
this.selectArea = { id: '' }
|
618
|
+
this.userinfo.addressinfo.f_residential_area = ''
|
619
|
+
this.userinfo.addressinfo.f_residential_area_id = ''
|
620
|
+
this.streets = []
|
621
|
+
let pcdText = `and f_pcd_id=${this.selectPcd.id}`
|
622
|
+
let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_street", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}` } }, { resolveMsg: null, rejectMsg: null })
|
623
|
+
streetlist.data.forEach((result) => {
|
624
|
+
this.streets.push({ label: result.f_street, value: result })
|
625
|
+
})
|
626
|
+
} else {
|
627
|
+
this.streets = []
|
628
|
+
}
|
629
|
+
this.changeNewAddress()
|
630
|
+
},
|
631
|
+
upUserState() {
|
632
|
+
console.log('--------??????---------------' + JSON.stringify(this.selectArea))
|
633
|
+
if (this.userinfo.meterinfo[0].f_table_state == '正常') {
|
634
|
+
let data = {
|
635
|
+
f_userfiles_id: {
|
636
|
+
f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
|
637
|
+
f_table_state: '停用',
|
638
|
+
version: this.userinfo.meterinfo[0].version
|
639
|
+
},
|
640
|
+
f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
|
641
|
+
f_user_id: this.userinfo.meterinfo[0].f_user_id,
|
642
|
+
f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
|
643
|
+
f_user_name: this.userinfo.baseinfo.base.f_user_name,
|
644
|
+
f_comments: '安检时发现问题关闭阀门',
|
645
|
+
f_othereason: '',
|
646
|
+
f_operat_type: '停用',
|
647
|
+
f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
|
648
|
+
f_state: '有效',
|
649
|
+
f_operator: Vue.user.name,//${Vue.$login.f.name}
|
650
|
+
f_operatorid: Vue.user.id,
|
651
|
+
f_orgid: Vue.user.orgid,
|
652
|
+
f_orgname: Vue.user.orgs,
|
653
|
+
f_depid: Vue.user.depids,
|
654
|
+
f_depname: Vue.user.deps,
|
655
|
+
f_zoneid: Vue.user.zoneid,
|
656
|
+
f_zones: Vue.user.zones
|
657
|
+
}
|
658
|
+
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
|
659
|
+
data, { resolveMsg: null, rejectMsg: null }).then((row) => {
|
660
|
+
this.$showMessage('已成功关阀停气!')
|
661
|
+
this.userinfo.meterinfo[0].f_table_state = '停用'
|
662
|
+
})
|
663
|
+
} else {
|
664
|
+
this.$showMessage('该用户已被关阀停用,请勿重复操作!')
|
665
|
+
}
|
666
|
+
|
667
|
+
},
|
668
|
+
addDevices() {
|
669
|
+
//Vue.user.name
|
670
|
+
let obj = {
|
671
|
+
"f_operator": Vue.user.name,
|
672
|
+
"f_picture": null,
|
673
|
+
"f_pipe_type": null,
|
674
|
+
"f_pipeinstall_date": null,
|
675
|
+
"f_pipe_connection": null,
|
676
|
+
"f_expire_date": null,
|
677
|
+
"f_pipeexpire_date": null,
|
678
|
+
"f_comments": null,
|
679
|
+
"f_operate_date": Util.toStandardTimeString(),
|
680
|
+
"f_operatorid": Vue.user.id,
|
681
|
+
"f_devices_num": null,
|
682
|
+
"f_process_id": null,
|
683
|
+
"f_devices_type": null,
|
684
|
+
"f_make_date": null,
|
685
|
+
"f_input_date": null,
|
686
|
+
"f_state": "有效",
|
687
|
+
"f_brand": null,
|
688
|
+
"f_devices_model": null,
|
689
|
+
"f_devices_no": null,
|
690
|
+
"img": { "content": null, "filename": null }
|
691
|
+
}
|
692
|
+
this.model.push(obj)
|
693
|
+
},
|
694
|
+
delDevices(idx) {
|
695
|
+
console.log("idx---" + idx)
|
696
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
697
|
+
if (res === 'confirm') {
|
698
|
+
this.model.splice(idx, 1)
|
699
|
+
}
|
700
|
+
})
|
701
|
+
},
|
702
|
+
async getAreaList(text) {
|
703
|
+
if (this.selectStreet.id) {
|
704
|
+
this.area = []
|
705
|
+
let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
|
706
|
+
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_area", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}` } }, { resolveMsg: null, rejectMsg: null })
|
707
|
+
//console.log('请求发送完成!!!!!'+JSON.stringify(res))
|
708
|
+
res.data.forEach((result) => {
|
709
|
+
this.area.push({ label: result.f_residential_area, value: result })
|
710
|
+
})
|
711
|
+
console.log('加入自己当前的小区' + this.userinfo.addressinfo.f_residential_area_id + this.userinfo.addressinfo.f_residential_area)
|
712
|
+
this.area.push({ label: this.userinfo.addressinfo.f_residential_area, value: { id: this.userinfo.addressinfo.f_residential_area_id, f_residential_area: this.userinfo.addressinfo.f_residential_area } })
|
713
|
+
} else {
|
714
|
+
this.area = []
|
715
|
+
}
|
716
|
+
|
717
|
+
},
|
718
|
+
async getStreetList() {
|
719
|
+
if (this.selectPcd.id) {
|
720
|
+
console.log("pcd改变-------" + this.selectStreet.id)
|
721
|
+
this.streets = []
|
722
|
+
let pcdText = `and f_pcd_id=${this.selectPcd.id}`
|
723
|
+
let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_street", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}` } }, { resolveMsg: null, rejectMsg: null })
|
724
|
+
streetlist.data.forEach((result) => {
|
725
|
+
//如果第一次进来有地址id 就拿下地址区域
|
726
|
+
if (this.selectStreet.id && this.selectStreet.id == result.id) {
|
727
|
+
console.log("匹配到了???????-----" + JSON.stringify(result))
|
728
|
+
this.userinfo.addressinfo.f_iscity = result.f_iscity
|
729
|
+
}
|
730
|
+
this.streets.push({ label: result.f_street, value: result })
|
731
|
+
})
|
732
|
+
} else {
|
733
|
+
this.streets = []
|
734
|
+
}
|
735
|
+
},
|
736
|
+
changeAddressType(val) {
|
737
|
+
console.log("addressType--------" + val)
|
738
|
+
if (this.addressType == '普通地址') {
|
739
|
+
this.userinfo.addressinfo.f_special = null
|
740
|
+
} else if (this.addressType == '特殊地址') {
|
741
|
+
this.userinfo.addressinfo.f_special = 1
|
742
|
+
this.userinfo.addressinfo.f_building = null
|
743
|
+
this.userinfo.addressinfo.f_unit = null
|
744
|
+
this.userinfo.addressinfo.f_floor = null
|
745
|
+
this.userinfo.addressinfo.f_room = null
|
746
|
+
}
|
747
|
+
this.changeNewAddress()
|
748
|
+
}
|
749
|
+
|
750
|
+
},
|
751
|
+
computed: {
|
752
|
+
getAddress() {
|
753
|
+
return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
|
754
|
+
(this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
755
|
+
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
|
756
|
+
(this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
|
757
|
+
(this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
|
758
|
+
(this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
|
759
|
+
(this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
|
760
|
+
},
|
761
|
+
getAddressTS() {
|
762
|
+
return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
|
763
|
+
(this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
|
764
|
+
(this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
|
765
|
+
}
|
766
|
+
},
|
767
|
+
watch: {
|
768
|
+
|
769
|
+
/*'selectPcd.id' (val) {
|
770
|
+
console.log("selectPcd.id--------"+val)
|
771
|
+
if(this.selectPcd.id){
|
772
|
+
this.getStreetList()
|
773
|
+
}
|
774
|
+
},
|
775
|
+
'selectStreet.id' (val) {
|
776
|
+
console.log("selectStreet.id--------"+val)
|
777
|
+
if(this.selectStreet.id){
|
778
|
+
this.getAreaList()
|
779
|
+
}
|
780
|
+
}*/
|
781
|
+
},
|
782
|
+
async ready() {
|
783
|
+
/*console.log('1开始执行ready'+this.$androidUtil.getProxyUrl())
|
784
|
+
|
785
|
+
console.log('2开始执行ready'+this.$androidUtil.getProxyUrl())
|
786
|
+
console.log('3开始执行ready'+this.$androidUtil.getProxyUrl())*/
|
787
|
+
//this.f_userinfo_id=1102260
|
788
|
+
//this.f_userinfo_id=1997541
|
789
|
+
if (!this.f_userinfo_id) {
|
790
|
+
this.$showMessage("未检测到用户!")
|
791
|
+
this.enable = true
|
792
|
+
return
|
793
|
+
}
|
794
|
+
try {
|
795
|
+
|
796
|
+
this.devices_types = Vue.$appdata.getParam('设备类型')
|
797
|
+
this.wz_types = Vue.$appdata.getParam('安装位置')
|
798
|
+
//console.log('开始执行ready'+this.$androidUtil.getProxyUrl())
|
799
|
+
this.excessive = true
|
800
|
+
//Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
|
801
|
+
|
802
|
+
let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, { data: { items: "*", tablename: "t_pcd", orderitem: "id", condition: `f_orgid = '${Vue.user.orgid}'` } }, { resolveMsg: null, rejectMsg: null })
|
803
|
+
console.log('请求发送完成!!!!!' + JSON.stringify(res))
|
804
|
+
pcdlist.data.forEach((result) => {
|
805
|
+
this.pcds.push({ label: result.f_pcd, value: result })
|
806
|
+
})
|
807
|
+
//console.log('获取地址单位配置文件!!!!!'+JSON.stringify(addressUnit))
|
808
|
+
let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
|
809
|
+
//f_userinfo_code:'12381344',
|
810
|
+
f_userinfo_id: this.f_userinfo_id
|
811
|
+
}, { resolveMsg: null, rejectMsg: null })
|
812
|
+
console.log('相應請求----')
|
813
|
+
console.log(res.data)
|
814
|
+
this.userinfo = res.data
|
815
|
+
this.userinfo_old = JSON.parse(JSON.stringify(res.data))
|
816
|
+
this.model = this.userinfo.meterinfo[0].devicesinfo
|
817
|
+
this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
|
818
|
+
this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
|
819
|
+
this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
|
820
|
+
this.selectStreet.id = this.userinfo.addressinfo.f_street_id
|
821
|
+
this.selectStreet.f_street = this.userinfo.addressinfo.f_street
|
822
|
+
await this.getStreetList()
|
823
|
+
await this.getAreaList()
|
824
|
+
this.excessive = false
|
825
|
+
this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
|
826
|
+
//this.userinfo.addressinfo.f_special=1
|
827
|
+
console.log('請求jieshu----')
|
828
|
+
} catch (e) {
|
829
|
+
this.excessive = false
|
830
|
+
this.enable = true
|
831
|
+
this.$showMessage('获取用户信息出错,请检查网络状况!')
|
832
|
+
}
|
833
|
+
new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, { resolveMsg: null, rejectMsg: null }).then((addressUnit) => {
|
834
|
+
console.log('请求成功----' + addressUnit.data.f_building_suffix)
|
835
|
+
console.log('请求成功----' + addressUnit.data.f_unit_suffix)
|
836
|
+
console.log('请求成功----' + addressUnit.data.f_floor_suffix)
|
837
|
+
console.log('请求成功----' + addressUnit.data.f_room_suffix)
|
838
|
+
this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
|
839
|
+
this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
|
840
|
+
this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
|
841
|
+
this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
|
842
|
+
}).catch((msg) => {
|
843
|
+
console.log('请求错误----' + JSON.stringify(msg))
|
844
|
+
})
|
845
|
+
}
|
846
|
+
}
|
847
|
+
</script>
|
848
|
+
<style lang="less" scoped>
|
849
|
+
.butt3 {
|
850
|
+
float: right;
|
851
|
+
width: 12px;
|
852
|
+
margin: 1% 2% 0 0;
|
853
|
+
}
|
854
|
+
|
855
|
+
.rightipt {
|
856
|
+
width: 60%;
|
857
|
+
float: left;
|
858
|
+
margin-left: 5%;
|
859
|
+
}
|
860
|
+
|
861
|
+
.righttxt {
|
862
|
+
border: none;
|
863
|
+
margin-left: 5px;
|
864
|
+
/*border-left: 5px solid #A2C2EB;*/
|
865
|
+
float: left;
|
866
|
+
width: 25%;
|
867
|
+
margin-bottom: 3px;
|
868
|
+
text-align: left;
|
869
|
+
word-wrap: break-word;
|
870
|
+
white-space: normal;
|
871
|
+
}
|
872
|
+
|
873
|
+
.tit1 {
|
874
|
+
/*background: #ffffff url('../../assets/用户姓名.png') no-repeat fixed center;*/
|
875
|
+
background-image: url('../../assets/用户姓名.png');
|
876
|
+
background-repeat: no-repeat;
|
877
|
+
background-position: center;
|
878
|
+
}
|
879
|
+
|
880
|
+
.spanboder {
|
881
|
+
border-bottom: 2px solid #499edf;
|
882
|
+
padding-bottom: 8px
|
883
|
+
}
|
884
|
+
|
885
|
+
#upuserinfo_sel /deep/ ul {
|
886
|
+
width: 100% !important;
|
887
|
+
left: 0 !important;
|
888
|
+
}
|
889
|
+
|
890
|
+
.btn-photo {
|
891
|
+
border: 0;
|
892
|
+
border-radius: 7px;
|
893
|
+
background-color: #7dc1f4;
|
894
|
+
font: 15px PingFang-SC-Bold;
|
895
|
+
height: 20%;
|
896
|
+
}
|
897
|
+
|
898
|
+
.panel-self {
|
899
|
+
border-radius: 10px;
|
900
|
+
border: 1px solid #499EDF;
|
901
|
+
background-color: #F8F8F8;
|
902
|
+
}
|
903
|
+
|
904
|
+
.div-photo {
|
905
|
+
width: auto;
|
906
|
+
height: auto;
|
907
|
+
/* margin-top: 10px; */
|
908
|
+
position: absolute;
|
909
|
+
bottom: 10px;
|
910
|
+
right: 10px;
|
911
|
+
}
|
912
|
+
</style>
|
913
|
+
<style lang="less">
|
914
|
+
#upuserinfo_sel ul {
|
915
|
+
width: 100% !important;
|
916
|
+
left: 0 !important;
|
917
|
+
}
|
918
|
+
</style>
|