safecheck-client 3.0.39-1 → 3.0.39-3

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 (31) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/AreaPlan.vue +567 -566
  3. package/src/components/android/SafecheckDevices.vue +1300 -1300
  4. package/src/components/android/SealBind.vue +392 -392
  5. package/src/components/android/SealManage.vue +250 -250
  6. package/src/components/map/checkScreen.vue +920 -920
  7. package/src/filiale/dexin/android/AreaPlan.vue +567 -0
  8. package/src/filiale/dexin/android/SafecheckOrderV.vue +2983 -2983
  9. package/src/filiale/dexin/android.js +21 -20
  10. package/src/filiale/dexin/pc/PlanManage.vue +894 -894
  11. package/src/filiale/dexin/pc.js +15 -15
  12. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  13. package/src/filiale/huayin/android/AddPlanItem.vue +509 -509
  14. package/src/filiale/huayin/android/AreaPlan.vue +572 -572
  15. package/src/filiale/huayin/android/CurrentCreate.vue +1121 -1121
  16. package/src/filiale/huayin/android.js +16 -16
  17. package/src/filiale/huayin/pc/PaperList.vue +635 -635
  18. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1231 -1231
  19. package/src/filiale/tongchuan/android/AddPlanItemset.vue +484 -484
  20. package/src/filiale/tongchuan/android/PaperFeedback.vue +1317 -1317
  21. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1343 -1343
  22. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1209 -1209
  23. package/src/filiale/tongchuan/android.js +22 -22
  24. package/src/filiale/tongchuan/pc/CheckBookList.vue +377 -377
  25. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  26. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +618 -618
  27. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1524 -1524
  28. package/src/filiale/tongchuan/pc/PaperList.vue +684 -684
  29. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2682 -2680
  30. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +278 -278
  31. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1136 -1136
