safecheck-client 3.0.39-74 → 3.0.39-75

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