safecheck-client 3.0.39-69 → 3.0.39-70

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.
@@ -15,35 +15,35 @@
15
15
  </div>
16
16
  <div class="row auto" style="margin: 5px 0">
17
17
  <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
- v-model="userinfo.baseinfo.base.f_user_name" readonly/>
18
+ v-model="userinfo.baseinfo.base.f_user_name" readonly/>
19
19
  </div>
20
20
  <div class="row auto" style="margin: 5px 0">
21
21
  <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
- v-model="userinfo.baseinfo.base.f_user_state"/>
22
+ v-model="userinfo.baseinfo.base.f_user_state"/>
23
23
  </div>
24
24
  <div class="row auto" style="margin: 5px 0">
25
25
  <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
- v-model="userinfo.baseinfo.base.f_user_phone"/>
26
+ v-model="userinfo.baseinfo.base.f_user_phone"/>
27
27
  </div>
28
28
  <div class="row auto" style="margin: 5px 0">
29
29
  <label class="righttxt">备用电话:</label><input type="text" class="form-control rightipt"
30
- v-model="f_phone1"/>
30
+ v-model="f_phone1"/>
31
31
  </div>
32
32
  <div class="row auto" style="margin: 5px 0">
33
33
  <label class="righttxt">备用电话:</label><input type="text" class="form-control rightipt"
34
- v-model="f_phone2"/>
34
+ v-model="f_phone2"/>
35
35
  </div>
36
36
  <div class="row auto" style="margin: 5px 0">
37
37
  <label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
38
- v-model="userinfo.baseinfo.base.f_rent_name"/>
38
+ v-model="userinfo.baseinfo.base.f_rent_name"/>
39
39
  </div>
40
40
  <div class="row auto" style="margin: 5px 0">
41
41
  <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
42
- v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
42
+ v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
43
43
  </div>
44
44
  <div class="row auto" style="margin: 5px 0">
45
45
  <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
46
- v-model="userinfo.baseinfo.base.f_createfile_date" readonly/>
46
+ v-model="userinfo.baseinfo.base.f_createfile_date" readonly/>
47
47
  </div>
48
48
  <!-- <div class="row auto" style="margin: 5px 0">
49
49
  <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
@@ -53,10 +53,10 @@
53
53
  <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
54
54
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
55
55
  id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
56
- for="phone_addressType1">普通地址</label></div>
56
+ for="phone_addressType1">普通地址</label></div>
57
57
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
58
58
  id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
59
- for="phone_addressType2">特殊地址</label></div>
59
+ for="phone_addressType2">特殊地址</label></div>
60
60
  </div>
61
61
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
62
62
  <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
@@ -92,7 +92,7 @@
92
92
  :width="'60%'"
93
93
  v-model="selectStreet"
94
94
  :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
95
- ></v-select>
95
+ ></v-select>
96
96
  </div>
97
97
  <div class="row auto" style="margin: 5px 0">
98
98
  <label class="righttxt">小区:</label>
@@ -115,27 +115,27 @@
115
115
  </div>-->
116
116
  <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
117
117
  <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress"
118
- class="form-control rightipt"
119
- v-model="userinfo.addressinfo.f_building"/>
118
+ class="form-control rightipt"
119
+ v-model="userinfo.addressinfo.f_building"/>
120
120
  </div>
121
121
  <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
122
122
  <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress"
123
- class="form-control rightipt"
124
- v-model="userinfo.addressinfo.f_unit"/>
123
+ class="form-control rightipt"
124
+ v-model="userinfo.addressinfo.f_unit"/>
125
125
  </div>
126
126
  <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
127
127
  <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress"
128
- class="form-control rightipt"
129
- v-model="userinfo.addressinfo.f_floor"/>
128
+ class="form-control rightipt"
129
+ v-model="userinfo.addressinfo.f_floor"/>
130
130
  </div>
131
131
  <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
132
132
  <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress"
133
- class="form-control rightipt"
134
- v-model="userinfo.addressinfo.f_room"/>
133
+ class="form-control rightipt"
134
+ v-model="userinfo.addressinfo.f_room"/>
135
135
  </div>
136
136
  <div class="row auto" style="margin: 5px 0">
137
137
  <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
138
- v-model="userinfo_old.addressinfo.f_address"/>
138
+ v-model="userinfo_old.addressinfo.f_address"/>
139
139
  </div>
140
140
  <div class="row auto" style="margin: 5px 0">
141
141
  <label class="righttxt">新&ensp;地&ensp;址:</label>
@@ -151,8 +151,8 @@
151
151
 
152
152
  <div class="row auto" style="margin: 5px 0">
153
153
  <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
154
- style="height: 150px"
155
- v-model="userinfo.baseinfo.base.f_remark"></textarea>
154
+ style="height: 150px"
155
+ v-model="userinfo.baseinfo.base.f_remark"></textarea>
156
156
  <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
157
157
  </div>
158
158
  </div>
@@ -169,10 +169,10 @@
169
169
  <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
170
170
  <input type="text" readonly class="form-control rightipt"
171
171
  style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" readonly />
172
- <!-- <button type="button"-->
173
- <!-- :disabled="!(userinfo.meterinfo[0].f_meter_classify=='机表' || userinfo.meterinfo[0].f_meter_classify=='金额卡表' || userinfo.meterinfo[0].f_meter_classify=='气量卡表')"-->
174
- <!-- name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码-->
175
- <!-- </button>-->
172
+ <!-- <button type="button"-->
173
+ <!-- :disabled="!(userinfo.meterinfo[0].f_meter_classify=='机表' || userinfo.meterinfo[0].f_meter_classify=='金额卡表' || userinfo.meterinfo[0].f_meter_classify=='气量卡表')"-->
174
+ <!-- name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码-->
175
+ <!-- </button>-->
176
176
  </div>
177
177
 
178
178
  <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
@@ -204,6 +204,7 @@
204
204
  :width='wid'
205
205
  @change="brand_change"
206
206
  readonly
207
+ disabled
207
208
  :options="brandlist"
208
209
  close-on-select value-single></v-select>
209
210
  </div>
@@ -325,7 +326,7 @@
325
326
  </div>
326
327
  <div class="row auto" style="margin: 5px 0">
327
328
  <label class="righttxt">设备型号:</label><input type="text" class="form-control rightipt"
328
- v-model="row.f_devices_model"/>
329
+ v-model="row.f_devices_model"/>
329
330
  </div>
330
331
  <div class="row auto" style="margin: 5px 0">
331
332
  <label class="righttxt">生产日期:</label>
@@ -340,7 +341,7 @@
340
341
  </div>
341
342
  <div class="row auto" style="margin: 5px 0">
342
343
  <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
343
- v-model="row.f_service_life"/>
344
+ v-model="row.f_service_life"/>
344
345
  </div>
345
346
  <!-- <div class="row auto" style="margin: 5px 0">
346
347
  <label class="righttxt">到期日期:</label>
@@ -355,7 +356,7 @@
355
356
  </div>-->
356
357
  <div class="row auto" style="margin: 5px 0">
357
358
  <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
358
- v-model="row.f_input_person"/>
359
+ v-model="row.f_input_person"/>
359
360
  </div>
360
361
  <div class="row auto" style="margin: 5px 0">
361
362
  <label class="righttxt">安装日期:</label>
@@ -370,7 +371,7 @@
370
371
  </div>
371
372
  <div class="row auto" style="margin: 5px 0">
372
373
  <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
373
- v-model="row.f_devices_num"/>
374
+ v-model="row.f_devices_num"/>
374
375
  </div>
375
376
  <!--<div class="row auto" style="margin: 5px 0">
376
377
  <label class="righttxt">管道类型:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
@@ -402,938 +403,938 @@
402
403
  </template>
403
404
 
404
405
  <script>
405
- import {HttpResetClass} from 'vue-client'
406
- import * as Util from "../../Util";
407
- import Vue from 'vue'
406
+ import {HttpResetClass} from 'vue-client'
407
+ import * as Util from "../../Util";
408
+ import Vue from 'vue'
408
409
 
