safecheck-client 3.0.39-51 → 3.0.39-52

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