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