409
- export default {
410
- title: '设备查看',
411
- data() {
412
- return {
413
- model: [],
414
- show: false,
415
- row: Object,
416
- userinfo: Object,
417
- userinfo_old: Object,
418
- wid: "60%",
419
- f_phone1:'',
420
- f_phone2:'',
421
- aroundmeters: [],
422
- devices_types: [],
423
- pipe_types: [{label: '橡胶管', value: '橡胶管'}, {label: '波纹管', value: '波纹管'}, {label: '钢管', value: '钢管'}],
424
- wz_types: [],
425
- cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
426
- bqf_states: [{label: '开阀', value: '开阀'}, {label: '关阀', value: '关阀'}],
427
- pcds: [],
428
- streets: [],
429
- update: false,
430
- headername: '基本信息',
431
- excessive: false,
432
- area: [],
433
- enable: false,
434
- f_meterno_path: Vue.nopic,
435
- selectArea: {id: ''},
436
- selectPcd: {id: ''},
437
- selectStreet: {id: ''},
438
- changemeterno: false,//是否修改了机表表号
439
- approveChange: false,//是否需要进行信息变更审核
440
- newAddress: '',
441
- addressType: '',
442
- //需要审核的字段
443
- checkField: {
444
- checkUserinfoField: [
445
- 'f_user_name'
446
- ],
447
- checkUserFilesField: [
448
- 'f_meternumber',
449
- 'f_gasbrand_id',
450
- 'f_gasmodel_id'
451
- ],
452
- checkAddressField: [
453
- 'f_pcd_id',
454
- 'f_street_id',
455
- 'f_residential_area_id',
456
- 'f_building',
457
- 'f_unit',
458
- 'f_floor',
459
- 'f_room',
460
- 'f_slice_area',
461
- 'f_special',
462
- 'f_address'
463
- ],
464
- },
465
- boxOptions: [],
466
- brandlist: [],
467
- modellist: [],
468
- showBox: false,
469
- directOptions: [{label: '是', value: '是'}, {label: '否', value: '否'}],
470
- deviceBrandOption: {},
471
- isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
472
- }
473
- },
474
- props: {
475
- user: {
476
- type: Object
410
+ export default {
411
+ title: '设备查看',
412
+ data() {
413
+ return {
414
+ model: [],
415
+ show: false,
416
+ row: Object,
417
+ userinfo: Object,
418
+ userinfo_old: Object,
419
+ wid: "60%",
420
+ f_phone1:'',
421
+ f_phone2:'',
422
+ aroundmeters: [],
423
+ devices_types: [],
424
+ pipe_types: [{label: '橡胶管', value: '橡胶管'}, {label: '波纹管', value: '波纹管'}, {label: '钢管', value: '钢管'}],
425
+ wz_types: [],
426
+ cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
427
+ bqf_states: [{label: '开阀', value: '开阀'}, {label: '关阀', value: '关阀'}],
428
+ pcds: [],
429
+ streets: [],
430
+ update: false,
431
+ headername: '基本信息',
432
+ excessive: false,
433
+ area: [],
434
+ enable: false,
435
+ f_meterno_path: Vue.nopic,
436
+ selectArea: {id: ''},
437
+ selectPcd: {id: ''},
438
+ selectStreet: {id: ''},
439
+ changemeterno: false,//是否修改了机表表号
440
+ approveChange: false,//是否需要进行信息变更审核
441
+ newAddress: '',
442
+ addressType: '',
443
+ //需要审核的字段
444
+ checkField: {
445
+ checkUserinfoField: [
446
+ 'f_user_name'
447
+ ],
448
+ checkUserFilesField: [
449
+ 'f_meternumber',
450
+ 'f_gasbrand_id',
451
+ 'f_gasmodel_id'
452
+ ],
453
+ checkAddressField: [
454
+ 'f_pcd_id',
455
+ 'f_street_id',
456
+ 'f_residential_area_id',
457
+ 'f_building',
458
+ 'f_unit',
459
+ 'f_floor',
460
+ 'f_room',
461
+ 'f_slice_area',
462
+ 'f_special',
463
+ 'f_address'
464
+ ],
477
465
  },
478
- f_userinfo_id: '',
479
- f_source: ''
466
+ boxOptions: [],
467
+ brandlist: [],
468
+ modellist: [],
469
+ showBox: false,
470
+ directOptions: [{label: '是', value: '是'}, {label: '否', value: '否'}],
471
+ deviceBrandOption: {},
472
+ isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'true' ? true : false
473
+ }
474
+ },
475
+ props: {
476
+ user: {
477
+ type: Object
480
478
  },
481
- methods: {
482
- showmassage(){
483
- this.$showMessage('表具出厂日期已由表厂提供,如需修改请联系管理员!')
484
- },
485
- async getmeterinfo(){
486
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{
487
- items:"*",
488
- tablename:"t_meterinfo",
489
- orderitem:"id",
490
- condition:`f_meternumber = '${this.userinfo.meterinfo[0].f_meternumber}'`
491
- }}, {resolveMsg: null, rejectMsg: null})
492
- if (res.data.length>0){
493
- this.userinfo.meterinfo[0].f_manufacture_date = res.data[0].f_manufacture_date
494
- this.$set('this.userinfo.meterinfo[0].f_manufacture_date', res.data[0].f_manufacture_date)
495
- }
496
- },
497
- async getBrand() {
498
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
499
- data: {
500
- items: "*",
501
- tablename: "t_gasbrand",
502
- orderitem: "id",
503
- condition: `f_orgid = '${Vue.user.orgid}'`
504
- }
505
- }, {resolveMsg: null, rejectMsg: null})
506
- ////tag)
507
- res.data.forEach((result) => {
508
- this.brandlist.push({label: result.f_meter_brand , value: result.id})
509
- })
510
- },
511
- scan() {
512
- HostApp.__this__ = this,
513
- HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
514
- },
515
- getCode() {
516
- var datapa = HostApp.getCode().data;
517
- //tag
518
- this.userinfo.meterinfo[0].f_meternumber = datapa
519
- },
520
- //数据检查
521
- checkVal() {
522
- //检查一些必要信息是否未填
523
- this.approveChange = false
524
- this.changemeterno = false
525
- let checked = {ischeck: true, msg: ''}
526
- //tag
527
- //tag
528
- //tag
529
- if (!this.userinfo.baseinfo.base.f_user_name) {
530
- checked = {ischeck: false, msg: '请输入用户名称!'}
531
- }
532
- if (!this.selectPcd.id) {
533
- checked = {ischeck: false, msg: '请选择省市区!'}
534
- }
535
- if (!this.selectStreet.id) {
536
- checked = {ischeck: false, msg: '请选择街道!'}
479
+ f_userinfo_id: '',
480
+ f_source: ''
481
+ },
482
+ methods: {
483
+ showmassage(){
484
+ this.$showMessage('表具出厂日期已由表厂提供,如需修改请联系管理员!')
485
+ },
486
+ async getmeterinfo(){
487
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{
488
+ items:"*",
489
+ tablename:"t_meterinfo",
490
+ orderitem:"id",
491
+ condition:`f_meternumber = '${this.userinfo.meterinfo[0].f_meternumber}'`
492
+ }}, {resolveMsg: null, rejectMsg: null})
493
+ if (res.data.length>0){
494
+ this.userinfo.meterinfo[0].f_manufacture_date = res.data[0].f_manufacture_date
495
+ this.$set('this.userinfo.meterinfo[0].f_manufacture_date', res.data[0].f_manufacture_date)
496
+ }
497
+ },
498
+ async getBrand() {
499
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
500
+ data: {
501
+ items: "*",
502
+ tablename: "t_gasbrand",
503
+ orderitem: "id",
504
+ condition: `f_orgid = '${Vue.user.orgid}'`
537
505
  }
538
- if (!this.userinfo.addressinfo.f_address) {
539
- checked = {ischeck: false, msg: '新地址不能为空!'}
506
+ }, {resolveMsg: null, rejectMsg: null})
507
+ ////tag)
508
+ res.data.forEach((result) => {
509
+ this.brandlist.push({label: result.f_meter_brand , value: result.id})
510
+ })
511
+ },
512
+ scan() {
513
+ HostApp.__this__ = this,
514
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
515
+ },
516
+ getCode() {
517
+ var datapa = HostApp.getCode().data;
518
+ //tag
519
+ this.userinfo.meterinfo[0].f_meternumber = datapa
520
+ },
521
+ //数据检查
522
+ checkVal() {
523
+ //检查一些必要信息是否未填
524
+ this.approveChange = false
525
+ this.changemeterno = false
526
+ let checked = {ischeck: true, msg: ''}
527
+ //tag
528
+ //tag
529
+ //tag
530
+ if (!this.userinfo.baseinfo.base.f_user_name) {
531
+ checked = {ischeck: false, msg: '请输入用户名称!'}
532
+ }
533
+ if (!this.selectPcd.id) {
534
+ checked = {ischeck: false, msg: '请选择省市区!'}
535
+ }
536
+ if (!this.selectStreet.id) {
537
+ checked = {ischeck: false, msg: '请选择街道!'}
538
+ }
539
+ if (!this.userinfo.addressinfo.f_address) {
540
+ checked = {ischeck: false, msg: '新地址不能为空!'}
541
+ }
542
+ if (this.addressType == '普通地址') {
543
+ if (!this.selectArea.id) {
544
+ checked = {ischeck: false, msg: '请选择小区单位!'}
540
545
  }
541
- if (this.addressType == '普通地址') {
542
- if (!this.selectArea.id) {
543
- checked = {ischeck: false, msg: '请选择小区单位!'}
544
- }
545
- if (!this.userinfo.addressinfo.f_room) {
546
- checked = {ischeck: false, msg: '新输入门牌号!'}
547
- }
546
+ if (!this.userinfo.addressinfo.f_room) {
547
+ checked = {ischeck: false, msg: '新输入门牌号!'}
548
548
  }
549
- if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
549
+ }
550
+ if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
550
551
 
551
- //tag
552
- //tag
553
- if (this.userinfo.meterinfo[0].f_meternumber) {
554
- if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
555
- if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
556
- checked = {ischeck: false, msg: '请拍摄表号照片!'}
557
- } else {
558
- //用来标识当前有修改机表表号,后台需要进行照片上传
559
- this.changemeterno = true
560
- }
552
+ //tag
553
+ //tag
554
+ if (this.userinfo.meterinfo[0].f_meternumber) {
555
+ if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
556
+ if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
557
+ checked = {ischeck: false, msg: '请拍摄表号照片!'}
558
+ } else {
559
+ //用来标识当前有修改机表表号,后台需要进行照片上传
560
+ this.changemeterno = true
561
561
  }
562
- } else {
563
- checked = {ischeck: false, msg: '请输入表号!'}
564
562
  }
563
+ } else {
564
+ checked = {ischeck: false, msg: '请输入表号!'}
565
565
  }
566
- //检查本次修改信息中是否包含需要审核的内容
567
- for (let check in this.checkField) {
568
- //tag
569
- if (typeof check != 'function') {
570
- for (let i = 0; i < this.checkField[check].length; i++) {
566
+ }
567
+ //检查本次修改信息中是否包含需要审核的内容
568
+ for (let check in this.checkField) {
569
+ //tag
570
+ if (typeof check != 'function') {
571
+ for (let i = 0; i < this.checkField[check].length; i++) {
572
+ //tag
573
+ if (check == 'checkUserinfoField') {
571
574
  //tag
572
- if (check == 'checkUserinfoField') {
573
- //tag
574
- //tag
575
- if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
576
- //tag
577
- this.approveChange = true
578
- }
579
- } else if (check == 'checkUserFilesField') {
580
- //tag
575
+ //tag
576
+ if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
581
577
  //tag
582
- if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
583
- //tag
584
- this.approveChange = true
585
- }
586
- } else if (check == 'checkAddressField') {
578
+ this.approveChange = true
579
+ }
580
+ } else if (check == 'checkUserFilesField') {
581
+ //tag
582
+ //tag
583
+ if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
587
584
  //tag
585
+ this.approveChange = true
586
+ }
587
+ } else if (check == 'checkAddressField') {
588
+ //tag
589
+ //tag
590
+ if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
588
591
  //tag
589
- if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
590
- //tag
591
- this.approveChange = true
592
- }
592
+ this.approveChange = true
593
593
  }
594
594
  }
595
595
  }
