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