safecheck-client 3.0.39-5 → 3.0.39-51

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