safecheck-client 3.0.33-103 → 3.0.33-106

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