safecheck-client 3.0.34-13 → 3.0.34-16

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