safecheck-client 3.0.33-103 → 3.0.33-104

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