596
596
  }
597
- //tag
598
- return checked
599
- },
600
- select_search(text) {
601
- //tag
602
- if (this.selectStreet.id) {
603
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
604
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
597
+ }
598
+ //tag
599
+ return checked
600
+ },
601
+ select_search(text) {
602
+ //tag
603
+ if (this.selectStreet.id) {
604
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
605
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
606
+ data: {
607
+ items: "*",
608
+ tablename: "t_area",
609
+ orderitem: "id",
610
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
611
+ }
612
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
613
+ //tag)
614
+ if (res.data.length > 0) {
615
+ this.area = []
616
+ res.data.forEach((result) => {
617
+ this.area.push({label: result.f_residential_area, value: result})
618
+ })
619
+ }
620
+ })
621
+ } else {
622
+ this.area = []
623
+ }
624
+ },
625
+ cameraCallBack(prop, fileName) {
626
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
627
+ //tag
628
+ HostApp.__callback__ = null
629
+ HostApp.__this__ = null
630
+ },
631
+ takePic(prop, title) {
632
+ HostApp.__callback__ = this.cameraCallBack
633
+ HostApp.__this__ = this
634
+ //tag
635
+ let fileName
636
+ if (!this[prop] || this[prop].includes("nopic.png")) {
637
+ fileName = Util.guid() + '-' + prop + '.jpg'
638
+ } else {
639
+ fileName = Util.getFileName(this[prop])
640
+ }
641
+ HostApp._open_a_page({
642
+ type: 'boomerang',
643
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
644
+ param: {
645
+ file: fileName,
646
+ requestCode: 111,
647
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
648
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
649
+ }
650
+ })
651
+ },
652
+ delfile(prop, fileName) {
653
+ if (fileName == Vue.nopic)
654
+ return
655
+ else {
656
+ HostApp.delfile(fileName)
657
+ this[prop] = Vue.nopic
658
+ }
659
+ },
660
+ editUserInfoNoAudit() {
661
+ let checked = this.checkVal()
662
+ if (!checked.ischeck) {
663
+ this.$showMessage(checked.msg)
664
+ return
665
+ }
666
+ for (let i = 0; i < this.model.length; i++) {
667
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
668
+ }
669
+ this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
670
+ if (res === 'confirm') {
671
+ this.excessive = true
672
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
673
+ // userinfoms.f_user_name=row.f_user_name
674
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
675
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
676
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
677
+ userinfoms.f_operator_record = Vue.user.name
678
+ userinfoms.f_operatorid_record = Vue.user.id
679
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
680
+ userinfoms.f_orgid_record = Vue.user.orgid
681
+ userinfoms.f_orgname_record = Vue.user.orgs
682
+ userinfoms.f_depid_record = Vue.user.depids
683
+ userinfoms.f_depname_record = Vue.user.deps
684
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
685
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
686
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
687
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
688
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
689
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
690
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
691
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
692
+ userinfoms.userfiles = []
693
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
694
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
695
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
605
696
  data: {
606
- items: "*",
607
- tablename: "t_area",
608
- orderitem: "id",
609
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
697
+ userinfo: userinfoms,
698
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
699
+ address: {
700
+ id: this.userinfo_old.addressinfo.id,
701
+ oldid: this.userinfo_old.addressinfo.id,
702
+ f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
703
+ }
610
704
  }
611
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
612
- //tag)
613
- if (res.data.length > 0) {
614
- this.area = []
615
- res.data.forEach((result) => {
616
- this.area.push({label: result.f_residential_area, value: result})
705
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
706
+ if (res1.data.status == 200) {
707
+ let data = this.userinfo.addressinfo
708
+ data.f_address = this.userinfo.addressinfo.f_address? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
709
+ //
710
+ data.f_operator = Vue.user.name
711
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
712
+ this.$showMessage("修改用户地址信息成功!")
713
+ }).catch(error => {
714
+ this.$showMessage("修改用户地址信息!")
617
715
  })
716
+ this.$showMessage("修改用户信息成功!")
717
+ this.enable = true
718
+ this.excessive = false
618
719
  }
720
+ }).catch((msg) => {
721
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
722
+ this.excessive = false
619
723
  })
620
- } else {
621
- this.area = []
622
- }
623
- },
624
- cameraCallBack(prop, fileName) {
625
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
626
- //tag
627
- HostApp.__callback__ = null
628
- HostApp.__this__ = null
629
- },
630
- takePic(prop, title) {
631
- HostApp.__callback__ = this.cameraCallBack
632
- HostApp.__this__ = this
633
- //tag
634
- let fileName
635
- if (!this[prop] || this[prop].includes("nopic.png")) {
636
- fileName = Util.guid() + '-' + prop + '.jpg'
637
- } else {
638
- fileName = Util.getFileName(this[prop])
639
724
  }
640
- HostApp._open_a_page({
641
- type: 'boomerang',
642
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
643
- param: {
644
- file: fileName,
645
- requestCode: 111,
646
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
647
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
648
- }
725
+ })
726
+ },
727
+ editUserInfo() {
728
+ let checked = this.checkVal()
729
+ if (!checked.ischeck) {
730
+ this.$showMessage(checked.msg)
731
+ return
732
+ }
733
+ let phones = []
734
+ if (this.f_phone1){
735
+ phones.push({
736
+ id:this.userinfo.baseinfo.userphonelist[0]?this.userinfo.baseinfo.userphonelist[0].id:'',
737
+ f_userinfo_id:this.userinfo.baseinfo.base.f_userinfo_id,
738
+ f_rent_phone:this.f_phone1,
739
+ f_state:'正常'
649
740
  })
650
- },
651
- delfile(prop, fileName) {
652
- if (fileName == Vue.nopic)
653
- return
654
- else {
655
- HostApp.delfile(fileName)
656
- this[prop] = Vue.nopic
657
- }
658
- },
659
- editUserInfoNoAudit() {
660
- let checked = this.checkVal()
661
- if (!checked.ischeck) {
662
- this.$showMessage(checked.msg)
663
- return
664
- }
665
- for (let i = 0; i < this.model.length; i++) {
666
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
667
- }
668
- this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
669
- if (res === 'confirm') {
670
- this.excessive = true
671
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
672
- // userinfoms.f_user_name=row.f_user_name
673
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
674
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
675
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
676
- userinfoms.f_operator_record = Vue.user.name
677
- userinfoms.f_operatorid_record = Vue.user.id
678
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
679
- userinfoms.f_orgid_record = Vue.user.orgid
680
- userinfoms.f_orgname_record = Vue.user.orgs
681
- userinfoms.f_depid_record = Vue.user.depids
682
- userinfoms.f_depname_record = Vue.user.deps
683
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
684
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
685
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
686
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
687
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
688
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
689
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
690
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
691
- userinfoms.userfiles = []
692
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
693
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
694
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
695
- data: {
696
- userinfo: userinfoms,
697
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
698
- address: {
699
- id: this.userinfo_old.addressinfo.id,
700
- oldid: this.userinfo_old.addressinfo.id,
701
- f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
702
- }
703
- }
704
- }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
705
- if (res1.data.status == 200) {
706
- let data = this.userinfo.addressinfo
707
- data.f_address = this.userinfo.addressinfo.f_address? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
708
- //
709
- data.f_operator = Vue.user.name
710
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
711
- this.$showMessage("修改用户地址信息成功!")
712
- }).catch(error => {
713
- this.$showMessage("修改用户地址信息!")
741
+ }
742
+ if (this.f_phone2){
743
+ phones.push({
744
+ id:this.userinfo.baseinfo.userphonelist[1]?this.userinfo.baseinfo.userphonelist[1].id:'',
745
+ f_userinfo_id:this.userinfo.baseinfo.base.f_userinfo_id,
746
+ f_rent_phone:this.f_phone2,
747
+ f_state:'正常'
748
+ })
749
+ }
750
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
751
+ if (res === 'confirm') {
752
+ this.excessive = true
753
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
754
+ //userinfoms.f_user_name=row.f_user_name
755
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
756
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
757
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
758
+ userinfoms.f_operator_record = Vue.user.name
759
+ userinfoms.f_operatorid_record = Vue.user.id
760
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
761
+ userinfoms.f_orgid_record = Vue.user.orgid
762
+ userinfoms.f_orgname_record = Vue.user.orgs
763
+ userinfoms.f_depid_record = Vue.user.depids
764
+ userinfoms.f_depname_record = Vue.user.deps
765
+ userinfoms.userphonelist = phones
766
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
767
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
768
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
769
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
770
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
771
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
772
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
773
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
774
+ this.userinfo_old.meterinfo[0].f_meter_classify=this.userinfo.meterinfo[0].f_meter_classify
775
+ userinfoms.userfiles = []
776
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
777
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
778
+ //tag)
779
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
780
+ data: {
781
+ userinfo: userinfoms,
782
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
783
+ address: {id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id}
784
+ }
785
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
786
+ //tag+res1.data.status)
787
+ if (res1.data.status == 200) {
788
+ //本次修改信息包含需要审核信息
789
+ if (this.approveChange) {
790
+ //tag
791
+ let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
792
+ row: {
793
+ f_time: Util.toStandardTimeString(),
794
+ f_modifier: Vue.user.name,//Vue.user.name
795
+ f_modifier_id: Vue.user.id,//Vue.user.id
796
+ f_modify_type: '用户档案',
797
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
798
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
799
+ f_approved: '未审核',
800
+ filialestr: Vue.user.orgid,//Vue.user.orgid
801
+ version: 1,
802
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
803
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
804
+ f_street: this.userinfo.addressinfo.f_street,
805
+ f_building: this.userinfo.addressinfo.f_building,
806
+ f_unit: this.userinfo.addressinfo.f_unit,
807
+ f_floor: this.userinfo.addressinfo.f_floor,
808
+ f_room: this.userinfo.addressinfo.f_room,
809
+ f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
810
+ f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
811
+ f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
812
+ f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
813
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
814
+ f_address: this.userinfo.addressinfo.f_address,
815
+ f_pcd: this.userinfo.addressinfo.f_pcd,
816
+ f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
817
+ f_street_id: this.userinfo.addressinfo.f_street_id,
818
+ f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
819
+ f_used_name: this.userinfo.baseinfo.base.f_used_name,
820
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
821
+ f_slice_area: this.userinfo.addressinfo.f_slice_area,
822
+ f_remark: this.userinfo.baseinfo.base.f_remark,
823
+ f_source: this.f_source,
824
+ f_meterno_path: this.f_meterno_path,
825
+ f_iscity: this.userinfo.addressinfo.f_iscity,
826
+ f_special: this.userinfo.addressinfo.f_special,
827
+ f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
828
+ f_gasbrand_id: this.userinfo.meterinfo[0].f_gasbrand_id,
829
+ f_gasmodel_id: this.userinfo.meterinfo[0].f_gasmodel_id,
830
+ changemeterno: this.changemeterno
831
+ },
832
+ tablename: 't_modify_userinfo'
714
833
  })
834
+ //tag)
835
+ if (res2.code == 200) {
836
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
837
+ this.enable = true
838
+ this.excessive = false
839
+ } else {
840
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
841
+ this.excessive = false
842
+ }
843
+ } else {
715
844
  this.$showMessage("修改用户信息成功!")
716
845
  this.enable = true
717
846
  this.excessive = false
718
847
  }
719
- }).catch((msg) => {
720
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
721
- this.excessive = false
722
- })
723
- }
724
- })
725
- },
726
- editUserInfo() {
727
- let checked = this.checkVal()
728
- if (!checked.ischeck) {
729
- this.$showMessage(checked.msg)
730
- return
731
- }
732
- let phones = []
733
- if (this.f_phone1){
734
- phones.push({
735
- id:this.userinfo.baseinfo.userphonelist[0]?this.userinfo.baseinfo.userphonelist[0].id:'',
736
- f_userinfo_id:this.userinfo.baseinfo.base.f_userinfo_id,
737
- f_rent_phone:this.f_phone1,
738
- f_state:'正常'
739
- })
740
- }
741
- if (this.f_phone2){
742
- phones.push({
743
- id:this.userinfo.baseinfo.userphonelist[1]?this.userinfo.baseinfo.userphonelist[1].id:'',
744
- f_userinfo_id:this.userinfo.baseinfo.base.f_userinfo_id,
745
- f_rent_phone:this.f_phone2,
746
- f_state:'正常'
747
- })
748
- }
749
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
750
- if (res === 'confirm') {
751
- this.excessive = true
752
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
753
- //userinfoms.f_user_name=row.f_user_name
754
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
755
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
756
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
757
- userinfoms.f_operator_record = Vue.user.name
758
- userinfoms.f_operatorid_record = Vue.user.id
759
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
760
- userinfoms.f_orgid_record = Vue.user.orgid
761
- userinfoms.f_orgname_record = Vue.user.orgs
762
- userinfoms.f_depid_record = Vue.user.depids
763
- userinfoms.f_depname_record = Vue.user.deps
764
- userinfoms.userphonelist = phones
765
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
766
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
767
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
768
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
769
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
770
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
771
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
772
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
773
- this.userinfo_old.meterinfo[0].f_meter_classify=this.userinfo.meterinfo[0].f_meter_classify
774
- userinfoms.userfiles = []
775
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
776
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
777
- //tag)
778
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
779
- data: {
780
- userinfo: userinfoms,
781
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
782
- address: {id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id}
783
- }
784
- }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
785
- //tag+res1.data.status)
786
- if (res1.data.status == 200) {
787
- //本次修改信息包含需要审核信息
788
- if (this.approveChange) {
789
- //tag
790
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
791
- row: {
792
- f_time: Util.toStandardTimeString(),
793
- f_modifier: Vue.user.name,//Vue.user.name
794
- f_modifier_id: Vue.user.id,//Vue.user.id
795
- f_modify_type: '用户档案',
796
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
797
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
798
- f_approved: '未审核',
799
- filialestr: Vue.user.orgid,//Vue.user.orgid
800
- version: 1,
801
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
802
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
803
- f_street: this.userinfo.addressinfo.f_street,
804
- f_building: this.userinfo.addressinfo.f_building,
805
- f_unit: this.userinfo.addressinfo.f_unit,
806
- f_floor: this.userinfo.addressinfo.f_floor,
807
- f_room: this.userinfo.addressinfo.f_room,
808
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
809
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
810
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
811
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
812
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
813
- f_address: this.userinfo.addressinfo.f_address,
814
- f_pcd: this.userinfo.addressinfo.f_pcd,
815
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
816
- f_street_id: this.userinfo.addressinfo.f_street_id,
817
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
818
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
819
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
820
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
821
- f_remark: this.userinfo.baseinfo.base.f_remark,
822
- f_source: this.f_source,
823
- f_meterno_path: this.f_meterno_path,
824
- f_iscity: this.userinfo.addressinfo.f_iscity,
825
- f_special: this.userinfo.addressinfo.f_special,
826
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
827
- f_gasbrand_id: this.userinfo.meterinfo[0].f_gasbrand_id,
828
- f_gasmodel_id: this.userinfo.meterinfo[0].f_gasmodel_id,
829
- changemeterno: this.changemeterno
830
- },
831
- tablename: 't_modify_userinfo'
832
- })
833
- //tag)
834
- if (res2.code == 200) {
835
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
836
- this.enable = true
837
- this.excessive = false
838
- } else {
839
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
840
- this.excessive = false
841
- }
842
- } else {
843
- this.$showMessage("修改用户信息成功!")
844
- this.enable = true
845
- this.excessive = false
846
- }
847
848
 
