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