safecheck-client 3.0.39-74 → 3.0.39-75

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