safecheck-client 3.0.30-62-t6 → 3.0.30-62-t8

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