safecheck-client 4.0.1-80 → 4.0.1-82

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