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