telephone-clients 3.0.103-98 → 3.0.103-99

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