safecheck-client 3.0.39-64 → 3.0.39-65

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 (41) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/index.html +2 -2
  4. package/package.json +134 -134
  5. package/src/App.vue +26 -31
  6. package/src/components/android/rejectInspecCheck.vue +303 -303
  7. package/src/components/pc/RoleSelector.vue +172 -172
  8. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  9. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  10. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  11. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -652
  12. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -637
  13. package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
  14. package/src/filiale/BFshiye/pc.js +17 -17
  15. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -775
  16. package/src/filiale/baiyin/android.js +12 -12
  17. package/src/filiale/dexin/pc/PaperList.vue +840 -840
  18. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1357
  19. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -823
  20. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
  21. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -1262
  22. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -398
  23. package/src/filiale/rongchuang/pc.js +18 -18
  24. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1339 -1339
  25. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  26. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  27. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  28. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  29. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  30. package/src/filiale/yangchunboneng/android.js +21 -21
  31. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  32. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  33. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  34. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  35. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  36. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  37. package/src/filiale/yangchunboneng/pc.js +29 -29
  38. package/src/main.js +33 -33
  39. package/src/rongcheng.js +319 -319
  40. package/src/safecheck-android.js +316 -316
  41. package/yarn-error.log +140 -0
@@ -1,1339 +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 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
-
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
+