safecheck-client 3.0.30-8 → 3.0.30-81

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