848
- }
849
- }).catch((msg) => {
850
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
851
- this.excessive = false
852
- })
849
+ }
850
+ }).catch((msg) => {
851
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
852
+ this.excessive = false
853
+ })
853
854
 
854
- }
855
- })
856
- },
857
- imgback(header) {
858
- if (this.headername == header) {
859
- return require('../../../assets/xiangxia1.png')
860
- } else {
861
- return require('../../../assets/xiangyou1.png')
862
855
  }
856
+ })
857
+ },
858
+ imgback(header) {
859
+ if (this.headername == header) {
860
+ return require('../../../assets/xiangxia1.png')
861
+ } else {
862
+ return require('../../../assets/xiangyou1.png')
863
+ }
864
+ this.headername = header
865
+ },
866
+ selectVal(header) {
867
+ if (this.headername == header) {
868
+ this.headername = ''
869
+ } else {
863
870
  this.headername = header
864
- },
865
- selectVal(header) {
866
- if (this.headername == header) {
867
- this.headername = ''
868
- } else {
869
- this.headername = header
870
- }
871
+ }
871
872
 
872
- },
873
- changeNewAddress() {
874
- this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
875
- },
876
- area_change() {
877
- //tag
878
- this.selectPcd = {id: this.selectArea.f_pcd_id,f_pcd:this.selectArea.f_pcd}
879
- this.userinfo.addressinfo.f_pcd = this.selectArea.f_pcd
880
- this.userinfo.addressinfo.f_pcd_id = this.selectArea.f_pcd_id
873
+ },
874
+ changeNewAddress() {
875
+ this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
876
+ },
877
+ area_change() {
878
+ //tag
879
+ this.selectPcd = {id: this.selectArea.f_pcd_id,f_pcd:this.selectArea.f_pcd}
880
+ this.userinfo.addressinfo.f_pcd = this.selectArea.f_pcd
881
+ this.userinfo.addressinfo.f_pcd_id = this.selectArea.f_pcd_id
881
882
 
882
- this.selectStreet = {id: this.selectArea.f_street_id,f_street:this.selectArea.f_street}
883
- this.userinfo.addressinfo.f_street = this.selectArea.f_street
884
- this.userinfo.addressinfo.f_street_id = this.selectArea.f_street_id
883
+ this.selectStreet = {id: this.selectArea.f_street_id,f_street:this.selectArea.f_street}
884
+ this.userinfo.addressinfo.f_street = this.selectArea.f_street
885
+ this.userinfo.addressinfo.f_street_id = this.selectArea.f_street_id
885
886
 
886
- this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
887
- this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
888
- this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
889
- this.changeNewAddress()
890
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
891
- },
892
- async street_change() {
893
- //tag
894
- if (this.selectStreet.id) {
895
- //如果街道改变--给街道赋值!
896
- this.userinfo.addressinfo.f_street = this.selectStreet.f_street
897
- this.userinfo.addressinfo.f_street_id = this.selectStreet.id
898
- this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
899
- //清空当前选中小区的值
900
- this.userinfo.addressinfo.f_residential_area = ''
901
- this.userinfo.addressinfo.f_residential_area_id = ''
902
- this.userinfo.addressinfo.f_slice_area = ''
903
- this.selectArea = {id: ''}
904
- this.area = []
905
- let pcdText = ` and f_street_id=${this.selectStreet.id}`
906
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
907
- data: {
908
- items: "*",
909
- tablename: "t_area",
910
- orderitem: "id",
911
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
912
- }
913
- }, {resolveMsg: null, rejectMsg: null})
914
- ////tag)
915
- res.data.forEach((result) => {
916
- this.area.push({label: result.f_residential_area, value: result})
917
- })
918
- } else {
919
- this.area = []
920
- }
921
-
922
- this.changeNewAddress()
923
- },
924
- async brand_change() {
925
- /*根据气表品牌,查询气表类型*/
926
- if (this.userinfo.meterinfo[0].f_gasbrand_id!== "") {
927
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
928
- data: {
929
- items: "*",
930
- tablename: "t_gasmodel",
931
- orderitem: "id",
932
- condition: `f_gasbrand_id= '${this.userinfo.meterinfo[0].f_gasbrand_id}'`
933
- }
934
- }, {resolveMsg: null, rejectMsg: null})
935
- ////tag)
936
- res.data.forEach((result) => {
937
- this.modellist.push({label: result.f_meter_style, value: result.id})
938
- })
939
- }
940
- },
941
- async pcd_change() {
942
- //tag
943
- if (this.selectPcd.id) {
944
- //tag
945
- //如果省市区改变-重新赋值
946
- this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
947
- this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
948
- //清空 选中的街道和集收单位
949
- /* this.selectStreet = {id: ''}
950
- this.userinfo.addressinfo.f_street = ''
951
- this.userinfo.addressinfo.f_street_id = ''
952
- this.userinfo.addressinfo.f_iscity = ''
953
- this.selectArea = {id: ''}
954
- this.userinfo.addressinfo.f_residential_area = ''
955
- this.userinfo.addressinfo.f_residential_area_id = ''
956
- this.userinfo.addressinfo.f_slice_area = ''*/
957
- this.streets = []
958
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
959
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
960
- data: {
961
- items: "*",
962
- tablename: "t_street",
963
- orderitem: "id",
964
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
965
- }
966
- }, {resolveMsg: null, rejectMsg: null})
967
- streetlist.data.forEach((result) => {
968
- this.streets.push({label: result.f_street, value: result})
969
- })
970
- } else {
971
- this.streets = []
972
- }
973
- this.changeNewAddress()
974
- },
975
- upUserState() {
976
- //tag)
977
- if (this.userinfo.meterinfo[0].f_table_state == '正常') {
978
- let data = {
979
- f_userfiles_id: {
980
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
981
- f_table_state: '停用',
982
- version: this.userinfo.meterinfo[0].version
983
- },
984
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
985
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
986
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
987
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
988
- f_comments: '安检时发现问题关闭阀门',
989
- f_othereason: '',
990
- f_operat_type: '停用',
991
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
992
- f_state: '有效',
993
- f_operator: Vue.user.name,//${Vue.$login.f.name}
994
- f_operatorid: Vue.user.id,
995
- f_orgid: Vue.user.orgid,
996
- f_orgname: Vue.user.orgs,
997
- f_depid: Vue.user.depids,
998
- f_depname: Vue.user.deps,
999
- f_zoneid: Vue.user.zoneid,
1000
- f_zones: Vue.user.zones
887
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
888
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
889
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
890
+ this.changeNewAddress()
891
+ //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
892
+ },
893
+ async street_change() {
894
+ //tag
895
+ if (this.selectStreet.id) {
896
+ //如果街道改变--给街道赋值!
897
+ this.userinfo.addressinfo.f_street = this.selectStreet.f_street
898
+ this.userinfo.addressinfo.f_street_id = this.selectStreet.id
899
+ this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
900
+ //清空当前选中小区的值
901
+ this.userinfo.addressinfo.f_residential_area = ''
902
+ this.userinfo.addressinfo.f_residential_area_id = ''
903
+ this.userinfo.addressinfo.f_slice_area = ''
904
+ this.selectArea = {id: ''}
905
+ this.area = []
906
+ let pcdText = ` and f_street_id=${this.selectStreet.id}`
907
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
908
+ data: {
909
+ items: "*",
910
+ tablename: "t_area",
911
+ orderitem: "id",
912
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
1001
913
  }
1002
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
1003
- data, {resolveMsg: null, rejectMsg: null}).then((row) => {
1004
- this.$showMessage('已成功关阀停气!')
1005
- this.userinfo.meterinfo[0].f_table_state = '停用'
1006
- })
1007
- } else {
1008
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
1009
- }
914
+ }, {resolveMsg: null, rejectMsg: null})
915
+ ////tag)
916
+ res.data.forEach((result) => {
917
+ this.area.push({label: result.f_residential_area, value: result})
918
+ })
919
+ } else {
920
+ this.area = []
921
+ }
1010
922
 
