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