safecheck-client 3.0.39-63 → 3.0.39-64

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