safecheck-client 3.0.30-62-t6 → 3.0.30-62-t8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/DefectDealMain/DefectListNew.vue +597 -597
  3. package/src/components/NewDefectList/DefectListNew.vue +52 -12
  4. package/src/components/Util/SafecheckUpload.vue +276 -265
  5. package/src/components/android/CurrentCreate.vue +2 -2
  6. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  7. package/src/components/android/PhoneUpUserinfo.vue +1230 -1230
  8. package/src/components/pc/NewCheckpaperTemp.vue +1295 -1295
  9. package/src/components/rongcheng/DefectList.vue +560 -560
  10. package/src/components/rongcheng/PhoneDevicesInfo.vue +248 -248
  11. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  12. package/src/components/userfile/SecurityAudit.vue +243 -243
  13. package/src/components/userfile/UserInfoAudit.vue +316 -316
  14. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  15. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  16. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  17. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  18. package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -986
  19. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  20. package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -878
  21. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -1234
  22. package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -272
  23. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -1053
  24. package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -254
  25. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -1269
  26. package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -1127
  27. package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -286
  28. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  29. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
  30. package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -939
  31. package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -1153
  32. package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -707
  33. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
  34. package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -968
  35. package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -1038
  36. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
  37. package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -926
  38. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  39. package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -1257
  40. package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -942
  41. package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -1198
  42. package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +926 -926
  43. package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +252 -252
  44. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  45. package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +957 -957
  46. package/src/main.js +33 -33
