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