safecheck-client 3.0.33-129 → 3.0.33-130

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