safecheck-client 3.0.39-73 → 3.0.39-74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -26
  3. package/src/components/android/rejectInspecCheck.vue +322 -322
  4. package/src/components/pc/RoleSelector.vue +172 -172
  5. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  6. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  7. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  8. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -652
  9. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -637
  10. package/src/filiale/BFshiye/pc/NewCheckpaper.vue +1962 -1962
  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/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -532
  23. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1340 -1340
  24. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  25. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  26. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  27. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  28. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  29. package/src/filiale/yangchunboneng/android.js +21 -21
  30. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  31. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  32. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  33. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  34. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  35. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  36. package/src/filiale/yangchunboneng/pc.js +29 -29
  37. package/src/main.js +1 -1
  38. package/src/rongcheng.js +319 -319
  39. package/src/safecheck-android.js +316 -316
  40. package/yarn-error.log +0 -140
@@ -1,1962 +1,1962 @@
1
- <style scoped id="printStyle">
2
- .img {
3
- border: 1px solid #9773ed;
4
- width: auto;
5
- height: auto;
6
- float: left;
7
- text-align: center;
8
- margin: 6px;
9
- }
10
-
11
- img {
12
- margin: 6px;
13
- }
14
-
15
-
16
- .container {
17
- margin: 10px auto;
18
- width: 80%;
19
- height: auto;
20
- }
21
-
22
- div::-webkit-scrollbar {
23
- width: 0 !important;
24
- height: 0 !important;
25
- }
26
-
27
- div {
28
- -ms-overflow-style: none;
29
- overflow: -moz-scrollbars-none;
30
- }
31
-
32
- .divmask {
33
- pointer-events: none;
34
- }
35
-
36
- .app-header {
37
- border-radius: 50%;
38
- background: rgba(73, 158, 223, 0.4);
39
- color: #FFF;
40
- padding: 20px;
41
- text-align: center;
42
- font-size: 1.2em;
43
- z-index: 10;
44
- opacity: 0.5;
45
- bottom: 50px;
46
- margin-top: -20px;
47
- position: absolute;
48
- top: 10%;
49
- right: 2%;
50
- height: 8%;
51
- }
52
- </style>
53
-
54
- <template>
55
- <div class="basic-main" style="height: 100%">
56
- <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
- <div @click="back()">
58
- <img src="../../../assets/back.png" style="margin: 0px"/>
59
- </div>
60
- </div>
61
- <div v-show="showPdfDownload" class="page-header app-header auto"
62
- style="padding: 15px;margin-right: 3.7%;right: 0%;height: 7%">
63
- <div @click="exportToPDF()">
64
- <img src="../../../assets/下载_.png" style="margin: 0px;width: 30px"/>
65
- </div>
66
- </div>
67
- <work-busy :is-busy="loading"></work-busy>
68
- <div class="container-fluid" style="overflow: scroll">
69
- <div class="row">
70
- <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
71
- <div style="width: 100%;margin: auto">
72
- <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
73
- <thead>
74
- <tr>
75
- <th colspan="6" style="text-align: center">用户基本信息</th>
76
- </tr>
77
- </thead>
78
- <tbody>
79
- <tr>
80
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
81
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
82
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
83
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
84
- </tr>
85
- <tr>
86
- <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
87
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
88
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
89
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
90
- </tr>
91
- <tr>
92
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
93
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
94
- <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
95
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
96
- </tr>
97
- <tr>
98
- <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
99
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
100
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
101
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
102
- </tr>
103
- <tr>
104
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
105
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
106
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
107
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
108
- </tr>
109
- <tr>
110
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
111
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
112
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
113
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
114
- </tr>
115
- <tr>
116
- <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
117
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
118
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
120
- </tr>
121
- <tr>
122
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
123
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
124
- </tr>
125
- </tbody>
126
- </table>
127
- <table class="table table-striped table-bordered" style="margin-top: 40px"
128
- v-show="paperdata.f_entry_status=='入户'">
129
- <thead>
130
- <tr>
131
- <th colspan="4" style="text-align: center">用户安检概况</th>
132
- </tr>
133
- </thead>
134
- <tbody>
135
- <tr>
136
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
137
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
138
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
139
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
140
- </tr>
141
- <tr>
142
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
143
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
144
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
145
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
146
- </tr>
147
- <tr>
148
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
149
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
150
- paperdata.f_client_evaluation
151
- }}
152
- </td>
153
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
154
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
155
- :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
156
- </td>
157
- </tr>
158
- <tr>
159
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
160
- <td colspan="3"
161
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
162
- {{ paperdata.f_repair_approved_note }}
163
- </td>
164
- </tr>
165
- <tr>
166
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
167
- <td colspan="3"
168
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
169
- <span v-for="deviceCollect in deviceCollects">
170
- <span class="li-font">
171
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
172
- </span>
173
- <br>
174
- <span v-if="deviceCollect.value == '有隐患'">
175
- <lable>
176
- 隐患:
177
- </lable>
178
- <span v-for="val in deviceCollect.devices">
179
- {{ val }}
180
- </span><br>
181
- </span>
182
-
183
- </span>
184
- </td>
185
- </tr>
186
- <tr>
187
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">是否已处理:</td>
188
- <td colspan="3"
189
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">{{paperdata.f_is_handle}}
190
- </td>
191
- </tr>
192
-
193
- </tbody>
194
- </table>
195
- <table class="table table-striped table-bordered" style="margin-top: 40px"
196
- v-show="paperdata.f_entry_status!='入户'">
197
- <thead>
198
- <tr>
199
- <th colspan="4" style="text-align: center">用户安检概况</th>
200
- </tr>
201
- </thead>
202
- <tbody>
203
- <tr>
204
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
205
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
206
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
207
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
208
- </tr>
209
- <tr>
210
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
211
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
212
- {{ paperdata.f_entry_status }}
213
- </td>
214
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
215
- <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
216
- {{ dev.lname }}
217
- 查看{{ data.f_entry_status }}照片
218
- </button-link>
219
- </td>
220
- </tr>
221
-
222
- </tbody>
223
- </table>
224
- <table class="table table-striped table-bordered" style="margin-top: 40px"
225
- v-show="item.f_no_checkplan == '复检'">
226
- <thead>
227
- <tr>
228
- <th colspan="4" style="text-align: center">上次安检情况</th>
229
- </tr>
230
- </thead>
231
- <tbody>
232
- <tr>
233
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
234
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
235
- lastCheckData.f_onsite_time
236
- }}
237
- </td>
238
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
239
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
240
- lastCheckData.f_offsite_time
241
- }}
242
- </td>
243
- </tr>
244
- <tr>
245
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
246
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
247
- {{ lastCheckData.f_checker_name }}
248
- </td>
249
- </tr>
250
- <tr>
251
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
252
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
253
- {{ lastCheckData.f_defect_text }}
254
- </td>
255
- </tr>
256
-
257
- </tbody>
258
- </table>
259
- <table class="table table-striped table-bordered" style="margin-top: 35px"
260
- v-show="paperdata.f_entry_status=='入户' && paperdata.f_usegas == '未用气'">
261
- <thead>
262
- <tr>
263
- <th style="text-align: center">未用气照片</th>
264
- </tr>
265
- </thead>
266
- <tbody>
267
- <tr>
268
- <td style="margin: auto;text-align: center">
269
- <div class="container" style="max-width: 550px;background: #FFFFFF">
270
- <div class="img">
271
- <img-self-plus :src="paperdata.f_nongasuser_path" style="float: left" width="150"
272
- height="200"></img-self-plus>
273
- </div>
274
- </div>
275
- </td>
276
- </tr>
277
- </tbody>
278
- </table>
279
- <table class="table table-striped table-bordered" style="margin-top: 35px"
280
- v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
281
- <thead>
282
- <tr>
283
- <th style="text-align: center">隐患照片</th>
284
- </tr>
285
- </thead>
286
- <tbody>
287
- <tr>
288
- <td style="margin: auto;text-align: center">
289
- <div class="container" style="max-width: 550px;background: #FFFFFF">
290
- <div class="img" v-for="img in deviceImgs">
291
- <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
292
- width="150"
293
- height="200"></img-self-plus>
294
- </div>
295
- </div>
296
-
297
-
298
- </td>
299
-
300
- </tr>
301
- </tbody>
302
- </table>
303
- <table class="table table-striped table-bordered" style="margin-top: 35px"
304
- v-show="paperdata.f_entry_status=='入户'">
305
- <thead>
306
- <tr>
307
- <th style="text-align: center">总体安检照片</th>
308
- </tr>
309
- </thead>
310
- <tbody>
311
- <tr>
312
- <td style="margin: auto;text-align: center">
313
- <div class="container" style="max-width: 550px;background: #FFFFFF">
314
- <div class="img" v-for="img in paperdata.f_overall_imgs">
315
- <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
316
- width="150"
317
- height="200"></img-self-plus>
318
- </div>
319
- </div>
320
-
321
-
322
- </td>
323
-
324
- </tr>
325
- </tbody>
326
- </table>
327
- <table class="table table-striped table-bordered" style="width: 100%"
328
- v-show="paperdata.f_entry_status=='入户' && (paperdata.f_sign_path || f_user_path) ">
329
- <thead>
330
- <tr>
331
- <th style="text-align: center">用户签名照片</th>
332
- </tr>
333
- </thead>
334
- <tbody>
335
- <tr>
336
- <td style="margin: auto;text-align: center" v-if="paperdata.f_sign_path">
337
- <div class="container" style="max-width: 500px;background: #FFFFFF" >
338
- <div class="img" style="float: none">
339
- <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
340
- </div>
341
- </div>
342
- </td>
343
- <td style="margin: auto;text-align: center" v-if="f_user_path">
344
- <div class="container" style="max-width: 550px;background: #FFFFFF" >
345
- <div class="img" style="float: none">
346
- <img-self-plus :src="'rs/image/file/'+f_user_path"
347
- width="200"
348
- height="200"></img-self-plus>
349
- </div>
350
- </div>
351
- </td>
352
- </tr>
353
- </tbody>
354
- </table>
355
- <table class="table table-striped table-bordered"
356
- v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
357
- <thead>
358
- <tr>
359
- <th style="text-align: center">安检通知书/隐患整改通知书</th>
360
- </tr>
361
- </thead>
362
- <tbody>
363
- <tr>
364
- <td style="margin: auto;text-align: center">
365
- <div class="container" style="max-width: 500px;background: #FFFFFF">
366
- <div class="img" style="float: none">
367
- <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
368
- </div>
369
- </div>
370
- </td>
371
- </tr>
372
- </tbody>
373
- </table>
374
- <table class="table table-striped table-bordered"
375
- v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
376
- <thead>
377
- <tr>
378
- <th style="text-align: center">安检视频</th>
379
- </tr>
380
- </thead>
381
- <tbody>
382
- <tr>
383
- <td style="margin: auto;text-align: center">
384
- <div class="container" style="max-width: 500px;background: #FFFFFF">
385
- <video width="320" height="200" controls v-if="paperdata.f_video_path">
386
- <source :src="paperdata.f_video_path" type="video/mp4">
387
- </video>
388
- </div>
389
- </td>
390
- </tr>
391
- </tbody>
392
- </table>
393
- <table class="table table-striped table-bordered"
394
- v-show="item.f_recording1_path">
395
- <thead>
396
- <tr>
397
- <th style="text-align: center">录音文件</th>
398
- </tr>
399
- </thead>
400
- <tbody>
401
- <tr>
402
- <td style="margin: auto;text-align: center">
403
- <div class="container" style="max-width: 500px;background: #FFFFFF">
404
- <a class="button_spacing button_search-1"
405
- :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
406
- :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
407
- </div>
408
- </td>
409
- </tr>
410
- </tbody>
411
- </table>
412
- </div>
413
- </div>
414
- <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
415
- <div class="col-md-6" style="height: 100%;overflow: scroll">
416
- <div style="width: 95%;margin-left: 5%">
417
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2" style="margin-top: 35px">
418
- <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
419
- <tr>
420
- <th style="text-align: center">{{ config.checkname }}</th>
421
- </tr>
422
- </thead>
423
- <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
424
- <tr v-for="dev in config.items">
425
- <td v-if="dev.type!='text' && dev.isshow != false">
426
- <div class="row">
427
- <div class="col-md-8" style="text-align: center;">
428
- <label>
429
- <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
430
- :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
431
- {{ dev.lname }}
432
- </button-link>
433
- </label>
434
- </div>
435
- <div class="col-md-4" style="text-align: center">
436
- <label style="font-weight: normal"
437
- v-if="dev.type!='picture'">{{
438
- getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
439
- }}</label>
440
- <label style="font-weight: normal" v-if="dev.type=='picture'">
441
- <div v-show="getDevicePath(config.checkname,dev.lname)">
442
- <button-link style="color: black" type="button" class="btn btn-link"
443
- @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
444
- </button-link>
445
- </div>
446
- <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
447
- </label>
448
- </div>
449
- </div>
450
- </td>
451
- <td v-if="dev.type==='text' && dev.isshow != false">
452
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
453
- </td>
454
- </tr>
455
- </tbody>
456
- </table>
457
- <div>
458
- <button class="button_spacing button_search" @click="auditSuccesss()">通过</button>
459
- <button class="button_spacing button_search" @click="auditFail()">不通过</button>
460
- </div>
461
- </div>
462
- </div>
463
-
464
- </div>
465
- </div>
466
- <div v-show="false">
467
- <div class="container-fluid" id="toPdf" style="overflow: scroll">
468
- <div class="row">
469
- <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
470
- <div style="width: 100%;margin: auto">
471
- <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
472
- <thead>
473
- <tr>
474
- <th colspan="6" style="text-align: center">用户基本信息</th>
475
- </tr>
476
- </thead>
477
- <tbody>
478
- <tr>
479
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
480
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
481
- paperdata.f_userinfo_code
482
- }}
483
- </td>
484
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
485
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
486
- </tr>
487
- <tr>
488
- <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
489
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
490
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
491
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
492
- </tr>
493
- <tr>
494
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
495
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
496
- <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
497
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
498
- </tr>
499
- <tr>
500
- <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
501
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
502
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
503
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
504
- </tr>
505
- <tr>
506
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
507
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
508
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
509
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
510
- </tr>
511
- <tr>
512
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
513
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
514
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
515
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
516
- </tr>
517
- <tr>
518
- <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
519
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
520
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
521
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
522
- </tr>
523
- <tr>
524
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
525
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
526
- </tr>
527
- </tbody>
528
- </table>
529
- <table class="table table-striped table-bordered" style="margin-top: 40px"
530
- v-show="paperdata.f_entry_status=='入户'">
531
- <thead>
532
- <tr>
533
- <th colspan="4" style="text-align: center">用户安检概况</th>
534
- </tr>
535
- </thead>
536
- <tbody>
537
- <tr>
538
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
539
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
540
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
541
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
542
- paperdata.f_offsite_time
543
- }}
544
- </td>
545
- </tr>
546
- <tr>
547
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
548
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
549
- paperdata.f_entry_status
550
- }}
551
- </td>
552
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
553
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
554
- </tr>
555
- <tr>
556
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
557
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
558
- paperdata.f_client_evaluation
559
- }}
560
- </td>
561
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
562
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
563
- :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
564
- </td>
565
- </tr>
566
- <tr>
567
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
568
- <td colspan="3"
569
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
570
- {{ paperdata.f_repair_approved_note }}
571
- </td>
572
- </tr>
573
- <tr>
574
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
575
- <td colspan="3"
576
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
577
- <span v-for="deviceCollect in deviceCollects">
578
- <span class="li-font">
579
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
580
- </span>
581
- <br>
582
- <span v-if="deviceCollect.value == '有隐患'">
583
- <lable>
584
- 隐患:
585
- </lable>
586
- <span v-for="val in deviceCollect.devices">
587
- {{ val }}
588
- </span><br>
589
- </span>
590
-
591
- </span>
592
- </td>
593
- </tr>
594
-
595
- </tbody>
596
- </table>
597
- <table class="table table-striped table-bordered" style="margin-top: 40px"
598
- v-show="paperdata.f_entry_status!='入户'">
599
- <thead>
600
- <tr>
601
- <th colspan="4" style="text-align: center">用户安检概况</th>
602
- </tr>
603
- </thead>
604
- <tbody>
605
- <tr>
606
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
607
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
608
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
609
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
610
- paperdata.f_offsite_time
611
- }}
612
- </td>
613
- </tr>
614
- <tr>
615
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
616
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
617
- {{ paperdata.f_entry_status }}
618
- </td>
619
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
620
- <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
621
- {{ dev.lname }}
622
- 查看{{ data.f_entry_status }}照片
623
- </button-link>
624
- </td>
625
- </tr>
626
-
627
- </tbody>
628
- </table>
629
- <table class="table table-striped table-bordered" style="margin-top: 40px"
630
- v-show="item.f_no_checkplan == '复检'">
631
- <thead>
632
- <tr>
633
- <th colspan="4" style="text-align: center">上次安检情况</th>
634
- </tr>
635
- </thead>
636
- <tbody>
637
- <tr>
638
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
639
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
640
- lastCheckData.f_onsite_time
641
- }}
642
- </td>
643
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
644
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
645
- lastCheckData.f_offsite_time
646
- }}
647
- </td>
648
- </tr>
649
- <tr>
650
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
651
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
652
- {{ lastCheckData.f_checker_name }}
653
- </td>
654
- </tr>
655
- <tr>
656
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
657
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
658
- {{ lastCheckData.f_defect_text }}
659
- </td>
660
- </tr>
661
-
662
- </tbody>
663
- </table>
664
- <table class="table table-striped table-bordered" style="margin-top: 35px"
665
- v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
666
- <thead>
667
- <tr>
668
- <th style="text-align: center">隐患照片</th>
669
- </tr>
670
- </thead>
671
- <tbody>
672
- <tr>
673
- <td style="margin: auto;text-align: center">
674
- <div class="container" style="max-width: 550px;background: #FFFFFF">
675
- <div class="img" v-for="img in deviceImgs">
676
- <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
677
- width="150"
678
- height="200"></img-self-plus>
679
- </div>
680
- </div>
681
-
682
-
683
- </td>
684
-
685
- </tr>
686
- </tbody>
687
- </table>
688
- <table class="table table-striped table-bordered" style="margin-top: 35px"
689
- v-show="paperdata.f_entry_status=='入户'">
690
- <thead>
691
- <tr>
692
- <th style="text-align: center">总体安检照片</th>
693
- </tr>
694
- </thead>
695
- <tbody>
696
- <tr>
697
- <td style="margin: auto;text-align: center">
698
- <div class="container" style="max-width: 550px;background: #FFFFFF">
699
- <div class="img" v-for="img in paperdata.f_overall_imgs">
700
- <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
701
- width="150"
702
- height="200"></img-self-plus>
703
- </div>
704
- </div>
705
-
706
-
707
- </td>
708
-
709
- </tr>
710
- </tbody>
711
- </table>
712
- <table class="table table-striped table-bordered" style="width: 100%"
713
- v-show="paperdata.f_entry_status=='入户'">
714
- <thead>
715
- <tr>
716
- <th style="text-align: center">用户签名照片</th>
717
- </tr>
718
- </thead>
719
- <tbody>
720
- <tr>
721
- <td style="margin: auto;text-align: center">
722
- <div class="container" style="max-width: 500px;background: #FFFFFF">
723
- <div class="img" style="float: none">
724
- <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
725
- </div>
726
- </div>
727
- </td>
728
- <td style="margin: auto;text-align: center">
729
- <div class="container" style="max-width: 550px;background: #FFFFFF" v-if="f_user_path">
730
- <div class="img" style="float: none">
731
- <img-self-plus :src="'rs/image/file/'+f_user_path"
732
- width="200"
733
- height="200"></img-self-plus>
734
- </div>
735
- </div>
736
- </td>
737
- </tr>
738
- </tbody>
739
- </table>
740
- <table class="table table-striped table-bordered"
741
- v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
742
- <thead>
743
- <tr>
744
- <th style="text-align: center">安检通知书/隐患整改通知书</th>
745
- </tr>
746
- </thead>
747
- <tbody>
748
- <tr>
749
- <td style="margin: auto;text-align: center">
750
- <div class="container" style="max-width: 500px;background: #FFFFFF">
751
- <div class="img" style="float: none">
752
- <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
753
- </div>
754
- </div>
755
- </td>
756
- </tr>
757
- </tbody>
758
- </table>
759
- <table class="table table-striped table-bordered"
760
- v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
761
- <thead>
762
- <tr>
763
- <th style="text-align: center">安检视频</th>
764
- </tr>
765
- </thead>
766
- <tbody>
767
- <tr>
768
- <td style="margin: auto;text-align: center">
769
- <div class="container" style="max-width: 500px;background: #FFFFFF">
770
- <video width="320" height="200" controls v-if="paperdata.f_video_path">
771
- <source :src="paperdata.f_video_path" type="video/mp4">
772
- </video>
773
- </div>
774
- </td>
775
- </tr>
776
- </tbody>
777
- </table>
778
- <table class="table table-striped table-bordered"
779
- v-show="item.f_recording1_path">
780
- <thead>
781
- <tr>
782
- <th style="text-align: center">录音文件</th>
783
- </tr>
784
- </thead>
785
- <tbody>
786
- <tr>
787
- <td style="margin: auto;text-align: center">
788
- <div class="container" style="max-width: 500px;background: #FFFFFF">
789
- <a class="button_spacing button_search-1"
790
- :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
791
- :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
792
- </div>
793
- </td>
794
- </tr>
795
- </tbody>
796
- </table>
797
- </div>
798
- </div>
799
- <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
800
- <div style="width: 95%;margin-left: 5%">
801
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2"
802
- style="margin-top: 35px">
803
- <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
804
- <tr>
805
- <th style="text-align: center">{{ config.checkname }}</th>
806
- </tr>
807
- </thead>
808
- <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
809
- <tr v-for="dev in config.items">
810
- <td v-if="dev.type!='text' && dev.isshow != false">
811
- <div class="row">
812
- <div class="col-md-8" style="text-align: center;">
813
- <label>
814
- <button-link type="button" class="btn btn-link"
815
- @click="showpicture(config.checkname,dev.lname)"
816
- :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
817
- {{ dev.lname }}
818
- </button-link>
819
- </label>
820
- </div>
821
- <div class="col-md-4" style="text-align: center">
822
- <label style="font-weight: normal"
823
- v-if="dev.type!='picture'">{{
824
- getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
825
- }}</label>
826
- <label style="font-weight: normal" v-if="dev.type=='picture'">
827
- <div v-show="getDevicePath(config.checkname,dev.lname)">
828
- <button-link style="color: black" type="button" class="btn btn-link"
829
- @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
830
- </button-link>
831
- </div>
832
- <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
833
- </label>
834
- </div>
835
- </div>
836
- </td>
837
- <td v-if="dev.type==='text' && dev.isshow != false">
838
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
839
- </td>
840
- </tr>
841
- </tbody>
842
- </table>
843
- </div>
844
- </div>
845
-
846
- </div>
847
- </div>
848
- </div>
849
- </div>
850
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
851
- <header slot="modal-header" class="modal-header">
852
- {{ picturename }}
853
- </header>
854
- <article slot="modal-body" class="modal-body">
855
- <div class="from-group">
856
- <div class="row">
857
- <div class="col-md-6">
858
- <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
859
- </div>
860
- <div class="col-md-6">
861
- <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
862
- </div>
863
- <div class="col-md-6" v-for="item in otherDarginShowImgs">
864
- <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
865
- </div>
866
- </div>
867
- </div>
868
- </article>
869
- <footer slot="modal-footer" class="modal-footer" v-show="false">
870
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
871
- </footer>
872
- </modal>
873
- <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
874
- <header slot="modal-header" class="modal-header">
875
- {{ paperdata.f_entry_status }}照片
876
- </header>
877
- <article slot="modal-body" class="modal-body">
878
- <div class="from-group">
879
- <div class="row">
880
- <div class="col-md-6">
881
- <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer_path" :src="showimg3"
882
- width="282"
883
- height="400"></img-self-plus>
884
- </div>
885
- <div class="col-md-6">
886
- <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer1_path"
887
- :src="showimg5" width="282"
888
- height="400"></img-self-plus>
889
- </div>
890
- <div class="col-md-6">
891
- <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer2_path"
892
- :src="showimg6" width="282"
893
- height="400"></img-self-plus>
894
- </div>
895
- <div class="col-md-6">
896
- <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck_path"
897
- :src="showimg4" width="282"
898
- height="400"></img-self-plus>
899
- </div>
900
- <div class="col-md-6">
901
- <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck1_path"
902
- :src="showimg7" width="282"
903
- height="400"></img-self-plus>
904
- </div>
905
- <div class="col-md-6">
906
- <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck2_path"
907
- :src="showimg8" width="282"
908
- height="400"></img-self-plus>
909
- </div>
910
- </div>
911
- </div>
912
- </article>
913
- <footer slot="modal-footer" class="modal-footer" v-show="false">
914
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
915
- </footer>
916
- </modal>
917
- <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
918
- <div slot="modal-header" class="modal-header">
919
- <h4 class="modal-title">
920
- 安检审核备注
921
- </h4>
922
- </div>
923
- <div slot="modal-body" class="modal-body">
924
- <div class="row">
925
- <div class="form-group col-sm-4">
926
- <label class="font_normal_body">审核备注:</label>
927
- <textarea v-model="message"></textarea>
928
- </div>
929
- </div>
930
- </div>
931
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
932
- <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
933
- <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
934
- </div>
935
- </modal>
936
- </template>
937
-
938
- <script>
939
- import html2pdf from 'html2pdf.js'
940
- import ObjConfig from '../../../utils/GerJsonObjectConfig'
941
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
942
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
943
- import Vue from 'vue'
944
- import * as Util from '../../Util'
945
- import {jsonSort} from '../../../utils/LdapHelper'
946
- import {HttpResetClass} from "vue-client";
947
- import {forEach} from "mocha/lib/utils";
948
-
949
- let asyncReady = async function (self) {
950
- // 获取配置信息
951
- try {
952
- let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
953
- data: {
954
- items: 'f_dir',
955
- tablename: 't_organization',
956
- condition: `id = '${self.item.f_filialeid}'`,
957
- orderitem: 'id'
958
- }
959
- })/*.then(res=>{*/
960
- //tag
961
- //tag)
962
- console.log(res)
963
- if (!res.data[0].f_dir) {
964
- self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
965
- } else {
966
- //this.f_dir=res.data[0].f_dir
967
- let url = self.newConfig == '是' ? '/safecheck/rs/safe_vue' : '/safecheck/rs/vue'
968
- try {
969
- let res1 = await new HttpResetClass().load('GET', `${url}/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
970
- resolveMsg: '获取居民配置项成功!',
971
- rejectMsg: '获取居民配置项出错!'
972
- })/*.then(res=>{*/
973
- //tag
974
- //this.safeConfig["民用配置项"]=Object.assign({},res.data)
975
- if (!Vue.config.safecheck) {
976
- Vue.config = {safecheck: {}}
977
- }
978
- Vue.config.safecheck.DevicesConfig = res1.data
979
- console.log(Vue.config.safecheck.DevicesConfig)
980
- /*})*/
981
- let res2 = await new HttpResetClass().load('GET', `${url}/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
982
- resolveMsg: '获取非居民配置项成功!',
983
- rejectMsg: '获取非居民配置项出错!'
984
- })/*.then(res=>{*/
985
- //tag
986
- //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
987
- Vue.config.safecheck.DevicesSetConfig = res2.data
988
- /*}).then(res=> {
989
- })*/
990
-
991
- } catch (e) {
992
- self.$showMessage("获取配置文件失败" + e)
993
- self.loading = false
994
- }
995
- }
996
- if (self.data.f_recheck_id) {
997
- let res3 = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
998
- data: {
999
- items: '*',
1000
- tablename: 't_check_paper',
1001
- condition: `id = '${self.data.f_recheck_id}'`,
1002
- orderitem: 'id'
1003
- }
1004
- })
1005
- self.lastCheckData = res3.data[0]
1006
- }
1007
- } catch (error) {
1008
- // 忽略704,文件找不到异常R
1009
- if (error.status !== 704) {
1010
- throw error
1011
- }
1012
- this.loading = false
1013
- }
1014
- }
1015
- export default {
1016
- title: '安检单',
1017
- props: ['f_plan_id', 'item', 'role'],
1018
- data() {
1019
- return {
1020
- f_user_path:'',
1021
- message: '',
1022
- showButton: false,
1023
- showModel: false,
1024
- data: {
1025
- f_devices: [],
1026
- f_defect_content: ''
1027
- },
1028
- showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
1029
- showPdfImg: this.$appdata.getSingleValue('安检结果pdf展示隐患照片') ? this.$appdata.getSingleValue('安检结果pdf展示隐患照片') : false,
1030
- lastCheckData: {},
1031
- paperdata: {},
1032
- picturename: '隐患照片',
1033
- defectDevice: {},
1034
- hasDevice: false,
1035
- deviceCollect: {},
1036
- deviceCollects: [],
1037
- deviceImgs:[],
1038
- isshow: false,
1039
- ajresult: '',
1040
- loading: true,
1041
- imgshow: false,
1042
- imgshow2: false,
1043
- isUpload: false,
1044
- livedispose: '',
1045
- showimg1: '',
1046
- showimg2: '',
1047
- showimg3: '',
1048
- showimg4: '',
1049
- showimg5: '',
1050
- showimg6: '',
1051
- showimg7: '',
1052
- showimg8: '',
1053
- hiddenDangerImgNumber: 0, //配置项中隐患照片数
1054
- otherDarginShowImgs: [],//其他隐患图片
1055
- startClick: false, //开始安检按钮是否可点击
1056
- isStrat: false, //是否开始安检
1057
- checkResult: {},//查询结果
1058
- newcheckResult: {},
1059
- timer: null,
1060
- showModal: false,
1061
- pic_to_be_viewed: '',
1062
- showBack: true,
1063
- devices: [],
1064
- devicesAll: [],
1065
- configAJ: [],
1066
- configRQ: [],
1067
- deviceconfig: {},
1068
- newConfig: '',
1069
- deviceconfig2: [],
1070
- f_devices: [],
1071
- config: {
1072
- "燃气表": {
1073
- "checkmust": true,
1074
- "index": 1,
1075
- "items": {
1076
- "基表编号": {"index": 1, "type": "string", "readonly": true},
1077
- "气表型号": {"index": 2, "type": "string", "readonly": true},
1078
- "气表品牌": {"index": 3, "type": "string", "readonly": true},
1079
- "进气方向": {"index": 4, "type": "string", "readonly": true},
1080
- "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1081
- "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1082
- "累购气量": {"index": 7, "type": "number", "readonly": true},
1083
- "已用气量": {"index": 8, "type": "number", "checkmust": false},//基表数
1084
- "剩余气量": {"index": 9, "type": "number", "checkmust": false},//累购-已用
1085
- //显示屏数 --实际剩余气量
1086
- "气量异常差值": {"index": 10, "type": "number", "readonly": true},
1087
- "表箱号": {"index": 11, "type": "string", "readonly": true},
1088
- "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1089
- }
1090
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
1091
- }
1092
- },
1093
- //金额
1094
- config2: {
1095
- "燃气表": {
1096
- "checkmust": true,
1097
- "index": 1,
1098
- "items": {
1099
- "基表编号": {"index": 1, "type": "string", "readonly": true},
1100
- "气表型号": {"index": 2, "type": "string", "readonly": true},
1101
- "气表品牌": {"index": 3, "type": "string", "readonly": true},
1102
- "进气方向": {"index": 4, "type": "string", "readonly": true},
1103
- "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1104
- "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1105
- "累购金额": {"index": 7, "type": "number", "readonly": true},
1106
- "已用金额": {"index": 8, "type": "number", "checkmust": false},
1107
- //显示屏数 --实际剩余气量
1108
- "剩余金额": {"index": 9, "type": "number", "checkmust": false},
1109
- "金额异常差值": {"index": 10, "type": "number", "readonly": true},
1110
- "表箱号": {"index": 11, "type": "string", "readonly": true},
1111
- "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1112
- }
1113
- }
1114
- },
1115
- }
1116
- },
1117
- components: {
1118
- RadioGroup,
1119
- Radio,
1120
- },
1121
- computed: {
1122
- isRecodrDownloadBtn() {
1123
- // 投诉单下派还是处理
1124
- let res = this.$appdata.getSingleValue('无限制录音');
1125
- if (res == 'true') {
1126
- return true;
1127
- } else {
1128
- return false;
1129
- }
1130
- },
1131
- selector: {
1132
- get() {
1133
- return 'paper-state'
1134
- },
1135
- set(val) {
1136
- if (this.isStrat) {
1137
- this.$goto(val, {userinfo: this.data}, 'paper-router')
1138
- } else {
1139
- this.$showMessage('未开始安检!')
1140
- }
1141
- }
1142
- },
1143
- actionEnabled: {
1144
- get() {
1145
- return this.role == 'inspect'
1146
- }
1147
- }
1148
- },
1149
- methods: {
1150
- exportToPDF() {
1151
- const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
1152
- html2pdf(element)
1153
- },
1154
-
1155
- showAudit() {
1156
- var audit = this.$appdata.getSingleValue('安检审核');
1157
- if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
1158
- this.showButton = true
1159
- }
1160
- },
1161
- //安检审核成功
1162
- auditSuccesss() {
1163
- this.loading = true;
1164
- var reqdata = {
1165
- audit_result: '通过',
1166
- operator: "success",
1167
- audit_time: Util.getNowDate(),
1168
- user_name: this.$login.f.name,
1169
- id: this.item.id,
1170
- f_check_item_id: this.item.f_check_item_id
1171
- }
1172
- new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
1173
- resolveMsg: '安检审核成功!',
1174
- rejectMsg: '安检审核出错!'
1175
- }).then((res) => {
1176
- if (res.data.code == 200) {
1177
- this.loading = false;
1178
- this.$back()
1179
- }
1180
- })
1181
- },
1182
- auditFail() {
1183
- this.showModel = true;
1184
- },
1185
- auditFailOK() {
1186
-
1187
- this.loading = true;
1188
- var reqdata = {
1189
- message: this.message,
1190
- audit_result: '不通过',
1191
- operator: "fail",
1192
- audit_time: Util.getNowDate(),
1193
- user_name: this.$login.f.name,
1194
- id: this.item.id,
1195
- f_check_item_id: this.item.f_check_item_id
1196
- }
1197
- new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
1198
- resolveMsg: '安检审核成功!',
1199
- rejectMsg: '安检审核出错!'
1200
- }).then((res) => {
1201
- if (res.data.code == 200) {
1202
- this.loading = false;
1203
- this.message = '';
1204
- this.showModel = false;
1205
- this.$back()
1206
- }
1207
- })
1208
- },
1209
- auditFailCancel() {
1210
- this.showModel = false;
1211
- this.message = '';
1212
- },
1213
-
1214
- devicesCollect() {
1215
- this.deviceCollects = []
1216
- this.deviceImgs = []
1217
- let checkResult = '正常'
1218
- this.result = '正常'
1219
- let codata = JSON.parse(JSON.stringify(this.data))
1220
- for (let device in this.data) {
1221
- let f_device_type
1222
- if (device.startsWith("device")) {
1223
- for (let item in this.data[device]) {
1224
- if (this.data[device].length > 1) {
1225
- let j = Number.parseInt(item) + 1
1226
- f_device_type = `${this.data[device][item].f_device_type}${j}`
1227
- } else {
1228
- f_device_type = this.data[device][item].f_device_type
1229
- }
1230
- let deviceelse = []
1231
- let deviceInfos = []
1232
- for (let i in this.data[device][item].f_items) {
1233
- let defects = ''
1234
- let items = this.data[device][item].f_items[i]
1235
- if (items.f_item_name == '用气设施安装是否符合规范'){
1236
- debugger
1237
- }
1238
- if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value != null && items.f_item_value instanceof Array && items.f_item_value.length != 0) {
1239
- for (let i in items.f_item_value) {
1240
- let f_item_value = items.f_item_value[i]
1241
- if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
1242
- continue
1243
- }
1244
- if (items.f_is_defect == 'true' || items.f_is_defect == true) {
1245
- checkResult = '有隐患'
1246
- this.result = '有隐患'
1247
- defects = `${defects}:${items.f_item_value}/`
1248
- }
1249
- }
1250
- if (defects != '') {
1251
- console.log('有隐患items', items)
1252
- deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
1253
- this.deviceImgs.push({f_overall_path:items.f_path})
1254
- }
1255
- } else if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value && items.f_item_value.length == 0) {
1256
- if (items.f_is_defect == 'true' || items.f_is_defect == true) {
1257
- checkResult = '有隐患'
1258
- this.result = '有隐患'
1259
- deviceInfos.push(items.f_item_name)
1260
- this.deviceImgs.push({f_overall_path:items.f_path})
1261
- }
1262
- } else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
1263
- checkResult = '有隐患'
1264
- this.result = '有隐患'
1265
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1266
- this.deviceImgs.push({f_overall_path:items.f_path})
1267
-
1268
- } else if (items.f_item_name == '金额异常差值') {
1269
- var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
1270
- //tag
1271
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1272
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1273
- checkResult = '有隐患'
1274
- this.result = '有隐患'
1275
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1276
- }
1277
- }
1278
- } else if (items.f_item_name == '气量异常差值') {
1279
- var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
1280
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1281
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1282
- checkResult = '有隐患'
1283
- this.result = '有隐患'
1284
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1285
- }
1286
- }
1287
- }
1288
- if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
1289
- for (let dev in this.deviceconfig2) {
1290
- if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
1291
- this.deviceconfig2[dev].items.push({
1292
- lname: items.f_item_name
1293
- })
1294
- }
1295
- }
1296
- }
1297
- if (items.type === 'selector') {
1298
- items.selected = []
1299
- } else if (items.type === 'inputSelector') {
1300
- items.selected = ''
1301
- }
1302
- }
1303
- this.$set('deviceCollect.name', f_device_type)
1304
- this.$set('deviceCollect.value', checkResult)
1305
- this.$set('deviceCollect.devices', deviceInfos)
1306
- this.$set('deviceCollect.else', deviceelse)
1307
- if (this.deviceCollect.name) {
1308
- console.log("---------------"+JSON.stringify(this.deviceCollect))
1309
- this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
1310
- }
1311
- checkResult = '正常'
1312
- this.deviceCollect = {}
1313
- }
1314
- }
1315
- }
1316
- if (this.deviceCollects.length > 0) {
1317
- this.hasDevice = true
1318
- }
1319
- this.deviceconfig2 = this.deviceconfig2.filter(row => {
1320
- return !(row.checkname == '$configProp' || row.checkname == '$globalProp');
1321
- })
1322
- this.ajresult = JSON.parse(this.data.f_defect_content).result
1323
- this.showimg3 = this.data.f_noanswer_path
1324
- this.showimg5 = this.data.f_noanswer1_path
1325
- this.showimg6 = this.data.f_noanswer2_path
1326
- this.showimg4 = this.data.f_rejectcheck_path
1327
- this.showimg7 = this.data.f_rejectcheck1_path
1328
- this.showimg8 = this.data.f_rejectcheck2_path
1329
- this.paperdata = this.data
1330
- this.f_user_path = this.paperdata.f_user_pictures ? JSON.parse(this.paperdata.f_user_pictures)[0].f_user_path : ''
1331
- this.loading = false
1332
- },
1333
- imgclose() {
1334
- this.imgshow = false
1335
- },
1336
- putDevices() {
1337
- ////tag
1338
- this.$set('data.approve', "true")
1339
- this.$set('data.writeback', "false")
1340
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1341
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1342
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1343
- }
1344
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1345
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1346
- }
1347
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1348
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1349
- }
1350
- if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
1351
- if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
1352
- this.hiddenDangerImgNumber = 5
1353
- } else {
1354
- this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
1355
- }
1356
- }
1357
- }
1358
- //tag
1359
- //tag)
1360
- if (!this.item.f_safecheck_type && Vue.config.safecheck.SafecheckType) {
1361
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
1362
- } else if (Vue.config.safecheck.SafecheckType){
1363
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
1364
- }else {
1365
- if(this.item.f_check_type == '民用'){
1366
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1367
- }else {
1368
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1369
- }
1370
- }
1371
- //遍历安检项配置
1372
- for (let i in this.config) {
1373
- //取得安检项索引值
1374
- let n = this.config[i].index
1375
- this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1376
- this.$set('data.' + 'device' + n, [])
1377
- let items = []
1378
- for (let it in this.config[i].items) {
1379
- //赋值下拉选项
1380
- if (this.config[i].items[it].type == 'selector') {
1381
- for (let op in this.config[i].items[it].options)
1382
- if (this.config[i].items[it].options[op].isdefault == true) {
1383
- items.push({
1384
- f_defect_level: this.config[i].items[it].options[op].level,
1385
- f_is_defect: this.config[i].items[it].options[op].isdefect,
1386
- f_item_name: it,
1387
- f_item_value: this.config[i].items[it].options[op].data,
1388
- f_path: "",
1389
- type: "selector"
1390
- })
1391
- }
1392
- }
1393
- }
1394
- n = n + 1
1395
- }
1396
-
1397
- },
1398
- showpath(val1, val2) {
1399
- //tag
1400
- //tag
1401
- if (val1) {
1402
- this.showimg1 = val1
1403
- this.picturename = val2
1404
- this.imgshow = true
1405
- }
1406
- },
1407
- showpicture(val1, val2) {
1408
- //tag
1409
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1410
- return
1411
- }
1412
- for (let i = 0; i < this.devicesAll.length; i++) {
1413
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1414
- if (this.devicesAll[i][j].f_device_type == val1) {
1415
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1416
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1417
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1418
- return false
1419
- } else {
1420
- this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
1421
- this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
1422
- this.otherDarginShowImgs = []
1423
- for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
1424
- let img = {path: ''}
1425
- if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
1426
- img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
1427
- this.otherDarginShowImgs.push(img)
1428
- }
1429
- }
1430
- this.picturename = '隐患照片'
1431
- this.imgshow = true
1432
- return true
1433
- }
1434
- }
1435
- }
1436
-
1437
- }
1438
- }
1439
- }
1440
- },
1441
- isred(val1, val2) {
1442
- //tag
1443
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1444
- return
1445
- }
1446
- if (val2 == '用气设施安装是否符合规范'){
1447
- debugger
1448
- }
1449
- for (let i = 0; i < this.devicesAll.length; i++) {
1450
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1451
- if (this.devicesAll[i][j].f_device_type == val1) {
1452
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1453
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1454
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1455
- return false
1456
- } else {
1457
- return true
1458
- }
1459
- }
1460
- }
1461
-
1462
- }
1463
- }
1464
- }
1465
- },
1466
- showpicture2() {
1467
- this.imgshow2 = true
1468
- },
1469
- getDeviceValue(val1, val2) {
1470
- let aa = ''
1471
- for (let i = 0; i < this.devicesAll.length; i++) {
1472
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1473
- if (this.devicesAll[i][j].f_device_type == val1) {
1474
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1475
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1476
- if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1477
- for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1478
- let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
1479
- aa += (val === null ? '空' : val) + ' '
1480
- }
1481
- return aa
1482
- }
1483
- }
1484
- }
1485
-
1486
- }
1487
- }
1488
- }
1489
-
1490
- },
1491
- getDevicePath(val1, val2) {
1492
- for (let i = 0; i < this.devicesAll.length; i++) {
1493
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1494
- if (this.devicesAll[i][j].f_device_type == val1) {
1495
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1496
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1497
- return this.devicesAll[i][j].f_items[k].f_path
1498
- }
1499
- }
1500
-
1501
- }
1502
- }
1503
- }
1504
-
1505
- },
1506
- getDeviceAll() {
1507
- let keyall = Object.keys(this.data)
1508
- for (let i = 0; i < keyall.length; i++) {
1509
- //tag)
1510
- if ((keyall[i].startsWith('f_devices') || keyall[i].startsWith('devices')) && keyall[i] != 'deviceundefined') {
1511
- this.devicesAll.push(this.data[keyall[i]])
1512
- //tag
1513
- }
1514
- }
1515
- //tag
1516
- //tag)
1517
- this.devicesCollect()
1518
-
1519
- },
1520
-
1521
- back() {
1522
- if (this.role == 'inspect') {
1523
- if (!this.isStrat) {
1524
- this.$back()
1525
- return
1526
- } else {
1527
- this.savePaper(true).then(() => {
1528
- this.$back()
1529
- this.isStrat = false
1530
- })
1531
- }
1532
- } else {
1533
- this.$back()
1534
- }
1535
- },
1536
- checkIsStart() {
1537
- alert('asdad')
1538
- return
1539
- },
1540
-
1541
- viewPic(fileName) {
1542
- //tag
1543
- if (this.role == 'view') {
1544
- if (!fileName.endsWith('nopic.png')) {
1545
- this.pic_to_be_viewed = fileName
1546
- this.showModal = true
1547
- }
1548
- } else {
1549
- HostApp.viewPic(fileName)
1550
- }
1551
- },
1552
- tick() {
1553
- this.timer = null
1554
- this.data.f_offsite_time = Util.toStandardTimeString()
1555
- this.timer = window.setTimeout(this.tick, 1000)
1556
- },
1557
- getRepairState() {
1558
- let repaired = true
1559
- this.data.f_defects.forEach((defect) => {
1560
- repaired = repaired & (defect.f_ratification == '已处理')
1561
- })
1562
- return repaired
1563
- },
1564
- verifyRepairDefects() {
1565
- this.data.f_repair_date = Util.toStandardTimeString()
1566
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1567
- },
1568
- genuineSave(saveOnly) {
1569
- HostApp.__this__.save(saveOnly)
1570
- if (!saveOnly)
1571
- HostApp.__this__.disableTimer()
1572
- HostApp.__callback__ = null
1573
- HostApp.__this__ = null
1574
- },
1575
- setUrgency() {
1576
- this.data.f_defect_urgency = 'Z'
1577
- let that = this
1578
- this.data.f_defects.forEach(function (defect) {
1579
- if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1580
- that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1581
- })
1582
- if (this.data.f_defect_urgency == 'Z')
1583
- this.data.f_defect_urgency = null
1584
- },
1585
- disableTimer() {
1586
- if (this.timer) {
1587
- window.clearTimeout(this.timer)
1588
- this.timer = null
1589
- }
1590
- },
1591
- loaded(paper) {
1592
- if (!paper.hasOwnProperty('id')) {
1593
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1594
- this.init()
1595
- } else {
1596
- Util.booleanFilter(paper)
1597
- HostApp.__this__.$set('data', paper)
1598
- HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1599
- // 如果打回重检则重新计时
1600
- //tag
1601
- if (HostApp.__this__.role == 'inspect'
1602
- && HostApp.__this__.data.f_approved
1603
- && HostApp.__this__.data.f_approved == '打回') {
1604
- //tag
1605
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1606
- HostApp.__this__.tick()
1607
- }
1608
- }
1609
- HostApp.__callback__ = null
1610
- HostApp.__this__ = null
1611
- },
1612
- S4() {
1613
- return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1614
- },
1615
- init() {
1616
- this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1617
- this.data.ename = Vue.user.ename
1618
- this.data.f_outlets = Vue.user.f_parentname
1619
- this.data.f_meetunit = Vue.user.orgpathnames
1620
- this.data.orgpathstr = Vue.user.orgpathstr
1621
- this.data.f_check_item_id = this.item.id
1622
- this.data.f_check_plan_id = this.f_plan_id
1623
- this.data.f_checker_id = Vue.user.id
1624
- this.data.f_checker_name = Vue.user.name
1625
- this.data.f_check_type = this.item.f_user_type
1626
- this.data.f_subcompany = this.item.f_subcompany
1627
- this.data.f_approved = this.item.f_approved
1628
- this.data.f_repair_approved = this.item.f_repair_approved
1629
- this.data.f_no_checkplan = this.item.f_no_checkplan
1630
- this.data.f_approved = this.item.f_approved
1631
- this.data.f_filialeid = this.item.f_filialeid
1632
- this.data.f_orgstr = this.item.f_orgstr
1633
- this.data.version = this.item.version
1634
- this.$set('data.f_meters', this.item.f_plan_meters)
1635
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1636
- // 安检状态
1637
- this.$set('data.f_entry_status', '入户')
1638
- this.$set('data.f_usegas', '已使用')
1639
- this.$set('data.f_state', this.item.f_state)
1640
- // 用户信息
1641
- this.$set('data.f_user_name', this.item.f_user_name)
1642
- this.$set('data.f_user_phone', this.item.f_user_phone)
1643
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1644
- this.$set('data.f_address', this.item.f_address)
1645
- this.$set('data.f_card_id', this.item.f_card_id)
1646
- this.$set('data.f_area', this.item.f_area)
1647
- this.$set('data.f_street', this.item.f_street)
1648
- this.$set('data.f_room', this.item.f_room)
1649
- this.$set('data.f_building', this.item.f_building)
1650
- this.$set('data.f_unit', this.item.f_unit)
1651
- this.$set('data.f_floor', this.item.f_floor)
1652
- this.$set('data.f_residential_area', this.item.f_residential_area)
1653
- this.$set('data.f_idnumber', this.item.f_idnumber)
1654
- this.$set('data.f_comments', this.item.f_comments)
1655
- this.$set('data.f_userproperties', this.item.f_userproperties)
1656
- // 处置方式
1657
- this.$set('data.f_no_gas_device', false)
1658
- this.$set('data.f_close_valve', false)
1659
- this.$set('data.f_unload_battery', false)
1660
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1661
- this.data.f_check_item_id = this.data.f_noplan_item_id
1662
- }
1663
-
1664
- //房屋结构
1665
- // this.$set('data.f_room_style', '多层')
1666
- //供暖方式
1667
- // this.$set('data.f_heating_style', '热力公司集中供暖')
1668
- if (this.item.f_plan_meters) {
1669
- for (let de in this.devices) {
1670
- this.$set('data.device' + this.devices[de].n, [])
1671
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1672
- if (this.item.f_plan_meters[i].f_meter_type) {
1673
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1674
- delete this.config['燃气表']['items']['累计购气量']
1675
- this.data['device' + this.devices[de].n].push({
1676
- f_device_type: "燃气表",
1677
- f_items: [{
1678
- f_defect_level: null,
1679
- f_device_id: "",
1680
- f_is_defect: "",
1681
- f_item_name: "表品牌",
1682
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1683
- f_path: "",
1684
- type: "string"
1685
- },
1686
- {
1687
- f_defect_level: null,
1688
- f_device_id: "",
1689
- f_is_defect: "",
1690
- f_item_name: "位置",
1691
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1692
- f_path: "",
1693
- type: "selector"
1694
- },
1695
- {
1696
- f_defect_level: null,
1697
- f_device_id: "",
1698
- f_is_defect: "",
1699
- f_item_name: "表号",
1700
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1701
- f_path: "",
1702
- type: "number"
1703
- },
1704
- {
1705
- f_defect_level: null,
1706
- f_device_id: "",
1707
- f_is_defect: "",
1708
- f_item_name: "表封号",
1709
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1710
- f_path: "",
1711
- type: "number"
1712
- },
1713
- {
1714
- f_defect_level: null,
1715
- f_device_id: "",
1716
- f_is_defect: "",
1717
- f_item_name: "表型号",
1718
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1719
- f_path: "",
1720
- type: "selector"
1721
- },
1722
- {
1723
- f_defect_level: null,
1724
- f_device_id: "",
1725
- f_is_defect: "",
1726
- f_item_name: "表底数",
1727
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1728
- f_path: "",
1729
- type: "number"
1730
- }
1731
- ]
1732
- })
1733
- } else if (this.devices[de].device == "燃气表") {
1734
- delete this.config['燃气表']['items']['表底数']
1735
- this.data['device' + this.devices[de].n].push({
1736
- f_device_type: "燃气表",
1737
- f_items: [{
1738
- f_defect_level: null,
1739
- f_device_id: "",
1740
- f_is_defect: "",
1741
- f_item_name: "表品牌",
1742
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1743
- f_path: "",
1744
- type: "string"
1745
- },
1746
- {
1747
- f_defect_level: null,
1748
- f_device_id: "",
1749
- f_is_defect: "",
1750
- f_item_name: "位置",
1751
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1752
- f_path: "",
1753
- type: "selector"
1754
- },
1755
- {
1756
- f_defect_level: null,
1757
- f_device_id: "",
1758
- f_is_defect: "",
1759
- f_item_name: "表号",
1760
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1761
- f_path: "",
1762
- type: "number"
1763
- },
1764
- {
1765
- f_defect_level: null,
1766
- f_device_id: "",
1767
- f_is_defect: "",
1768
- f_item_name: "表封号",
1769
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1770
- f_path: "",
1771
- type: "number"
1772
- },
1773
- {
1774
- f_defect_level: null,
1775
- f_device_id: "",
1776
- f_is_defect: "",
1777
- f_item_name: "表型号",
1778
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1779
- f_path: "",
1780
- type: "selector"
1781
- },
1782
- {
1783
- f_defect_level: null,
1784
- f_device_id: "",
1785
- f_is_defect: "",
1786
- f_item_name: "累计购气量",
1787
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1788
- f_path: "",
1789
- type: "number"
1790
- }
1791
- ]
1792
- })
1793
- }
1794
- }
1795
- }
1796
- }
1797
- }
1798
-
1799
- this.$goto('paper-state', {}, 'paper-router')
1800
- },
1801
- extend(initalObj, finalObj) {
1802
- var obj = finalObj || {};
1803
- for (var i in initalObj) {
1804
- var prop = initalObj[i];
1805
-
1806
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1807
- if (prop === obj) {
1808
- continue;
1809
- }
1810
-
1811
- if (typeof prop === 'object') {
1812
- if (obj[i]) {
1813
- this.extend(obj[i], prop)
1814
- } else {
1815
- obj[i] = prop;
1816
- }
1817
- }
1818
- }
1819
- return obj;
1820
- },
1821
- //获取当前时间
1822
- getNowFormatDate() {
1823
- var date = new Date();
1824
- var seperator1 = "-";
1825
- var seperator2 = ":";
1826
- var month = date.getMonth() + 1;
1827
- var strDate = date.getDate();
1828
- if (month >= 1 && month <= 9) {
1829
- month = "0" + month;
1830
- }
1831
- if (strDate >= 0 && strDate <= 9) {
1832
- strDate = "0" + strDate;
1833
- }
1834
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1835
- + " " + date.getHours() + seperator2 + date.getMinutes()
1836
- + seperator2 + date.getSeconds();
1837
- return currentdate;
1838
- }
1839
- },
1840
- ready() {
1841
- setTimeout(() => {
1842
- this.loading = false;
1843
- }, 10000)
1844
- this.putDevices()
1845
- this.showAudit()
1846
- this.newConfig = this.$appdata.getSingleValue('配置中心获取文件') ? this.$appdata.getSingleValue('配置中心获取文件') : '否';
1847
- if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
1848
- if (this.role != 'inspect') {
1849
- let that = this
1850
- let id
1851
- if (this.role == 'view') {
1852
- id = this.item.id
1853
- } else if (this.role == 'androidview') {
1854
- id = this.item.f_paper_id
1855
- }
1856
- this.$resetpost(`rs/logic/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1857
- //tag
1858
- if (respanse.data.length != 0) {
1859
- // 包含 其它 特殊处理的数组
1860
- // 对应位置
1861
- that.data = Object.assign(that.data, respanse.data[0])
1862
- if (respanse.data[0].f_devices) {
1863
- for (let da in that.devices) {
1864
- that.$set('data.device' + that.devices[da].n, [])
1865
- }
1866
- respanse.data[0].f_devices.forEach((item) => {
1867
- for (let de in that.devices) {
1868
- if (that.devices[de].device == item.f_device_type) {
1869
- item.f_items.forEach((f_item) => {
1870
- //tag
1871
- //tag
1872
- let itemValues = []
1873
- f_item.f_item_lists.forEach((tempItem) => {
1874
- //tag
1875
- if (tempItem.f_item_value !== 'null') {
1876
- itemValues.push(tempItem.f_item_value)
1877
- }
1878
- })
1879
- f_item.f_item_value = itemValues
1880
- })
1881
- that.data['device' + that.devices[de].n].push({
1882
- f_device_type: item.f_device_type,
1883
- f_items: item.f_items
1884
- })
1885
- }
1886
- }
1887
- })
1888
- }
1889
- Util.replaceFalse(that.data)
1890
- Util.booleanFilter(that.data)
1891
- if (this.role == 'view') {
1892
- Util.ratifyPics(that.data)
1893
- Util.ratifyPics(that.picture)
1894
- } else {
1895
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1896
- }
1897
- //tag
1898
- }
1899
- // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1900
- this.isshow = true
1901
- asyncReady(this).then(() => {
1902
- //tag
1903
- //tag)
1904
- console.log('Vue.config.safecheck.DevicesConfig', Vue.config.safecheck.DevicesConfig)
1905
- // 如果没有用户类型 默认按民用配置走
1906
- if (this.data.f_check_type == '非民用') {
1907
- this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesSetConfig))
1908
- }else{
1909
- this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesConfig))
1910
- }
1911
- if (this.data.f_collection_type == '按金额') {
1912
- if (this.deviceconfig["燃气表"]){
1913
- let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1914
- this.deviceconfig["燃气表"].items = aaa
1915
- }
1916
- } else {
1917
- if (this.deviceconfig["燃气表"]){
1918
- let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1919
- this.deviceconfig["燃气表"].items = aaa
1920
- }
1921
- }
1922
- this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1923
- this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1924
- this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1925
- this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1926
- this.getDeviceAll()
1927
- })
1928
- }
1929
- ).catch(
1930
- (respanse) => {
1931
- //tag
1932
- alert('查找安检单失败')
1933
- this.loading = false
1934
- })
1935
- }
1936
- }
1937
-
1938
- },
1939
- watch: {
1940
- // 'isUpload'(val){
1941
- // //tag
1942
- // }
1943
- },
1944
- destroyed() {
1945
- //tag
1946
- this.disableTimer()
1947
- }
1948
- }
1949
-
1950
- </script>
1951
- <style scoped>
1952
- .table-striped thead tr th {
1953
- background-color: rgb(223, 237, 251);
1954
- padding: 10px;
1955
- border-left: solid 0px #dae4f2;
1956
- border-top: solid 1px #dae4f2;
1957
- border-right: none;
1958
- border-bottom: none;
1959
- text-align: center;
1960
- color: black;
1961
- }
1962
- </style>
1
+ <style scoped id="printStyle">
2
+ .img {
3
+ border: 1px solid #9773ed;
4
+ width: auto;
5
+ height: auto;
6
+ float: left;
7
+ text-align: center;
8
+ margin: 6px;
9
+ }
10
+
11
+ img {
12
+ margin: 6px;
13
+ }
14
+
15
+
16
+ .container {
17
+ margin: 10px auto;
18
+ width: 80%;
19
+ height: auto;
20
+ }
21
+
22
+ div::-webkit-scrollbar {
23
+ width: 0 !important;
24
+ height: 0 !important;
25
+ }
26
+
27
+ div {
28
+ -ms-overflow-style: none;
29
+ overflow: -moz-scrollbars-none;
30
+ }
31
+
32
+ .divmask {
33
+ pointer-events: none;
34
+ }
35
+
36
+ .app-header {
37
+ border-radius: 50%;
38
+ background: rgba(73, 158, 223, 0.4);
39
+ color: #FFF;
40
+ padding: 20px;
41
+ text-align: center;
42
+ font-size: 1.2em;
43
+ z-index: 10;
44
+ opacity: 0.5;
45
+ bottom: 50px;
46
+ margin-top: -20px;
47
+ position: absolute;
48
+ top: 10%;
49
+ right: 2%;
50
+ height: 8%;
51
+ }
52
+ </style>
53
+
54
+ <template>
55
+ <div class="basic-main" style="height: 100%">
56
+ <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
+ <div @click="back()">
58
+ <img src="../../../assets/back.png" style="margin: 0px"/>
59
+ </div>
60
+ </div>
61
+ <div v-show="showPdfDownload" class="page-header app-header auto"
62
+ style="padding: 15px;margin-right: 3.7%;right: 0%;height: 7%">
63
+ <div @click="exportToPDF()">
64
+ <img src="../../../assets/下载_.png" style="margin: 0px;width: 30px"/>
65
+ </div>
66
+ </div>
67
+ <work-busy :is-busy="loading"></work-busy>
68
+ <div class="container-fluid" style="overflow: scroll">
69
+ <div class="row">
70
+ <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
71
+ <div style="width: 100%;margin: auto">
72
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
73
+ <thead>
74
+ <tr>
75
+ <th colspan="6" style="text-align: center">用户基本信息</th>
76
+ </tr>
77
+ </thead>
78
+ <tbody>
79
+ <tr>
80
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
81
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
82
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
83
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
84
+ </tr>
85
+ <tr>
86
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
87
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
88
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
89
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
90
+ </tr>
91
+ <tr>
92
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
93
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
94
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
95
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
96
+ </tr>
97
+ <tr>
98
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
99
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
100
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
101
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
102
+ </tr>
103
+ <tr>
104
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
105
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
106
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
107
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
108
+ </tr>
109
+ <tr>
110
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
111
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
112
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
113
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
114
+ </tr>
115
+ <tr>
116
+ <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
117
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
118
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
120
+ </tr>
121
+ <tr>
122
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
123
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
124
+ </tr>
125
+ </tbody>
126
+ </table>
127
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
128
+ v-show="paperdata.f_entry_status=='入户'">
129
+ <thead>
130
+ <tr>
131
+ <th colspan="4" style="text-align: center">用户安检概况</th>
132
+ </tr>
133
+ </thead>
134
+ <tbody>
135
+ <tr>
136
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
137
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
138
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
139
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
140
+ </tr>
141
+ <tr>
142
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
143
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
144
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
145
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
146
+ </tr>
147
+ <tr>
148
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
149
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
150
+ paperdata.f_client_evaluation
151
+ }}
152
+ </td>
153
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
154
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
155
+ :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
160
+ <td colspan="3"
161
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
162
+ {{ paperdata.f_repair_approved_note }}
163
+ </td>
164
+ </tr>
165
+ <tr>
166
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
167
+ <td colspan="3"
168
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
169
+ <span v-for="deviceCollect in deviceCollects">
170
+ <span class="li-font">
171
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
172
+ </span>
173
+ <br>
174
+ <span v-if="deviceCollect.value == '有隐患'">
175
+ <lable>
176
+ 隐患:
177
+ </lable>
178
+ <span v-for="val in deviceCollect.devices">
179
+ {{ val }}
180
+ </span><br>
181
+ </span>
182
+
183
+ </span>
184
+ </td>
185
+ </tr>
186
+ <tr>
187
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">是否已处理:</td>
188
+ <td colspan="3"
189
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">{{paperdata.f_is_handle}}
190
+ </td>
191
+ </tr>
192
+
193
+ </tbody>
194
+ </table>
195
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
196
+ v-show="paperdata.f_entry_status!='入户'">
197
+ <thead>
198
+ <tr>
199
+ <th colspan="4" style="text-align: center">用户安检概况</th>
200
+ </tr>
201
+ </thead>
202
+ <tbody>
203
+ <tr>
204
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
205
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
206
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
207
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
208
+ </tr>
209
+ <tr>
210
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
211
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
212
+ {{ paperdata.f_entry_status }}
213
+ </td>
214
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
215
+ <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
216
+ {{ dev.lname }}
217
+ 查看{{ data.f_entry_status }}照片
218
+ </button-link>
219
+ </td>
220
+ </tr>
221
+
222
+ </tbody>
223
+ </table>
224
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
225
+ v-show="item.f_no_checkplan == '复检'">
226
+ <thead>
227
+ <tr>
228
+ <th colspan="4" style="text-align: center">上次安检情况</th>
229
+ </tr>
230
+ </thead>
231
+ <tbody>
232
+ <tr>
233
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
234
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
235
+ lastCheckData.f_onsite_time
236
+ }}
237
+ </td>
238
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
239
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
240
+ lastCheckData.f_offsite_time
241
+ }}
242
+ </td>
243
+ </tr>
244
+ <tr>
245
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
246
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
247
+ {{ lastCheckData.f_checker_name }}
248
+ </td>
249
+ </tr>
250
+ <tr>
251
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
252
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
253
+ {{ lastCheckData.f_defect_text }}
254
+ </td>
255
+ </tr>
256
+
257
+ </tbody>
258
+ </table>
259
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
260
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_usegas == '未用气'">
261
+ <thead>
262
+ <tr>
263
+ <th style="text-align: center">未用气照片</th>
264
+ </tr>
265
+ </thead>
266
+ <tbody>
267
+ <tr>
268
+ <td style="margin: auto;text-align: center">
269
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
270
+ <div class="img">
271
+ <img-self-plus :src="paperdata.f_nongasuser_path" style="float: left" width="150"
272
+ height="200"></img-self-plus>
273
+ </div>
274
+ </div>
275
+ </td>
276
+ </tr>
277
+ </tbody>
278
+ </table>
279
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
280
+ v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
281
+ <thead>
282
+ <tr>
283
+ <th style="text-align: center">隐患照片</th>
284
+ </tr>
285
+ </thead>
286
+ <tbody>
287
+ <tr>
288
+ <td style="margin: auto;text-align: center">
289
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
290
+ <div class="img" v-for="img in deviceImgs">
291
+ <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
292
+ width="150"
293
+ height="200"></img-self-plus>
294
+ </div>
295
+ </div>
296
+
297
+
298
+ </td>
299
+
300
+ </tr>
301
+ </tbody>
302
+ </table>
303
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
304
+ v-show="paperdata.f_entry_status=='入户'">
305
+ <thead>
306
+ <tr>
307
+ <th style="text-align: center">总体安检照片</th>
308
+ </tr>
309
+ </thead>
310
+ <tbody>
311
+ <tr>
312
+ <td style="margin: auto;text-align: center">
313
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
314
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
315
+ <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
316
+ width="150"
317
+ height="200"></img-self-plus>
318
+ </div>
319
+ </div>
320
+
321
+
322
+ </td>
323
+
324
+ </tr>
325
+ </tbody>
326
+ </table>
327
+ <table class="table table-striped table-bordered" style="width: 100%"
328
+ v-show="paperdata.f_entry_status=='入户' && (paperdata.f_sign_path || f_user_path) ">
329
+ <thead>
330
+ <tr>
331
+ <th style="text-align: center">用户签名照片</th>
332
+ </tr>
333
+ </thead>
334
+ <tbody>
335
+ <tr>
336
+ <td style="margin: auto;text-align: center" v-if="paperdata.f_sign_path">
337
+ <div class="container" style="max-width: 500px;background: #FFFFFF" >
338
+ <div class="img" style="float: none">
339
+ <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
340
+ </div>
341
+ </div>
342
+ </td>
343
+ <td style="margin: auto;text-align: center" v-if="f_user_path">
344
+ <div class="container" style="max-width: 550px;background: #FFFFFF" >
345
+ <div class="img" style="float: none">
346
+ <img-self-plus :src="'rs/image/file/'+f_user_path"
347
+ width="200"
348
+ height="200"></img-self-plus>
349
+ </div>
350
+ </div>
351
+ </td>
352
+ </tr>
353
+ </tbody>
354
+ </table>
355
+ <table class="table table-striped table-bordered"
356
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
357
+ <thead>
358
+ <tr>
359
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
360
+ </tr>
361
+ </thead>
362
+ <tbody>
363
+ <tr>
364
+ <td style="margin: auto;text-align: center">
365
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
366
+ <div class="img" style="float: none">
367
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
368
+ </div>
369
+ </div>
370
+ </td>
371
+ </tr>
372
+ </tbody>
373
+ </table>
374
+ <table class="table table-striped table-bordered"
375
+ v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
376
+ <thead>
377
+ <tr>
378
+ <th style="text-align: center">安检视频</th>
379
+ </tr>
380
+ </thead>
381
+ <tbody>
382
+ <tr>
383
+ <td style="margin: auto;text-align: center">
384
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
385
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
386
+ <source :src="paperdata.f_video_path" type="video/mp4">
387
+ </video>
388
+ </div>
389
+ </td>
390
+ </tr>
391
+ </tbody>
392
+ </table>
393
+ <table class="table table-striped table-bordered"
394
+ v-show="item.f_recording1_path">
395
+ <thead>
396
+ <tr>
397
+ <th style="text-align: center">录音文件</th>
398
+ </tr>
399
+ </thead>
400
+ <tbody>
401
+ <tr>
402
+ <td style="margin: auto;text-align: center">
403
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
404
+ <a class="button_spacing button_search-1"
405
+ :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
406
+ :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
407
+ </div>
408
+ </td>
409
+ </tr>
410
+ </tbody>
411
+ </table>
412
+ </div>
413
+ </div>
414
+ <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
415
+ <div class="col-md-6" style="height: 100%;overflow: scroll">
416
+ <div style="width: 95%;margin-left: 5%">
417
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2" style="margin-top: 35px">
418
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
419
+ <tr>
420
+ <th style="text-align: center">{{ config.checkname }}</th>
421
+ </tr>
422
+ </thead>
423
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
424
+ <tr v-for="dev in config.items">
425
+ <td v-if="dev.type!='text' && dev.isshow != false">
426
+ <div class="row">
427
+ <div class="col-md-8" style="text-align: center;">
428
+ <label>
429
+ <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
430
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
431
+ {{ dev.lname }}
432
+ </button-link>
433
+ </label>
434
+ </div>
435
+ <div class="col-md-4" style="text-align: center">
436
+ <label style="font-weight: normal"
437
+ v-if="dev.type!='picture'">{{
438
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
439
+ }}</label>
440
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
441
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
442
+ <button-link style="color: black" type="button" class="btn btn-link"
443
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
444
+ </button-link>
445
+ </div>
446
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
447
+ </label>
448
+ </div>
449
+ </div>
450
+ </td>
451
+ <td v-if="dev.type==='text' && dev.isshow != false">
452
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
453
+ </td>
454
+ </tr>
455
+ </tbody>
456
+ </table>
457
+ <div>
458
+ <button class="button_spacing button_search" @click="auditSuccesss()">通过</button>
459
+ <button class="button_spacing button_search" @click="auditFail()">不通过</button>
460
+ </div>
461
+ </div>
462
+ </div>
463
+
464
+ </div>
465
+ </div>
466
+ <div v-show="false">
467
+ <div class="container-fluid" id="toPdf" style="overflow: scroll">
468
+ <div class="row">
469
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
470
+ <div style="width: 100%;margin: auto">
471
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
472
+ <thead>
473
+ <tr>
474
+ <th colspan="6" style="text-align: center">用户基本信息</th>
475
+ </tr>
476
+ </thead>
477
+ <tbody>
478
+ <tr>
479
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
480
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
481
+ paperdata.f_userinfo_code
482
+ }}
483
+ </td>
484
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
485
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
486
+ </tr>
487
+ <tr>
488
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
489
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
490
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
491
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
492
+ </tr>
493
+ <tr>
494
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
495
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
496
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
497
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
498
+ </tr>
499
+ <tr>
500
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
501
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
502
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
503
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
504
+ </tr>
505
+ <tr>
506
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
507
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
508
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
509
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
510
+ </tr>
511
+ <tr>
512
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
513
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
514
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
515
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
516
+ </tr>
517
+ <tr>
518
+ <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
519
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
520
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
521
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
522
+ </tr>
523
+ <tr>
524
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
525
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
526
+ </tr>
527
+ </tbody>
528
+ </table>
529
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
530
+ v-show="paperdata.f_entry_status=='入户'">
531
+ <thead>
532
+ <tr>
533
+ <th colspan="4" style="text-align: center">用户安检概况</th>
534
+ </tr>
535
+ </thead>
536
+ <tbody>
537
+ <tr>
538
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
539
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
540
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
541
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
542
+ paperdata.f_offsite_time
543
+ }}
544
+ </td>
545
+ </tr>
546
+ <tr>
547
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
548
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
549
+ paperdata.f_entry_status
550
+ }}
551
+ </td>
552
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
553
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
554
+ </tr>
555
+ <tr>
556
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
557
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
558
+ paperdata.f_client_evaluation
559
+ }}
560
+ </td>
561
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
562
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
563
+ :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
564
+ </td>
565
+ </tr>
566
+ <tr>
567
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
568
+ <td colspan="3"
569
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
570
+ {{ paperdata.f_repair_approved_note }}
571
+ </td>
572
+ </tr>
573
+ <tr>
574
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
575
+ <td colspan="3"
576
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
577
+ <span v-for="deviceCollect in deviceCollects">
578
+ <span class="li-font">
579
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
580
+ </span>
581
+ <br>
582
+ <span v-if="deviceCollect.value == '有隐患'">
583
+ <lable>
584
+ 隐患:
585
+ </lable>
586
+ <span v-for="val in deviceCollect.devices">
587
+ {{ val }}
588
+ </span><br>
589
+ </span>
590
+
591
+ </span>
592
+ </td>
593
+ </tr>
594
+
595
+ </tbody>
596
+ </table>
597
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
598
+ v-show="paperdata.f_entry_status!='入户'">
599
+ <thead>
600
+ <tr>
601
+ <th colspan="4" style="text-align: center">用户安检概况</th>
602
+ </tr>
603
+ </thead>
604
+ <tbody>
605
+ <tr>
606
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
607
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
608
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
609
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
610
+ paperdata.f_offsite_time
611
+ }}
612
+ </td>
613
+ </tr>
614
+ <tr>
615
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
616
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
617
+ {{ paperdata.f_entry_status }}
618
+ </td>
619
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
620
+ <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
621
+ {{ dev.lname }}
622
+ 查看{{ data.f_entry_status }}照片
623
+ </button-link>
624
+ </td>
625
+ </tr>
626
+
627
+ </tbody>
628
+ </table>
629
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
630
+ v-show="item.f_no_checkplan == '复检'">
631
+ <thead>
632
+ <tr>
633
+ <th colspan="4" style="text-align: center">上次安检情况</th>
634
+ </tr>
635
+ </thead>
636
+ <tbody>
637
+ <tr>
638
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
639
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
640
+ lastCheckData.f_onsite_time
641
+ }}
642
+ </td>
643
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
644
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
645
+ lastCheckData.f_offsite_time
646
+ }}
647
+ </td>
648
+ </tr>
649
+ <tr>
650
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
651
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
652
+ {{ lastCheckData.f_checker_name }}
653
+ </td>
654
+ </tr>
655
+ <tr>
656
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
657
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
658
+ {{ lastCheckData.f_defect_text }}
659
+ </td>
660
+ </tr>
661
+
662
+ </tbody>
663
+ </table>
664
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
665
+ v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
666
+ <thead>
667
+ <tr>
668
+ <th style="text-align: center">隐患照片</th>
669
+ </tr>
670
+ </thead>
671
+ <tbody>
672
+ <tr>
673
+ <td style="margin: auto;text-align: center">
674
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
675
+ <div class="img" v-for="img in deviceImgs">
676
+ <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
677
+ width="150"
678
+ height="200"></img-self-plus>
679
+ </div>
680
+ </div>
681
+
682
+
683
+ </td>
684
+
685
+ </tr>
686
+ </tbody>
687
+ </table>
688
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
689
+ v-show="paperdata.f_entry_status=='入户'">
690
+ <thead>
691
+ <tr>
692
+ <th style="text-align: center">总体安检照片</th>
693
+ </tr>
694
+ </thead>
695
+ <tbody>
696
+ <tr>
697
+ <td style="margin: auto;text-align: center">
698
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
699
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
700
+ <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
701
+ width="150"
702
+ height="200"></img-self-plus>
703
+ </div>
704
+ </div>
705
+
706
+
707
+ </td>
708
+
709
+ </tr>
710
+ </tbody>
711
+ </table>
712
+ <table class="table table-striped table-bordered" style="width: 100%"
713
+ v-show="paperdata.f_entry_status=='入户'">
714
+ <thead>
715
+ <tr>
716
+ <th style="text-align: center">用户签名照片</th>
717
+ </tr>
718
+ </thead>
719
+ <tbody>
720
+ <tr>
721
+ <td style="margin: auto;text-align: center">
722
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
723
+ <div class="img" style="float: none">
724
+ <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
725
+ </div>
726
+ </div>
727
+ </td>
728
+ <td style="margin: auto;text-align: center">
729
+ <div class="container" style="max-width: 550px;background: #FFFFFF" v-if="f_user_path">
730
+ <div class="img" style="float: none">
731
+ <img-self-plus :src="'rs/image/file/'+f_user_path"
732
+ width="200"
733
+ height="200"></img-self-plus>
734
+ </div>
735
+ </div>
736
+ </td>
737
+ </tr>
738
+ </tbody>
739
+ </table>
740
+ <table class="table table-striped table-bordered"
741
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
742
+ <thead>
743
+ <tr>
744
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
745
+ </tr>
746
+ </thead>
747
+ <tbody>
748
+ <tr>
749
+ <td style="margin: auto;text-align: center">
750
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
751
+ <div class="img" style="float: none">
752
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
753
+ </div>
754
+ </div>
755
+ </td>
756
+ </tr>
757
+ </tbody>
758
+ </table>
759
+ <table class="table table-striped table-bordered"
760
+ v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
761
+ <thead>
762
+ <tr>
763
+ <th style="text-align: center">安检视频</th>
764
+ </tr>
765
+ </thead>
766
+ <tbody>
767
+ <tr>
768
+ <td style="margin: auto;text-align: center">
769
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
770
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
771
+ <source :src="paperdata.f_video_path" type="video/mp4">
772
+ </video>
773
+ </div>
774
+ </td>
775
+ </tr>
776
+ </tbody>
777
+ </table>
778
+ <table class="table table-striped table-bordered"
779
+ v-show="item.f_recording1_path">
780
+ <thead>
781
+ <tr>
782
+ <th style="text-align: center">录音文件</th>
783
+ </tr>
784
+ </thead>
785
+ <tbody>
786
+ <tr>
787
+ <td style="margin: auto;text-align: center">
788
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
789
+ <a class="button_spacing button_search-1"
790
+ :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
791
+ :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
792
+ </div>
793
+ </td>
794
+ </tr>
795
+ </tbody>
796
+ </table>
797
+ </div>
798
+ </div>
799
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
800
+ <div style="width: 95%;margin-left: 5%">
801
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2"
802
+ style="margin-top: 35px">
803
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
804
+ <tr>
805
+ <th style="text-align: center">{{ config.checkname }}</th>
806
+ </tr>
807
+ </thead>
808
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
809
+ <tr v-for="dev in config.items">
810
+ <td v-if="dev.type!='text' && dev.isshow != false">
811
+ <div class="row">
812
+ <div class="col-md-8" style="text-align: center;">
813
+ <label>
814
+ <button-link type="button" class="btn btn-link"
815
+ @click="showpicture(config.checkname,dev.lname)"
816
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
817
+ {{ dev.lname }}
818
+ </button-link>
819
+ </label>
820
+ </div>
821
+ <div class="col-md-4" style="text-align: center">
822
+ <label style="font-weight: normal"
823
+ v-if="dev.type!='picture'">{{
824
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
825
+ }}</label>
826
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
827
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
828
+ <button-link style="color: black" type="button" class="btn btn-link"
829
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
830
+ </button-link>
831
+ </div>
832
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
833
+ </label>
834
+ </div>
835
+ </div>
836
+ </td>
837
+ <td v-if="dev.type==='text' && dev.isshow != false">
838
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
839
+ </td>
840
+ </tr>
841
+ </tbody>
842
+ </table>
843
+ </div>
844
+ </div>
845
+
846
+ </div>
847
+ </div>
848
+ </div>
849
+ </div>
850
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
851
+ <header slot="modal-header" class="modal-header">
852
+ {{ picturename }}
853
+ </header>
854
+ <article slot="modal-body" class="modal-body">
855
+ <div class="from-group">
856
+ <div class="row">
857
+ <div class="col-md-6">
858
+ <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
859
+ </div>
860
+ <div class="col-md-6">
861
+ <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
862
+ </div>
863
+ <div class="col-md-6" v-for="item in otherDarginShowImgs">
864
+ <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
865
+ </div>
866
+ </div>
867
+ </div>
868
+ </article>
869
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
870
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
871
+ </footer>
872
+ </modal>
873
+ <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
874
+ <header slot="modal-header" class="modal-header">
875
+ {{ paperdata.f_entry_status }}照片
876
+ </header>
877
+ <article slot="modal-body" class="modal-body">
878
+ <div class="from-group">
879
+ <div class="row">
880
+ <div class="col-md-6">
881
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer_path" :src="showimg3"
882
+ width="282"
883
+ height="400"></img-self-plus>
884
+ </div>
885
+ <div class="col-md-6">
886
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer1_path"
887
+ :src="showimg5" width="282"
888
+ height="400"></img-self-plus>
889
+ </div>
890
+ <div class="col-md-6">
891
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer2_path"
892
+ :src="showimg6" width="282"
893
+ height="400"></img-self-plus>
894
+ </div>
895
+ <div class="col-md-6">
896
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck_path"
897
+ :src="showimg4" width="282"
898
+ height="400"></img-self-plus>
899
+ </div>
900
+ <div class="col-md-6">
901
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck1_path"
902
+ :src="showimg7" width="282"
903
+ height="400"></img-self-plus>
904
+ </div>
905
+ <div class="col-md-6">
906
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck2_path"
907
+ :src="showimg8" width="282"
908
+ height="400"></img-self-plus>
909
+ </div>
910
+ </div>
911
+ </div>
912
+ </article>
913
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
914
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
915
+ </footer>
916
+ </modal>
917
+ <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
918
+ <div slot="modal-header" class="modal-header">
919
+ <h4 class="modal-title">
920
+ 安检审核备注
921
+ </h4>
922
+ </div>
923
+ <div slot="modal-body" class="modal-body">
924
+ <div class="row">
925
+ <div class="form-group col-sm-4">
926
+ <label class="font_normal_body">审核备注:</label>
927
+ <textarea v-model="message"></textarea>
928
+ </div>
929
+ </div>
930
+ </div>
931
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
932
+ <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
933
+ <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
934
+ </div>
935
+ </modal>
936
+ </template>
937
+
938
+ <script>
939
+ import html2pdf from 'html2pdf.js'
940
+ import ObjConfig from '../../../utils/GerJsonObjectConfig'
941
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
942
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
943
+ import Vue from 'vue'
944
+ import * as Util from '../../Util'
945
+ import {jsonSort} from '../../../utils/LdapHelper'
946
+ import {HttpResetClass} from "vue-client";
947
+ import {forEach} from "mocha/lib/utils";
948
+
949
+ let asyncReady = async function (self) {
950
+ // 获取配置信息
951
+ try {
952
+ let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
953
+ data: {
954
+ items: 'f_dir',
955
+ tablename: 't_organization',
956
+ condition: `id = '${self.item.f_filialeid}'`,
957
+ orderitem: 'id'
958
+ }
959
+ })/*.then(res=>{*/
960
+ //tag
961
+ //tag)
962
+ console.log(res)
963
+ if (!res.data[0].f_dir) {
964
+ self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
965
+ } else {
966
+ //this.f_dir=res.data[0].f_dir
967
+ let url = self.newConfig == '是' ? '/safecheck/rs/safe_vue' : '/safecheck/rs/vue'
968
+ try {
969
+ let res1 = await new HttpResetClass().load('GET', `${url}/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
970
+ resolveMsg: '获取居民配置项成功!',
971
+ rejectMsg: '获取居民配置项出错!'
972
+ })/*.then(res=>{*/
973
+ //tag
974
+ //this.safeConfig["民用配置项"]=Object.assign({},res.data)
975
+ if (!Vue.config.safecheck) {
976
+ Vue.config = {safecheck: {}}
977
+ }
978
+ Vue.config.safecheck.DevicesConfig = res1.data
979
+ console.log(Vue.config.safecheck.DevicesConfig)
980
+ /*})*/
981
+ let res2 = await new HttpResetClass().load('GET', `${url}/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
982
+ resolveMsg: '获取非居民配置项成功!',
983
+ rejectMsg: '获取非居民配置项出错!'
984
+ })/*.then(res=>{*/
985
+ //tag
986
+ //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
987
+ Vue.config.safecheck.DevicesSetConfig = res2.data
988
+ /*}).then(res=> {
989
+ })*/
990
+
991
+ } catch (e) {
992
+ self.$showMessage("获取配置文件失败" + e)
993
+ self.loading = false
994
+ }
995
+ }
996
+ if (self.data.f_recheck_id) {
997
+ let res3 = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
998
+ data: {
999
+ items: '*',
1000
+ tablename: 't_check_paper',
1001
+ condition: `id = '${self.data.f_recheck_id}'`,
1002
+ orderitem: 'id'
1003
+ }
1004
+ })
1005
+ self.lastCheckData = res3.data[0]
1006
+ }
1007
+ } catch (error) {
1008
+ // 忽略704,文件找不到异常R
1009
+ if (error.status !== 704) {
1010
+ throw error
1011
+ }
1012
+ this.loading = false
1013
+ }
1014
+ }
1015
+ export default {
1016
+ title: '安检单',
1017
+ props: ['f_plan_id', 'item', 'role'],
1018
+ data() {
1019
+ return {
1020
+ f_user_path:'',
1021
+ message: '',
1022
+ showButton: false,
1023
+ showModel: false,
1024
+ data: {
1025
+ f_devices: [],
1026
+ f_defect_content: ''
1027
+ },
1028
+ showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
1029
+ showPdfImg: this.$appdata.getSingleValue('安检结果pdf展示隐患照片') ? this.$appdata.getSingleValue('安检结果pdf展示隐患照片') : false,
1030
+ lastCheckData: {},
1031
+ paperdata: {},
1032
+ picturename: '隐患照片',
1033
+ defectDevice: {},
1034
+ hasDevice: false,
1035
+ deviceCollect: {},
1036
+ deviceCollects: [],
1037
+ deviceImgs:[],
1038
+ isshow: false,
1039
+ ajresult: '',
1040
+ loading: true,
1041
+ imgshow: false,
1042
+ imgshow2: false,
1043
+ isUpload: false,
1044
+ livedispose: '',
1045
+ showimg1: '',
1046
+ showimg2: '',
1047
+ showimg3: '',
1048
+ showimg4: '',
1049
+ showimg5: '',
1050
+ showimg6: '',
1051
+ showimg7: '',
1052
+ showimg8: '',
1053
+ hiddenDangerImgNumber: 0, //配置项中隐患照片数
1054
+ otherDarginShowImgs: [],//其他隐患图片
1055
+ startClick: false, //开始安检按钮是否可点击
1056
+ isStrat: false, //是否开始安检
1057
+ checkResult: {},//查询结果
1058
+ newcheckResult: {},
1059
+ timer: null,
1060
+ showModal: false,
1061
+ pic_to_be_viewed: '',
1062
+ showBack: true,
1063
+ devices: [],
1064
+ devicesAll: [],
1065
+ configAJ: [],
1066
+ configRQ: [],
1067
+ deviceconfig: {},
1068
+ newConfig: '',
1069
+ deviceconfig2: [],
1070
+ f_devices: [],
1071
+ config: {
1072
+ "燃气表": {
1073
+ "checkmust": true,
1074
+ "index": 1,
1075
+ "items": {
1076
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1077
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1078
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1079
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1080
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1081
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1082
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
1083
+ "已用气量": {"index": 8, "type": "number", "checkmust": false},//基表数
1084
+ "剩余气量": {"index": 9, "type": "number", "checkmust": false},//累购-已用
1085
+ //显示屏数 --实际剩余气量
1086
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
1087
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
1088
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1089
+ }
1090
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
1091
+ }
1092
+ },
1093
+ //金额
1094
+ config2: {
1095
+ "燃气表": {
1096
+ "checkmust": true,
1097
+ "index": 1,
1098
+ "items": {
1099
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1100
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1101
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1102
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1103
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1104
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1105
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
1106
+ "已用金额": {"index": 8, "type": "number", "checkmust": false},
1107
+ //显示屏数 --实际剩余气量
1108
+ "剩余金额": {"index": 9, "type": "number", "checkmust": false},
1109
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
1110
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
1111
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1112
+ }
1113
+ }
1114
+ },
1115
+ }
1116
+ },
1117
+ components: {
1118
+ RadioGroup,
1119
+ Radio,
1120
+ },
1121
+ computed: {
1122
+ isRecodrDownloadBtn() {
1123
+ // 投诉单下派还是处理
1124
+ let res = this.$appdata.getSingleValue('无限制录音');
1125
+ if (res == 'true') {
1126
+ return true;
1127
+ } else {
1128
+ return false;
1129
+ }
1130
+ },
1131
+ selector: {
1132
+ get() {
1133
+ return 'paper-state'
1134
+ },
1135
+ set(val) {
1136
+ if (this.isStrat) {
1137
+ this.$goto(val, {userinfo: this.data}, 'paper-router')
1138
+ } else {
1139
+ this.$showMessage('未开始安检!')
1140
+ }
1141
+ }
1142
+ },
1143
+ actionEnabled: {
1144
+ get() {
1145
+ return this.role == 'inspect'
1146
+ }
1147
+ }
1148
+ },
1149
+ methods: {
1150
+ exportToPDF() {
1151
+ const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
1152
+ html2pdf(element)
1153
+ },
1154
+
1155
+ showAudit() {
1156
+ var audit = this.$appdata.getSingleValue('安检审核');
1157
+ if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
1158
+ this.showButton = true
1159
+ }
1160
+ },
1161
+ //安检审核成功
1162
+ auditSuccesss() {
1163
+ this.loading = true;
1164
+ var reqdata = {
1165
+ audit_result: '通过',
1166
+ operator: "success",
1167
+ audit_time: Util.getNowDate(),
1168
+ user_name: this.$login.f.name,
1169
+ id: this.item.id,
1170
+ f_check_item_id: this.item.f_check_item_id
1171
+ }
1172
+ new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
1173
+ resolveMsg: '安检审核成功!',
1174
+ rejectMsg: '安检审核出错!'
1175
+ }).then((res) => {
1176
+ if (res.data.code == 200) {
1177
+ this.loading = false;
1178
+ this.$back()
1179
+ }
1180
+ })
1181
+ },
1182
+ auditFail() {
1183
+ this.showModel = true;
1184
+ },
1185
+ auditFailOK() {
1186
+
1187
+ this.loading = true;
1188
+ var reqdata = {
1189
+ message: this.message,
1190
+ audit_result: '不通过',
1191
+ operator: "fail",
1192
+ audit_time: Util.getNowDate(),
1193
+ user_name: this.$login.f.name,
1194
+ id: this.item.id,
1195
+ f_check_item_id: this.item.f_check_item_id
1196
+ }
1197
+ new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
1198
+ resolveMsg: '安检审核成功!',
1199
+ rejectMsg: '安检审核出错!'
1200
+ }).then((res) => {
1201
+ if (res.data.code == 200) {
1202
+ this.loading = false;
1203
+ this.message = '';
1204
+ this.showModel = false;
1205
+ this.$back()
1206
+ }
1207
+ })
1208
+ },
1209
+ auditFailCancel() {
1210
+ this.showModel = false;
1211
+ this.message = '';
1212
+ },
1213
+
1214
+ devicesCollect() {
1215
+ this.deviceCollects = []
1216
+ this.deviceImgs = []
1217
+ let checkResult = '正常'
1218
+ this.result = '正常'
1219
+ let codata = JSON.parse(JSON.stringify(this.data))
1220
+ for (let device in this.data) {
1221
+ let f_device_type
1222
+ if (device.startsWith("device")) {
1223
+ for (let item in this.data[device]) {
1224
+ if (this.data[device].length > 1) {
1225
+ let j = Number.parseInt(item) + 1
1226
+ f_device_type = `${this.data[device][item].f_device_type}${j}`
1227
+ } else {
1228
+ f_device_type = this.data[device][item].f_device_type
1229
+ }
1230
+ let deviceelse = []
1231
+ let deviceInfos = []
1232
+ for (let i in this.data[device][item].f_items) {
1233
+ let defects = ''
1234
+ let items = this.data[device][item].f_items[i]
1235
+ if (items.f_item_name == '用气设施安装是否符合规范'){
1236
+ debugger
1237
+ }
1238
+ if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value != null && items.f_item_value instanceof Array && items.f_item_value.length != 0) {
1239
+ for (let i in items.f_item_value) {
1240
+ let f_item_value = items.f_item_value[i]
1241
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
1242
+ continue
1243
+ }
1244
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
1245
+ checkResult = '有隐患'
1246
+ this.result = '有隐患'
1247
+ defects = `${defects}:${items.f_item_value}/`
1248
+ }
1249
+ }
1250
+ if (defects != '') {
1251
+ console.log('有隐患items', items)
1252
+ deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
1253
+ this.deviceImgs.push({f_overall_path:items.f_path})
1254
+ }
1255
+ } else if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value && items.f_item_value.length == 0) {
1256
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
1257
+ checkResult = '有隐患'
1258
+ this.result = '有隐患'
1259
+ deviceInfos.push(items.f_item_name)
1260
+ this.deviceImgs.push({f_overall_path:items.f_path})
1261
+ }
1262
+ } else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
1263
+ checkResult = '有隐患'
1264
+ this.result = '有隐患'
1265
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1266
+ this.deviceImgs.push({f_overall_path:items.f_path})
1267
+
1268
+ } else if (items.f_item_name == '金额异常差值') {
1269
+ var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
1270
+ //tag
1271
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1272
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1273
+ checkResult = '有隐患'
1274
+ this.result = '有隐患'
1275
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1276
+ }
1277
+ }
1278
+ } else if (items.f_item_name == '气量异常差值') {
1279
+ var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
1280
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1281
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1282
+ checkResult = '有隐患'
1283
+ this.result = '有隐患'
1284
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1285
+ }
1286
+ }
1287
+ }
1288
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
1289
+ for (let dev in this.deviceconfig2) {
1290
+ if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
1291
+ this.deviceconfig2[dev].items.push({
1292
+ lname: items.f_item_name
1293
+ })
1294
+ }
1295
+ }
1296
+ }
1297
+ if (items.type === 'selector') {
1298
+ items.selected = []
1299
+ } else if (items.type === 'inputSelector') {
1300
+ items.selected = ''
1301
+ }
1302
+ }
1303
+ this.$set('deviceCollect.name', f_device_type)
1304
+ this.$set('deviceCollect.value', checkResult)
1305
+ this.$set('deviceCollect.devices', deviceInfos)
1306
+ this.$set('deviceCollect.else', deviceelse)
1307
+ if (this.deviceCollect.name) {
1308
+ console.log("---------------"+JSON.stringify(this.deviceCollect))
1309
+ this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
1310
+ }
1311
+ checkResult = '正常'
1312
+ this.deviceCollect = {}
1313
+ }
1314
+ }
1315
+ }
1316
+ if (this.deviceCollects.length > 0) {
1317
+ this.hasDevice = true
1318
+ }
1319
+ this.deviceconfig2 = this.deviceconfig2.filter(row => {
1320
+ return !(row.checkname == '$configProp' || row.checkname == '$globalProp');
1321
+ })
1322
+ this.ajresult = JSON.parse(this.data.f_defect_content).result
1323
+ this.showimg3 = this.data.f_noanswer_path
1324
+ this.showimg5 = this.data.f_noanswer1_path
1325
+ this.showimg6 = this.data.f_noanswer2_path
1326
+ this.showimg4 = this.data.f_rejectcheck_path
1327
+ this.showimg7 = this.data.f_rejectcheck1_path
1328
+ this.showimg8 = this.data.f_rejectcheck2_path
1329
+ this.paperdata = this.data
1330
+ this.f_user_path = this.paperdata.f_user_pictures ? JSON.parse(this.paperdata.f_user_pictures)[0].f_user_path : ''
1331
+ this.loading = false
1332
+ },
1333
+ imgclose() {
1334
+ this.imgshow = false
1335
+ },
1336
+ putDevices() {
1337
+ ////tag
1338
+ this.$set('data.approve', "true")
1339
+ this.$set('data.writeback', "false")
1340
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1341
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1342
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1343
+ }
1344
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1345
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1346
+ }
1347
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1348
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1349
+ }
1350
+ if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
1351
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
1352
+ this.hiddenDangerImgNumber = 5
1353
+ } else {
1354
+ this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
1355
+ }
1356
+ }
1357
+ }
1358
+ //tag
1359
+ //tag)
1360
+ if (!this.item.f_safecheck_type && Vue.config.safecheck.SafecheckType) {
1361
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
1362
+ } else if (Vue.config.safecheck.SafecheckType){
1363
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
1364
+ }else {
1365
+ if(this.item.f_check_type == '民用'){
1366
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1367
+ }else {
1368
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1369
+ }
1370
+ }
1371
+ //遍历安检项配置
1372
+ for (let i in this.config) {
1373
+ //取得安检项索引值
1374
+ let n = this.config[i].index
1375
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1376
+ this.$set('data.' + 'device' + n, [])
1377
+ let items = []
1378
+ for (let it in this.config[i].items) {
1379
+ //赋值下拉选项
1380
+ if (this.config[i].items[it].type == 'selector') {
1381
+ for (let op in this.config[i].items[it].options)
1382
+ if (this.config[i].items[it].options[op].isdefault == true) {
1383
+ items.push({
1384
+ f_defect_level: this.config[i].items[it].options[op].level,
1385
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
1386
+ f_item_name: it,
1387
+ f_item_value: this.config[i].items[it].options[op].data,
1388
+ f_path: "",
1389
+ type: "selector"
1390
+ })
1391
+ }
1392
+ }
1393
+ }
1394
+ n = n + 1
1395
+ }
1396
+
1397
+ },
1398
+ showpath(val1, val2) {
1399
+ //tag
1400
+ //tag
1401
+ if (val1) {
1402
+ this.showimg1 = val1
1403
+ this.picturename = val2
1404
+ this.imgshow = true
1405
+ }
1406
+ },
1407
+ showpicture(val1, val2) {
1408
+ //tag
1409
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1410
+ return
1411
+ }
1412
+ for (let i = 0; i < this.devicesAll.length; i++) {
1413
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1414
+ if (this.devicesAll[i][j].f_device_type == val1) {
1415
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1416
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1417
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1418
+ return false
1419
+ } else {
1420
+ this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
1421
+ this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
1422
+ this.otherDarginShowImgs = []
1423
+ for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
1424
+ let img = {path: ''}
1425
+ if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
1426
+ img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
1427
+ this.otherDarginShowImgs.push(img)
1428
+ }
1429
+ }
1430
+ this.picturename = '隐患照片'
1431
+ this.imgshow = true
1432
+ return true
1433
+ }
1434
+ }
1435
+ }
1436
+
1437
+ }
1438
+ }
1439
+ }
1440
+ },
1441
+ isred(val1, val2) {
1442
+ //tag
1443
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1444
+ return
1445
+ }
1446
+ if (val2 == '用气设施安装是否符合规范'){
1447
+ debugger
1448
+ }
1449
+ for (let i = 0; i < this.devicesAll.length; i++) {
1450
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1451
+ if (this.devicesAll[i][j].f_device_type == val1) {
1452
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1453
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1454
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1455
+ return false
1456
+ } else {
1457
+ return true
1458
+ }
1459
+ }
1460
+ }
1461
+
1462
+ }
1463
+ }
1464
+ }
1465
+ },
1466
+ showpicture2() {
1467
+ this.imgshow2 = true
1468
+ },
1469
+ getDeviceValue(val1, val2) {
1470
+ let aa = ''
1471
+ for (let i = 0; i < this.devicesAll.length; i++) {
1472
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1473
+ if (this.devicesAll[i][j].f_device_type == val1) {
1474
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1475
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1476
+ if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1477
+ for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1478
+ let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
1479
+ aa += (val === null ? '空' : val) + ' '
1480
+ }
1481
+ return aa
1482
+ }
1483
+ }
1484
+ }
1485
+
1486
+ }
1487
+ }
1488
+ }
1489
+
1490
+ },
1491
+ getDevicePath(val1, val2) {
1492
+ for (let i = 0; i < this.devicesAll.length; i++) {
1493
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1494
+ if (this.devicesAll[i][j].f_device_type == val1) {
1495
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1496
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1497
+ return this.devicesAll[i][j].f_items[k].f_path
1498
+ }
1499
+ }
1500
+
1501
+ }
1502
+ }
1503
+ }
1504
+
1505
+ },
1506
+ getDeviceAll() {
1507
+ let keyall = Object.keys(this.data)
1508
+ for (let i = 0; i < keyall.length; i++) {
1509
+ //tag)
1510
+ if ((keyall[i].startsWith('f_devices') || keyall[i].startsWith('devices')) && keyall[i] != 'deviceundefined') {
1511
+ this.devicesAll.push(this.data[keyall[i]])
1512
+ //tag
1513
+ }
1514
+ }
1515
+ //tag
1516
+ //tag)
1517
+ this.devicesCollect()
1518
+
1519
+ },
1520
+
1521
+ back() {
1522
+ if (this.role == 'inspect') {
1523
+ if (!this.isStrat) {
1524
+ this.$back()
1525
+ return
1526
+ } else {
1527
+ this.savePaper(true).then(() => {
1528
+ this.$back()
1529
+ this.isStrat = false
1530
+ })
1531
+ }
1532
+ } else {
1533
+ this.$back()
1534
+ }
1535
+ },
1536
+ checkIsStart() {
1537
+ alert('asdad')
1538
+ return
1539
+ },
1540
+
1541
+ viewPic(fileName) {
1542
+ //tag
1543
+ if (this.role == 'view') {
1544
+ if (!fileName.endsWith('nopic.png')) {
1545
+ this.pic_to_be_viewed = fileName
1546
+ this.showModal = true
1547
+ }
1548
+ } else {
1549
+ HostApp.viewPic(fileName)
1550
+ }
1551
+ },
1552
+ tick() {
1553
+ this.timer = null
1554
+ this.data.f_offsite_time = Util.toStandardTimeString()
1555
+ this.timer = window.setTimeout(this.tick, 1000)
1556
+ },
1557
+ getRepairState() {
1558
+ let repaired = true
1559
+ this.data.f_defects.forEach((defect) => {
1560
+ repaired = repaired & (defect.f_ratification == '已处理')
1561
+ })
1562
+ return repaired
1563
+ },
1564
+ verifyRepairDefects() {
1565
+ this.data.f_repair_date = Util.toStandardTimeString()
1566
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1567
+ },
1568
+ genuineSave(saveOnly) {
1569
+ HostApp.__this__.save(saveOnly)
1570
+ if (!saveOnly)
1571
+ HostApp.__this__.disableTimer()
1572
+ HostApp.__callback__ = null
1573
+ HostApp.__this__ = null
1574
+ },
1575
+ setUrgency() {
1576
+ this.data.f_defect_urgency = 'Z'
1577
+ let that = this
1578
+ this.data.f_defects.forEach(function (defect) {
1579
+ if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1580
+ that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1581
+ })
1582
+ if (this.data.f_defect_urgency == 'Z')
1583
+ this.data.f_defect_urgency = null
1584
+ },
1585
+ disableTimer() {
1586
+ if (this.timer) {
1587
+ window.clearTimeout(this.timer)
1588
+ this.timer = null
1589
+ }
1590
+ },
1591
+ loaded(paper) {
1592
+ if (!paper.hasOwnProperty('id')) {
1593
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1594
+ this.init()
1595
+ } else {
1596
+ Util.booleanFilter(paper)
1597
+ HostApp.__this__.$set('data', paper)
1598
+ HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1599
+ // 如果打回重检则重新计时
1600
+ //tag
1601
+ if (HostApp.__this__.role == 'inspect'
1602
+ && HostApp.__this__.data.f_approved
1603
+ && HostApp.__this__.data.f_approved == '打回') {
1604
+ //tag
1605
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1606
+ HostApp.__this__.tick()
1607
+ }
1608
+ }
1609
+ HostApp.__callback__ = null
1610
+ HostApp.__this__ = null
1611
+ },
1612
+ S4() {
1613
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1614
+ },
1615
+ init() {
1616
+ this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1617
+ this.data.ename = Vue.user.ename
1618
+ this.data.f_outlets = Vue.user.f_parentname
1619
+ this.data.f_meetunit = Vue.user.orgpathnames
1620
+ this.data.orgpathstr = Vue.user.orgpathstr
1621
+ this.data.f_check_item_id = this.item.id
1622
+ this.data.f_check_plan_id = this.f_plan_id
1623
+ this.data.f_checker_id = Vue.user.id
1624
+ this.data.f_checker_name = Vue.user.name
1625
+ this.data.f_check_type = this.item.f_user_type
1626
+ this.data.f_subcompany = this.item.f_subcompany
1627
+ this.data.f_approved = this.item.f_approved
1628
+ this.data.f_repair_approved = this.item.f_repair_approved
1629
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1630
+ this.data.f_approved = this.item.f_approved
1631
+ this.data.f_filialeid = this.item.f_filialeid
1632
+ this.data.f_orgstr = this.item.f_orgstr
1633
+ this.data.version = this.item.version
1634
+ this.$set('data.f_meters', this.item.f_plan_meters)
1635
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1636
+ // 安检状态
1637
+ this.$set('data.f_entry_status', '入户')
1638
+ this.$set('data.f_usegas', '已使用')
1639
+ this.$set('data.f_state', this.item.f_state)
1640
+ // 用户信息
1641
+ this.$set('data.f_user_name', this.item.f_user_name)
1642
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1643
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1644
+ this.$set('data.f_address', this.item.f_address)
1645
+ this.$set('data.f_card_id', this.item.f_card_id)
1646
+ this.$set('data.f_area', this.item.f_area)
1647
+ this.$set('data.f_street', this.item.f_street)
1648
+ this.$set('data.f_room', this.item.f_room)
1649
+ this.$set('data.f_building', this.item.f_building)
1650
+ this.$set('data.f_unit', this.item.f_unit)
1651
+ this.$set('data.f_floor', this.item.f_floor)
1652
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1653
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1654
+ this.$set('data.f_comments', this.item.f_comments)
1655
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1656
+ // 处置方式
1657
+ this.$set('data.f_no_gas_device', false)
1658
+ this.$set('data.f_close_valve', false)
1659
+ this.$set('data.f_unload_battery', false)
1660
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1661
+ this.data.f_check_item_id = this.data.f_noplan_item_id
1662
+ }
1663
+
1664
+ //房屋结构
1665
+ // this.$set('data.f_room_style', '多层')
1666
+ //供暖方式
1667
+ // this.$set('data.f_heating_style', '热力公司集中供暖')
1668
+ if (this.item.f_plan_meters) {
1669
+ for (let de in this.devices) {
1670
+ this.$set('data.device' + this.devices[de].n, [])
1671
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1672
+ if (this.item.f_plan_meters[i].f_meter_type) {
1673
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1674
+ delete this.config['燃气表']['items']['累计购气量']
1675
+ this.data['device' + this.devices[de].n].push({
1676
+ f_device_type: "燃气表",
1677
+ f_items: [{
1678
+ f_defect_level: null,
1679
+ f_device_id: "",
1680
+ f_is_defect: "",
1681
+ f_item_name: "表品牌",
1682
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1683
+ f_path: "",
1684
+ type: "string"
1685
+ },
1686
+ {
1687
+ f_defect_level: null,
1688
+ f_device_id: "",
1689
+ f_is_defect: "",
1690
+ f_item_name: "位置",
1691
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1692
+ f_path: "",
1693
+ type: "selector"
1694
+ },
1695
+ {
1696
+ f_defect_level: null,
1697
+ f_device_id: "",
1698
+ f_is_defect: "",
1699
+ f_item_name: "表号",
1700
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1701
+ f_path: "",
1702
+ type: "number"
1703
+ },
1704
+ {
1705
+ f_defect_level: null,
1706
+ f_device_id: "",
1707
+ f_is_defect: "",
1708
+ f_item_name: "表封号",
1709
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1710
+ f_path: "",
1711
+ type: "number"
1712
+ },
1713
+ {
1714
+ f_defect_level: null,
1715
+ f_device_id: "",
1716
+ f_is_defect: "",
1717
+ f_item_name: "表型号",
1718
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1719
+ f_path: "",
1720
+ type: "selector"
1721
+ },
1722
+ {
1723
+ f_defect_level: null,
1724
+ f_device_id: "",
1725
+ f_is_defect: "",
1726
+ f_item_name: "表底数",
1727
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1728
+ f_path: "",
1729
+ type: "number"
1730
+ }
1731
+ ]
1732
+ })
1733
+ } else if (this.devices[de].device == "燃气表") {
1734
+ delete this.config['燃气表']['items']['表底数']
1735
+ this.data['device' + this.devices[de].n].push({
1736
+ f_device_type: "燃气表",
1737
+ f_items: [{
1738
+ f_defect_level: null,
1739
+ f_device_id: "",
1740
+ f_is_defect: "",
1741
+ f_item_name: "表品牌",
1742
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1743
+ f_path: "",
1744
+ type: "string"
1745
+ },
1746
+ {
1747
+ f_defect_level: null,
1748
+ f_device_id: "",
1749
+ f_is_defect: "",
1750
+ f_item_name: "位置",
1751
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1752
+ f_path: "",
1753
+ type: "selector"
1754
+ },
1755
+ {
1756
+ f_defect_level: null,
1757
+ f_device_id: "",
1758
+ f_is_defect: "",
1759
+ f_item_name: "表号",
1760
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1761
+ f_path: "",
1762
+ type: "number"
1763
+ },
1764
+ {
1765
+ f_defect_level: null,
1766
+ f_device_id: "",
1767
+ f_is_defect: "",
1768
+ f_item_name: "表封号",
1769
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1770
+ f_path: "",
1771
+ type: "number"
1772
+ },
1773
+ {
1774
+ f_defect_level: null,
1775
+ f_device_id: "",
1776
+ f_is_defect: "",
1777
+ f_item_name: "表型号",
1778
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1779
+ f_path: "",
1780
+ type: "selector"
1781
+ },
1782
+ {
1783
+ f_defect_level: null,
1784
+ f_device_id: "",
1785
+ f_is_defect: "",
1786
+ f_item_name: "累计购气量",
1787
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1788
+ f_path: "",
1789
+ type: "number"
1790
+ }
1791
+ ]
1792
+ })
1793
+ }
1794
+ }
1795
+ }
1796
+ }
1797
+ }
1798
+
1799
+ this.$goto('paper-state', {}, 'paper-router')
1800
+ },
1801
+ extend(initalObj, finalObj) {
1802
+ var obj = finalObj || {};
1803
+ for (var i in initalObj) {
1804
+ var prop = initalObj[i];
1805
+
1806
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1807
+ if (prop === obj) {
1808
+ continue;
1809
+ }
1810
+
1811
+ if (typeof prop === 'object') {
1812
+ if (obj[i]) {
1813
+ this.extend(obj[i], prop)
1814
+ } else {
1815
+ obj[i] = prop;
1816
+ }
1817
+ }
1818
+ }
1819
+ return obj;
1820
+ },
1821
+ //获取当前时间
1822
+ getNowFormatDate() {
1823
+ var date = new Date();
1824
+ var seperator1 = "-";
1825
+ var seperator2 = ":";
1826
+ var month = date.getMonth() + 1;
1827
+ var strDate = date.getDate();
1828
+ if (month >= 1 && month <= 9) {
1829
+ month = "0" + month;
1830
+ }
1831
+ if (strDate >= 0 && strDate <= 9) {
1832
+ strDate = "0" + strDate;
1833
+ }
1834
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1835
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1836
+ + seperator2 + date.getSeconds();
1837
+ return currentdate;
1838
+ }
1839
+ },
1840
+ ready() {
1841
+ setTimeout(() => {
1842
+ this.loading = false;
1843
+ }, 10000)
1844
+ this.putDevices()
1845
+ this.showAudit()
1846
+ this.newConfig = this.$appdata.getSingleValue('配置中心获取文件') ? this.$appdata.getSingleValue('配置中心获取文件') : '否';
1847
+ if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
1848
+ if (this.role != 'inspect') {
1849
+ let that = this
1850
+ let id
1851
+ if (this.role == 'view') {
1852
+ id = this.item.id
1853
+ } else if (this.role == 'androidview') {
1854
+ id = this.item.f_paper_id
1855
+ }
1856
+ this.$resetpost(`rs/logic/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1857
+ //tag
1858
+ if (respanse.data.length != 0) {
1859
+ // 包含 其它 特殊处理的数组
1860
+ // 对应位置
1861
+ that.data = Object.assign(that.data, respanse.data[0])
1862
+ if (respanse.data[0].f_devices) {
1863
+ for (let da in that.devices) {
1864
+ that.$set('data.device' + that.devices[da].n, [])
1865
+ }
1866
+ respanse.data[0].f_devices.forEach((item) => {
1867
+ for (let de in that.devices) {
1868
+ if (that.devices[de].device == item.f_device_type) {
1869
+ item.f_items.forEach((f_item) => {
1870
+ //tag
1871
+ //tag
1872
+ let itemValues = []
1873
+ f_item.f_item_lists.forEach((tempItem) => {
1874
+ //tag
1875
+ if (tempItem.f_item_value !== 'null') {
1876
+ itemValues.push(tempItem.f_item_value)
1877
+ }
1878
+ })
1879
+ f_item.f_item_value = itemValues
1880
+ })
1881
+ that.data['device' + that.devices[de].n].push({
1882
+ f_device_type: item.f_device_type,
1883
+ f_items: item.f_items
1884
+ })
1885
+ }
1886
+ }
1887
+ })
1888
+ }
1889
+ Util.replaceFalse(that.data)
1890
+ Util.booleanFilter(that.data)
1891
+ if (this.role == 'view') {
1892
+ Util.ratifyPics(that.data)
1893
+ Util.ratifyPics(that.picture)
1894
+ } else {
1895
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1896
+ }
1897
+ //tag
1898
+ }
1899
+ // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1900
+ this.isshow = true
1901
+ asyncReady(this).then(() => {
1902
+ //tag
1903
+ //tag)
1904
+ console.log('Vue.config.safecheck.DevicesConfig', Vue.config.safecheck.DevicesConfig)
1905
+ // 如果没有用户类型 默认按民用配置走
1906
+ if (this.data.f_check_type == '非民用') {
1907
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesSetConfig))
1908
+ }else{
1909
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesConfig))
1910
+ }
1911
+ if (this.data.f_collection_type == '按金额') {
1912
+ if (this.deviceconfig["燃气表"]){
1913
+ let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1914
+ this.deviceconfig["燃气表"].items = aaa
1915
+ }
1916
+ } else {
1917
+ if (this.deviceconfig["燃气表"]){
1918
+ let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1919
+ this.deviceconfig["燃气表"].items = aaa
1920
+ }
1921
+ }
1922
+ this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1923
+ this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1924
+ this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1925
+ this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1926
+ this.getDeviceAll()
1927
+ })
1928
+ }
1929
+ ).catch(
1930
+ (respanse) => {
1931
+ //tag
1932
+ alert('查找安检单失败')
1933
+ this.loading = false
1934
+ })
1935
+ }
1936
+ }
1937
+
1938
+ },
1939
+ watch: {
1940
+ // 'isUpload'(val){
1941
+ // //tag
1942
+ // }
1943
+ },
1944
+ destroyed() {
1945
+ //tag
1946
+ this.disableTimer()
1947
+ }
1948
+ }
1949
+
1950
+ </script>
1951
+ <style scoped>
1952
+ .table-striped thead tr th {
1953
+ background-color: rgb(223, 237, 251);
1954
+ padding: 10px;
1955
+ border-left: solid 0px #dae4f2;
1956
+ border-top: solid 1px #dae4f2;
1957
+ border-right: none;
1958
+ border-bottom: none;
1959
+ text-align: center;
1960
+ color: black;
1961
+ }
1962
+ </style>