safecheck-client 3.0.39-5 → 3.0.39-6

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