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