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