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