1011
- },
1012
- addDevices() {
1013
- //Vue.user.name
1014
- let obj = {
1015
- "f_operator": Vue.user.name,
1016
- "f_picture": null,
1017
- "f_pipe_type": null,
1018
- "f_pipeinstall_date": null,
1019
- "f_pipe_connection": null,
1020
- "f_expire_date": null,
1021
- "f_pipeexpire_date": null,
1022
- "f_comments": null,
1023
- "f_operate_date": Util.toStandardTimeString(),
1024
- "f_operatorid": Vue.user.id,
1025
- "f_devices_num": null,
1026
- "f_process_id": null,
1027
- "f_devices_type": null,
1028
- "f_make_date": null,
1029
- "f_input_date": null,
1030
- "f_state": "有效",
1031
- "f_brand": null,
1032
- "f_devices_model": null,
1033
- "f_devices_no": null,
1034
- "img": {"content": null, "filename": null}
1035
- }
1036
- this.model.push(obj)
1037
- },
1038
- delDevices(idx) {
1039
- //tag
1040
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1041
- if (res === 'confirm') {
1042
- this.model.splice(idx, 1)
923
+ this.changeNewAddress()
924
+ },
925
+ async brand_change() {
926
+ /*根据气表品牌,查询气表类型*/
927
+ if (this.userinfo.meterinfo[0].f_gasbrand_id!== "") {
928
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
929
+ data: {
930
+ items: "*",
931
+ tablename: "t_gasmodel",
932
+ orderitem: "id",
933
+ condition: `f_gasbrand_id= '${this.userinfo.meterinfo[0].f_gasbrand_id}'`
1043
934
  }
935
+ }, {resolveMsg: null, rejectMsg: null})
936
+ ////tag)
937
+ res.data.forEach((result) => {
938
+ this.modellist.push({label: result.f_meter_style, value: result.id})
1044
939
  })
1045
- },
1046
- async getAreaList(text) {
1047
- if (this.selectStreet.id) {
1048
- this.area = []
1049
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1050
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1051
- data: {
1052
- items: "*",
1053
- tablename: "t_area",
1054
- orderitem: "id",
1055
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1056
- }
1057
- }, {resolveMsg: null, rejectMsg: null})
1058
- ////tag)
1059
- res.data.forEach((result) => {
1060
- this.area.push({label: result.f_residential_area, value: result})
1061
- })
1062
- //tag
1063
- this.area.push({
1064
- label: this.userinfo.addressinfo.f_residential_area,
1065
- value: {
1066
- id: this.userinfo.addressinfo.f_residential_area_id,
1067
- f_residential_area: this.userinfo.addressinfo.f_residential_area
1068
- }
1069
- })
1070
- } else {
1071
- this.area = []
1072
- }
1073
-
1074
- },
1075
- async getStreetList() {
1076
- if (this.selectPcd.id) {
1077
- //tag
1078
- this.streets = []
1079
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1080
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1081
- data: {
1082
- items: "*",
1083
- tablename: "t_street",
1084
- orderitem: "id",
1085
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1086
- }
1087
- }, {resolveMsg: null, rejectMsg: null})
1088
- streetlist.data.forEach((result) => {
1089
- //如果第一次进来有地址id 就拿下地址区域
1090
- if (this.selectStreet.id && this.selectStreet.id == result.id) {
1091
- //tag)
1092
- this.userinfo.addressinfo.f_iscity = result.f_iscity
1093
- }
1094
- this.streets.push({label: result.f_street, value: result})
1095
- })
1096
- } else {
1097
- this.streets = []
1098
- }
1099
- },
1100
- changeAddressType(val) {
940
+ }
941
+ },
942
+ async pcd_change() {
943
+ //tag
944
+ if (this.selectPcd.id) {
1101
945
  //tag
1102
- if (this.addressType == '普通地址') {
1103
- this.userinfo.addressinfo.f_special = null
1104
- } else if (this.addressType == '特殊地址') {
1105
- this.userinfo.addressinfo.f_special = 1
1106
- this.userinfo.addressinfo.f_building = null
1107
- this.userinfo.addressinfo.f_unit = null
1108
- this.userinfo.addressinfo.f_floor = null
1109
- this.userinfo.addressinfo.f_room = null
946
+ //如果省市区改变-重新赋值
947
+ this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
948
+ this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
949
+ //清空 选中的街道和集收单位
950
+ /* this.selectStreet = {id: ''}
951
+ this.userinfo.addressinfo.f_street = ''
952
+ this.userinfo.addressinfo.f_street_id = ''
953
+ this.userinfo.addressinfo.f_iscity = ''
954
+ this.selectArea = {id: ''}
955
+ this.userinfo.addressinfo.f_residential_area = ''
956
+ this.userinfo.addressinfo.f_residential_area_id = ''
957
+ this.userinfo.addressinfo.f_slice_area = ''*/
958
+ this.streets = []
959
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
960
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
961
+ data: {
962
+ items: "*",
963
+ tablename: "t_street",
964
+ orderitem: "id",
965
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
966
+ }
967
+ }, {resolveMsg: null, rejectMsg: null})
968
+ streetlist.data.forEach((result) => {
969
+ this.streets.push({label: result.f_street, value: result})
970
+ })
971
+ } else {
972
+ this.streets = []
973
+ }
974
+ this.changeNewAddress()
975
+ },
976
+ upUserState() {
977
+ //tag)
978
+ if (this.userinfo.meterinfo[0].f_table_state == '正常') {
979
+ let data = {
980
+ f_userfiles_id: {
981
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
982
+ f_table_state: '停用',
983
+ version: this.userinfo.meterinfo[0].version
984
+ },
985
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
986
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
987
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
988
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
989
+ f_comments: '安检时发现问题关闭阀门',
990
+ f_othereason: '',
991
+ f_operat_type: '停用',
992
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
993
+ f_state: '有效',
994
+ f_operator: Vue.user.name,//${Vue.$login.f.name}
995
+ f_operatorid: Vue.user.id,
996
+ f_orgid: Vue.user.orgid,
997
+ f_orgname: Vue.user.orgs,
998
+ f_depid: Vue.user.depids,
999
+ f_depname: Vue.user.deps,
1000
+ f_zoneid: Vue.user.zoneid,
1001
+ f_zones: Vue.user.zones
1110
1002
  }
1111
- this.changeNewAddress()
1003
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
1004
+ data, {resolveMsg: null, rejectMsg: null}).then((row) => {
1005
+ this.$showMessage('已成功关阀停气!')
1006
+ this.userinfo.meterinfo[0].f_table_state = '停用'
1007
+ })
1008
+ } else {
1009
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
1112
1010
  }
