safecheck-client 3.0.33-100 → 3.0.33-102

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