@@ -1,1524 +1,1524 @@
1
- <style scoped>
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 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">
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_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_remark }}</td>-->
118
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
- <td style="text-align: center;border: #E9E9E9 solid 1px" colspan="3" >{{ 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" v-show="paperdata.f_entry_status=='入户'">
128
- <thead>
129
- <tr>
130
- <th colspan="4" style="text-align: center">用户安检概况</th>
131
- </tr>
132
- </thead>
133
- <tbody>
134
- <tr>
135
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
136
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
137
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
138
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
139
- </tr>
140
- <tr>
141
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
142
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
143
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
144
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
145
- </tr>
146
- <tr>
147
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
148
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{paperdata.f_client_evaluation }}
149
- </td>
150
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
151
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ ajresult }}</td>
152
- </tr>
153
- <tr>
154
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">特殊备注:</td>
155
- <td colspan="3"
156
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
157
- {{ paperdata.f_remark }}
158
- </td>
159
- </tr>
160
- <tr>
161
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
162
- <td colspan="3"
163
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
164
- <span v-for="deviceCollect in deviceCollects">
165
- <span class="li-font">
166
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
167
- </span>
168
- <br>
169
- <span v-if="deviceCollect.value == '有隐患'">
170
- <lable>
171
- 隐患:
172
- </lable>
173
- <span class="li-font" v-for="val in deviceCollect.devices">
174
- {{ val }}&nbsp;&nbsp;&nbsp;
175
- </span><br>
176
- </span>
177
-
178
- </span>
179
- </td>
180
- </tr>
181
-
182
- </tbody>
183
- </table>
184
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status!='入户'">
185
- <thead>
186
- <tr>
187
- <th colspan="4" style="text-align: center">用户安检概况</th>
188
- </tr>
189
- </thead>
190
- <tbody>
191
- <tr>
192
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
193
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
194
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
195
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
196
- </tr>
197
- <tr>
198
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
199
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
200
- {{ paperdata.f_entry_status }}
201
- </td>
202
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
203
- <button-link style="color: black" type="button" class="btn btn-link" v-show="paperdata.f_entry_status!='已处理'" @click="showpicture2()">
204
- {{ dev.lname }}
205
- 查看{{ data.f_entry_status }}照片
206
- </button-link>
207
- </td>
208
- </tr>
209
-
210
- </tbody>
211
- </table>
212
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
213
- <thead>
214
- <tr>
215
- <th style="text-align: center">总体安检照片</th>
216
- </tr>
217
- </thead>
218
- <tbody>
219
- <tr>
220
- <td style="margin: auto;text-align: center">
221
- <div class="container" style="max-width: 550px;background: #FFFFFF">
222
- <div class="img" v-for="img in paperdata.f_overall_imgs">
223
- <img-self-safe :src="img.f_overall_path" style="float: left" width="150"
224
- height="200"></img-self-safe>
225
- </div>
226
- </div>
227
-
228
-
229
- </td>
230
-
231
- </tr>
232
- </tbody>
233
- </table>
234
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
235
- <thead>
236
- <tr>
237
- <th style="text-align: center">用户签名照片</th>
238
- </tr>
239
- </thead>
240
- <tbody>
241
- <tr>
242
- <td style="margin: auto;text-align: center">
243
- <div class="container" style="max-width: 500px;background: #FFFFFF">
244
- <div class="img" style="float: none">
245
- <img-self-safe :src="paperdata.f_sign_path" width="486" height="300"></img-self-safe>
246
- </div>
247
- </div>
248
- </td>
249
- </tr>
250
- </tbody>
251
- </table>
252
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'&& item.f_recording1_path && isRecodrDownloadBtn">
253
- <thead>
254
- <tr>
255
- <th style="text-align: center">录音文件</th>
256
- </tr>
257
- </thead>
258
- <tbody>
259
- <tr>
260
- <td style="margin: auto;text-align: center">
261
- <div class="container" style="max-width: 500px;background: #FFFFFF">
262
- <a class="button_spacing button_search-1" :download="item.f_user_name+'-'+item.f_check_type+'-'+录音文件.arm"
263
- :href="'rs/image/file/'+item.f_recording1_path" >录音下载</a>
264
- </div>
265
- </td>
266
- </tr>
267
- </tbody>
268
- </table>
269
- </div>
270
- </div>
271
- <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
272
- <div class="col-md-6" style="height: 100%;overflow: scroll">
273
- <div style="width: 95%;margin-left: 5%">
274
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
275
- <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
276
- <tr>
277
- <th style="text-align: center">{{ config.checkname }}</th>
278
- </tr>
279
- </thead>
280
- <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
281
- <tr v-for="dev in config.items">
282
- <td v-if="dev.type!='text' && dev.isshow!=false">
283
- <div class="row">
284
- <div class="col-md-8" style="text-align: center;">
285
- <label>
286
- <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
287
- :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
288
- {{ dev.lname }}
289
- </button-link>
290
- </label>
291
- </div>
292
- <div class="col-md-4" style="text-align: center">
293
- <label style="font-weight: normal"
294
- v-if="dev.type!='picture'">{{ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无' }}</label>
295
- <label style="font-weight: normal" v-if="dev.type=='picture'">
296
- <div v-show="getDevicePath(config.checkname,dev.lname)">
297
- <button-link style="color: black" type="button" class="btn btn-link"
298
- @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
299
- </button-link>
300
- </div>
301
- <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
302
- </label>
303
- </div>
304
- </div>
305
- </td>
306
- <td v-if="dev.type==='text' && dev.isshow!=false">
307
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
308
- </td>
309
- </tr>
310
- </tbody>
311
- </table>
312
- </div>
313
- </div>
314
-
315
- </div>
316
- </div>
317
- <div v-show="false">
318
- <div id="toPdf" class="container-fluid" style="overflow: scroll">
319
- <div class="row">
320
- <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
321
- <div style="width: 100%;margin: auto">
322
- <table class="table table-striped table-bordered" style="margin-bottom: 6px">
323
- <thead>
324
- <tr>
325
- <th colspan="6" style="text-align: center">用户基本信息</th>
326
- </tr>
327
- </thead>
328
- <tbody>
329
- <tr>
330
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
331
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
332
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
333
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
334
- </tr>
335
- <tr>
336
- <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
337
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
338
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
339
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
340
- </tr>
341
- <tr>
342
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
343
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
344
- <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
345
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_area }}</td>
346
- </tr>
347
- <tr>
348
- <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
349
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
350
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
351
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
352
- </tr>
353
- <tr>
354
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
355
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
356
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
357
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
358
- </tr>
359
- <tr>
360
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
361
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
362
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
363
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
364
- </tr>
365
- <tr>
366
- <!--<td style="text-align: center;border: #E9E9E9 solid 1px">特殊备注:</td>
367
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_remark }}</td>-->
368
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
369
- <td style="text-align: center;border: #E9E9E9 solid 1px" colspan="3" >{{ paperdata.f_residential_area }}</td>
370
- </tr>
371
- <tr>
372
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
373
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
374
- </tr>
375
- </tbody>
376
- </table>
377
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
378
- <thead>
379
- <tr>
380
- <th colspan="4" style="text-align: center">用户安检概况</th>
381
- </tr>
382
- </thead>
383
- <tbody>
384
- <tr>
385
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
386
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
387
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
388
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
389
- </tr>
390
- <tr>
391
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
392
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
393
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
394
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
395
- </tr>
396
- <tr>
397
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
398
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{paperdata.f_client_evaluation }}
399
- </td>
400
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
401
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ ajresult }}</td>
402
- </tr>
403
- <tr>
404
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">特殊备注:</td>
405
- <td colspan="3"
406
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
407
- {{ paperdata.f_remark }}
408
- </td>
409
- </tr>
410
- <tr>
411
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
412
- <td colspan="3"
413
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
414
- <span v-for="deviceCollect in deviceCollects">
415
- <span class="li-font">
416
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
417
- </span>
418
- <br>
419
- <span v-if="deviceCollect.value == '有隐患'">
420
- <lable>
421
- 隐患:
422
- </lable>
423
- <span class="li-font" v-for="val in deviceCollect.devices">
424
- {{ val }}&nbsp;&nbsp;&nbsp;
425
- </span><br>
426
- </span>
427
-
428
- </span>
429
- </td>
430
- </tr>
431
-
432
- </tbody>
433
- </table>
434
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status!='入户'">
435
- <thead>
436
- <tr>
437
- <th colspan="4" style="text-align: center">用户安检概况</th>
438
- </tr>
439
- </thead>
440
- <tbody>
441
- <tr>
442
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
443
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
444
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
445
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
446
- </tr>
447
- <tr>
448
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
449
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
450
- {{ paperdata.f_entry_status }}
451
- </td>
452
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
453
- <button-link style="color: black" type="button" class="btn btn-link" v-show="paperdata.f_entry_status!='已处理'" @click="showpicture2()">
454
- {{ dev.lname }}
455
- 查看{{ data.f_entry_status }}照片
456
- </button-link>
457
- </td>
458
- </tr>
459
-
460
- </tbody>
461
- </table>
462
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
463
- <thead>
464
- <tr>
465
- <th style="text-align: center">总体安检照片</th>
466
- </tr>
467
- </thead>
468
- <tbody>
469
- <tr>
470
- <td style="margin: auto;text-align: center">
471
- <div class="container" style="max-width: 550px;background: #FFFFFF">
472
- <div class="img" v-for="img in paperdata.f_overall_imgs">
473
- <img-self-safe :src="img.f_overall_path" style="float: left" width="150"
474
- height="200"></img-self-safe>
475
- </div>
476
- </div>
477
-
478
-
479
- </td>
480
-
481
- </tr>
482
- </tbody>
483
- </table>
484
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
485
- <thead>
486
- <tr>
487
- <th style="text-align: center">用户签名照片</th>
488
- </tr>
489
- </thead>
490
- <tbody>
491
- <tr>
492
- <td style="margin: auto;text-align: center">
493
- <div class="container" style="max-width: 500px;background: #FFFFFF">
494
- <div class="img" style="float: none">
495
- <img-self-safe :src="paperdata.f_sign_path" width="486" height="300"></img-self-safe>
496
- </div>
497
- </div>
498
- </td>
499
- </tr>
500
- </tbody>
501
- </table>
502
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'&& item.f_recording1_path && isRecodrDownloadBtn">
503
- <thead>
504
- <tr>
505
- <th style="text-align: center">录音文件</th>
506
- </tr>
507
- </thead>
508
- <tbody>
509
- <tr>
510
- <td style="margin: auto;text-align: center">
511
- <div class="container" style="max-width: 500px;background: #FFFFFF">
512
- <a class="button_spacing button_search-1" :download="item.f_user_name+'-'+item.f_check_type+'-'+录音文件.arm"
513
- :href="'rs/image/file/'+item.f_recording1_path" >录音下载</a>
514
- </div>
515
- </td>
516
- </tr>
517
- </tbody>
518
- </table>
519
- </div>
520
- </div>
521
- <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
522
- <div style="width: 95%;margin-left: 5%">
523
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
524
- <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
525
- <tr>
526
- <th style="text-align: center">{{ config.checkname }}</th>
527
- </tr>
528
- </thead>
529
- <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
530
- <tr v-for="dev in config.items">
531
- <td v-if="dev.type!='text' && dev.isshow!=false">
532
- <div class="row">
533
- <div class="col-md-8" style="text-align: center;">
534
- <label>
535
- <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
536
- :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
537
- {{ dev.lname }}
538
- </button-link>
539
- </label>
540
- </div>
541
- <div class="col-md-4" style="text-align: center">
542
- <label style="font-weight: normal"
543
- v-if="dev.type!='picture'">{{ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无' }}</label>
544
- <label style="font-weight: normal" v-if="dev.type=='picture'">
545
- <div v-show="getDevicePath(config.checkname,dev.lname)">
546
- <button-link style="color: black" type="button" class="btn btn-link"
547
- @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
548
- </button-link>
549
- </div>
550
- <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
551
- </label>
552
- </div>
553
- </div>
554
- </td>
555
- <td v-if="dev.type==='text' && dev.isshow!=false">
556
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
557
- </td>
558
- </tr>
559
- </tbody>
560
- </table>
561
- </div>
562
- </div>
563
-
564
- </div>
565
- </div>
566
- </div>
567
- </div>
568
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
569
- <header slot="modal-header" class="modal-header">
570
- {{ picturename }}
571
- </header>
572
- <article slot="modal-body" class="modal-body">
573
- <div class="from-group">
574
- <div class="row">
575
- <div class="col-md-6">
576
- <img-self-safe v-if="showimg1" :src="showimg1" width="300" height="400"></img-self-safe>
577
- </div>
578
- <div class="col-md-6">
579
- <img-self-safe v-if="showimg2" :src="showimg2" width="300" height="400"></img-self-safe>
580
- </div>
581
- </div>
582
- </div>
583
- </article>
584
- <footer slot="modal-footer" class="modal-footer" v-show="false">
585
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
586
- </footer>
587
- </modal>
588
- <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
589
- <header slot="modal-header" class="modal-header">
590
- {{ paperdata.f_entry_status }}照片
591
-
592
- </header>
593
- <article slot="modal-body" class="modal-body">
594
- <div class="from-group">
595
- <div class="row">
596
- <div class="col-md-6">
597
- <img-self-safe v-if="this.paperdata.f_entry_status=='到访不遇'" :src="showimg3" width="300"
598
- height="400"></img-self-safe>
599
- <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg5)" :src="'/rs/image/file/'+showimg5" width="300"
600
- height="400"></img-self-safe>
601
- <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg6)" :src="'/rs/image/file/'+showimg6" width="300"
602
- height="400"></img-self-safe>
603
- <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg7)" :src="'/rs/image/file/'+showimg7" width="300"
604
- height="400"></img-self-safe>
605
- </div>
606
- <div class="col-md-6">
607
- <img-self-safe v-if="this.paperdata.f_entry_status=='拒检'" :src="showimg4" width="300"
608
- height="400"></img-self-safe>
609
- </div>
610
- </div>
611
- </div>
612
- </article>
613
- <footer slot="modal-footer" class="modal-footer" v-show="false">
614
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
615
- </footer>
616
- </modal>
617
- </template>
618
-
619
- <script>
620
- // import PaperUserm from './PaperUserm'
621
- // import PaperStatem from './PaperStatem'
622
- // import Devicesm from './Devicesm'
623
- // import PaperFeedbackm from './PaperFeedbackm'
624
- import ObjConfig from '../../../utils/GerJsonObjectConfig'
625
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
626
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
627
- import Vue from 'vue'
628
- import * as Util from '../../Util'
629
- import {jsonSort} from '../../../utils/LdapHelper'
630
- import {HttpResetClass} from "vue-client";
631
- import html2pdf from 'html2pdf.js'
632
-
633
- let asyncReady = async function (self) {
634
- // 获取配置信息
635
- try {
636
- /*let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
637
- data: {
638
- items: 'f_dir',
639
- tablename: 't_organization',
640
- condition: `id = '${self.item.f_filialeid}'`,
641
- orderitem: 'id'
642
- }
643
- })/!*.then(res=>{*!/
644
- //tag
645
- //tag)
646
- if (!res.data[0].f_dir) {
647
- self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
648
- } else {
649
- //this.f_dir=res.data[0].f_dir
650
- try {
651
- let res1 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
652
- resolveMsg: '获取居民配置项成功!',
653
- rejectMsg: '获取居民配置项出错!'
654
- })/!*.then(res=>{*!/
655
- //tag
656
- //this.safeConfig["民用配置项"]=Object.assign({},res.data)
657
- Vue.config.safecheck.DevicesConfig = res1.data
658
- /!*})*!/
659
- let res2 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
660
- resolveMsg: '获取非居民配置项成功!',
661
- rejectMsg: '获取非居民配置项出错!'
662
- })/!*.then(res=>{*!/
663
- //tag
664
- //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
665
- Vue.config.safecheck.DevicesSetConfig = res2.data
666
- /!*}).then(res=> {
667
- })*!/
668
-
669
- } catch (e) {
670
- self.$showMessage("获取配置文件失败" + e)
671
- }
672
- }*/
673
- } catch (error) {
674
- // 忽略704,文件找不到异常R
675
- if (error.status !== 704) {
676
- throw error
677
- }
678
- }
679
- }
680
- export default {
681
- title: '安检单',
682
- props: ['f_plan_id', 'item', 'role'],
683
- data() {
684
- return {
685
- data: {
686
- f_devices: [],
687
- f_defect_content: ''
688
- },
689
- paperdata: {},
690
- picturename: '隐患照片',
691
- defectDevice: {},
692
- hasDevice: false,
693
- deviceCollect: {},
694
- deviceCollects: [],
695
- isshow: false,
696
- ajresult: '',
697
- loading: true,
698
- imgshow: false,
699
- imgshow2: false,
700
- isUpload: false,
701
- livedispose: '',
702
- showimg1: '',
703
- showimg2: '',
704
- showimg3: '',
705
- showimg4: '',
706
- showimg5: '',
707
- showimg6: '',
708
- showimg7: '',
709
- startClick: false, //开始安检按钮是否可点击
710
- isStrat: false, //是否开始安检
711
- checkResult: {},//查询结果
712
- newcheckResult: {},
713
- timer: null,
714
- showModal: false,
715
- pic_to_be_viewed: '',
716
- showBack: true,
717
- devices: [],
718
- devicesAll: [],
719
- configAJ: [],
720
- configRQ: [],
721
- deviceconfig: {},
722
- deviceconfig2: [],
723
- f_devices: [],
724
- config: {
725
- "燃气表": {
726
- "checkmust": true,
727
- "index": 1,
728
- "items": {
729
- "表号":{"index":1,"type":"string","readonly":true},
730
- "气表型号":{"index":2,"type":"string","readonly":true},
731
- "气表品牌":{"index":3,"type":"string","readonly":true},
732
- "进气方向":{"index":4,"type":"string","readonly":true},
733
- "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
734
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
735
- "累购气量":{"index":7,"type":"number","readonly":true},
736
- "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
737
- "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
738
- //显示屏数 --实际剩余气量
739
- "气量异常差值":{"index":10,"type":"number","readonly": true},
740
- "液晶余量":{"index":11,"type":"number"},
741
- "累购金额(非必填)":{"index":12,"type":"number","readonly": true},
742
- "已用金额(非必填)":{"index":13,"type":"number","readonly": false},
743
- "剩余金额(非必填)":{"index":14,"type":"number","readonly": false},
744
- }
745
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
746
- }
747
- },
748
- //金额
749
- config2: {
750
- "燃气表": {
751
- "checkmust": true,
752
- "index": 1,
753
- "items": {
754
- "表号":{"index":1,"type":"string","readonly":true},
755
- "气表型号":{"index":2,"type":"string","readonly":true},
756
- "气表品牌":{"index":3,"type":"string","readonly":true},
757
- "进气方向":{"index":4,"type":"string","readonly":true},
758
- "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
759
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
760
- "累购金额":{"index":7,"type":"number","readonly":true},
761
- "已用金额":{"index":8,"type":"number","checkmust": false},
762
- //显示屏数 --实际剩余气量
763
- "剩余金额":{"index":9,"type":"number","checkmust": false},
764
- "金额异常差值":{"index":10,"type":"number","readonly": true},
765
- "液晶余量":{"index":11,"type":"number"},
766
- "累购气量(非必填)":{"index":12,"type":"number","readonly": true},
767
- "已用气量(非必填)":{"index":13,"type":"number","readonly": false},
768
- "剩余气量(非必填)":{"index":14,"type":"number","readonly": false},
769
- }
770
- }
771
- },
772
- }
773
- },
774
- components: {
775
- RadioGroup,
776
- Radio,
777
- },
778
- computed: {
779
- isRecodrDownloadBtn(){
780
- // 投诉单下派还是处理
781
- let res = this.$appdata.getSingleValue('无限制录音');
782
- if (res == 'true'){
783
- return true;
784
- }else {
785
- return false;
786
- }
787
- },
788
- selector: {
789
- get() {
790
- return 'paper-state'
791
- },
792
- set(val) {
793
- if (this.isStrat) {
794
- //;
795
- this.$goto(val, {userinfo: this.data}, 'paper-router')
796
- } else {
797
- this.$showMessage('未开始安检!')
798
- }
799
- }
800
- },
801
- actionEnabled: {
802
- get() {
803
- return this.role == 'inspect'
804
- }
805
- }
806
- },
807
- methods: {
808
- exportToPDF() {
809
- const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
810
- html2pdf(element)
811
- },
812
- devicesCollect() {
813
- this.deviceCollects = []
814
- let checkResult = '正常'
815
- this.result = '正常'
816
- let codata = JSON.parse(JSON.stringify(this.data))
817
- //tag)
818
- for (let device in this.data) {
819
- let f_device_type
820
- if (device.startsWith("device")) {
821
- for (let item in this.data[device]) {
822
- if (this.data[device].length > 1) {
823
- let j = Number.parseInt(item) + 1
824
- f_device_type = `${this.data[device][item].f_device_type}${j}`
825
- } else {
826
- f_device_type = this.data[device][item].f_device_type
827
- }
828
- // //tag
829
- let deviceInfos = []
830
- for (let i in this.data[device][item].f_items) {
831
- let defects = ''
832
- let items = this.data[device][item].f_items[i]
833
- if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox') && items.f_item_value != null && items.f_item_value instanceof Array) {
834
- for (let i in items.f_item_value) {
835
- let f_item_value = items.f_item_value[i]
836
- for (let j = 0; j < this.config[this.data[device][item].f_device_type].items.length; j++) {
837
- if(this.config[this.data[device][item].f_device_type].items[j].lname===items.f_item_name){
838
- if(this.config[this.data[device][item].f_device_type].items[j].options){
839
- let options = this.config[this.data[device][item].f_device_type].items[j].options
840
- for (let option in options) {
841
- if (options[option].data === f_item_value) {
842
- if (options[option].isdefect === 'true' || options[option].isdefect === true) {
843
- checkResult = '有隐患'
844
- this.result = '有隐患'
845
- defects = `${defects}:${options[option].data}/`
846
- }
847
- }
848
- }
849
- }
850
- }
851
- }
852
- }
853
- if (defects != '') {
854
- deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}`)
855
- }
856
- } else if (items.type === 'string' && items.f_is_defect && items.f_item_value[0]) {
857
- checkResult = '有隐患'
858
- this.result = '有隐患'
859
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
860
- } else if (items.f_item_name == '金额异常差值') {
861
- var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
862
- //tag
863
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
864
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
865
- checkResult = '有隐患'
866
- this.result = '有隐患'
867
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
868
- }
869
- }
870
- } else if (items.f_item_name == '气量异常差值') {
871
- var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
872
- //tag
873
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
874
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
875
- checkResult = '有隐患'
876
- this.result = '有隐患'
877
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
878
- }
879
- }
880
- }
881
- //tag)
882
- //tag
883
- //tag
884
- if (items.type === 'selector') {
885
- items.selected = []
886
- } else if (items.type === 'inputSelector') {
887
- items.selected = ''
888
- }
889
- }
890
-
891
-
892
- //tag
893
- this.$set('deviceCollect.name', f_device_type)
894
- this.$set('deviceCollect.value', checkResult)
895
- this.$set('deviceCollect.devices', deviceInfos)
896
- //tag)
897
- if (this.deviceCollect.name) {
898
- //tag
899
- this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
900
- }
901
-
902
- checkResult = '正常'
903
- this.deviceCollect = {}
904
- }
905
- }
906
- }
907
- if (this.deviceCollects.length > 0) {
908
- this.hasDevice = true
909
- }
910
- this.ajresult = JSON.parse(this.data.f_defect_content).result
911
- this.showimg3 = this.data.f_noanswer_path
912
-
913
- this.showimg5 = this.data.f_noanswer_path1? this.data.f_noanswer_path1.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path1.lastIndexOf('?')):''
914
- this.showimg6 = this.data.f_noanswer_path2? this.data.f_noanswer_path2.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path2.lastIndexOf('?')):''
915
- this.showimg7 = this.data.f_noanswer_path3? this.data.f_noanswer_path3.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path3.lastIndexOf('?')):''
916
- this.showimg4 = this.data.f_rejectcheck_path
917
- this.$set('paperdata',this.data)
918
- //this.paperdata = this.data
919
- this.loading = false
920
- },
921
- imgclose() {
922
- this.imgshow = false
923
- },
924
- putDevices() {
925
- ////tag
926
- this.$set('data.approve', "true")
927
- this.$set('data.writeback', "false")
928
- if (Vue.config.safecheck.ApproveConfig != undefined) {
929
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
930
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
931
- }
932
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
933
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
934
- }
935
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
936
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
937
- }
938
- }
939
- //tag
940
- //tag)
941
- if (!this.item.f_safecheck_type) {
942
- this.config = this.extend(this.config,Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
943
- } else {
944
- if (Vue.config.safecheck.DevicesConfig != undefined)
945
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
946
- }
947
- //遍历安检项配置
948
- for (let i in this.config) {
949
- //取得安检项索引值
950
- let n = this.config[i].index
951
- this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
952
- this.$set('data.' + 'device' + n, [])
953
- let items = []
954
- for (let it in this.config[i].items) {
955
- //赋值下拉选项
956
- if (this.config[i].items[it].type == 'selector') {
957
- for (let op in this.config[i].items[it].options)
958
- if (this.config[i].items[it].options[op].isdefault == true) {
959
- items.push({
960
- f_defect_level: this.config[i].items[it].options[op].level,
961
- f_is_defect: this.config[i].items[it].options[op].isdefect,
962
- f_item_name: it,
963
- f_item_value: this.config[i].items[it].options[op].data,
964
- f_path: "",
965
- type: "selector"
966
- })
967
- }
968
- }
969
- }
970
- n = n + 1
971
- }
972
-
973
- },
974
- showpath(val1, val2) {
975
- //tag
976
- //tag
977
- if (val1) {
978
- this.showimg1 = val1
979
- this.picturename = val2
980
- this.imgshow = true
981
- }
982
- },
983
- showpicture(val1, val2) {
984
- //tag
985
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
986
- return
987
- }
988
- for (let i = 0; i < this.devicesAll.length; i++) {
989
- for (let j = 0; j < this.devicesAll[i].length; j++) {
990
- if (this.devicesAll[i][j].f_device_type == val1) {
991
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
992
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
993
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
994
- return false
995
- } else {
996
- this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
997
- this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
998
- this.picturename = '隐患照片'
999
- this.imgshow = true
1000
- return true
1001
- }
1002
- }
1003
- }
1004
-
1005
- }
1006
- }
1007
- }
1008
- },
1009
- isred(val1, val2) {
1010
- //tag
1011
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1012
- return
1013
- }
1014
- for (let i = 0; i < this.devicesAll.length; i++) {
1015
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1016
- if (this.devicesAll[i][j].f_device_type == val1) {
1017
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1018
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1019
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1020
- return false
1021
- } else {
1022
- return true
1023
- }
1024
- }
1025
- }
1026
-
1027
- }
1028
- }
1029
- }
1030
- },
1031
- showpicture2() {
1032
- this.imgshow2 = true
1033
- },
1034
- getDeviceValue(val1, val2) {
1035
- let aa = ''
1036
- for (let i = 0; i < this.devicesAll.length; i++) {
1037
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1038
- if (this.devicesAll[i][j].f_device_type == val1) {
1039
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1040
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1041
- if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1042
- for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1043
- aa += this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value + ' '
1044
- }
1045
- return aa
1046
- }
1047
- }
1048
- }
1049
-
1050
- }
1051
- }
1052
- }
1053
-
1054
- },
1055
- getDevicePath(val1, val2) {
1056
- for (let i = 0; i < this.devicesAll.length; i++) {
1057
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1058
- if (this.devicesAll[i][j].f_device_type == val1) {
1059
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1060
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1061
- return this.devicesAll[i][j].f_items[k].f_path
1062
- }
1063
- }
1064
-
1065
- }
1066
- }
1067
- }
1068
-
1069
- },
1070
- getDeviceAll() {
1071
- let keyall = Object.keys(this.data)
1072
- for (let i = 0; i < keyall.length; i++) {
1073
- //tag)
1074
- if (keyall[i].startsWith('device') && keyall[i] != 'deviceundefined') {
1075
- this.devicesAll.push(this.data[keyall[i]])
1076
- //tag
1077
- }
1078
- }
1079
- //tag
1080
- //tag)
1081
- this.devicesCollect()
1082
-
1083
- },
1084
-
1085
- back() {
1086
- if (this.role == 'inspect') {
1087
- if (!this.isStrat) {
1088
- this.$back()
1089
- return
1090
- } else {
1091
- this.savePaper(true).then(() => {
1092
- this.$back()
1093
- this.isStrat = false
1094
- })
1095
- }
1096
- } else {
1097
- this.$back()
1098
- }
1099
- },
1100
- checkIsStart() {
1101
- alert('asdad')
1102
- return
1103
- },
1104
-
1105
- viewPic(fileName) {
1106
- //tag
1107
- if (this.role == 'view') {
1108
- if (!fileName.endsWith('nopic.png')) {
1109
- this.pic_to_be_viewed = fileName
1110
- this.showModal = true
1111
- }
1112
- } else {
1113
- HostApp.viewPic(fileName)
1114
- }
1115
- },
1116
- tick() {
1117
- this.timer = null
1118
- this.data.f_offsite_time = Util.toStandardTimeString()
1119
- this.timer = window.setTimeout(this.tick, 1000)
1120
- },
1121
- getRepairState() {
1122
- let repaired = true
1123
- this.data.f_defects.forEach((defect) => {
1124
- repaired = repaired & (defect.f_ratification == '已处理')
1125
- })
1126
- return repaired
1127
- },
1128
- verifyRepairDefects() {
1129
- this.data.f_repair_date = Util.toStandardTimeString()
1130
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1131
- },
1132
- genuineSave(saveOnly) {
1133
- HostApp.__this__.save(saveOnly)
1134
- if (!saveOnly)
1135
- HostApp.__this__.disableTimer()
1136
- HostApp.__callback__ = null
1137
- HostApp.__this__ = null
1138
- },
1139
- setUrgency() {
1140
- this.data.f_defect_urgency = 'Z'
1141
- let that = this
1142
- this.data.f_defects.forEach(function (defect) {
1143
- if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1144
- that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1145
- })
1146
- if (this.data.f_defect_urgency == 'Z')
1147
- this.data.f_defect_urgency = null
1148
- },
1149
- disableTimer() {
1150
- if (this.timer) {
1151
- window.clearTimeout(this.timer)
1152
- this.timer = null
1153
- }
1154
- },
1155
- loaded(paper) {
1156
- if (!paper.hasOwnProperty('id')) {
1157
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1158
- this.init()
1159
- } else {
1160
- Util.booleanFilter(paper)
1161
- HostApp.__this__.$set('data', paper)
1162
- HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1163
- // 如果打回重检则重新计时
1164
- //tag
1165
- if (HostApp.__this__.role == 'inspect'
1166
- && HostApp.__this__.data.f_approved
1167
- && HostApp.__this__.data.f_approved == '打回') {
1168
- //tag
1169
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1170
- HostApp.__this__.tick()
1171
- }
1172
- }
1173
- HostApp.__callback__ = null
1174
- HostApp.__this__ = null
1175
- },
1176
- S4() {
1177
- return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1178
- },
1179
- init() {
1180
- this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1181
- this.data.ename = Vue.user.ename
1182
- this.data.f_outlets = Vue.user.f_parentname
1183
- this.data.f_meetunit = Vue.user.orgpathnames
1184
- this.data.orgpathstr = Vue.user.orgpathstr
1185
- this.data.f_check_item_id = this.item.id
1186
- this.data.f_check_plan_id = this.f_plan_id
1187
- this.data.f_checker_id = Vue.user.id
1188
- this.data.f_checker_name = Vue.user.name
1189
- this.data.f_check_type = this.item.f_user_type
1190
- this.data.f_subcompany = this.item.f_subcompany
1191
- this.data.f_approved = this.item.f_approved
1192
- this.data.f_repair_approved = this.item.f_repair_approved
1193
- this.data.f_no_checkplan = this.item.f_no_checkplan
1194
- this.data.f_approved = this.item.f_approved
1195
- this.data.f_filialeid = this.item.f_filialeid
1196
- this.data.f_orgstr = this.item.f_orgstr
1197
- this.data.version = this.item.version
1198
- this.$set('data.f_meters', this.item.f_plan_meters)
1199
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1200
- // 安检状态
1201
- this.$set('data.f_entry_status', '入户')
1202
- this.$set('data.f_usegas', '已使用')
1203
- this.$set('data.f_state', this.item.f_state)
1204
- // 用户信息
1205
- this.$set('data.f_user_name', this.item.f_user_name)
1206
- this.$set('data.f_user_phone', this.item.f_user_phone)
1207
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1208
- this.$set('data.f_address', this.item.f_address)
1209
- this.$set('data.f_card_id', this.item.f_card_id)
1210
- this.$set('data.f_area', this.item.f_area)
1211
- this.$set('data.f_street', this.item.f_street)
1212
- this.$set('data.f_room', this.item.f_room)
1213
- this.$set('data.f_building', this.item.f_building)
1214
- this.$set('data.f_unit', this.item.f_unit)
1215
- this.$set('data.f_floor', this.item.f_floor)
1216
- this.$set('data.f_residential_area', this.item.f_residential_area)
1217
- this.$set('data.f_idnumber', this.item.f_idnumber)
1218
- this.$set('data.f_comments', this.item.f_comments)
1219
- this.$set('data.f_userproperties', this.item.f_userproperties)
1220
- // 处置方式
1221
- this.$set('data.f_no_gas_device', false)
1222
- this.$set('data.f_close_valve', false)
1223
- this.$set('data.f_unload_battery', false)
1224
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1225
- this.data.f_check_item_id = this.data.f_noplan_item_id
1226
- }
1227
-
1228
- //房屋结构
1229
- // this.$set('data.f_room_style', '多层')
1230
- //供暖方式
1231
- // this.$set('data.f_heating_style', '热力公司集中供暖')
1232
- if (this.item.f_plan_meters) {
1233
- for (let de in this.devices) {
1234
- this.$set('data.device' + this.devices[de].n, [])
1235
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1236
- if (this.item.f_plan_meters[i].f_meter_type) {
1237
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1238
- delete this.config['燃气表']['items']['累计购气量']
1239
- this.data['device' + this.devices[de].n].push({
1240
- f_device_type: "燃气表",
1241
- f_items: [{
1242
- f_defect_level: null,
1243
- f_device_id: "",
1244
- f_is_defect: "",
1245
- f_item_name: "表品牌",
1246
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1247
- f_path: "",
1248
- type: "string"
1249
- },
1250
- {
1251
- f_defect_level: null,
1252
- f_device_id: "",
1253
- f_is_defect: "",
1254
- f_item_name: "位置",
1255
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1256
- f_path: "",
1257
- type: "selector"
1258
- },
1259
- {
1260
- f_defect_level: null,
1261
- f_device_id: "",
1262
- f_is_defect: "",
1263
- f_item_name: "表号",
1264
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1265
- f_path: "",
1266
- type: "number"
1267
- },
1268
- {
1269
- f_defect_level: null,
1270
- f_device_id: "",
1271
- f_is_defect: "",
1272
- f_item_name: "表封号",
1273
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1274
- f_path: "",
1275
- type: "number"
1276
- },
1277
- {
1278
- f_defect_level: null,
1279
- f_device_id: "",
1280
- f_is_defect: "",
1281
- f_item_name: "表型号",
1282
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1283
- f_path: "",
1284
- type: "selector"
1285
- },
1286
- {
1287
- f_defect_level: null,
1288
- f_device_id: "",
1289
- f_is_defect: "",
1290
- f_item_name: "表底数",
1291
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1292
- f_path: "",
1293
- type: "number"
1294
- }
1295
- ]
1296
- })
1297
- } else if (this.devices[de].device == "燃气表") {
1298
- delete this.config['燃气表']['items']['表底数']
1299
- this.data['device' + this.devices[de].n].push({
1300
- f_device_type: "燃气表",
1301
- f_items: [{
1302
- f_defect_level: null,
1303
- f_device_id: "",
1304
- f_is_defect: "",
1305
- f_item_name: "表品牌",
1306
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1307
- f_path: "",
1308
- type: "string"
1309
- },
1310
- {
1311
- f_defect_level: null,
1312
- f_device_id: "",
1313
- f_is_defect: "",
1314
- f_item_name: "位置",
1315
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1316
- f_path: "",
1317
- type: "selector"
1318
- },
1319
- {
1320
- f_defect_level: null,
1321
- f_device_id: "",
1322
- f_is_defect: "",
1323
- f_item_name: "表号",
1324
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1325
- f_path: "",
1326
- type: "number"
1327
- },
1328
- {
1329
- f_defect_level: null,
1330
- f_device_id: "",
1331
- f_is_defect: "",
1332
- f_item_name: "表封号",
1333
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1334
- f_path: "",
1335
- type: "number"
1336
- },
1337
- {
1338
- f_defect_level: null,
1339
- f_device_id: "",
1340
- f_is_defect: "",
1341
- f_item_name: "表型号",
1342
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1343
- f_path: "",
1344
- type: "selector"
1345
- },
1346
- {
1347
- f_defect_level: null,
1348
- f_device_id: "",
1349
- f_is_defect: "",
1350
- f_item_name: "累计购气量",
1351
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1352
- f_path: "",
1353
- type: "number"
1354
- }
1355
- ]
1356
- })
1357
- }
1358
- }
1359
- }
1360
- }
1361
- }
1362
-
1363
- this.$goto('paper-state', {}, 'paper-router')
1364
- },
1365
- extend(initalObj, finalObj) {
1366
- var obj = finalObj || {};
1367
- for (var i in initalObj) {
1368
- var prop = initalObj[i];
1369
-
1370
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1371
- if (prop === obj) {
1372
- continue;
1373
- }
1374
-
1375
- if (typeof prop === 'object') {
1376
- if (obj[i]) {
1377
- this.extend(obj[i], prop)
1378
- } else {
1379
- obj[i] = prop;
1380
- }
1381
- }
1382
- }
1383
- return obj;
1384
- },
1385
- //获取当前时间
1386
- getNowFormatDate() {
1387
- var date = new Date();
1388
- var seperator1 = "-";
1389
- var seperator2 = ":";
1390
- var month = date.getMonth() + 1;
1391
- var strDate = date.getDate();
1392
- if (month >= 1 && month <= 9) {
1393
- month = "0" + month;
1394
- }
1395
- if (strDate >= 0 && strDate <= 9) {
1396
- strDate = "0" + strDate;
1397
- }
1398
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1399
- + " " + date.getHours() + seperator2 + date.getMinutes()
1400
- + seperator2 + date.getSeconds();
1401
- return currentdate;
1402
- }
1403
- },
1404
- ready() {
1405
- this.putDevices()
1406
- if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1407
- if (this.role != 'inspect') {
1408
- let that = this
1409
- let id
1410
- if (this.role == 'view') {
1411
- id = this.item.id
1412
- } else if (this.role == 'androidview') {
1413
- id = this.item.f_paper_id
1414
- }
1415
- this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1416
- //tag
1417
- if (respanse.data.length != 0) {
1418
- // 包含 其它 特殊处理的数组
1419
- // 对应位置
1420
-
1421
- //tag
1422
-
1423
- that.data = Object.assign(that.data, respanse.data[0])
1424
- if (respanse.data[0].f_devices) {
1425
- for (let da in that.devices) {
1426
- that.$set('data.device' + that.devices[da].n, [])
1427
- }
1428
- respanse.data[0].f_devices.forEach((item) => {
1429
- for (let de in that.devices) {
1430
- if (that.devices[de].device == item.f_device_type) {
1431
- item.f_items.forEach((f_item) => {
1432
- //tag
1433
- //tag
1434
- let itemValues = []
1435
- f_item.f_item_lists.forEach((tempItem) => {
1436
- //tag
1437
- if (tempItem.f_item_value !== 'null') {
1438
- itemValues.push(tempItem.f_item_value)
1439
- }
1440
- })
1441
- f_item.f_item_value = itemValues
1442
- })
1443
- that.data['device' + that.devices[de].n].push({
1444
- f_device_type: item.f_device_type,
1445
- f_items: item.f_items
1446
- })
1447
- }
1448
- }
1449
- })
1450
- }
1451
- Util.replaceFalse(that.data)
1452
- Util.booleanFilter(that.data)
1453
- if (this.role == 'view') {
1454
- Util.ratifyPics(that.data)
1455
- Util.ratifyPics(that.picture)
1456
- } else {
1457
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1458
- }
1459
- //tag
1460
- }
1461
- // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1462
- this.isshow = true
1463
- asyncReady(this).then(() => {
1464
- //tag)
1465
- //tag)
1466
- if (this.data.f_check_type == '民用') {
1467
- this.deviceconfig = Vue.config.safecheck.DevicesConfig
1468
- //tag)
1469
- } else if (this.data.f_check_type == '非民用') {
1470
- this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1471
- //tag)
1472
- }
1473
- if (this.data.f_collection_type == '按金额') {
1474
- let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1475
- this.deviceconfig["燃气表"].items = aaa
1476
- //this.deviceconfig["燃气表"]=this.config2["燃气表"]
1477
- //tag)
1478
- } else {
1479
- let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1480
- this.deviceconfig["燃气表"].items = aaa
1481
- //tag)
1482
- }
1483
- this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1484
- this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1485
- this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1486
- this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1487
- this.getDeviceAll()
1488
-
1489
-
1490
- })
1491
- }
1492
- ).catch(
1493
- (respanse) => {
1494
- //tag
1495
- alert('查找安检单失败')
1496
- })
1497
- }
1498
- }
1499
-
1500
- },
1501
- watch: {
1502
- // 'isUpload'(val){
1503
- // //tag
1504
- // }
1505
- },
1506
- destroyed() {
1507
- //tag
1508
- this.disableTimer()
1509
- }
1510
- }
1511
-
1512
- </script>
1513
- <style scoped>
1514
- .table-striped thead tr th {
1515
- background-color: rgb(223, 237, 251);
1516
- padding: 10px;
1517
- border-left: solid 0px #dae4f2;
1518
- border-top: solid 1px #dae4f2;
1519
- border-right: none;
1520
- border-bottom: none;
1521
- text-align: center;
1522
- color: black;
1523
- }
1524
- </style>
1
+ <style scoped>
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 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">
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_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_remark }}</td>-->
118
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
+ <td style="text-align: center;border: #E9E9E9 solid 1px" colspan="3" >{{ 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" v-show="paperdata.f_entry_status=='入户'">
128
+ <thead>
129
+ <tr>
130
+ <th colspan="4" style="text-align: center">用户安检概况</th>
131
+ </tr>
132
+ </thead>
133
+ <tbody>
134
+ <tr>
135
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
136
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
137
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
138
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
139
+ </tr>
140
+ <tr>
141
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
142
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
143
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
144
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
145
+ </tr>
146
+ <tr>
147
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
148
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{paperdata.f_client_evaluation }}
149
+ </td>
150
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
151
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ ajresult }}</td>
152
+ </tr>
153
+ <tr>
154
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">特殊备注:</td>
155
+ <td colspan="3"
156
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
157
+ {{ paperdata.f_remark }}
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
162
+ <td colspan="3"
163
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
164
+ <span v-for="deviceCollect in deviceCollects">
165
+ <span class="li-font">
166
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
167
+ </span>
168
+ <br>
169
+ <span v-if="deviceCollect.value == '有隐患'">
170
+ <lable>
171
+ 隐患:
172
+ </lable>
173
+ <span class="li-font" v-for="val in deviceCollect.devices">
174
+ {{ val }}&nbsp;&nbsp;&nbsp;
175
+ </span><br>
176
+ </span>
177
+
178
+ </span>
179
+ </td>
180
+ </tr>
181
+
182
+ </tbody>
183
+ </table>
184
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status!='入户'">
185
+ <thead>
186
+ <tr>
187
+ <th colspan="4" style="text-align: center">用户安检概况</th>
188
+ </tr>
189
+ </thead>
190
+ <tbody>
191
+ <tr>
192
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
193
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
194
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
195
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
196
+ </tr>
197
+ <tr>
198
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
199
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
200
+ {{ paperdata.f_entry_status }}
201
+ </td>
202
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
203
+ <button-link style="color: black" type="button" class="btn btn-link" v-show="paperdata.f_entry_status!='已处理'" @click="showpicture2()">
204
+ {{ dev.lname }}
205
+ 查看{{ data.f_entry_status }}照片
206
+ </button-link>
207
+ </td>
208
+ </tr>
209
+
210
+ </tbody>
211
+ </table>
212
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
213
+ <thead>
214
+ <tr>
215
+ <th style="text-align: center">总体安检照片</th>
216
+ </tr>
217
+ </thead>
218
+ <tbody>
219
+ <tr>
220
+ <td style="margin: auto;text-align: center">
221
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
222
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
223
+ <img-self-safe :src="img.f_overall_path" style="float: left" width="150"
224
+ height="200"></img-self-safe>
225
+ </div>
226
+ </div>
227
+
228
+
229
+ </td>
230
+
231
+ </tr>
232
+ </tbody>
233
+ </table>
234
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
235
+ <thead>
236
+ <tr>
237
+ <th style="text-align: center">用户签名照片</th>
238
+ </tr>
239
+ </thead>
240
+ <tbody>
241
+ <tr>
242
+ <td style="margin: auto;text-align: center">
243
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
244
+ <div class="img" style="float: none">
245
+ <img-self-safe :src="paperdata.f_sign_path" width="486" height="300"></img-self-safe>
246
+ </div>
247
+ </div>
248
+ </td>
249
+ </tr>
250
+ </tbody>
251
+ </table>
252
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'&& item.f_recording1_path && isRecodrDownloadBtn">
253
+ <thead>
254
+ <tr>
255
+ <th style="text-align: center">录音文件</th>
256
+ </tr>
257
+ </thead>
258
+ <tbody>
259
+ <tr>
260
+ <td style="margin: auto;text-align: center">
261
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
262
+ <a class="button_spacing button_search-1" :download="item.f_user_name+'-'+item.f_check_type+'-'+录音文件.arm"
263
+ :href="'rs/image/file/'+item.f_recording1_path" >录音下载</a>
264
+ </div>
265
+ </td>
266
+ </tr>
267
+ </tbody>
268
+ </table>
269
+ </div>
270
+ </div>
271
+ <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
272
+ <div class="col-md-6" style="height: 100%;overflow: scroll">
273
+ <div style="width: 95%;margin-left: 5%">
274
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
275
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
276
+ <tr>
277
+ <th style="text-align: center">{{ config.checkname }}</th>
278
+ </tr>
279
+ </thead>
280
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
281
+ <tr v-for="dev in config.items">
282
+ <td v-if="dev.type!='text' && dev.isshow!=false">
283
+ <div class="row">
284
+ <div class="col-md-8" style="text-align: center;">
285
+ <label>
286
+ <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
287
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
288
+ {{ dev.lname }}
289
+ </button-link>
290
+ </label>
291
+ </div>
292
+ <div class="col-md-4" style="text-align: center">
293
+ <label style="font-weight: normal"
294
+ v-if="dev.type!='picture'">{{ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无' }}</label>
295
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
296
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
297
+ <button-link style="color: black" type="button" class="btn btn-link"
298
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
299
+ </button-link>
300
+ </div>
301
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
302
+ </label>
303
+ </div>
304
+ </div>
305
+ </td>
306
+ <td v-if="dev.type==='text' && dev.isshow!=false">
307
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
308
+ </td>
309
+ </tr>
310
+ </tbody>
311
+ </table>
312
+ </div>
313
+ </div>
314
+
315
+ </div>
316
+ </div>
317
+ <div v-show="false">
318
+ <div id="toPdf" class="container-fluid" style="overflow: scroll">
319
+ <div class="row">
320
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
321
+ <div style="width: 100%;margin: auto">
322
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px">
323
+ <thead>
324
+ <tr>
325
+ <th colspan="6" style="text-align: center">用户基本信息</th>
326
+ </tr>
327
+ </thead>
328
+ <tbody>
329
+ <tr>
330
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
331
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
332
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
333
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
334
+ </tr>
335
+ <tr>
336
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
337
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
338
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
339
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
340
+ </tr>
341
+ <tr>
342
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
343
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
344
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
345
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_area }}</td>
346
+ </tr>
347
+ <tr>
348
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
349
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
350
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
351
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
352
+ </tr>
353
+ <tr>
354
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
355
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
356
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
357
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
358
+ </tr>
359
+ <tr>
360
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
361
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
362
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
363
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
364
+ </tr>
365
+ <tr>
366
+ <!--<td style="text-align: center;border: #E9E9E9 solid 1px">特殊备注:</td>
367
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_remark }}</td>-->
368
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
369
+ <td style="text-align: center;border: #E9E9E9 solid 1px" colspan="3" >{{ paperdata.f_residential_area }}</td>
370
+ </tr>
371
+ <tr>
372
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
373
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
374
+ </tr>
375
+ </tbody>
376
+ </table>
377
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
378
+ <thead>
379
+ <tr>
380
+ <th colspan="4" style="text-align: center">用户安检概况</th>
381
+ </tr>
382
+ </thead>
383
+ <tbody>
384
+ <tr>
385
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
386
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
387
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
388
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
389
+ </tr>
390
+ <tr>
391
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
392
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
393
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
394
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
395
+ </tr>
396
+ <tr>
397
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
398
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{paperdata.f_client_evaluation }}
399
+ </td>
400
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
401
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ ajresult }}</td>
402
+ </tr>
403
+ <tr>
404
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">特殊备注:</td>
405
+ <td colspan="3"
406
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
407
+ {{ paperdata.f_remark }}
408
+ </td>
409
+ </tr>
410
+ <tr>
411
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
412
+ <td colspan="3"
413
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
414
+ <span v-for="deviceCollect in deviceCollects">
415
+ <span class="li-font">
416
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
417
+ </span>
418
+ <br>
419
+ <span v-if="deviceCollect.value == '有隐患'">
420
+ <lable>
421
+ 隐患:
422
+ </lable>
423
+ <span class="li-font" v-for="val in deviceCollect.devices">
424
+ {{ val }}&nbsp;&nbsp;&nbsp;
425
+ </span><br>
426
+ </span>
427
+
428
+ </span>
429
+ </td>
430
+ </tr>
431
+
432
+ </tbody>
433
+ </table>
434
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status!='入户'">
435
+ <thead>
436
+ <tr>
437
+ <th colspan="4" style="text-align: center">用户安检概况</th>
438
+ </tr>
439
+ </thead>
440
+ <tbody>
441
+ <tr>
442
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
443
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
444
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
445
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
446
+ </tr>
447
+ <tr>
448
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
449
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
450
+ {{ paperdata.f_entry_status }}
451
+ </td>
452
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
453
+ <button-link style="color: black" type="button" class="btn btn-link" v-show="paperdata.f_entry_status!='已处理'" @click="showpicture2()">
454
+ {{ dev.lname }}
455
+ 查看{{ data.f_entry_status }}照片
456
+ </button-link>
457
+ </td>
458
+ </tr>
459
+
460
+ </tbody>
461
+ </table>
462
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
463
+ <thead>
464
+ <tr>
465
+ <th style="text-align: center">总体安检照片</th>
466
+ </tr>
467
+ </thead>
468
+ <tbody>
469
+ <tr>
470
+ <td style="margin: auto;text-align: center">
471
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
472
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
473
+ <img-self-safe :src="img.f_overall_path" style="float: left" width="150"
474
+ height="200"></img-self-safe>
475
+ </div>
476
+ </div>
477
+
478
+
479
+ </td>
480
+
481
+ </tr>
482
+ </tbody>
483
+ </table>
484
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
485
+ <thead>
486
+ <tr>
487
+ <th style="text-align: center">用户签名照片</th>
488
+ </tr>
489
+ </thead>
490
+ <tbody>
491
+ <tr>
492
+ <td style="margin: auto;text-align: center">
493
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
494
+ <div class="img" style="float: none">
495
+ <img-self-safe :src="paperdata.f_sign_path" width="486" height="300"></img-self-safe>
496
+ </div>
497
+ </div>
498
+ </td>
499
+ </tr>
500
+ </tbody>
501
+ </table>
502
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'&& item.f_recording1_path && isRecodrDownloadBtn">
503
+ <thead>
504
+ <tr>
505
+ <th style="text-align: center">录音文件</th>
506
+ </tr>
507
+ </thead>
508
+ <tbody>
509
+ <tr>
510
+ <td style="margin: auto;text-align: center">
511
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
512
+ <a class="button_spacing button_search-1" :download="item.f_user_name+'-'+item.f_check_type+'-'+录音文件.arm"
513
+ :href="'rs/image/file/'+item.f_recording1_path" >录音下载</a>
514
+ </div>
515
+ </td>
516
+ </tr>
517
+ </tbody>
518
+ </table>
519
+ </div>
520
+ </div>
521
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
522
+ <div style="width: 95%;margin-left: 5%">
523
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
524
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
525
+ <tr>
526
+ <th style="text-align: center">{{ config.checkname }}</th>
527
+ </tr>
528
+ </thead>
529
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
530
+ <tr v-for="dev in config.items">
531
+ <td v-if="dev.type!='text' && dev.isshow!=false">
532
+ <div class="row">
533
+ <div class="col-md-8" style="text-align: center;">
534
+ <label>
535
+ <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
536
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
537
+ {{ dev.lname }}
538
+ </button-link>
539
+ </label>
540
+ </div>
541
+ <div class="col-md-4" style="text-align: center">
542
+ <label style="font-weight: normal"
543
+ v-if="dev.type!='picture'">{{ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无' }}</label>
544
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
545
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
546
+ <button-link style="color: black" type="button" class="btn btn-link"
547
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
548
+ </button-link>
549
+ </div>
550
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
551
+ </label>
552
+ </div>
553
+ </div>
554
+ </td>
555
+ <td v-if="dev.type==='text' && dev.isshow!=false">
556
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
557
+ </td>
558
+ </tr>
559
+ </tbody>
560
+ </table>
561
+ </div>
562
+ </div>
563
+
564
+ </div>
565
+ </div>
566
+ </div>
567
+ </div>
568
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
569
+ <header slot="modal-header" class="modal-header">
570
+ {{ picturename }}
571
+ </header>
572
+ <article slot="modal-body" class="modal-body">
573
+ <div class="from-group">
574
+ <div class="row">
575
+ <div class="col-md-6">
576
+ <img-self-safe v-if="showimg1" :src="showimg1" width="300" height="400"></img-self-safe>
577
+ </div>
578
+ <div class="col-md-6">
579
+ <img-self-safe v-if="showimg2" :src="showimg2" width="300" height="400"></img-self-safe>
580
+ </div>
581
+ </div>
582
+ </div>
583
+ </article>
584
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
585
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
586
+ </footer>
587
+ </modal>
588
+ <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
589
+ <header slot="modal-header" class="modal-header">
590
+ {{ paperdata.f_entry_status }}照片
591
+
592
+ </header>
593
+ <article slot="modal-body" class="modal-body">
594
+ <div class="from-group">
595
+ <div class="row">
596
+ <div class="col-md-6">
597
+ <img-self-safe v-if="this.paperdata.f_entry_status=='到访不遇'" :src="showimg3" width="300"
598
+ height="400"></img-self-safe>
599
+ <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg5)" :src="'/rs/image/file/'+showimg5" width="300"
600
+ height="400"></img-self-safe>
601
+ <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg6)" :src="'/rs/image/file/'+showimg6" width="300"
602
+ height="400"></img-self-safe>
603
+ <img-self-safe v-if="(this.paperdata.f_entry_status=='到访不遇' && showimg7)" :src="'/rs/image/file/'+showimg7" width="300"
604
+ height="400"></img-self-safe>
605
+ </div>
606
+ <div class="col-md-6">
607
+ <img-self-safe v-if="this.paperdata.f_entry_status=='拒检'" :src="showimg4" width="300"
608
+ height="400"></img-self-safe>
609
+ </div>
610
+ </div>
611
+ </div>
612
+ </article>
613
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
614
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
615
+ </footer>
616
+ </modal>
617
+ </template>
618
+
619
+ <script>
620
+ // import PaperUserm from './PaperUserm'
621
+ // import PaperStatem from './PaperStatem'
622
+ // import Devicesm from './Devicesm'
623
+ // import PaperFeedbackm from './PaperFeedbackm'
624
+ import ObjConfig from '../../../utils/GerJsonObjectConfig'
625
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
626
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
627
+ import Vue from 'vue'
628
+ import * as Util from '../../Util'
629
+ import {jsonSort} from '../../../utils/LdapHelper'
630
+ import {HttpResetClass} from "vue-client";
631
+ import html2pdf from 'html2pdf.js'
632
+
633
+ let asyncReady = async function (self) {
634
+ // 获取配置信息
635
+ try {
636
+ /*let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
637
+ data: {
638
+ items: 'f_dir',
639
+ tablename: 't_organization',
640
+ condition: `id = '${self.item.f_filialeid}'`,
641
+ orderitem: 'id'
642
+ }
643
+ })/!*.then(res=>{*!/
644
+ //tag
645
+ //tag)
646
+ if (!res.data[0].f_dir) {
647
+ self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
648
+ } else {
649
+ //this.f_dir=res.data[0].f_dir
650
+ try {
651
+ let res1 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
652
+ resolveMsg: '获取居民配置项成功!',
653
+ rejectMsg: '获取居民配置项出错!'
654
+ })/!*.then(res=>{*!/
655
+ //tag
656
+ //this.safeConfig["民用配置项"]=Object.assign({},res.data)
657
+ Vue.config.safecheck.DevicesConfig = res1.data
658
+ /!*})*!/
659
+ let res2 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
660
+ resolveMsg: '获取非居民配置项成功!',
661
+ rejectMsg: '获取非居民配置项出错!'
662
+ })/!*.then(res=>{*!/
663
+ //tag
664
+ //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
665
+ Vue.config.safecheck.DevicesSetConfig = res2.data
666
+ /!*}).then(res=> {
667
+ })*!/
668
+
669
+ } catch (e) {
670
+ self.$showMessage("获取配置文件失败" + e)
671
+ }
672
+ }*/
673
+ } catch (error) {
674
+ // 忽略704,文件找不到异常R
675
+ if (error.status !== 704) {
676
+ throw error
677
+ }
678
+ }
679
+ }
680
+ export default {
681
+ title: '安检单',
682
+ props: ['f_plan_id', 'item', 'role'],
683
+ data() {
684
+ return {
685
+ data: {
686
+ f_devices: [],
687
+ f_defect_content: ''
688
+ },
689
+ paperdata: {},
690
+ picturename: '隐患照片',
691
+ defectDevice: {},
692
+ hasDevice: false,
693
+ deviceCollect: {},
694
+ deviceCollects: [],
695
+ isshow: false,
696
+ ajresult: '',
697
+ loading: true,
698
+ imgshow: false,
699
+ imgshow2: false,
700
+ isUpload: false,
701
+ livedispose: '',
702
+ showimg1: '',
703
+ showimg2: '',
704
+ showimg3: '',
705
+ showimg4: '',
706
+ showimg5: '',
707
+ showimg6: '',
708
+ showimg7: '',
709
+ startClick: false, //开始安检按钮是否可点击
710
+ isStrat: false, //是否开始安检
711
+ checkResult: {},//查询结果
712
+ newcheckResult: {},
713
+ timer: null,
714
+ showModal: false,
715
+ pic_to_be_viewed: '',
716
+ showBack: true,
717
+ devices: [],
718
+ devicesAll: [],
719
+ configAJ: [],
720
+ configRQ: [],
721
+ deviceconfig: {},
722
+ deviceconfig2: [],
723
+ f_devices: [],
724
+ config: {
725
+ "燃气表": {
726
+ "checkmust": true,
727
+ "index": 1,
728
+ "items": {
729
+ "表号":{"index":1,"type":"string","readonly":true},
730
+ "气表型号":{"index":2,"type":"string","readonly":true},
731
+ "气表品牌":{"index":3,"type":"string","readonly":true},
732
+ "进气方向":{"index":4,"type":"string","readonly":true},
733
+ "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
734
+ "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
735
+ "累购气量":{"index":7,"type":"number","readonly":true},
736
+ "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
737
+ "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
738
+ //显示屏数 --实际剩余气量
739
+ "气量异常差值":{"index":10,"type":"number","readonly": true},
740
+ "液晶余量":{"index":11,"type":"number"},
741
+ "累购金额(非必填)":{"index":12,"type":"number","readonly": true},
742
+ "已用金额(非必填)":{"index":13,"type":"number","readonly": false},
743
+ "剩余金额(非必填)":{"index":14,"type":"number","readonly": false},
744
+ }
745
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
746
+ }
747
+ },
748
+ //金额
749
+ config2: {
750
+ "燃气表": {
751
+ "checkmust": true,
752
+ "index": 1,
753
+ "items": {
754
+ "表号":{"index":1,"type":"string","readonly":true},
755
+ "气表型号":{"index":2,"type":"string","readonly":true},
756
+ "气表品牌":{"index":3,"type":"string","readonly":true},
757
+ "进气方向":{"index":4,"type":"string","readonly":true},
758
+ "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
759
+ "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
760
+ "累购金额":{"index":7,"type":"number","readonly":true},
761
+ "已用金额":{"index":8,"type":"number","checkmust": false},
762
+ //显示屏数 --实际剩余气量
763
+ "剩余金额":{"index":9,"type":"number","checkmust": false},
764
+ "金额异常差值":{"index":10,"type":"number","readonly": true},
765
+ "液晶余量":{"index":11,"type":"number"},
766
+ "累购气量(非必填)":{"index":12,"type":"number","readonly": true},
767
+ "已用气量(非必填)":{"index":13,"type":"number","readonly": false},
768
+ "剩余气量(非必填)":{"index":14,"type":"number","readonly": false},
769
+ }
770
+ }
771
+ },
772
+ }
773
+ },
774
+ components: {
775
+ RadioGroup,
776
+ Radio,
777
+ },
778
+ computed: {
779
+ isRecodrDownloadBtn(){
780
+ // 投诉单下派还是处理
781
+ let res = this.$appdata.getSingleValue('无限制录音');
782
+ if (res == 'true'){
783
+ return true;
784
+ }else {
785
+ return false;
786
+ }
787
+ },
788
+ selector: {
789
+ get() {
790
+ return 'paper-state'
791
+ },
792
+ set(val) {
793
+ if (this.isStrat) {
794
+ //;
795
+ this.$goto(val, {userinfo: this.data}, 'paper-router')
796
+ } else {
797
+ this.$showMessage('未开始安检!')
798
+ }
799
+ }
800
+ },
801
+ actionEnabled: {
802
+ get() {
803
+ return this.role == 'inspect'
804
+ }
805
+ }
806
+ },
807
+ methods: {
808
+ exportToPDF() {
809
+ const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
810
+ html2pdf(element)
811
+ },
812
+ devicesCollect() {
813
+ this.deviceCollects = []
814
+ let checkResult = '正常'
815
+ this.result = '正常'
816
+ let codata = JSON.parse(JSON.stringify(this.data))
817
+ //tag)
818
+ for (let device in this.data) {
819
+ let f_device_type
820
+ if (device.startsWith("device")) {
821
+ for (let item in this.data[device]) {
822
+ if (this.data[device].length > 1) {
823
+ let j = Number.parseInt(item) + 1
824
+ f_device_type = `${this.data[device][item].f_device_type}${j}`
825
+ } else {
826
+ f_device_type = this.data[device][item].f_device_type
827
+ }
828
+ // //tag
829
+ let deviceInfos = []
830
+ for (let i in this.data[device][item].f_items) {
831
+ let defects = ''
832
+ let items = this.data[device][item].f_items[i]
833
+ if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox') && items.f_item_value != null && items.f_item_value instanceof Array) {
834
+ for (let i in items.f_item_value) {
835
+ let f_item_value = items.f_item_value[i]
836
+ for (let j = 0; j < this.config[this.data[device][item].f_device_type].items.length; j++) {
837
+ if(this.config[this.data[device][item].f_device_type].items[j].lname===items.f_item_name){
838
+ if(this.config[this.data[device][item].f_device_type].items[j].options){
839
+ let options = this.config[this.data[device][item].f_device_type].items[j].options
840
+ for (let option in options) {
841
+ if (options[option].data === f_item_value) {
842
+ if (options[option].isdefect === 'true' || options[option].isdefect === true) {
843
+ checkResult = '有隐患'
844
+ this.result = '有隐患'
845
+ defects = `${defects}:${options[option].data}/`
846
+ }
847
+ }
848
+ }
849
+ }
850
+ }
851
+ }
852
+ }
853
+ if (defects != '') {
854
+ deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}`)
855
+ }
856
+ } else if (items.type === 'string' && items.f_is_defect && items.f_item_value[0]) {
857
+ checkResult = '有隐患'
858
+ this.result = '有隐患'
859
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
860
+ } else if (items.f_item_name == '金额异常差值') {
861
+ var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
862
+ //tag
863
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
864
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
865
+ checkResult = '有隐患'
866
+ this.result = '有隐患'
867
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
868
+ }
869
+ }
870
+ } else if (items.f_item_name == '气量异常差值') {
871
+ var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
872
+ //tag
873
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
874
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
875
+ checkResult = '有隐患'
876
+ this.result = '有隐患'
877
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
878
+ }
879
+ }
880
+ }
881
+ //tag)
882
+ //tag
883
+ //tag
884
+ if (items.type === 'selector') {
885
+ items.selected = []
886
+ } else if (items.type === 'inputSelector') {
887
+ items.selected = ''
888
+ }
889
+ }
890
+
891
+
892
+ //tag
893
+ this.$set('deviceCollect.name', f_device_type)
894
+ this.$set('deviceCollect.value', checkResult)
895
+ this.$set('deviceCollect.devices', deviceInfos)
896
+ //tag)
897
+ if (this.deviceCollect.name) {
898
+ //tag
899
+ this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
900
+ }
901
+
902
+ checkResult = '正常'
903
+ this.deviceCollect = {}
904
+ }
905
+ }
906
+ }
907
+ if (this.deviceCollects.length > 0) {
908
+ this.hasDevice = true
909
+ }
910
+ this.ajresult = JSON.parse(this.data.f_defect_content).result
911
+ this.showimg3 = this.data.f_noanswer_path
912
+
913
+ this.showimg5 = this.data.f_noanswer_path1? this.data.f_noanswer_path1.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path1.lastIndexOf('?')):''
914
+ this.showimg6 = this.data.f_noanswer_path2? this.data.f_noanswer_path2.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path2.lastIndexOf('?')):''
915
+ this.showimg7 = this.data.f_noanswer_path3? this.data.f_noanswer_path3.substring(this.data.f_noanswer_path1.lastIndexOf('/')+1,this.data.f_noanswer_path3.lastIndexOf('?')):''
916
+ this.showimg4 = this.data.f_rejectcheck_path
917
+ this.$set('paperdata',this.data)
918
+ //this.paperdata = this.data
919
+ this.loading = false
920
+ },
921
+ imgclose() {
922
+ this.imgshow = false
923
+ },
924
+ putDevices() {
925
+ ////tag
926
+ this.$set('data.approve', "true")
927
+ this.$set('data.writeback', "false")
928
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
929
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
930
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
931
+ }
932
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
933
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
934
+ }
935
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
936
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
937
+ }
938
+ }
939
+ //tag
940
+ //tag)
941
+ if (!this.item.f_safecheck_type) {
942
+ this.config = this.extend(this.config,Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
943
+ } else {
944
+ if (Vue.config.safecheck.DevicesConfig != undefined)
945
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
946
+ }
947
+ //遍历安检项配置
948
+ for (let i in this.config) {
949
+ //取得安检项索引值
950
+ let n = this.config[i].index
951
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
952
+ this.$set('data.' + 'device' + n, [])
953
+ let items = []
954
+ for (let it in this.config[i].items) {
955
+ //赋值下拉选项
956
+ if (this.config[i].items[it].type == 'selector') {
957
+ for (let op in this.config[i].items[it].options)
958
+ if (this.config[i].items[it].options[op].isdefault == true) {
959
+ items.push({
960
+ f_defect_level: this.config[i].items[it].options[op].level,
961
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
962
+ f_item_name: it,
963
+ f_item_value: this.config[i].items[it].options[op].data,
964
+ f_path: "",
965
+ type: "selector"
966
+ })
967
+ }
968
+ }
969
+ }
970
+ n = n + 1
971
+ }
972
+
973
+ },
974
+ showpath(val1, val2) {
975
+ //tag
976
+ //tag
977
+ if (val1) {
978
+ this.showimg1 = val1
979
+ this.picturename = val2
980
+ this.imgshow = true
981
+ }
982
+ },
983
+ showpicture(val1, val2) {
984
+ //tag
985
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
986
+ return
987
+ }
988
+ for (let i = 0; i < this.devicesAll.length; i++) {
989
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
990
+ if (this.devicesAll[i][j].f_device_type == val1) {
991
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
992
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
993
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
994
+ return false
995
+ } else {
996
+ this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
997
+ this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
998
+ this.picturename = '隐患照片'
999
+ this.imgshow = true
1000
+ return true
1001
+ }
1002
+ }
1003
+ }
1004
+
1005
+ }
1006
+ }
1007
+ }
1008
+ },
1009
+ isred(val1, val2) {
1010
+ //tag
1011
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1012
+ return
1013
+ }
1014
+ for (let i = 0; i < this.devicesAll.length; i++) {
1015
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1016
+ if (this.devicesAll[i][j].f_device_type == val1) {
1017
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1018
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1019
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1020
+ return false
1021
+ } else {
1022
+ return true
1023
+ }
1024
+ }
1025
+ }
1026
+
1027
+ }
1028
+ }
1029
+ }
1030
+ },
1031
+ showpicture2() {
1032
+ this.imgshow2 = true
1033
+ },
1034
+ getDeviceValue(val1, val2) {
1035
+ let aa = ''
1036
+ for (let i = 0; i < this.devicesAll.length; i++) {
1037
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1038
+ if (this.devicesAll[i][j].f_device_type == val1) {
1039
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1040
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1041
+ if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1042
+ for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1043
+ aa += this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value + ' '
1044
+ }
1045
+ return aa
1046
+ }
1047
+ }
1048
+ }
1049
+
1050
+ }
1051
+ }
1052
+ }
1053
+
1054
+ },
1055
+ getDevicePath(val1, val2) {
1056
+ for (let i = 0; i < this.devicesAll.length; i++) {
1057
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1058
+ if (this.devicesAll[i][j].f_device_type == val1) {
1059
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1060
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1061
+ return this.devicesAll[i][j].f_items[k].f_path
1062
+ }
1063
+ }
1064
+
1065
+ }
1066
+ }
1067
+ }
1068
+
1069
+ },
1070
+ getDeviceAll() {
1071
+ let keyall = Object.keys(this.data)
1072
+ for (let i = 0; i < keyall.length; i++) {
1073
+ //tag)
1074
+ if (keyall[i].startsWith('device') && keyall[i] != 'deviceundefined') {
1075
+ this.devicesAll.push(this.data[keyall[i]])
1076
+ //tag
1077
+ }
1078
+ }
1079
+ //tag
1080
+ //tag)
1081
+ this.devicesCollect()
1082
+
1083
+ },
1084
+
1085
+ back() {
1086
+ if (this.role == 'inspect') {
1087
+ if (!this.isStrat) {
1088
+ this.$back()
1089
+ return
1090
+ } else {
1091
+ this.savePaper(true).then(() => {
1092
+ this.$back()
1093
+ this.isStrat = false
1094
+ })
1095
+ }
1096
+ } else {
1097
+ this.$back()
1098
+ }
1099
+ },
1100
+ checkIsStart() {
1101
+ alert('asdad')
1102
+ return
1103
+ },
1104
+
1105
+ viewPic(fileName) {
1106
+ //tag
1107
+ if (this.role == 'view') {
1108
+ if (!fileName.endsWith('nopic.png')) {
1109
+ this.pic_to_be_viewed = fileName
1110
+ this.showModal = true
1111
+ }
1112
+ } else {
1113
+ HostApp.viewPic(fileName)
1114
+ }
1115
+ },
1116
+ tick() {
1117
+ this.timer = null
1118
+ this.data.f_offsite_time = Util.toStandardTimeString()
1119
+ this.timer = window.setTimeout(this.tick, 1000)
1120
+ },
1121
+ getRepairState() {
1122
+ let repaired = true
1123
+ this.data.f_defects.forEach((defect) => {
1124
+ repaired = repaired & (defect.f_ratification == '已处理')
1125
+ })
1126
+ return repaired
1127
+ },
1128
+ verifyRepairDefects() {
1129
+ this.data.f_repair_date = Util.toStandardTimeString()
1130
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1131
+ },
1132
+ genuineSave(saveOnly) {
1133
+ HostApp.__this__.save(saveOnly)
1134
+ if (!saveOnly)
1135
+ HostApp.__this__.disableTimer()
1136
+ HostApp.__callback__ = null
1137
+ HostApp.__this__ = null
1138
+ },
1139
+ setUrgency() {
1140
+ this.data.f_defect_urgency = 'Z'
1141
+ let that = this
1142
+ this.data.f_defects.forEach(function (defect) {
1143
+ if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1144
+ that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1145
+ })
1146
+ if (this.data.f_defect_urgency == 'Z')
1147
+ this.data.f_defect_urgency = null
1148
+ },
1149
+ disableTimer() {
1150
+ if (this.timer) {
1151
+ window.clearTimeout(this.timer)
1152
+ this.timer = null
1153
+ }
1154
+ },
1155
+ loaded(paper) {
1156
+ if (!paper.hasOwnProperty('id')) {
1157
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1158
+ this.init()
1159
+ } else {
1160
+ Util.booleanFilter(paper)
1161
+ HostApp.__this__.$set('data', paper)
1162
+ HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1163
+ // 如果打回重检则重新计时
1164
+ //tag
1165
+ if (HostApp.__this__.role == 'inspect'
1166
+ && HostApp.__this__.data.f_approved
1167
+ && HostApp.__this__.data.f_approved == '打回') {
1168
+ //tag
1169
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1170
+ HostApp.__this__.tick()
1171
+ }
1172
+ }
1173
+ HostApp.__callback__ = null
1174
+ HostApp.__this__ = null
1175
+ },
1176
+ S4() {
1177
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1178
+ },
1179
+ init() {
1180
+ this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1181
+ this.data.ename = Vue.user.ename
1182
+ this.data.f_outlets = Vue.user.f_parentname
1183
+ this.data.f_meetunit = Vue.user.orgpathnames
1184
+ this.data.orgpathstr = Vue.user.orgpathstr
1185
+ this.data.f_check_item_id = this.item.id
1186
+ this.data.f_check_plan_id = this.f_plan_id
1187
+ this.data.f_checker_id = Vue.user.id
1188
+ this.data.f_checker_name = Vue.user.name
1189
+ this.data.f_check_type = this.item.f_user_type
1190
+ this.data.f_subcompany = this.item.f_subcompany
1191
+ this.data.f_approved = this.item.f_approved
1192
+ this.data.f_repair_approved = this.item.f_repair_approved
1193
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1194
+ this.data.f_approved = this.item.f_approved
1195
+ this.data.f_filialeid = this.item.f_filialeid
1196
+ this.data.f_orgstr = this.item.f_orgstr
1197
+ this.data.version = this.item.version
1198
+ this.$set('data.f_meters', this.item.f_plan_meters)
1199
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1200
+ // 安检状态
1201
+ this.$set('data.f_entry_status', '入户')
1202
+ this.$set('data.f_usegas', '已使用')
1203
+ this.$set('data.f_state', this.item.f_state)
1204
+ // 用户信息
1205
+ this.$set('data.f_user_name', this.item.f_user_name)
1206
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1207
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1208
+ this.$set('data.f_address', this.item.f_address)
1209
+ this.$set('data.f_card_id', this.item.f_card_id)
1210
+ this.$set('data.f_area', this.item.f_area)
1211
+ this.$set('data.f_street', this.item.f_street)
1212
+ this.$set('data.f_room', this.item.f_room)
1213
+ this.$set('data.f_building', this.item.f_building)
1214
+ this.$set('data.f_unit', this.item.f_unit)
1215
+ this.$set('data.f_floor', this.item.f_floor)
1216
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1217
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1218
+ this.$set('data.f_comments', this.item.f_comments)
1219
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1220
+ // 处置方式
1221
+ this.$set('data.f_no_gas_device', false)
1222
+ this.$set('data.f_close_valve', false)
1223
+ this.$set('data.f_unload_battery', false)
1224
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1225
+ this.data.f_check_item_id = this.data.f_noplan_item_id
1226
+ }
1227
+
1228
+ //房屋结构
1229
+ // this.$set('data.f_room_style', '多层')
1230
+ //供暖方式
1231
+ // this.$set('data.f_heating_style', '热力公司集中供暖')
1232
+ if (this.item.f_plan_meters) {
1233
+ for (let de in this.devices) {
1234
+ this.$set('data.device' + this.devices[de].n, [])
1235
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1236
+ if (this.item.f_plan_meters[i].f_meter_type) {
1237
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1238
+ delete this.config['燃气表']['items']['累计购气量']
1239
+ this.data['device' + this.devices[de].n].push({
1240
+ f_device_type: "燃气表",
1241
+ f_items: [{
1242
+ f_defect_level: null,
1243
+ f_device_id: "",
1244
+ f_is_defect: "",
1245
+ f_item_name: "表品牌",
1246
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1247
+ f_path: "",
1248
+ type: "string"
1249
+ },
1250
+ {
1251
+ f_defect_level: null,
1252
+ f_device_id: "",
1253
+ f_is_defect: "",
1254
+ f_item_name: "位置",
1255
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1256
+ f_path: "",
1257
+ type: "selector"
1258
+ },
1259
+ {
1260
+ f_defect_level: null,
1261
+ f_device_id: "",
1262
+ f_is_defect: "",
1263
+ f_item_name: "表号",
1264
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1265
+ f_path: "",
1266
+ type: "number"
1267
+ },
1268
+ {
1269
+ f_defect_level: null,
1270
+ f_device_id: "",
1271
+ f_is_defect: "",
1272
+ f_item_name: "表封号",
1273
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1274
+ f_path: "",
1275
+ type: "number"
1276
+ },
1277
+ {
1278
+ f_defect_level: null,
1279
+ f_device_id: "",
1280
+ f_is_defect: "",
1281
+ f_item_name: "表型号",
1282
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1283
+ f_path: "",
1284
+ type: "selector"
1285
+ },
1286
+ {
1287
+ f_defect_level: null,
1288
+ f_device_id: "",
1289
+ f_is_defect: "",
1290
+ f_item_name: "表底数",
1291
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1292
+ f_path: "",
1293
+ type: "number"
1294
+ }
1295
+ ]
1296
+ })
1297
+ } else if (this.devices[de].device == "燃气表") {
1298
+ delete this.config['燃气表']['items']['表底数']
1299
+ this.data['device' + this.devices[de].n].push({
1300
+ f_device_type: "燃气表",
1301
+ f_items: [{
1302
+ f_defect_level: null,
1303
+ f_device_id: "",
1304
+ f_is_defect: "",
1305
+ f_item_name: "表品牌",
1306
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1307
+ f_path: "",
1308
+ type: "string"
1309
+ },
1310
+ {
1311
+ f_defect_level: null,
1312
+ f_device_id: "",
1313
+ f_is_defect: "",
1314
+ f_item_name: "位置",
1315
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1316
+ f_path: "",
1317
+ type: "selector"
1318
+ },
1319
+ {
1320
+ f_defect_level: null,
1321
+ f_device_id: "",
1322
+ f_is_defect: "",
1323
+ f_item_name: "表号",
1324
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1325
+ f_path: "",
1326
+ type: "number"
1327
+ },
1328
+ {
1329
+ f_defect_level: null,
1330
+ f_device_id: "",
1331
+ f_is_defect: "",
1332
+ f_item_name: "表封号",
1333
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1334
+ f_path: "",
1335
+ type: "number"
1336
+ },
1337
+ {
1338
+ f_defect_level: null,
1339
+ f_device_id: "",
1340
+ f_is_defect: "",
1341
+ f_item_name: "表型号",
1342
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1343
+ f_path: "",
1344
+ type: "selector"
1345
+ },
1346
+ {
1347
+ f_defect_level: null,
1348
+ f_device_id: "",
1349
+ f_is_defect: "",
1350
+ f_item_name: "累计购气量",
1351
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1352
+ f_path: "",
1353
+ type: "number"
1354
+ }
1355
+ ]
1356
+ })
1357
+ }
1358
+ }
1359
+ }
1360
+ }
1361
+ }
1362
+
1363
+ this.$goto('paper-state', {}, 'paper-router')
1364
+ },
1365
+ extend(initalObj, finalObj) {
1366
+ var obj = finalObj || {};
1367
+ for (var i in initalObj) {
1368
+ var prop = initalObj[i];
1369
+
1370
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1371
+ if (prop === obj) {
1372
+ continue;
1373
+ }
1374
+
1375
+ if (typeof prop === 'object') {
1376
+ if (obj[i]) {
1377
+ this.extend(obj[i], prop)
1378
+ } else {
1379
+ obj[i] = prop;
1380
+ }
1381
+ }
1382
+ }
1383
+ return obj;
1384
+ },
1385
+ //获取当前时间
1386
+ getNowFormatDate() {
1387
+ var date = new Date();
1388
+ var seperator1 = "-";
1389
+ var seperator2 = ":";
1390
+ var month = date.getMonth() + 1;
1391
+ var strDate = date.getDate();
1392
+ if (month >= 1 && month <= 9) {
1393
+ month = "0" + month;
1394
+ }
1395
+ if (strDate >= 0 && strDate <= 9) {
1396
+ strDate = "0" + strDate;
1397
+ }
1398
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1399
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1400
+ + seperator2 + date.getSeconds();
1401
+ return currentdate;
1402
+ }
1403
+ },
1404
+ ready() {
1405
+ this.putDevices()
1406
+ if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1407
+ if (this.role != 'inspect') {
1408
+ let that = this
1409
+ let id
1410
+ if (this.role == 'view') {
1411
+ id = this.item.id
1412
+ } else if (this.role == 'androidview') {
1413
+ id = this.item.f_paper_id
1414
+ }
1415
+ this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1416
+ //tag
1417
+ if (respanse.data.length != 0) {
1418
+ // 包含 其它 特殊处理的数组
1419
+ // 对应位置
1420
+
1421
+ //tag
1422
+
1423
+ that.data = Object.assign(that.data, respanse.data[0])
1424
+ if (respanse.data[0].f_devices) {
1425
+ for (let da in that.devices) {
1426
+ that.$set('data.device' + that.devices[da].n, [])
1427
+ }
1428
+ respanse.data[0].f_devices.forEach((item) => {
1429
+ for (let de in that.devices) {
1430
+ if (that.devices[de].device == item.f_device_type) {
1431
+ item.f_items.forEach((f_item) => {
1432
+ //tag
1433
+ //tag
1434
+ let itemValues = []
1435
+ f_item.f_item_lists.forEach((tempItem) => {
1436
+ //tag
1437
+ if (tempItem.f_item_value !== 'null') {
1438
+ itemValues.push(tempItem.f_item_value)
1439
+ }
1440
+ })
1441
+ f_item.f_item_value = itemValues
1442
+ })
1443
+ that.data['device' + that.devices[de].n].push({
1444
+ f_device_type: item.f_device_type,
1445
+ f_items: item.f_items
1446
+ })
1447
+ }
1448
+ }
1449
+ })
1450
+ }
1451
+ Util.replaceFalse(that.data)
1452
+ Util.booleanFilter(that.data)
1453
+ if (this.role == 'view') {
1454
+ Util.ratifyPics(that.data)
1455
+ Util.ratifyPics(that.picture)
1456
+ } else {
1457
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1458
+ }
1459
+ //tag
1460
+ }
1461
+ // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1462
+ this.isshow = true
1463
+ asyncReady(this).then(() => {
1464
+ //tag)
1465
+ //tag)
1466
+ if (this.data.f_check_type == '民用') {
1467
+ this.deviceconfig = Vue.config.safecheck.DevicesConfig
1468
+ //tag)
1469
+ } else if (this.data.f_check_type == '非民用') {
1470
+ this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1471
+ //tag)
1472
+ }
1473
+ if (this.data.f_collection_type == '按金额') {
1474
+ let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1475
+ this.deviceconfig["燃气表"].items = aaa
1476
+ //this.deviceconfig["燃气表"]=this.config2["燃气表"]
1477
+ //tag)
1478
+ } else {
1479
+ let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1480
+ this.deviceconfig["燃气表"].items = aaa
1481
+ //tag)
1482
+ }
1483
+ this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1484
+ this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1485
+ this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1486
+ this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1487
+ this.getDeviceAll()
1488
+
1489
+
1490
+ })
1491
+ }
1492
+ ).catch(
1493
+ (respanse) => {
1494
+ //tag
1495
+ alert('查找安检单失败')
1496
+ })
1497
+ }
1498
+ }
1499
+
1500
+ },
1501
+ watch: {
1502
+ // 'isUpload'(val){
1503
+ // //tag
1504
+ // }
1505
+ },
1506
+ destroyed() {
1507
+ //tag
1508
+ this.disableTimer()
1509
+ }
1510
+ }
1511
+
1512
+ </script>
1513
+ <style scoped>
1514
+ .table-striped thead tr th {
1515
+ background-color: rgb(223, 237, 251);
1516
+ padding: 10px;
1517
+ border-left: solid 0px #dae4f2;
1518
+ border-top: solid 1px #dae4f2;
1519
+ border-right: none;
1520
+ border-bottom: none;
1521
+ text-align: center;
1522
+ color: black;
1523
+ }
1524
+ </style>