safecheck-client 3.0.39-79 → 3.0.39-80

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