@@ -1,926 +1,926 @@
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
- <labe class="righttxt">用户编号:</labe>
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
- <labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly />
18
- </div>
19
- <div class="row auto" style="margin: 5px 0">
20
- <labe class="righttxt">用户状态:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo.baseinfo.base.f_user_state" />
21
- </div>
22
- <div class="row auto" style="margin: 5px 0">
23
- <labe class="righttxt">用户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone" />
24
- </div>
25
- <div class="row auto" style="margin: 5px 0">
26
- <labe class="righttxt">租户姓名:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name" />
27
- </div>
28
- <div class="row auto" style="margin: 5px 0">
29
- <labe class="righttxt">租户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone" />
30
- </div>
31
- <div class="row auto" style="margin: 5px 0">
32
- <labe class="righttxt">备用电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_phone" />
33
- </div>
34
- <div class="row auto" style="margin: 5px 0">
35
- <labe class="righttxt">地址类型:</labe>
36
- <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
37
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType1">普通地址</label></div>
38
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType2">特殊地址</label></div>
39
- </div>
40
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
41
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
42
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
43
- :width="'60%'"
44
- v-model="userinfo.addressinfo.f_iscity"
45
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
46
- </div>
47
- <div class="row auto" style="margin: 5px 0">
48
- <labe class="righttxt">地区类型:</labe>
49
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
50
- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />
51
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
52
- :width="'60%'"
53
- :disabled="true"
54
- v-model="userinfo.addressinfo.f_iscity"
55
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
56
- </div>
57
- <div class="row auto" style="margin: 5px 0">
58
- <labe class="righttxt">省&ensp;市&ensp;区:</labe>
59
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
60
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
61
- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"
62
- :width="'60%'"
63
- v-model="selectPcd"
64
- :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single @change="pcd_change()"></v-select>
65
- </div>
66
- <div class="row auto" style="margin: 5px 0">
67
- <labe class="righttxt">街道名称:</labe><!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
68
- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"
69
- :width="'60%'"
70
- v-model="selectStreet"
71
- :options='streets' placeholder='请选择街道' close-on-select clear-button value-single @change="street_change()"></v-select>
72
- </div>
73
- <div class="row auto" style="margin: 5px 0">
74
- <labe class="righttxt">集收单位:</labe>
75
- <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
76
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
77
- :width="'60%'"
78
- v-model="selectArea"
79
- :timeout="500"
80
- @select-search="select_search"
81
- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_change()"></v-select>
82
- </div>
83
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
84
- <labe class="righttxt">集收单位:</labe>
85
- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
86
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
87
- :width="'60%'"
88
- v-model="selectArea"
89
- @select-search="select_search"
90
- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
91
- </div>-->
92
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
93
- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
94
- </div>
95
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
96
- <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
97
- </div>
98
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
99
- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
100
- </div>
101
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
102
- <labe class="righttxt">门&ensp;牌&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
103
- </div>
104
- <div class="row auto" style="margin: 5px 0">
105
- <labe class="righttxt">详细地址:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo_old.addressinfo.f_address" />
106
- </div>
107
- <div class="row auto" style="margin: 5px 0">
108
- <labe class="righttxt">新&ensp;地&ensp;址:</labe><!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
109
- <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px" v-model="userinfo.addressinfo.f_address"></textarea>
110
- </div>
111
-
112
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
113
- <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
114
- <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
115
- </div>-->
116
-
117
- <div class="row auto" style="margin: 5px 0">
118
- <labe class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</labe><textarea class="form-control rightipt" style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea><!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
119
- </div>
120
- </div>
121
- </div>
122
- <div class="panel auto" >
123
- <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
124
- <span class="spanboder" >
125
- <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
126
- <img class="butt3" :src="imgback('表具信息')">
127
- </span>
128
- </div>
129
- <div class="panel-body " v-show="headername=='表具信息'">
130
- <div class="row auto" style="margin: 5px 0">
131
- <labe class="righttxt">卡&ensp;&ensp;&ensp;&ensp;号:</labe>
132
- <input type="text" :readonly="true" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_card_id" />
133
- </div>
134
- <div class="row auto" style="margin: 5px 0">
135
- <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>
136
- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify!='机表'" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meternumber" />
137
- </div>
138
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
139
- <div class="auto">
140
- <div class="panel" style="padding: 0px 15px 5px 10px;">
141
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
142
- <div class="row" style="height: 240px;">
143
- <div class="col-sm-4">
144
- <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
145
- </div>
146
- </div>
147
- <div class="row text-right div-photo" :class="style__">
148
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
149
- <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- </div>
155
- <div class="row auto" style="margin: 5px 0">
156
- <labe class="righttxt">表&ensp;封&ensp;号:</labe>
157
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />
158
- </div>
159
- <div class="row auto" style="margin: 5px 0">
160
- <labe class="righttxt">表&ensp;位&ensp;置:</labe>
161
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
162
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
163
- v-model="userinfo.meterinfo[0].f_position"
164
- placeholder='请选择'
165
- :width='wid'
166
- readonly
167
- :options="wz_types"
168
- close-on-select value-single></v-select>
169
- </div>
170
- <div class="row auto" style="margin: 5px 0">
171
- <labe class="righttxt">气表类型:</labe>
172
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
173
- </div>
174
- <div class="row auto" style="margin: 5px 0">
175
- <div style="display: flex;justify-content: center;">
176
- <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
177
- </div>
178
- </div>
179
- </div>
180
- </div>
181
- <div class="panel auto">
182
- <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
183
-
184
- <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img class="butt3" :src="imgback('设备信息')"></span>
185
- </div>
186
- <div class="panel-body" v-show="headername=='设备信息'">
187
- <div class="row" v-for="row in model" style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
188
- <div class="row auto" style="margin: 5px 0">
189
- <labe class="righttxt">设备类型:</labe>
190
- <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
191
- <v-select class="rightipt" :value.sync="row.f_devices_type"
192
- v-model="row.f_devices_type"
193
- placeholder='请选择'
194
- :width='wid'
195
- readonly
196
- :options="devices_types"
197
- close-on-select value-single></v-select>
198
- </div>
199
- <div class="row auto" style="margin: 5px 0">
200
- <labe class="righttxt">设备品牌:</labe><input type="text" class="form-control rightipt" v-model="row.f_brand" />
201
- </div>
202
- <div class="row auto" style="margin: 5px 0">
203
- <labe class="righttxt">设备型号:</labe><input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
204
- </div>
205
- <div class="row auto" style="margin: 5px 0">
206
- <labe class="righttxt">生产日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
207
- <datepicker class="rightipt"
208
- :value.sync="row.f_make_date"
209
- v-model="row.f_make_date"
210
- :disabled-days-of-Week="[]"
211
- :format="'yyyy-MM-dd'"
212
- :show-reset-button="reset" readonly="readonly">
213
- </datepicker>
214
- </div>
215
- <div class="row auto" style="margin: 5px 0">
216
- <labe class="righttxt">使用年限:</labe><input type="number" class="form-control rightipt" v-model="row.f_service_life" />
217
- </div>
218
- <div class="row auto" style="margin: 5px 0">
219
- <labe class="righttxt">到期日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />-->
220
- <datepicker class="rightipt"
221
- :value.sync="row.f_expire_date"
222
- v-model="row.f_expire_date"
223
- :disabled-days-of-Week="[]"
224
- :format="'yyyy-MM-dd'"
225
- :show-reset-button="reset" readonly="readonly">
226
- </datepicker>
227
- </div>
228
- <div class="row auto" style="margin: 5px 0">
229
- <labe class="righttxt">安&ensp;装&ensp;人:</labe><input type="text" class="form-control rightipt" v-model="row.f_input_person" />
230
- </div>
231
- <div class="row auto" style="margin: 5px 0">
232
- <labe class="righttxt">安装日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
233
- <datepicker class="rightipt"
234
- :value.sync="row.f_input_date"
235
- v-model="row.f_input_date"
236
- :disabled-days-of-Week="[]"
237
- :format="'yyyy-MM-dd'"
238
- :show-reset-button="reset" readonly="readonly">
239
- </datepicker>
240
- </div>
241
- <div class="row auto" style="margin: 5px 0">
242
- <labe class="righttxt">设备数量:</labe><input type="number" class="form-control rightipt" v-model="row.f_devices_num" />
243
- </div>
244
- <!--<div class="row auto" style="margin: 5px 0">
245
- <labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
246
- </div>-->
247
- <!--<div class="row auto" style="margin: 5px 0">
248
- <labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
249
- </div>-->
250
- <!--<div class="row auto" style="margin: 5px 0">
251
- <labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
252
- </div>-->
253
- <div style="display: flex;justify-content: center;margin-bottom: 3px" v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0" >
254
- <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
255
- </div>
256
- </div>
257
- <div style="display: flex;justify-content: space-around;">
258
- <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
259
- </div>
260
- </div>
261
- </div>
262
- <div class="panel auto">
263
- <div class="panel-body">
264
- <div style="display: flex;justify-content: center;">
265
- <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传审核</button>
266
- </div>
267
- </div>
268
- </div>
269
- </div>
270
- </template>
271
-
272
- <script>
273
- import { PagedList,HttpResetClass } from 'vue-client'
274
- import * as Util from "../../Util";
275
- import Vue from 'vue'
276
- import co from 'co'
277
- export default {
278
- title: '设备查看',
279
- data () {
280
- return {
281
- model: [],
282
- show: false,
283
- row: Object,
284
- userinfo:Object,
285
- userinfo_old:Object,
286
- wid:"60%",
287
- devices_types:[],
288
- pipe_types:[{label:'橡胶管',value:'橡胶管'},{label:'波纹管',value:'波纹管'},{label:'钢管',value:'钢管'}],
289
- wz_types:[],
290
- cityTypes:[{label:'市区',value:'市区'},{label:'城镇',value:'城镇'}],
291
- pcds:[],
292
- streets:[],
293
- update:false,
294
- headername:'基本信息',
295
- excessive:false,
296
- area:[],
297
- enable:false,
298
- f_meterno_path:Vue.nopic,
299
- selectArea:{id:''},
300
- selectPcd:{id:''},
301
- selectStreet:{id:''},
302
- changemeterno:false,//是否修改了机表表号
303
- approveChange:false,//是否需要进行信息变更审核
304
- newAddress:'',
305
- addressType:'',
306
- //需要审核的字段
307
- checkField:{
308
- checkUserinfoField:[
309
- 'f_user_name'
310
- ],
311
- checkUserFilesField:[
312
- 'f_meternumber'
313
- ],
314
- checkAddressField:[
315
- 'f_pcd_id',
316
- 'f_street_id',
317
- 'f_residential_area_id',
318
- 'f_building',
319
- 'f_unit',
320
- 'f_floor',
321
- 'f_room',
322
- 'f_slice_area',
323
- 'f_special',
324
- 'f_address'
325
- ],
326
- }
327
- }
328
- },
329
- props: {
330
- user: {
331
- type: Object
332
- },
333
- f_userinfo_id:'',
334
- f_source:''
335
- },
336
- methods: {
337
- //数据检查
338
- checkVal(){
339
- //检查一些必要信息是否未填
340
- this.approveChange=false
341
- this.changemeterno=false
342
- let checked={ischeck:true,msg:''}
343
- //tag
344
- //tag
345
- //tag
346
- if(!this.userinfo.baseinfo.base.f_user_name){
347
- checked={ischeck:false,msg:'请输入用户名称!'}
348
- }
349
- if(!this.selectPcd.id){
350
- checked={ischeck:false,msg:'请选择省市区!'}
351
- }
352
- if(!this.selectStreet.id){
353
- checked={ischeck:false,msg:'请选择街道!'}
354
- }
355
- if(!this.userinfo.addressinfo.f_address){
356
- checked={ischeck:false,msg:'新地址不能为空!'}
357
- }
358
- if(this.addressType=='普通地址'){
359
- if(!this.selectArea.id){
360
- checked={ischeck:false,msg:'请选择集收单位!'}
361
- }
362
- if(!this.userinfo.addressinfo.f_room){
363
- checked={ischeck:false,msg:'新输入门牌号!'}
364
- }
365
- }
366
- if(this.userinfo.meterinfo[0].f_meter_classify=='机表' && this.userinfo_old.meterinfo[0].f_meternumber){
367
-
368
- //tag
369
- //tag
370
- if(this.userinfo.meterinfo[0].f_meternumber){
371
- if(this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber){
372
- if(!this.f_meterno_path || this.f_meterno_path==Vue.nopic){
373
- checked={ischeck:false,msg:'请拍摄表号照片!'}
374
- }else{
375
- //用来标识当前有修改机表表号,后台需要进行照片上传
376
- this.changemeterno=true
377
- }
378
- }
379
- }else{
380
- checked={ischeck:false,msg:'请输入表号!'}
381
- }
382
- }
383
- //检查本次修改信息中是否包含需要审核的内容
384
- for(let check in this.checkField){
385
- //tag
386
- if(typeof check!='function'){
387
- for(let i = 0;i < this.checkField[check].length;i++){
388
- //tag
389
- if(check=='checkUserinfoField'){
390
- //tag
391
- //tag
392
- if(this.userinfo.baseinfo.base[this.checkField[check][i]]!=this.userinfo_old.baseinfo.base[this.checkField[check][i]]){
393
- //tag
394
- this.approveChange=true
395
- }
396
- }else if(check=='checkUserFilesField'){
397
- //tag
398
- //tag
399
- if(this.userinfo.meterinfo[0][this.checkField[check][i]]!=this.userinfo_old.meterinfo[0][this.checkField[check][i]]){
400
- //tag
401
- this.approveChange=true
402
- }
403
- }else if(check=='checkAddressField'){
404
- //tag
405
- //tag
406
- if(this.userinfo.addressinfo[this.checkField[check][i]]!=this.userinfo_old.addressinfo[this.checkField[check][i]]){
407
- //tag
408
- this.approveChange=true
409
- }
410
- }
411
- }
412
- }
413
- }
414
- //tag
415
- return checked
416
- },
417
- select_search(text){
418
- //tag
419
- if(this.selectStreet.id){
420
- let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
421
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
422
- //tag)
423
- if(res.data.length>0){
424
- this.area=[]
425
- res.data.forEach((result)=>{
426
- this.area.push({label:result.f_residential_area,value:result})
427
- })
428
- }
429
- })
430
- }else{
431
- this.area=[]
432
- }
433
- },
434
- cameraCallBack(prop, fileName) {
435
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
436
- //tag
437
- HostApp.__callback__ = null
438
- HostApp.__this__ = null
439
- },
440
- takePic(prop, title) {
441
- HostApp.__callback__ = this.cameraCallBack
442
- HostApp.__this__ = this
443
- //tag
444
- let fileName
445
- if (!this[prop] || this[prop].includes("nopic.png")) {
446
- fileName = Util.guid() + '-' + prop + '.jpg'
447
- } else {
448
- fileName = Util.getFileName(this[prop])
449
- }
450
- HostApp._open_a_page({
451
- type: 'boomerang',
452
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
453
- param: {
454
- file: fileName,
455
- requestCode: 111,
456
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
457
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
458
- }
459
- })
460
- },
461
- delfile(prop, fileName) {
462
- if (fileName == Vue.nopic)
463
- return
464
- else {
465
- HostApp.delfile(fileName)
466
- this[prop] = Vue.nopic
467
- }
468
- },
469
- editUserInfo() {
470
- let checked=this.checkVal()
471
- if(!checked.ischeck){
472
- this.$showMessage(checked.msg)
473
- return
474
- }
475
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
476
- if (res === 'confirm') {
477
- this.excessive=true
478
- let userinfoms=Object.assign({},this.userinfo_old.baseinfo.base)
479
- //userinfoms.f_user_name=row.f_user_name
480
- userinfoms.f_user_phone=this.userinfo.baseinfo.base.f_user_phone
481
- userinfoms.f_rent_name=this.userinfo.baseinfo.base.f_rent_name
482
- userinfoms.f_zuhu_phone=this.userinfo.baseinfo.base.f_zuhu_phone
483
- userinfoms.f_rent_phone=this.userinfo.baseinfo.base.f_rent_phone
484
- userinfoms.f_operator_record=Vue.user.name
485
- userinfoms.f_operatorid_record=Vue.user.id
486
- userinfoms.f_remark=this.userinfo.baseinfo.base.f_remark
487
- userinfoms.f_orgid_record=Vue.user.orgid
488
- userinfoms.f_orgname_record=Vue.user.orgs
489
- userinfoms.f_depid_record=Vue.user.depids
490
- userinfoms.f_depname_record=Vue.user.deps
491
- this.userinfo_old.meterinfo[0].f_metertitles=this.userinfo.meterinfo[0].f_metertitles
492
- this.userinfo_old.meterinfo[0].f_position=this.userinfo.meterinfo[0].f_position
493
- userinfoms.userfiles=[]
494
- this.userinfo_old.meterinfo[0].devicesinfo=this.model
495
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
496
- //tag)
497
- new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {data: {userinfo: userinfoms,modifyReason:this.f_source?`${this.f_source}维护档案信息`:'',address:{id:this.userinfo_old.addressinfo.id,oldid:this.userinfo_old.addressinfo.id}}},{resolveMsg: null, rejectMsg: null}).then((res1)=>{
498
- //tag+res1.data.status)
499
- if(res1.data.status==200){
500
- //本次修改信息包含需要审核信息
501
- if(this.approveChange){
502
- //tag
503
- let res2=this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
504
- row: {
505
- f_time: Util.toStandardTimeString(),
506
- f_modifier: Vue.user.name,//Vue.user.name
507
- f_modifier_id: Vue.user.id,//Vue.user.id
508
- f_modify_type: '用户档案',
509
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
510
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
511
- f_approved: '未审核',
512
- filialestr: Vue.user.orgid,//Vue.user.orgid
513
- version: 1,
514
- f_user_name:this.userinfo.baseinfo.base.f_user_name,
515
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
516
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
517
- f_street: this.userinfo.addressinfo.f_street,
518
- f_building: this.userinfo.addressinfo.f_building,
519
- f_unit: this.userinfo.addressinfo.f_unit,
520
- f_floor: this.userinfo.addressinfo.f_floor,
521
- f_room: this.userinfo.addressinfo.f_room,
522
- f_building_suffix:this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_building_suffix,
523
- f_unit_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_unit_suffix,
524
- f_floor_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_floor_suffix,
525
- f_room_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_room_suffix,
526
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
527
- f_address:this.userinfo.addressinfo.f_address,
528
- f_pcd:this.userinfo.addressinfo.f_pcd,
529
- f_pcd_id:this.userinfo.addressinfo.f_pcd_id,
530
- f_street_id:this.userinfo.addressinfo.f_street_id,
531
- f_residential_area_id:this.userinfo.addressinfo.f_residential_area_id,
532
- f_used_name:this.userinfo.baseinfo.base.f_used_name,
533
- f_slice_area:this.userinfo.addressinfo.f_slice_area,
534
- f_remark:this.userinfo.baseinfo.base.f_remark,
535
- f_source:this.f_source,
536
- f_meterno_path:this.f_meterno_path,
537
- f_iscity:this.userinfo.addressinfo.f_iscity,
538
- f_special:this.userinfo.addressinfo.f_special,
539
- f_meternumber:this.userinfo.meterinfo[0].f_meternumber,
540
- changemeterno:this.changemeterno
541
- },
542
- tablename: 't_modify_userinfo'
543
- })
544
- //tag)
545
- if(res2.code==200){
546
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
547
- this.enable=true
548
- this.excessive=false
549
- }else{
550
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
551
- this.excessive=false
552
- }
553
- }else{
554
- this.$showMessage("修改用户信息成功!")
555
- this.enable=true
556
- this.excessive=false
557
- }
558
-
559
- }
560
- }).catch((msg)=>{
561
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
562
- this.excessive=false
563
- })
564
-
565
- }
566
- })
567
- },
568
- imgback(header){
569
- if(this.headername==header){
570
- return require('../../../assets/xiangxia1.png')
571
- }else{
572
- return require('../../../assets/xiangyou1.png')
573
- }
574
- this.headername=header
575
- },
576
- selectVal(header){
577
- if(this.headername==header){
578
- this.headername=''
579
- }else{
580
- this.headername=header
581
- }
582
-
583
- },
584
- changeNewAddress(){
585
- this.userinfo.addressinfo.f_address=this.addressType=='普通地址'?this.getAddress:this.getAddressTS
586
- },
587
- area_change(){
588
- //tag
589
- this.userinfo.addressinfo.f_residential_area=this.selectArea.f_residential_area
590
- this.userinfo.addressinfo.f_residential_area_id=this.selectArea.id
591
- this.userinfo.addressinfo.f_slice_area=this.selectArea.f_slice_area
592
- this.changeNewAddress()
593
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
594
- },
595
- async street_change(){
596
- //tag
597
- if(this.selectStreet.id){
598
- //如果街道改变--给街道赋值!
599
- this.userinfo.addressinfo.f_street=this.selectStreet.f_street
600
- this.userinfo.addressinfo.f_street_id=this.selectStreet.id
601
- this.userinfo.addressinfo.f_iscity=this.selectStreet.f_iscity
602
- //清空当前选中小区的值
603
- this.userinfo.addressinfo.f_residential_area=''
604
- this.userinfo.addressinfo.f_residential_area_id=''
605
- this.userinfo.addressinfo.f_slice_area=''
606
- this.selectArea={id:''}
607
- this.area=[]
608
- let pcdText=` and f_street_id=${this.selectStreet.id}`
609
- let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null})
610
- ////tag)
611
- res.data.forEach((result)=>{
612
- this.area.push({label:result.f_residential_area,value:result})
613
- })
614
- }else{
615
- this.area=[]
616
- }
617
-
618
- this.changeNewAddress()
619
- },
620
- async pcd_change(){
621
- //tag
622
- if(this.selectPcd.id){
623
- //tag
624
- //如果省市区改变-重新赋值
625
- this.userinfo.addressinfo.f_pcd=this.selectPcd.f_pcd
626
- this.userinfo.addressinfo.f_pcd_id=this.selectPcd.id
627
- //清空 选中的街道和集收单位
628
- this.selectStreet={id:''}
629
- this.userinfo.addressinfo.f_street=''
630
- this.userinfo.addressinfo.f_street_id=''
631
- this.userinfo.addressinfo.f_iscity=''
632
- this.selectArea={id:''}
633
- this.userinfo.addressinfo.f_residential_area=''
634
- this.userinfo.addressinfo.f_residential_area_id=''
635
- this.userinfo.addressinfo.f_slice_area=''
636
- this.streets=[]
637
- let pcdText=`and f_pcd_id=${this.selectPcd.id}`
638
- let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
639
- streetlist.data.forEach((result)=>{
640
- this.streets.push({label:result.f_street,value:result})
641
- })
642
- }else{
643
- this.streets=[]
644
- }
645
- this.changeNewAddress()
646
- },
647
- upUserState(){
648
- //tag)
649
- if(this.userinfo.meterinfo[0].f_table_state=='正常'){
650
- let data = {
651
- f_userfiles_id: {
652
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
653
- f_table_state: '停用',
654
- version: this.userinfo.meterinfo[0].version
655
- },
656
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
657
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
658
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
659
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
660
- f_comments: '安检时发现问题关闭阀门',
661
- f_othereason:'',
662
- f_operat_type: '停用',
663
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
664
- f_state: '有效',
665
- f_operator: Vue.user.name,//${Vue.$login.f.name}
666
- f_operatorid: Vue.user.id,
667
- f_orgid: Vue.user.orgid,
668
- f_orgname: Vue.user.orgs,
669
- f_depid: Vue.user.depids,
670
- f_depname: Vue.user.deps,
671
- f_zoneid: Vue.user.zoneid,
672
- f_zones: Vue.user.zones
673
- }
674
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
675
- data, {resolveMsg: null, rejectMsg: null}).then((row) => {
676
- this.$showMessage('已成功关阀停气!')
677
- this.userinfo.meterinfo[0].f_table_state='停用'
678
- })
679
- }else{
680
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
681
- }
682
-
683
- },
684
- addDevices(){
685
- //Vue.user.name
686
- let obj={
687
- "f_operator":Vue.user.name,
688
- "f_picture":null,
689
- "f_pipe_type":null,
690
- "f_pipeinstall_date":null,
691
- "f_pipe_connection":null,
692
- "f_expire_date":null,
693
- "f_pipeexpire_date":null,
694
- "f_comments":null,
695
- "f_operate_date":Util.toStandardTimeString(),
696
- "f_operatorid":Vue.user.id,
697
- "f_devices_num":null,
698
- "f_process_id":null,
699
- "f_devices_type":null,
700
- "f_make_date":null,
701
- "f_input_date":null,
702
- "f_state":"有效",
703
- "f_brand":null,
704
- "f_devices_model":null,
705
- "f_devices_no":null,
706
- "img":{"content": null, "filename": null}
707
- }
708
- this.model.push(obj)
709
- },
710
- delDevices(idx){
711
- //tag
712
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
713
- if (res === 'confirm') {
714
- this.model.splice(idx,1)
715
- }
716
- })
717
- },
718
- async getAreaList(text){
719
- if(this.selectStreet.id){
720
- this.area=[]
721
- let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
722
- let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
723
- ////tag)
724
- res.data.forEach((result)=>{
725
- this.area.push({label:result.f_residential_area,value:result})
726
- })
727
- //tag
728
- this.area.push({label:this.userinfo.addressinfo.f_residential_area,value:{id:this.userinfo.addressinfo.f_residential_area_id,f_residential_area:this.userinfo.addressinfo.f_residential_area}})
729
- }else{
730
- this.area=[]
731
- }
732
-
733
- },
734
- async getStreetList(){
735
- if(this.selectPcd.id){
736
- //tag
737
- this.streets=[]
738
- let pcdText=`and f_pcd_id=${this.selectPcd.id}`
739
- let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
740
- streetlist.data.forEach((result)=>{
741
- //如果第一次进来有地址id 就拿下地址区域
742
- if(this.selectStreet.id && this.selectStreet.id==result.id){
743
- //tag)
744
- this.userinfo.addressinfo.f_iscity=result.f_iscity
745
- }
746
- this.streets.push({label:result.f_street,value:result})
747
- })
748
- }else{
749
- this.streets=[]
750
- }
751
- },
752
- changeAddressType (val) {
753
- //tag
754
- if(this.addressType=='普通地址'){
755
- this.userinfo.addressinfo.f_special=null
756
- }else if(this.addressType=='特殊地址'){
757
- this.userinfo.addressinfo.f_special=1
758
- this.userinfo.addressinfo.f_building=null
759
- this.userinfo.addressinfo.f_unit=null
760
- this.userinfo.addressinfo.f_floor=null
761
- this.userinfo.addressinfo.f_room=null
762
- }
763
- this.changeNewAddress()
764
- }
765
-
766
- },
767
- computed:{
768
- getAddress(){
769
- return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
770
- (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
771
- (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')+
772
- (this.userinfo.addressinfo.f_building?this.userinfo.addressinfo.f_building+(this.userinfo.addressinfo.f_building_suffix?this.userinfo.addressinfo.f_building_suffix:''):'')+
773
- (this.userinfo.addressinfo.f_unit?this.userinfo.addressinfo.f_unit+(this.userinfo.addressinfo.f_unit_suffix?this.userinfo.addressinfo.f_unit_suffix:''):'')+
774
- (this.userinfo.addressinfo.f_floor?this.userinfo.addressinfo.f_floor+(this.userinfo.addressinfo.f_floor_suffix?this.userinfo.addressinfo.f_floor_suffix:''):'')+
775
- (this.userinfo.addressinfo.f_room?this.userinfo.addressinfo.f_room+(this.userinfo.addressinfo.f_room_suffix?this.userinfo.addressinfo.f_room_suffix:''):'')
776
- },
777
- getAddressTS(){
778
- return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
779
- (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
780
- (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')
781
- }
782
- },
783
- watch: {
784
-
785
- /*'selectPcd.id' (val) {
786
- //tag
787
- if(this.selectPcd.id){
788
- this.getStreetList()
789
- }
790
- },
791
- 'selectStreet.id' (val) {
792
- //tag
793
- if(this.selectStreet.id){
794
- this.getAreaList()
795
- }
796
- }*/
797
- },
798
- async ready () {
799
- /*//tag)
800
-
801
- //tag)
802
- //tag)*/
803
- //this.f_userinfo_id=1566162
804
- //this.f_userinfo_id=1997541
805
- if(!this.f_userinfo_id){
806
- this.$showMessage("未检测到用户!")
807
- this.enable=true
808
- return
809
- }
810
- try{
811
-
812
- this.devices_types=Vue.$appdata.getParam('设备类型')
813
- this.wz_types=Vue.$appdata.getParam('安装位置')
814
- ////tag)
815
- this.excessive=true
816
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
817
-
818
- let pcdlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}'`}}, {resolveMsg: null, rejectMsg: null})
819
- //tag)
820
- pcdlist.data.forEach((result)=>{
821
- this.pcds.push({label:result.f_pcd,value:result})
822
- })
823
- ////tag)
824
- let res=await new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_getFilesDetail`, {
825
- //f_userinfo_code:'12381344',
826
- f_userinfo_id:this.f_userinfo_id
827
- }, {resolveMsg: null, rejectMsg: null})
828
- //tag
829
- //tag
830
- this.userinfo = res.data
831
- this.userinfo_old=JSON.parse(JSON.stringify(res.data))
832
- this.model = this.userinfo.meterinfo[0].devicesinfo
833
- this.selectArea.id=this.userinfo.addressinfo.f_residential_area_id
834
- this.selectPcd.id=this.userinfo.addressinfo.f_pcd_id
835
- this.selectPcd.f_pcd=this.userinfo.addressinfo.f_pcd
836
- this.selectStreet.id=this.userinfo.addressinfo.f_street_id
837
- this.selectStreet.f_street=this.userinfo.addressinfo.f_street
838
- await this.getStreetList()
839
- await this.getAreaList()
840
- this.excessive=false
841
- this.addressType=this.userinfo.addressinfo.f_special==1?'特殊地址':'普通地址'
842
- //this.userinfo.addressinfo.f_special=1
843
- //tag
844
- }catch (e) {
845
- this.excessive=false
846
- this.enable=true
847
- this.$showMessage('获取用户信息出错,请检查网络状况!')
848
- }
849
- new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,{data: {}},{resolveMsg: null, rejectMsg: null}).then((addressUnit)=>{
850
- //tag
851
- //tag
852
- //tag
853
- //tag
854
- this.userinfo.addressinfo.f_building_suffix=addressUnit.data.f_building_suffix
855
- this.userinfo.addressinfo.f_unit_suffix=addressUnit.data.f_unit_suffix
856
- this.userinfo.addressinfo.f_floor_suffix=addressUnit.data.f_floor_suffix
857
- this.userinfo.addressinfo.f_room_suffix=addressUnit.data.f_room_suffix
858
- }).catch((msg)=>{
859
- //tag)
860
- })
861
- }
862
- }
863
- </script>
864
- <style lang="less" scoped>
865
- .butt3 {
866
- float: right;
867
- width: 12px;
868
- margin: 1% 2% 0 0;
869
- }
870
- .rightipt{
871
- width: 60%;
872
- float: left;
873
- margin-left: 5%;
874
- }
875
- .righttxt{
876
- border: none;
877
- margin-left: 5px;
878
- /*border-left: 5px solid #A2C2EB;*/
879
- float: left;
880
- width: 25%;
881
- margin-bottom: 3px;
882
- text-align: left;
883
- word-wrap: break-word;
884
- white-space: normal;
885
- }
886
- .tit1{
887
- /*background: #ffffff url('../../assets/用户姓名.png') no-repeat fixed center;*/
888
- background-image: url('../../../assets/用户姓名.png');
889
- background-repeat: no-repeat;
890
- background-position: center;
891
- }
892
- .spanboder{
893
- border-bottom:2px solid #499edf;
894
- padding-bottom: 8px
895
- }
896
- #upuserinfo_sel /deep/ ul{
897
- width: 100% !important;
898
- left:0 !important;
899
- }
900
- .btn-photo {
901
- border: 0;
902
- border-radius: 7px;
903
- background-color: #7dc1f4;
904
- font: 15px PingFang-SC-Bold;
905
- height: 20%;
906
- }
907
- .panel-self {
908
- border-radius: 10px;
909
- border: 1px solid #499EDF;
910
- background-color: #F8F8F8;
911
- }
912
- .div-photo {
913
- width: auto;
914
- height: auto;
915
- /* margin-top: 10px; */
916
- position: absolute;
917
- bottom: 10px;
918
- right: 10px;
919
- }
920
- </style>
921
- <style lang="less">
922
- #upuserinfo_sel ul{
923
- width: 100% !important;
924
- left:0 !important;
925
- }
926
- </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
+ <labe class="righttxt">用户编号:</labe>
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
+ <labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly />
18
+ </div>
19
+ <div class="row auto" style="margin: 5px 0">
20
+ <labe class="righttxt">用户状态:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo.baseinfo.base.f_user_state" />
21
+ </div>
22
+ <div class="row auto" style="margin: 5px 0">
23
+ <labe class="righttxt">用户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone" />
24
+ </div>
25
+ <div class="row auto" style="margin: 5px 0">
26
+ <labe class="righttxt">租户姓名:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name" />
27
+ </div>
28
+ <div class="row auto" style="margin: 5px 0">
29
+ <labe class="righttxt">租户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone" />
30
+ </div>
31
+ <div class="row auto" style="margin: 5px 0">
32
+ <labe class="righttxt">备用电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_phone" />
33
+ </div>
34
+ <div class="row auto" style="margin: 5px 0">
35
+ <labe class="righttxt">地址类型:</labe>
36
+ <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
37
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType1">普通地址</label></div>
38
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType2">特殊地址</label></div>
39
+ </div>
40
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
41
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
42
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
43
+ :width="'60%'"
44
+ v-model="userinfo.addressinfo.f_iscity"
45
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
46
+ </div>
47
+ <div class="row auto" style="margin: 5px 0">
48
+ <labe class="righttxt">地区类型:</labe>
49
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
50
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />
51
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
52
+ :width="'60%'"
53
+ :disabled="true"
54
+ v-model="userinfo.addressinfo.f_iscity"
55
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
56
+ </div>
57
+ <div class="row auto" style="margin: 5px 0">
58
+ <labe class="righttxt">省&ensp;市&ensp;区:</labe>
59
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
60
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
61
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"
62
+ :width="'60%'"
63
+ v-model="selectPcd"
64
+ :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single @change="pcd_change()"></v-select>
65
+ </div>
66
+ <div class="row auto" style="margin: 5px 0">
67
+ <labe class="righttxt">街道名称:</labe><!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
68
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"
69
+ :width="'60%'"
70
+ v-model="selectStreet"
71
+ :options='streets' placeholder='请选择街道' close-on-select clear-button value-single @change="street_change()"></v-select>
72
+ </div>
73
+ <div class="row auto" style="margin: 5px 0">
74
+ <labe class="righttxt">集收单位:</labe>
75
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
76
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
77
+ :width="'60%'"
78
+ v-model="selectArea"
79
+ :timeout="500"
80
+ @select-search="select_search"
81
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_change()"></v-select>
82
+ </div>
83
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
84
+ <labe class="righttxt">集收单位:</labe>
85
+ &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
86
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
87
+ :width="'60%'"
88
+ v-model="selectArea"
89
+ @select-search="select_search"
90
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
91
+ </div>-->
92
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
93
+ <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
94
+ </div>
95
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
96
+ <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
97
+ </div>
98
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
99
+ <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
100
+ </div>
101
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
102
+ <labe class="righttxt">门&ensp;牌&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
103
+ </div>
104
+ <div class="row auto" style="margin: 5px 0">
105
+ <labe class="righttxt">详细地址:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo_old.addressinfo.f_address" />
106
+ </div>
107
+ <div class="row auto" style="margin: 5px 0">
108
+ <labe class="righttxt">新&ensp;地&ensp;址:</labe><!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
109
+ <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px" v-model="userinfo.addressinfo.f_address"></textarea>
110
+ </div>
111
+
112
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
113
+ <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
114
+ <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
115
+ </div>-->
116
+
117
+ <div class="row auto" style="margin: 5px 0">
118
+ <labe class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</labe><textarea class="form-control rightipt" style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea><!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
119
+ </div>
120
+ </div>
121
+ </div>
122
+ <div class="panel auto" >
123
+ <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
124
+ <span class="spanboder" >
125
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
126
+ <img class="butt3" :src="imgback('表具信息')">
127
+ </span>
128
+ </div>
129
+ <div class="panel-body " v-show="headername=='表具信息'">
130
+ <div class="row auto" style="margin: 5px 0">
131
+ <labe class="righttxt">卡&ensp;&ensp;&ensp;&ensp;号:</labe>
132
+ <input type="text" :readonly="true" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_card_id" />
133
+ </div>
134
+ <div class="row auto" style="margin: 5px 0">
135
+ <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>
136
+ <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify!='机表'" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meternumber" />
137
+ </div>
138
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
139
+ <div class="auto">
140
+ <div class="panel" style="padding: 0px 15px 5px 10px;">
141
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
142
+ <div class="row" style="height: 240px;">
143
+ <div class="col-sm-4">
144
+ <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
145
+ </div>
146
+ </div>
147
+ <div class="row text-right div-photo" :class="style__">
148
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
149
+ <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ <div class="row auto" style="margin: 5px 0">
156
+ <labe class="righttxt">表&ensp;封&ensp;号:</labe>
157
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />
158
+ </div>
159
+ <div class="row auto" style="margin: 5px 0">
160
+ <labe class="righttxt">表&ensp;位&ensp;置:</labe>
161
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
162
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
163
+ v-model="userinfo.meterinfo[0].f_position"
164
+ placeholder='请选择'
165
+ :width='wid'
166
+ readonly
167
+ :options="wz_types"
168
+ close-on-select value-single></v-select>
169
+ </div>
170
+ <div class="row auto" style="margin: 5px 0">
171
+ <labe class="righttxt">气表类型:</labe>
172
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
173
+ </div>
174
+ <div class="row auto" style="margin: 5px 0">
175
+ <div style="display: flex;justify-content: center;">
176
+ <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ <div class="panel auto">
182
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
183
+
184
+ <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img class="butt3" :src="imgback('设备信息')"></span>
185
+ </div>
186
+ <div class="panel-body" v-show="headername=='设备信息'">
187
+ <div class="row" v-for="row in model" style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
188
+ <div class="row auto" style="margin: 5px 0">
189
+ <labe class="righttxt">设备类型:</labe>
190
+ <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
191
+ <v-select class="rightipt" :value.sync="row.f_devices_type"
192
+ v-model="row.f_devices_type"
193
+ placeholder='请选择'
194
+ :width='wid'
195
+ readonly
196
+ :options="devices_types"
197
+ close-on-select value-single></v-select>
198
+ </div>
199
+ <div class="row auto" style="margin: 5px 0">
200
+ <labe class="righttxt">设备品牌:</labe><input type="text" class="form-control rightipt" v-model="row.f_brand" />
201
+ </div>
202
+ <div class="row auto" style="margin: 5px 0">
203
+ <labe class="righttxt">设备型号:</labe><input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
204
+ </div>
205
+ <div class="row auto" style="margin: 5px 0">
206
+ <labe class="righttxt">生产日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
207
+ <datepicker class="rightipt"
208
+ :value.sync="row.f_make_date"
209
+ v-model="row.f_make_date"
210
+ :disabled-days-of-Week="[]"
211
+ :format="'yyyy-MM-dd'"
212
+ :show-reset-button="reset" readonly="readonly">
213
+ </datepicker>
214
+ </div>
215
+ <div class="row auto" style="margin: 5px 0">
216
+ <labe class="righttxt">使用年限:</labe><input type="number" class="form-control rightipt" v-model="row.f_service_life" />
217
+ </div>
218
+ <div class="row auto" style="margin: 5px 0">
219
+ <labe class="righttxt">到期日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />-->
220
+ <datepicker class="rightipt"
221
+ :value.sync="row.f_expire_date"
222
+ v-model="row.f_expire_date"
223
+ :disabled-days-of-Week="[]"
224
+ :format="'yyyy-MM-dd'"
225
+ :show-reset-button="reset" readonly="readonly">
226
+ </datepicker>
227
+ </div>
228
+ <div class="row auto" style="margin: 5px 0">
229
+ <labe class="righttxt">安&ensp;装&ensp;人:</labe><input type="text" class="form-control rightipt" v-model="row.f_input_person" />
230
+ </div>
231
+ <div class="row auto" style="margin: 5px 0">
232
+ <labe class="righttxt">安装日期:</labe><!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
233
+ <datepicker class="rightipt"
234
+ :value.sync="row.f_input_date"
235
+ v-model="row.f_input_date"
236
+ :disabled-days-of-Week="[]"
237
+ :format="'yyyy-MM-dd'"
238
+ :show-reset-button="reset" readonly="readonly">
239
+ </datepicker>
240
+ </div>
241
+ <div class="row auto" style="margin: 5px 0">
242
+ <labe class="righttxt">设备数量:</labe><input type="number" class="form-control rightipt" v-model="row.f_devices_num" />
243
+ </div>
244
+ <!--<div class="row auto" style="margin: 5px 0">
245
+ <labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
246
+ </div>-->
247
+ <!--<div class="row auto" style="margin: 5px 0">
248
+ <labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
249
+ </div>-->
250
+ <!--<div class="row auto" style="margin: 5px 0">
251
+ <labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
252
+ </div>-->
253
+ <div style="display: flex;justify-content: center;margin-bottom: 3px" v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0" >
254
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
255
+ </div>
256
+ </div>
257
+ <div style="display: flex;justify-content: space-around;">
258
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ <div class="panel auto">
263
+ <div class="panel-body">
264
+ <div style="display: flex;justify-content: center;">
265
+ <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传审核</button>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </template>
271
+
272
+ <script>
273
+ import { PagedList,HttpResetClass } from 'vue-client'
274
+ import * as Util from "../../Util";
275
+ import Vue from 'vue'
276
+ import co from 'co'
277
+ export default {
278
+ title: '设备查看',
279
+ data () {
280
+ return {
281
+ model: [],
282
+ show: false,
283
+ row: Object,
284
+ userinfo:Object,
285
+ userinfo_old:Object,
286
+ wid:"60%",
287
+ devices_types:[],
288
+ pipe_types:[{label:'橡胶管',value:'橡胶管'},{label:'波纹管',value:'波纹管'},{label:'钢管',value:'钢管'}],
289
+ wz_types:[],
290
+ cityTypes:[{label:'市区',value:'市区'},{label:'城镇',value:'城镇'}],
291
+ pcds:[],
292
+ streets:[],
293
+ update:false,
294
+ headername:'基本信息',
295
+ excessive:false,
296
+ area:[],
297
+ enable:false,
298
+ f_meterno_path:Vue.nopic,
299
+ selectArea:{id:''},
300
+ selectPcd:{id:''},
301
+ selectStreet:{id:''},
302
+ changemeterno:false,//是否修改了机表表号
303
+ approveChange:false,//是否需要进行信息变更审核
304
+ newAddress:'',
305
+ addressType:'',
306
+ //需要审核的字段
307
+ checkField:{
308
+ checkUserinfoField:[
309
+ 'f_user_name'
310
+ ],
311
+ checkUserFilesField:[
312
+ 'f_meternumber'
313
+ ],
314
+ checkAddressField:[
315
+ 'f_pcd_id',
316
+ 'f_street_id',
317
+ 'f_residential_area_id',
318
+ 'f_building',
319
+ 'f_unit',
320
+ 'f_floor',
321
+ 'f_room',
322
+ 'f_slice_area',
323
+ 'f_special',
324
+ 'f_address'
325
+ ],
326
+ }
327
+ }
328
+ },
329
+ props: {
330
+ user: {
331
+ type: Object
332
+ },
333
+ f_userinfo_id:'',
334
+ f_source:''
335
+ },
336
+ methods: {
337
+ //数据检查
338
+ checkVal(){
339
+ //检查一些必要信息是否未填
340
+ this.approveChange=false
341
+ this.changemeterno=false
342
+ let checked={ischeck:true,msg:''}
343
+ //tag
344
+ //tag
345
+ //tag
346
+ if(!this.userinfo.baseinfo.base.f_user_name){
347
+ checked={ischeck:false,msg:'请输入用户名称!'}
348
+ }
349
+ if(!this.selectPcd.id){
350
+ checked={ischeck:false,msg:'请选择省市区!'}
351
+ }
352
+ if(!this.selectStreet.id){
353
+ checked={ischeck:false,msg:'请选择街道!'}
354
+ }
355
+ if(!this.userinfo.addressinfo.f_address){
356
+ checked={ischeck:false,msg:'新地址不能为空!'}
357
+ }
358
+ if(this.addressType=='普通地址'){
359
+ if(!this.selectArea.id){
360
+ checked={ischeck:false,msg:'请选择集收单位!'}
361
+ }
362
+ if(!this.userinfo.addressinfo.f_room){
363
+ checked={ischeck:false,msg:'新输入门牌号!'}
364
+ }
365
+ }
366
+ if(this.userinfo.meterinfo[0].f_meter_classify=='机表' && this.userinfo_old.meterinfo[0].f_meternumber){
367
+
368
+ //tag
369
+ //tag
370
+ if(this.userinfo.meterinfo[0].f_meternumber){
371
+ if(this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber){
372
+ if(!this.f_meterno_path || this.f_meterno_path==Vue.nopic){
373
+ checked={ischeck:false,msg:'请拍摄表号照片!'}
374
+ }else{
375
+ //用来标识当前有修改机表表号,后台需要进行照片上传
376
+ this.changemeterno=true
377
+ }
378
+ }
379
+ }else{
380
+ checked={ischeck:false,msg:'请输入表号!'}
381
+ }
382
+ }
383
+ //检查本次修改信息中是否包含需要审核的内容
384
+ for(let check in this.checkField){
385
+ //tag
386
+ if(typeof check!='function'){
387
+ for(let i = 0;i < this.checkField[check].length;i++){
388
+ //tag
389
+ if(check=='checkUserinfoField'){
390
+ //tag
391
+ //tag
392
+ if(this.userinfo.baseinfo.base[this.checkField[check][i]]!=this.userinfo_old.baseinfo.base[this.checkField[check][i]]){
393
+ //tag
394
+ this.approveChange=true
395
+ }
396
+ }else if(check=='checkUserFilesField'){
397
+ //tag
398
+ //tag
399
+ if(this.userinfo.meterinfo[0][this.checkField[check][i]]!=this.userinfo_old.meterinfo[0][this.checkField[check][i]]){
400
+ //tag
401
+ this.approveChange=true
402
+ }
403
+ }else if(check=='checkAddressField'){
404
+ //tag
405
+ //tag
406
+ if(this.userinfo.addressinfo[this.checkField[check][i]]!=this.userinfo_old.addressinfo[this.checkField[check][i]]){
407
+ //tag
408
+ this.approveChange=true
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ //tag
415
+ return checked
416
+ },
417
+ select_search(text){
418
+ //tag
419
+ if(this.selectStreet.id){
420
+ let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
421
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
422
+ //tag)
423
+ if(res.data.length>0){
424
+ this.area=[]
425
+ res.data.forEach((result)=>{
426
+ this.area.push({label:result.f_residential_area,value:result})
427
+ })
428
+ }
429
+ })
430
+ }else{
431
+ this.area=[]
432
+ }
433
+ },
434
+ cameraCallBack(prop, fileName) {
435
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
436
+ //tag
437
+ HostApp.__callback__ = null
438
+ HostApp.__this__ = null
439
+ },
440
+ takePic(prop, title) {
441
+ HostApp.__callback__ = this.cameraCallBack
442
+ HostApp.__this__ = this
443
+ //tag
444
+ let fileName
445
+ if (!this[prop] || this[prop].includes("nopic.png")) {
446
+ fileName = Util.guid() + '-' + prop + '.jpg'
447
+ } else {
448
+ fileName = Util.getFileName(this[prop])
449
+ }
450
+ HostApp._open_a_page({
451
+ type: 'boomerang',
452
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
453
+ param: {
454
+ file: fileName,
455
+ requestCode: 111,
456
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
457
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
458
+ }
459
+ })
460
+ },
461
+ delfile(prop, fileName) {
462
+ if (fileName == Vue.nopic)
463
+ return
464
+ else {
465
+ HostApp.delfile(fileName)
466
+ this[prop] = Vue.nopic
467
+ }
468
+ },
469
+ editUserInfo() {
470
+ let checked=this.checkVal()
471
+ if(!checked.ischeck){
472
+ this.$showMessage(checked.msg)
473
+ return
474
+ }
475
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
476
+ if (res === 'confirm') {
477
+ this.excessive=true
478
+ let userinfoms=Object.assign({},this.userinfo_old.baseinfo.base)
479
+ //userinfoms.f_user_name=row.f_user_name
480
+ userinfoms.f_user_phone=this.userinfo.baseinfo.base.f_user_phone
481
+ userinfoms.f_rent_name=this.userinfo.baseinfo.base.f_rent_name
482
+ userinfoms.f_zuhu_phone=this.userinfo.baseinfo.base.f_zuhu_phone
483
+ userinfoms.f_rent_phone=this.userinfo.baseinfo.base.f_rent_phone
484
+ userinfoms.f_operator_record=Vue.user.name
485
+ userinfoms.f_operatorid_record=Vue.user.id
486
+ userinfoms.f_remark=this.userinfo.baseinfo.base.f_remark
487
+ userinfoms.f_orgid_record=Vue.user.orgid
488
+ userinfoms.f_orgname_record=Vue.user.orgs
489
+ userinfoms.f_depid_record=Vue.user.depids
490
+ userinfoms.f_depname_record=Vue.user.deps
491
+ this.userinfo_old.meterinfo[0].f_metertitles=this.userinfo.meterinfo[0].f_metertitles
492
+ this.userinfo_old.meterinfo[0].f_position=this.userinfo.meterinfo[0].f_position
493
+ userinfoms.userfiles=[]
494
+ this.userinfo_old.meterinfo[0].devicesinfo=this.model
495
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
496
+ //tag)
497
+ new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {data: {userinfo: userinfoms,modifyReason:this.f_source?`${this.f_source}维护档案信息`:'',address:{id:this.userinfo_old.addressinfo.id,oldid:this.userinfo_old.addressinfo.id}}},{resolveMsg: null, rejectMsg: null}).then((res1)=>{
498
+ //tag+res1.data.status)
499
+ if(res1.data.status==200){
500
+ //本次修改信息包含需要审核信息
501
+ if(this.approveChange){
502
+ //tag
503
+ let res2=this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
504
+ row: {
505
+ f_time: Util.toStandardTimeString(),
506
+ f_modifier: Vue.user.name,//Vue.user.name
507
+ f_modifier_id: Vue.user.id,//Vue.user.id
508
+ f_modify_type: '用户档案',
509
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
510
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
511
+ f_approved: '未审核',
512
+ filialestr: Vue.user.orgid,//Vue.user.orgid
513
+ version: 1,
514
+ f_user_name:this.userinfo.baseinfo.base.f_user_name,
515
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
516
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
517
+ f_street: this.userinfo.addressinfo.f_street,
518
+ f_building: this.userinfo.addressinfo.f_building,
519
+ f_unit: this.userinfo.addressinfo.f_unit,
520
+ f_floor: this.userinfo.addressinfo.f_floor,
521
+ f_room: this.userinfo.addressinfo.f_room,
522
+ f_building_suffix:this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_building_suffix,
523
+ f_unit_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_unit_suffix,
524
+ f_floor_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_floor_suffix,
525
+ f_room_suffix: this.userinfo.addressinfo.f_special==1?null:this.userinfo.addressinfo.f_room_suffix,
526
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
527
+ f_address:this.userinfo.addressinfo.f_address,
528
+ f_pcd:this.userinfo.addressinfo.f_pcd,
529
+ f_pcd_id:this.userinfo.addressinfo.f_pcd_id,
530
+ f_street_id:this.userinfo.addressinfo.f_street_id,
531
+ f_residential_area_id:this.userinfo.addressinfo.f_residential_area_id,
532
+ f_used_name:this.userinfo.baseinfo.base.f_used_name,
533
+ f_slice_area:this.userinfo.addressinfo.f_slice_area,
534
+ f_remark:this.userinfo.baseinfo.base.f_remark,
535
+ f_source:this.f_source,
536
+ f_meterno_path:this.f_meterno_path,
537
+ f_iscity:this.userinfo.addressinfo.f_iscity,
538
+ f_special:this.userinfo.addressinfo.f_special,
539
+ f_meternumber:this.userinfo.meterinfo[0].f_meternumber,
540
+ changemeterno:this.changemeterno
541
+ },
542
+ tablename: 't_modify_userinfo'
543
+ })
544
+ //tag)
545
+ if(res2.code==200){
546
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
547
+ this.enable=true
548
+ this.excessive=false
549
+ }else{
550
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
551
+ this.excessive=false
552
+ }
553
+ }else{
554
+ this.$showMessage("修改用户信息成功!")
555
+ this.enable=true
556
+ this.excessive=false
557
+ }
558
+
559
+ }
560
+ }).catch((msg)=>{
561
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
562
+ this.excessive=false
563
+ })
564
+
565
+ }
566
+ })
567
+ },
568
+ imgback(header){
569
+ if(this.headername==header){
570
+ return require('../../../assets/xiangxia1.png')
571
+ }else{
572
+ return require('../../../assets/xiangyou1.png')
573
+ }
574
+ this.headername=header
575
+ },
576
+ selectVal(header){
577
+ if(this.headername==header){
578
+ this.headername=''
579
+ }else{
580
+ this.headername=header
581
+ }
582
+
583
+ },
584
+ changeNewAddress(){
585
+ this.userinfo.addressinfo.f_address=this.addressType=='普通地址'?this.getAddress:this.getAddressTS
586
+ },
587
+ area_change(){
588
+ //tag
589
+ this.userinfo.addressinfo.f_residential_area=this.selectArea.f_residential_area
590
+ this.userinfo.addressinfo.f_residential_area_id=this.selectArea.id
591
+ this.userinfo.addressinfo.f_slice_area=this.selectArea.f_slice_area
592
+ this.changeNewAddress()
593
+ //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
594
+ },
595
+ async street_change(){
596
+ //tag
597
+ if(this.selectStreet.id){
598
+ //如果街道改变--给街道赋值!
599
+ this.userinfo.addressinfo.f_street=this.selectStreet.f_street
600
+ this.userinfo.addressinfo.f_street_id=this.selectStreet.id
601
+ this.userinfo.addressinfo.f_iscity=this.selectStreet.f_iscity
602
+ //清空当前选中小区的值
603
+ this.userinfo.addressinfo.f_residential_area=''
604
+ this.userinfo.addressinfo.f_residential_area_id=''
605
+ this.userinfo.addressinfo.f_slice_area=''
606
+ this.selectArea={id:''}
607
+ this.area=[]
608
+ let pcdText=` and f_street_id=${this.selectStreet.id}`
609
+ let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null})
610
+ ////tag)
611
+ res.data.forEach((result)=>{
612
+ this.area.push({label:result.f_residential_area,value:result})
613
+ })
614
+ }else{
615
+ this.area=[]
616
+ }
617
+
618
+ this.changeNewAddress()
619
+ },
620
+ async pcd_change(){
621
+ //tag
622
+ if(this.selectPcd.id){
623
+ //tag
624
+ //如果省市区改变-重新赋值
625
+ this.userinfo.addressinfo.f_pcd=this.selectPcd.f_pcd
626
+ this.userinfo.addressinfo.f_pcd_id=this.selectPcd.id
627
+ //清空 选中的街道和集收单位
628
+ this.selectStreet={id:''}
629
+ this.userinfo.addressinfo.f_street=''
630
+ this.userinfo.addressinfo.f_street_id=''
631
+ this.userinfo.addressinfo.f_iscity=''
632
+ this.selectArea={id:''}
633
+ this.userinfo.addressinfo.f_residential_area=''
634
+ this.userinfo.addressinfo.f_residential_area_id=''
635
+ this.userinfo.addressinfo.f_slice_area=''
636
+ this.streets=[]
637
+ let pcdText=`and f_pcd_id=${this.selectPcd.id}`
638
+ let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
639
+ streetlist.data.forEach((result)=>{
640
+ this.streets.push({label:result.f_street,value:result})
641
+ })
642
+ }else{
643
+ this.streets=[]
644
+ }
645
+ this.changeNewAddress()
646
+ },
647
+ upUserState(){
648
+ //tag)
649
+ if(this.userinfo.meterinfo[0].f_table_state=='正常'){
650
+ let data = {
651
+ f_userfiles_id: {
652
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
653
+ f_table_state: '停用',
654
+ version: this.userinfo.meterinfo[0].version
655
+ },
656
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
657
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
658
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
659
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
660
+ f_comments: '安检时发现问题关闭阀门',
661
+ f_othereason:'',
662
+ f_operat_type: '停用',
663
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
664
+ f_state: '有效',
665
+ f_operator: Vue.user.name,//${Vue.$login.f.name}
666
+ f_operatorid: Vue.user.id,
667
+ f_orgid: Vue.user.orgid,
668
+ f_orgname: Vue.user.orgs,
669
+ f_depid: Vue.user.depids,
670
+ f_depname: Vue.user.deps,
671
+ f_zoneid: Vue.user.zoneid,
672
+ f_zones: Vue.user.zones
673
+ }
674
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
675
+ data, {resolveMsg: null, rejectMsg: null}).then((row) => {
676
+ this.$showMessage('已成功关阀停气!')
677
+ this.userinfo.meterinfo[0].f_table_state='停用'
678
+ })
679
+ }else{
680
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
681
+ }
682
+
683
+ },
684
+ addDevices(){
685
+ //Vue.user.name
686
+ let obj={
687
+ "f_operator":Vue.user.name,
688
+ "f_picture":null,
689
+ "f_pipe_type":null,
690
+ "f_pipeinstall_date":null,
691
+ "f_pipe_connection":null,
692
+ "f_expire_date":null,
693
+ "f_pipeexpire_date":null,
694
+ "f_comments":null,
695
+ "f_operate_date":Util.toStandardTimeString(),
696
+ "f_operatorid":Vue.user.id,
697
+ "f_devices_num":null,
698
+ "f_process_id":null,
699
+ "f_devices_type":null,
700
+ "f_make_date":null,
701
+ "f_input_date":null,
702
+ "f_state":"有效",
703
+ "f_brand":null,
704
+ "f_devices_model":null,
705
+ "f_devices_no":null,
706
+ "img":{"content": null, "filename": null}
707
+ }
708
+ this.model.push(obj)
709
+ },
710
+ delDevices(idx){
711
+ //tag
712
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
713
+ if (res === 'confirm') {
714
+ this.model.splice(idx,1)
715
+ }
716
+ })
717
+ },
718
+ async getAreaList(text){
719
+ if(this.selectStreet.id){
720
+ this.area=[]
721
+ let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
722
+ let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
723
+ ////tag)
724
+ res.data.forEach((result)=>{
725
+ this.area.push({label:result.f_residential_area,value:result})
726
+ })
727
+ //tag
728
+ this.area.push({label:this.userinfo.addressinfo.f_residential_area,value:{id:this.userinfo.addressinfo.f_residential_area_id,f_residential_area:this.userinfo.addressinfo.f_residential_area}})
729
+ }else{
730
+ this.area=[]
731
+ }
732
+
733
+ },
734
+ async getStreetList(){
735
+ if(this.selectPcd.id){
736
+ //tag
737
+ this.streets=[]
738
+ let pcdText=`and f_pcd_id=${this.selectPcd.id}`
739
+ let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
740
+ streetlist.data.forEach((result)=>{
741
+ //如果第一次进来有地址id 就拿下地址区域
742
+ if(this.selectStreet.id && this.selectStreet.id==result.id){
743
+ //tag)
744
+ this.userinfo.addressinfo.f_iscity=result.f_iscity
745
+ }
746
+ this.streets.push({label:result.f_street,value:result})
747
+ })
748
+ }else{
749
+ this.streets=[]
750
+ }
751
+ },
752
+ changeAddressType (val) {
753
+ //tag
754
+ if(this.addressType=='普通地址'){
755
+ this.userinfo.addressinfo.f_special=null
756
+ }else if(this.addressType=='特殊地址'){
757
+ this.userinfo.addressinfo.f_special=1
758
+ this.userinfo.addressinfo.f_building=null
759
+ this.userinfo.addressinfo.f_unit=null
760
+ this.userinfo.addressinfo.f_floor=null
761
+ this.userinfo.addressinfo.f_room=null
762
+ }
763
+ this.changeNewAddress()
764
+ }
765
+
766
+ },
767
+ computed:{
768
+ getAddress(){
769
+ return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
770
+ (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
771
+ (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')+
772
+ (this.userinfo.addressinfo.f_building?this.userinfo.addressinfo.f_building+(this.userinfo.addressinfo.f_building_suffix?this.userinfo.addressinfo.f_building_suffix:''):'')+
773
+ (this.userinfo.addressinfo.f_unit?this.userinfo.addressinfo.f_unit+(this.userinfo.addressinfo.f_unit_suffix?this.userinfo.addressinfo.f_unit_suffix:''):'')+
774
+ (this.userinfo.addressinfo.f_floor?this.userinfo.addressinfo.f_floor+(this.userinfo.addressinfo.f_floor_suffix?this.userinfo.addressinfo.f_floor_suffix:''):'')+
775
+ (this.userinfo.addressinfo.f_room?this.userinfo.addressinfo.f_room+(this.userinfo.addressinfo.f_room_suffix?this.userinfo.addressinfo.f_room_suffix:''):'')
776
+ },
777
+ getAddressTS(){
778
+ return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
779
+ (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
780
+ (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')
781
+ }
782
+ },
783
+ watch: {
784
+
785
+ /*'selectPcd.id' (val) {
786
+ //tag
787
+ if(this.selectPcd.id){
788
+ this.getStreetList()
789
+ }
790
+ },
791
+ 'selectStreet.id' (val) {
792
+ //tag
793
+ if(this.selectStreet.id){
794
+ this.getAreaList()
795
+ }
796
+ }*/
797
+ },
798
+ async ready () {
799
+ /*//tag)
800
+
801
+ //tag)
802
+ //tag)*/
803
+ //this.f_userinfo_id=1566162
804
+ //this.f_userinfo_id=1997541
805
+ if(!this.f_userinfo_id){
806
+ this.$showMessage("未检测到用户!")
807
+ this.enable=true
808
+ return
809
+ }
810
+ try{
811
+
812
+ this.devices_types=Vue.$appdata.getParam('设备类型')
813
+ this.wz_types=Vue.$appdata.getParam('安装位置')
814
+ ////tag)
815
+ this.excessive=true
816
+ //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
817
+
818
+ let pcdlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}'`}}, {resolveMsg: null, rejectMsg: null})
819
+ //tag)
820
+ pcdlist.data.forEach((result)=>{
821
+ this.pcds.push({label:result.f_pcd,value:result})
822
+ })
823
+ ////tag)
824
+ let res=await new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
825
+ //f_userinfo_code:'12381344',
826
+ f_userinfo_id:this.f_userinfo_id
827
+ }, {resolveMsg: null, rejectMsg: null})
828
+ //tag
829
+ //tag
830
+ this.userinfo = res.data
831
+ this.userinfo_old=JSON.parse(JSON.stringify(res.data))
832
+ this.model = this.userinfo.meterinfo[0].devicesinfo
833
+ this.selectArea.id=this.userinfo.addressinfo.f_residential_area_id
834
+ this.selectPcd.id=this.userinfo.addressinfo.f_pcd_id
835
+ this.selectPcd.f_pcd=this.userinfo.addressinfo.f_pcd
836
+ this.selectStreet.id=this.userinfo.addressinfo.f_street_id
837
+ this.selectStreet.f_street=this.userinfo.addressinfo.f_street
838
+ await this.getStreetList()
839
+ await this.getAreaList()
840
+ this.excessive=false
841
+ this.addressType=this.userinfo.addressinfo.f_special==1?'特殊地址':'普通地址'
842
+ //this.userinfo.addressinfo.f_special=1
843
+ //tag
844
+ }catch (e) {
845
+ this.excessive=false
846
+ this.enable=true
847
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
848
+ }
849
+ new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,{data: {}},{resolveMsg: null, rejectMsg: null}).then((addressUnit)=>{
850
+ //tag
851
+ //tag
852
+ //tag
853
+ //tag
854
+ this.userinfo.addressinfo.f_building_suffix=addressUnit.data.f_building_suffix
855
+ this.userinfo.addressinfo.f_unit_suffix=addressUnit.data.f_unit_suffix
856
+ this.userinfo.addressinfo.f_floor_suffix=addressUnit.data.f_floor_suffix
857
+ this.userinfo.addressinfo.f_room_suffix=addressUnit.data.f_room_suffix
858
+ }).catch((msg)=>{
859
+ //tag)
860
+ })
861
+ }
862
+ }
863
+ </script>
864
+ <style lang="less" scoped>
865
+ .butt3 {
866
+ float: right;
867
+ width: 12px;
868
+ margin: 1% 2% 0 0;
869
+ }
870
+ .rightipt{
871
+ width: 60%;
872
+ float: left;
873
+ margin-left: 5%;
874
+ }
875
+ .righttxt{
876
+ border: none;
877
+ margin-left: 5px;
878
+ /*border-left: 5px solid #A2C2EB;*/
879
+ float: left;
880
+ width: 25%;
881
+ margin-bottom: 3px;
882
+ text-align: left;
883
+ word-wrap: break-word;
884
+ white-space: normal;
885
+ }
886
+ .tit1{
887
+ /*background: #ffffff url('../../assets/用户姓名.png') no-repeat fixed center;*/
888
+ background-image: url('../../../assets/用户姓名.png');
889
+ background-repeat: no-repeat;
890
+ background-position: center;
891
+ }
892
+ .spanboder{
893
+ border-bottom:2px solid #499edf;
894
+ padding-bottom: 8px
895
+ }
896
+ #upuserinfo_sel /deep/ ul{
897
+ width: 100% !important;
898
+ left:0 !important;
899
+ }
900
+ .btn-photo {
901
+ border: 0;
902
+ border-radius: 7px;
903
+ background-color: #7dc1f4;
904
+ font: 15px PingFang-SC-Bold;
905
+ height: 20%;
906
+ }
907
+ .panel-self {
908
+ border-radius: 10px;
909
+ border: 1px solid #499EDF;
910
+ background-color: #F8F8F8;
911
+ }
912
+ .div-photo {
913
+ width: auto;
914
+ height: auto;
915
+ /* margin-top: 10px; */
916
+ position: absolute;
917
+ bottom: 10px;
918
+ right: 10px;
919
+ }
920
+ </style>
921
+ <style lang="less">
922
+ #upuserinfo_sel ul{
923
+ width: 100% !important;
924
+ left:0 !important;
925
+ }
926
+ </style>