1113
1011
 
1114
1012
  },
1115
- computed: {
1116
- getAddress() {
1117
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1118
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1119
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1120
- (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1121
- (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1122
- (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1123
- (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1124
- },
1125
- getAddressTS() {
1126
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1127
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1128
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1013
+ addDevices() {
1014
+ //Vue.user.name
1015
+ let obj = {
1016
+ "f_operator": Vue.user.name,
1017
+ "f_picture": null,
1018
+ "f_pipe_type": null,
1019
+ "f_pipeinstall_date": null,
1020
+ "f_pipe_connection": null,
1021
+ "f_expire_date": null,
1022
+ "f_pipeexpire_date": null,
1023
+ "f_comments": null,
1024
+ "f_operate_date": Util.toStandardTimeString(),
1025
+ "f_operatorid": Vue.user.id,
1026
+ "f_devices_num": null,
1027
+ "f_process_id": null,
1028
+ "f_devices_type": null,
1029
+ "f_make_date": null,
1030
+ "f_input_date": null,
1031
+ "f_state": "有效",
1032
+ "f_brand": null,
1033
+ "f_devices_model": null,
1034
+ "f_devices_no": null,
1035
+ "img": {"content": null, "filename": null}
1129
1036
  }
1037
+ this.model.push(obj)
1130
1038
  },
1131
- watch: {
1132
-
1133
- /*'selectPcd.id' (val) {
1134
- //tag
1135
- if(this.selectPcd.id){
1136
- this.getStreetList()
1039
+ delDevices(idx) {
1040
+ //tag
1041
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1042
+ if (res === 'confirm') {
1043
+ this.model.splice(idx, 1)
1137
1044
  }
1138
- },
1139
- 'selectStreet.id' (val) {
1140
- //tag
1141
- if(this.selectStreet.id){
1142
- this.getAreaList()
1143
- }
1144
- }*/
1045
+ })
1145
1046
  },
1146
- async ready() {
1147
- /*//tag)
1148
-
1149
- //tag)
1150
- //tag)*/
1151
- //this.f_userinfo_id=1102260
1152
- //this.f_userinfo_id=1997541
1153
- if (!this.f_userinfo_id) {
1154
- this.$showMessage("未检测到用户!")
1155
- this.enable = true
1156
- return
1157
- }
1158
- try {
1159
- this.getBrand()
1160
- this.devices_types = Vue.$appdata.getParam('设备类型')
1161
- console.log('this.devices_types=', JSON.stringify(this.devices_types))
1162
- for (const devices_type of this.devices_types) {
1163
- console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1164
- this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1165
- }
1166
- console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1167
- this.wz_types = Vue.$appdata.getParam('安装位置')
1168
- this.aroundmeters = Vue.$appdata.getParam('左右表')
1169
-
1170
- ////tag)
1171
- this.excessive = true
1172
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1173
-
1174
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1047
+ async getAreaList(text) {
1048
+ if (this.selectStreet.id) {
1049
+ this.area = []
1050
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1051
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1175
1052
  data: {
1176
1053
  items: "*",
1177
- tablename: "t_pcd",
1054
+ tablename: "t_area",
1178
1055
  orderitem: "id",
1179
- condition: `f_orgid = '${Vue.user.orgid}'`
1056
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1180
1057
  }
1181
1058
  }, {resolveMsg: null, rejectMsg: null})
1182
- //tag)
1183
- pcdlist.data.forEach((result) => {
1184
- this.pcds.push({label: result.f_pcd, value: result})
1059
+ ////tag)
1060
+ res.data.forEach((result) => {
1061
+ this.area.push({label: result.f_residential_area, value: result})
1062
+ })
1063
+ //tag
1064
+ this.area.push({
1065
+ label: this.userinfo.addressinfo.f_residential_area,
1066
+ value: {
1067
+ id: this.userinfo.addressinfo.f_residential_area_id,
1068
+ f_residential_area: this.userinfo.addressinfo.f_residential_area
1069
+ }
1185
1070
  })
1186
- let areas = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/getallarea?pageNo=1&pageSize=9999`, {
1071
+ } else {
1072
+ this.area = []
1073
+ }
1074
+
1075
+ },
1076
+ async getStreetList() {
1077
+ if (this.selectPcd.id) {
1078
+ //tag
1079
+ this.streets = []
1080
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1081
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1187
1082
  data: {
1188
- /*items: "*",
1189
- tablename: "t_area",
1083
+ items: "*",
1084
+ tablename: "t_street",
1190
1085
  orderitem: "id",
1191
- condition: `f_orgid = '${Vue.user.orgid}'`*/
1192
- orgid:Vue.user.orgid
1086
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1193
1087
  }
1194
1088
  }, {resolveMsg: null, rejectMsg: null})
1195
- //tag)
1196
- areas.data.forEach((result) => {
1197
- this.area.push({label: result.f_residential_area, value: result})
1089
+ streetlist.data.forEach((result) => {
1090
+ //如果第一次进来有地址id 就拿下地址区域
1091
+ if (this.selectStreet.id && this.selectStreet.id == result.id) {
1092
+ //tag)
1093
+ this.userinfo.addressinfo.f_iscity = result.f_iscity
1094
+ }
1095
+ this.streets.push({label: result.f_street, value: result})
1198
1096
  })
1199
- ////tag)
1200
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
1201
- //f_userinfo_code:'12381344',
1202
- f_userinfo_id: this.f_userinfo_id
1203
- }, {resolveMsg: null, rejectMsg: null})
1204
- //tag
1205
- //tag
1206
- this.userinfo = res.data
1207
- this.f_phone1 = res.data.baseinfo.userphonelist[0]?res.data.baseinfo.userphonelist[0].f_rent_phone:''
1208
- this.f_phone2 = res.data.baseinfo.userphonelist[1]?res.data.baseinfo.userphonelist[1].f_rent_phone:''
1209
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1210
- this.model = this.userinfo.meterinfo[0].devicesinfo
1211
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1212
- this.selectArea.f_residential_area = this.userinfo.addressinfo.f_residential_area
1213
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1214
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1215
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1216
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1217
- await this.getStreetList()
1218
- this.getmeterinfo()
1219
- // await this.getAreaList()
1220
- this.excessive = false
1221
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1222
- //this.userinfo.addressinfo.f_special=1
1223
- //tag
1224
- } catch (e) {
1225
- this.excessive = false
1226
- this.enable = true
1227
- this.$showMessage('获取用户信息出错,请检查网络状况!')
1097
+ } else {
1098
+ this.streets = []
1228
1099
  }
1229
- new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
1100
+ },
1101
+ changeAddressType(val) {
1102
+ //tag
1103
+ if (this.addressType == '普通地址') {
1104
+ this.userinfo.addressinfo.f_special = null
1105
+ } else if (this.addressType == '特殊地址') {
1106
+ this.userinfo.addressinfo.f_special = 1
1107
+ this.userinfo.addressinfo.f_building = null
1108
+ this.userinfo.addressinfo.f_unit = null
1109
+ this.userinfo.addressinfo.f_floor = null
1110
+ this.userinfo.addressinfo.f_room = null
1111
+ }
1112
+ this.changeNewAddress()
1113
+ }
1114
+
1115
+ },
1116
+ computed: {
1117
+ getAddress() {
1118
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1119
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1120
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1121
+ (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1122
+ (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1123
+ (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1124
+ (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1125
+ },
1126
+ getAddressTS() {
1127
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1128
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1129
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1130
+ }
1131
+ },
1132
+ watch: {
1133
+
1134
+ /*'selectPcd.id' (val) {
1135
+ //tag
1136
+ if(this.selectPcd.id){
1137
+ this.getStreetList()
1138
+ }
1139
+ },
1140
+ 'selectStreet.id' (val) {
1141
+ //tag
1142
+ if(this.selectStreet.id){
1143
+ this.getAreaList()
1144
+ }
1145
+ }*/
1146
+ },
1147
+ async ready() {
1148
+ /*//tag)
1149
+
1150
+ //tag)
1151
+ //tag)*/
1152
+ //this.f_userinfo_id=1102260
1153
+ //this.f_userinfo_id=1997541
1154
+ if (!this.f_userinfo_id) {
1155
+ this.$showMessage("未检测到用户!")
1156
+ this.enable = true
1157
+ return
1158
+ }
1159
+ try {
1160
+ this.getBrand()
1161
+ this.devices_types = Vue.$appdata.getParam('设备类型')
1162
+ console.log('this.devices_types=', JSON.stringify(this.devices_types))
1163
+ for (const devices_type of this.devices_types) {
1164
+ console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1165
+ this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1166
+ }
1167
+ console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1168
+ this.wz_types = Vue.$appdata.getParam('安装位置')
1169
+ this.aroundmeters = Vue.$appdata.getParam('左右表')
1170
+
1171
+ ////tag)
1172
+ this.excessive = true
1173
+ //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1174
+
1175
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1176
+ data: {
1177
+ items: "*",
1178
+ tablename: "t_pcd",
1179
+ orderitem: "id",
1180
+ condition: `f_orgid = '${Vue.user.orgid}'`
1181
+ }
1182
+ }, {resolveMsg: null, rejectMsg: null})
1183
+ //tag)
1184
+ pcdlist.data.forEach((result) => {
1185
+ this.pcds.push({label: result.f_pcd, value: result})
1186
+ })
1187
+ let areas = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/getallarea?pageNo=1&pageSize=9999`, {
1188
+ data: {
1189
+ /*items: "*",
1190
+ tablename: "t_area",
1191
+ orderitem: "id",
1192
+ condition: `f_orgid = '${Vue.user.orgid}'`*/
1193
+ orgid:Vue.user.orgid
1194
+ }
1195
+ }, {resolveMsg: null, rejectMsg: null})
1196
+ //tag)
1197
+ areas.data.forEach((result) => {
1198
+ this.area.push({label: result.f_residential_area, value: result})
1199
+ })
1200
+ ////tag)
1201
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
1202
+ //f_userinfo_code:'12381344',
1203
+ f_userinfo_id: this.f_userinfo_id
1204
+ }, {resolveMsg: null, rejectMsg: null})
1205
+ //tag
1206
+ //tag
1207
+ this.userinfo = res.data
1208
+ this.f_phone1 = res.data.baseinfo.userphonelist[0]?res.data.baseinfo.userphonelist[0].f_rent_phone:''
1209
+ this.f_phone2 = res.data.baseinfo.userphonelist[1]?res.data.baseinfo.userphonelist[1].f_rent_phone:''
1210
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1211
+ this.model = this.userinfo.meterinfo[0].devicesinfo
1212
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1213
+ this.selectArea.f_residential_area = this.userinfo.addressinfo.f_residential_area
1214
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1215
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1216
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1217
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1218
+ await this.getStreetList()
1219
+ this.getmeterinfo()
1220
+ // await this.getAreaList()
1221
+ this.excessive = false
1222
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1223
+ //this.userinfo.addressinfo.f_special=1
1224
+ //tag
1225
+ } catch (e) {
1226
+ this.excessive = false
1227
+ this.enable = true
1228
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
1229
+ }
1230
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
1231
+ resolveMsg: null,
1232
+ rejectMsg: null
1233
+ }).then((addressUnit) => {
1234
+ //tag
1235
+ //tag
1236
+ //tag
1237
+ //tag
1238
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1239
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1240
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1241
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1242
+ }).catch((msg) => {
1243
+ //tag)
1244
+ })
1245
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是'? true : false
1246
+ console.log(this.showBox)
1247
+ if (this.showBox) {
1248
+ // 获取调压箱
1249
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/adjustableboxQuery`, {data: {condition: '1 = 1'}}, {
1230
1250
  resolveMsg: null,
1231
1251
  rejectMsg: null
1232
- }).then((addressUnit) => {
1233
- //tag
1234
- //tag
1235
- //tag
1236
- //tag
1237
- this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1238
- this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1239
- this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1240
- this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1252
+ }).then((res) => {
1253
+ const boxOptions = []
1254
+ for (const data of res.data) {
1255
+ const one = {
1256
+ label: data.f_adjustable_id + data.f_adjustable_name,
1257
+ value: Number(data.f_adjustable_id)
1258
+ }
1259
+ boxOptions.push(one)
1260
+ }
1261
+ this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1262
+ console.log(this.boxOptions)
1241
1263
  }).catch((msg) => {
1242
1264
  //tag)
1243
1265
  })
1244
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是'? true : false
1245
- console.log(this.showBox)
1246
- if (this.showBox) {
1247
- // 获取调压箱
1248
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/adjustableboxQuery`, {data: {condition: '1 = 1'}}, {
1249
- resolveMsg: null,
1250
- rejectMsg: null
1251
- }).then((res) => {
1252
- const boxOptions = []
1253
- for (const data of res.data) {
1254
- const one = {
1255
- label: data.f_adjustable_id + data.f_adjustable_name,
1256
- value: Number(data.f_adjustable_id)
1257
- }
1258
- boxOptions.push(one)
1259
- }
1260
- this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1261
- console.log(this.boxOptions)
1262
- }).catch((msg) => {
1263
- //tag)
1264
- })
1265
- }
1266
1266
  }
