safecheck-client 3.0.34-30 → 3.0.34-32

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