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