1267
1267
  }
1268
+ }
1268
1269
  </script>
1269
1270
  <style lang="less" scoped>
1270
- .butt3 {
1271
- float: right;
1272
- width: 12px;
1273
- margin: 1% 2% 0 0;
1274
- }
1271
+ .butt3 {
1272
+ float: right;
1273
+ width: 12px;
1274
+ margin: 1% 2% 0 0;
1275
+ }
1275
1276
 
1276
- .rightipt {
1277
- width: 60%;
1278
- float: left;
1279
- margin-left: 5%;
1280
- }
1277
+ .rightipt {
1278
+ width: 60%;
1279
+ float: left;
1280
+ margin-left: 5%;
1281
+ }
1281
1282
 
1282
- .righttxt {
1283
- border: none;
1284
- margin-left: 5px;
1285
- /*border-left: 5px solid #A2C2EB;*/
1286
- float: left;
1287
- width: 25%;
1288
- margin-bottom: 3px;
1289
- text-align: left;
1290
- word-wrap: break-word;
1291
- white-space: normal;
1292
- }
1283
+ .righttxt {
1284
+ border: none;
1285
+ margin-left: 5px;
1286
+ /*border-left: 5px solid #A2C2EB;*/
1287
+ float: left;
1288
+ width: 25%;
1289
+ margin-bottom: 3px;
1290
+ text-align: left;
1291
+ word-wrap: break-word;
1292
+ white-space: normal;
1293
+ }
1293
1294
 
1294
- .tit1 {
1295
- background-image: url('../../../assets/用户姓名.png');
1296
- background-repeat: no-repeat;
1297
- background-position: center;
1298
- }
1295
+ .tit1 {
1296
+ background-image: url('../../../assets/用户姓名.png');
1297
+ background-repeat: no-repeat;
1298
+ background-position: center;
1299
+ }
1299
1300
 
1300
- .spanboder {
1301
- border-bottom: 2px solid #499edf;
1302
- padding-bottom: 8px
1303
- }
1301
+ .spanboder {
1302
+ border-bottom: 2px solid #499edf;
1303
+ padding-bottom: 8px
1304
+ }
1304
1305
 
1305
- #upuserinfo_sel /deep/ ul {
1306
- width: 100% !important;
1307
- left: 0 !important;
1308
- }
1306
+ #upuserinfo_sel /deep/ ul {
1307
+ width: 100% !important;
1308
+ left: 0 !important;
1309
+ }
1309
1310
 
1310
- .btn-photo {
1311
- border: 0;
1312
- border-radius: 7px;
1313
- background-color: #7dc1f4;
1314
- font: 15px PingFang-SC-Bold;
1315
- height: 20%;
1316
- }
1311
+ .btn-photo {
1312
+ border: 0;
1313
+ border-radius: 7px;
1314
+ background-color: #7dc1f4;
1315
+ font: 15px PingFang-SC-Bold;
1316
+ height: 20%;
1317
+ }
1317
1318
 
1318
- .panel-self {
1319
- border-radius: 10px;
1320
- border: 1px solid #499EDF;
1321
- background-color: #F8F8F8;
1322
- }
1319
+ .panel-self {
1320
+ border-radius: 10px;
1321
+ border: 1px solid #499EDF;
1322
+ background-color: #F8F8F8;
1323
+ }
1323
1324
 
1324
- .div-photo {
1325
- width: auto;
1326
- height: auto;
1327
- /* margin-top: 10px; */
1328
- position: absolute;
1329
- bottom: 10px;
1330
- right: 10px;
1331
- }
1325
+ .div-photo {
1326
+ width: auto;
1327
+ height: auto;
1328
+ /* margin-top: 10px; */
1329
+ position: absolute;
1330
+ bottom: 10px;
1331
+ right: 10px;
1332
+ }
1332
1333
  </style>
1333
1334
  <style lang="less">
1334
- #upuserinfo_sel ul {
1335
- width: 100% !important;
1336
- left: 0 !important;
1337
- }
1335
+ #upuserinfo_sel ul {
1336
+ width: 100% !important;
1337
+ left: 0 !important;
1338
+ }
1338
1339
  </style>
1339
1340