safecheck-client 4.0.0-7 → 4.0.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +1 -1
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/Widget.vue +13 -13
  49. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  50. package/src/android-bootstrap/less/.csscomb.json +304 -304
  51. package/src/android-bootstrap/less/.csslintrc +19 -19
  52. package/src/android-bootstrap/less/alerts.less +73 -73
  53. package/src/android-bootstrap/less/badges.less +66 -66
  54. package/src/android-bootstrap/less/bootstrap.less +56 -56
  55. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  56. package/src/android-bootstrap/less/button-groups.less +247 -247
  57. package/src/android-bootstrap/less/buttons.less +173 -173
  58. package/src/android-bootstrap/less/carousel.less +269 -269
  59. package/src/android-bootstrap/less/close.less +34 -34
  60. package/src/android-bootstrap/less/code.less +69 -69
  61. package/src/android-bootstrap/less/component-animations.less +33 -33
  62. package/src/android-bootstrap/less/grid.less +84 -84
  63. package/src/android-bootstrap/less/input-groups.less +167 -167
  64. package/src/android-bootstrap/less/jumbotron.less +52 -52
  65. package/src/android-bootstrap/less/labels.less +64 -64
  66. package/src/android-bootstrap/less/list-group.less +141 -141
  67. package/src/android-bootstrap/less/media.less +66 -66
  68. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  69. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  70. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  71. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  72. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  73. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  74. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  75. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  76. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  77. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  78. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  79. package/src/android-bootstrap/less/mixins/image.less +33 -33
  80. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  81. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  82. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  83. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  84. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  85. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  86. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  87. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  88. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  89. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  90. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  91. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  92. package/src/android-bootstrap/less/mixins/size.less +10 -10
  93. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  94. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  95. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  96. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  97. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  98. package/src/android-bootstrap/less/mixins.less +40 -40
  99. package/src/android-bootstrap/less/modals.less +151 -151
  100. package/src/android-bootstrap/less/navbar.less +660 -660
  101. package/src/android-bootstrap/less/navs.less +290 -290
  102. package/src/android-bootstrap/less/normalize.less +424 -424
  103. package/src/android-bootstrap/less/pager.less +76 -76
  104. package/src/android-bootstrap/less/pagination.less +89 -89
  105. package/src/android-bootstrap/less/panels.less +274 -274
  106. package/src/android-bootstrap/less/popovers.less +131 -131
  107. package/src/android-bootstrap/less/print.less +101 -101
  108. package/src/android-bootstrap/less/progress-bars.less +87 -87
  109. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  110. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  111. package/src/android-bootstrap/less/scaffolding.less +161 -161
  112. package/src/android-bootstrap/less/tables.less +262 -262
  113. package/src/android-bootstrap/less/theme.less +291 -291
  114. package/src/android-bootstrap/less/thumbnails.less +36 -36
  115. package/src/android-bootstrap/less/tooltip.less +102 -102
  116. package/src/android-bootstrap/less/type.less +303 -303
  117. package/src/android-bootstrap/less/utilities.less +55 -55
  118. package/src/android-bootstrap/less/variables.less +896 -896
  119. package/src/android-bootstrap/less/wells.less +29 -29
  120. package/src/androidTest.js +20 -20
  121. package/src/bootstrap/less/.csscomb.json +304 -304
  122. package/src/bootstrap/less/.csslintrc +19 -19
  123. package/src/bootstrap/less/alerts.less +73 -73
  124. package/src/bootstrap/less/badges.less +66 -66
  125. package/src/bootstrap/less/breadcrumbs.less +26 -26
  126. package/src/bootstrap/less/button-groups.less +247 -247
  127. package/src/bootstrap/less/buttons.less +172 -172
  128. package/src/bootstrap/less/carousel.less +269 -269
  129. package/src/bootstrap/less/close.less +34 -34
  130. package/src/bootstrap/less/code.less +69 -69
  131. package/src/bootstrap/less/component-animations.less +33 -33
  132. package/src/bootstrap/less/dropdowns.less +216 -216
  133. package/src/bootstrap/less/forms.less +626 -626
  134. package/src/bootstrap/less/grid.less +84 -84
  135. package/src/bootstrap/less/input-groups.less +167 -167
  136. package/src/bootstrap/less/jumbotron.less +52 -52
  137. package/src/bootstrap/less/labels.less +64 -64
  138. package/src/bootstrap/less/list-group.less +141 -141
  139. package/src/bootstrap/less/media.less +66 -66
  140. package/src/bootstrap/less/mixins/alerts.less +14 -14
  141. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  142. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  143. package/src/bootstrap/less/mixins/buttons.less +69 -69
  144. package/src/bootstrap/less/mixins/center-block.less +7 -7
  145. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  146. package/src/bootstrap/less/mixins/forms.less +90 -90
  147. package/src/bootstrap/less/mixins/gradients.less +59 -59
  148. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  149. package/src/bootstrap/less/mixins/grid.less +122 -122
  150. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  151. package/src/bootstrap/less/mixins/image.less +33 -33
  152. package/src/bootstrap/less/mixins/labels.less +12 -12
  153. package/src/bootstrap/less/mixins/list-group.less +30 -30
  154. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  155. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  156. package/src/bootstrap/less/mixins/opacity.less +8 -8
  157. package/src/bootstrap/less/mixins/pagination.less +24 -24
  158. package/src/bootstrap/less/mixins/panels.less +24 -24
  159. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  160. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  161. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  162. package/src/bootstrap/less/mixins/resize.less +6 -6
  163. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  164. package/src/bootstrap/less/mixins/size.less +10 -10
  165. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  166. package/src/bootstrap/less/mixins/table-row.less +44 -44
  167. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  168. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  169. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  170. package/src/bootstrap/less/mixins.less +40 -40
  171. package/src/bootstrap/less/modals.less +151 -151
  172. package/src/bootstrap/less/navbar.less +660 -660
  173. package/src/bootstrap/less/normalize.less +424 -424
  174. package/src/bootstrap/less/pagination.less +89 -89
  175. package/src/bootstrap/less/panels.less +275 -275
  176. package/src/bootstrap/less/popovers.less +131 -131
  177. package/src/bootstrap/less/print.less +101 -101
  178. package/src/bootstrap/less/progress-bars.less +87 -87
  179. package/src/bootstrap/less/responsive-embed.less +35 -35
  180. package/src/bootstrap/less/responsive-utilities.less +194 -194
  181. package/src/bootstrap/less/scaffolding.less +161 -161
  182. package/src/bootstrap/less/theme.less +291 -291
  183. package/src/bootstrap/less/thumbnails.less +36 -36
  184. package/src/bootstrap/less/tooltip.less +102 -102
  185. package/src/bootstrap/less/type.less +303 -303
  186. package/src/bootstrap/less/utilities.less +55 -55
  187. package/src/bootstrap/less/wells.less +29 -29
  188. package/src/components/FileUpload.vue +696 -696
  189. package/src/components/Hello.vue +39 -39
  190. package/src/components/LeftTree.vue +27 -27
  191. package/src/components/android/AttendanceTally.vue +116 -116
  192. package/src/components/android/Blank.vue +10 -10
  193. package/src/components/android/CheckUnplanPage.vue +56 -56
  194. package/src/components/android/Checker.vue +12 -12
  195. package/src/components/android/CheckerAnnual.vue +81 -81
  196. package/src/components/android/CheckerAvarta.vue +82 -82
  197. package/src/components/android/EquipmentInspection.vue +348 -348
  198. package/src/components/android/FootprintMap.vue +120 -120
  199. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  200. package/src/components/android/MasterMain.vue +77 -77
  201. package/src/components/android/Menu.vue +132 -132
  202. package/src/components/android/PaperAlarm.vue +85 -85
  203. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  204. package/src/components/android/PlumberAnnual.vue +83 -83
  205. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  206. package/src/components/android/PlumberMonthly.vue +84 -84
  207. package/src/components/android/PostMap.vue +83 -83
  208. package/src/components/android/QueryCheckHistory.vue +122 -122
  209. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  210. package/src/components/android/RepairMain.vue +60 -60
  211. package/src/components/android/Repairman.vue +12 -12
  212. package/src/components/android/StationMaster.vue +12 -12
  213. package/src/components/defects/DefectModal.vue +101 -101
  214. package/src/components/defects/DevicesAndItem.vue +39 -39
  215. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  216. package/src/components/notice/NoticeForm.vue +100 -100
  217. package/src/components/notice/NoticeIssue.vue +20 -20
  218. package/src/components/paper/PaperList.vue +779 -768
  219. package/src/components/paper/PicViewer.vue +18 -18
  220. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  221. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  222. package/src/components/phonestate/PostMap.vue +82 -82
  223. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  224. package/src/components/userfile/MeterFile.vue +145 -145
  225. package/src/components/userfile/MeterModify.vue +46 -46
  226. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  227. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +0 -3
  228. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +1536 -1533
  229. package/src/plugins/LoadData.js +10 -10
  230. package/src/plugins/LoadParams.js +24 -24
  231. package/src/stores/wxconfig.js +10 -10
  232. package/src/utils/getNowDate.js +33 -33
  233. package/test/e2e/custom-assertions/elementCount.js +26 -26
  234. package/test/e2e/nightwatch.conf.js +40 -40
  235. package/test/e2e/runner.js +30 -30
  236. package/test/e2e/specs/test.js +13 -13
  237. package/test/unit/.eslintrc +5 -5
  238. package/test/unit/TestUtil.js +62 -62
  239. package/test/unit/context.html +20 -20
  240. package/test/unit/index.js +13 -13
@@ -1,1533 +1,1536 @@
1
- <style scoped>
2
- .img {
3
- border: 1px solid #9773ed;
4
- width: auto;
5
- height: auto;
6
- float: left;
7
- text-align: center;
8
- margin: 6px;
9
- }
10
-
11
- img {
12
- margin: 6px;
13
- }
14
-
15
-
16
- .container {
17
- margin: 10px auto;
18
- width: 80%;
19
- height: auto;
20
- }
21
-
22
- div::-webkit-scrollbar {
23
- width: 0 !important;
24
- height: 0 !important;
25
- }
26
-
27
- div {
28
- -ms-overflow-style: none;
29
- overflow: -moz-scrollbars-none;
30
- }
31
-
32
- .divmask {
33
- pointer-events: none;
34
- }
35
-
36
- .app-header {
37
- border-radius: 50%;
38
- background: rgba(73, 158, 223, 0.4);
39
- color: #FFF;
40
- padding: 20px;
41
- text-align: center;
42
- font-size: 1.2em;
43
- z-index: 10;
44
- opacity: 0.5;
45
- bottom: 50px;
46
- margin-top: -20px;
47
- position: absolute;
48
- top: 10%;
49
- right: 2%;
50
- height: 8%;
51
- }
52
- </style>
53
-
54
- <template>
55
- <div class="basic-main" style="height: 100%">
56
- <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
- <div @click="back()">
58
- <img src="../../../assets/back.png" style="margin: 0px" />
59
- </div>
60
- </div>
61
- <work-busy :is-busy="loading"></work-busy>
62
- <div class="container-fluid" style="overflow: scroll">
63
- <div class="row">
64
- <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
65
- <div style="width: 100%;margin: auto">
66
- <table class="table table-striped table-bordered" style="margin-bottom: 6px">
67
- <thead>
68
- <tr>
69
- <th colspan="6" style="text-align: center">用户基本信息</th>
70
- </tr>
71
- </thead>
72
- <tbody>
73
- <tr>
74
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
75
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}
76
- </td>
77
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
78
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
79
- </tr>
80
- <tr>
81
- <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
82
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
83
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
84
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
85
- </tr>
86
- <tr>
87
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
88
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
89
- <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
90
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
91
- </tr>
92
- <tr>
93
- <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
94
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
95
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
96
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
97
- </tr>
98
- <tr>
99
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
100
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
101
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
102
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
103
- </tr>
104
- <tr>
105
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
106
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
107
- <td style="text-align: center;border: #E9E9E9 solid 1px">用气性质:</td>
108
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_gasproperties }}</td>
109
- </tr>
110
- <tr>
111
- <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
112
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
113
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
114
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
115
- </tr>
116
- <tr>
117
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
118
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
119
- </tr>
120
- </tbody>
121
- </table>
122
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
123
- <thead>
124
- <tr>
125
- <th colspan="4" style="text-align: center">用户安检概况</th>
126
- </tr>
127
- </thead>
128
- <tbody>
129
- <tr>
130
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
131
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
132
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
133
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}
134
- </td>
135
- </tr>
136
- <tr>
137
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
138
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}
139
- </td>
140
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
141
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
142
- </tr>
143
- <tr>
144
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
145
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
146
- paperdata.f_client_evaluation
147
- }}
148
- </td>
149
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
150
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
151
- :style="{ 'color': ajresult == '有隐患' ? 'red' : '' }">{{ ajresult }}</td>
152
- </tr>
153
- <tr>
154
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;">用户信息是否一致:</td>
155
- <td colspan="2"
156
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
157
- {{ paperdata.f_is_consistent }}
158
- </td>
159
- </tr>
160
- <tr>
161
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
162
- <td colspan="3"
163
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
164
- {{ paperdata.f_repair_approved_note }}
165
- </td>
166
- </tr>
167
- <tr>
168
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
169
- <td colspan="3"
170
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
171
- <span v-for="deviceCollect in deviceCollects">
172
- <span class="li-font">
173
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
174
- </span>
175
- <br>
176
- <span v-if="deviceCollect.value == '有隐患'">
177
- <lable>
178
- 隐患:
179
- </lable>
180
- <span v-for="val in deviceCollect.devices">
181
- {{ val }}
182
- </span><br>
183
- </span>
184
-
185
- </span>
186
- </td>
187
- </tr>
188
-
189
- </tbody>
190
- </table>
191
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status != '入户'">
192
- <thead>
193
- <tr>
194
- <th colspan="4" style="text-align: center">用户安检概况</th>
195
- </tr>
196
- </thead>
197
- <tbody>
198
- <tr>
199
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
200
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
201
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
202
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}
203
- </td>
204
- </tr>
205
- <tr>
206
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
207
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
208
- {{ paperdata.f_entry_status }}
209
- </td>
210
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
211
- <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
212
- {{ dev.lname }}
213
- 查看{{ data.f_entry_status }}照片
214
- </button-link>
215
- </td>
216
- </tr>
217
-
218
- </tbody>
219
- </table>
220
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
221
- <thead>
222
- <tr>
223
- <th style="text-align: center">总体安检照片</th>
224
- </tr>
225
- </thead>
226
- <tbody>
227
- <tr>
228
- <td style="margin: auto;text-align: center">
229
- <div class="container" style="max-width: 550px;background: #FFFFFF">
230
- <div class="img" v-for="img in paperdata.f_overall_imgs">
231
- <img-self-plus :src="img.f_overall_path" style="float: left" width="150"
232
- height="200"></img-self-plus>
233
- </div>
234
- </div>
235
-
236
-
237
- </td>
238
-
239
- </tr>
240
- </tbody>
241
- </table>
242
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
243
- <thead>
244
- <tr>
245
- <th style="text-align: center">用户签名照片</th>
246
- </tr>
247
- </thead>
248
- <tbody>
249
- <tr>
250
- <td style="margin: auto;text-align: center">
251
- <div class="container" style="max-width: 500px;background: #FFFFFF">
252
- <div class="img" style="float: none">
253
- <img-self-plus :src="paperdata.f_sign_path" width="486" height="300"></img-self-plus>
254
- </div>
255
- </div>
256
- </td>
257
- </tr>
258
- </tbody>
259
- </table>
260
- <table class="table table-striped table-bordered"
261
- v-show="paperdata.f_entry_status == '入户' && paperdata.f_defect_notified">
262
- <thead>
263
- <tr>
264
- <th style="text-align: center">安检通知书/隐患整改通知书</th>
265
- </tr>
266
- </thead>
267
- <tbody>
268
- <tr>
269
- <td style="margin: auto;text-align: center">
270
- <div class="container" style="max-width: 500px;background: #FFFFFF">
271
- <div class="img" style="float: none">
272
- <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
273
- </div>
274
- </div>
275
- </td>
276
- </tr>
277
- </tbody>
278
- </table>
279
- <table class="table table-striped table-bordered"
280
- v-show="paperdata.f_entry_status == '入户' && item.f_recording1_path">
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: 500px;background: #FFFFFF">
290
- <a class="button_spacing button_search-1"
291
- :download="item.f_user_name + '-' + item.f_check_type + '-' + '录音文件.arm'"
292
- :href="'rs/image/file/' + item.f_recording1_path">录音下载</a>
293
- </div>
294
- </td>
295
- </tr>
296
- </tbody>
297
- </table>
298
- </div>
299
- </div>
300
- <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
301
- <div class="col-md-6" style="height: 100%;overflow: scroll">
302
- <div style="width: 95%;margin-left: 5%">
303
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
304
- <thead v-show="!(config.checkname != '燃气表' && paperdata.f_entry_status != '入户')">
305
- <tr>
306
- <th style="text-align: center">{{ config.checkname }}</th>
307
- </tr>
308
- </thead>
309
- <tbody v-show="!(config.checkname != '燃气表' && paperdata.f_entry_status != '入户')">
310
- <tr v-for="dev in config.items">
311
- <td v-if="dev.type != 'text' && dev.isshow != false">
312
- <div class="row">
313
- <div class="col-md-8" style="text-align: center;">
314
- <label>
315
- <button-link type="button" class="btn btn-link"
316
- @click="showpicture(config.checkname, dev.lname)"
317
- :style="isred(config.checkname, dev.lname) ? 'color:red' : 'color:black'">
318
- {{ dev.lname }}
319
- </button-link>
320
- </label>
321
- </div>
322
- <div class="col-md-4" style="text-align: center">
323
- <label style="font-weight: normal" v-if="dev.type != 'picture'">{{
324
- getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) :
325
- '无' }}</label>
326
- <label style="font-weight: normal" v-if="dev.type == 'picture'">
327
- <div v-show="getDevicePath(config.checkname, dev.lname)">
328
- <button-link style="color: black" type="button" class="btn btn-link"
329
- @click="showpath(getDevicePath(config.checkname, dev.lname), dev.lname)">查看照片
330
- </button-link>
331
- </div>
332
- <div v-show="!getDevicePath(config.checkname, dev.lname)">无照片</div>
333
- </label>
334
- </div>
335
- </div>
336
- </td>
337
- <td v-if="dev.type === 'text' && dev.isshow != false">
338
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
339
- </td>
340
- </tr>
341
- </tbody>
342
- </table>
343
- <div v-show="showButton">
344
- <button class="button_spacing button_search" @click="auditSuccesss()">通过</button>
345
- <button class="button_spacing button_search" @click="auditFail()">不通过</button>
346
- </div>
347
- </div>
348
- </div>
349
-
350
- </div>
351
- </div>
352
- </div>
353
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
354
- <header slot="modal-header" class="modal-header">
355
- {{ picturename }}
356
- </header>
357
- <article slot="modal-body" class="modal-body">
358
- <div class="from-group">
359
- <div class="row">
360
- <div class="col-md-6">
361
- <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
362
- </div>
363
- <div class="col-md-6">
364
- <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
365
- </div>
366
- <div class="col-md-6" v-for="item in otherDarginShowImgs">
367
- <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
368
- </div>
369
- </div>
370
- </div>
371
- </article>
372
- <footer slot="modal-footer" class="modal-footer" v-show="false">
373
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
374
- </footer>
375
- </modal>
376
- <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
377
- <header slot="modal-header" class="modal-header">
378
- {{ paperdata.f_entry_status }}照片
379
- </header>
380
- <article slot="modal-body" class="modal-body">
381
- <div class="from-group">
382
- <div class="row">
383
- <div class="col-md-6">
384
- <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer_path" :src="showimg3"
385
- width="282" height="400"></img-self-plus>
386
- </div>
387
- <div class="col-md-6">
388
- <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer1_path"
389
- :src="showimg5" width="282" height="400"></img-self-plus>
390
- </div>
391
- <div class="col-md-6">
392
- <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer2_path"
393
- :src="showimg6" width="282" height="400"></img-self-plus>
394
- </div>
395
- <div class="col-md-6">
396
- <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck_path"
397
- :src="showimg4" width="282" height="400"></img-self-plus>
398
- </div>
399
- <div class="col-md-6">
400
- <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck1_path"
401
- :src="showimg7" width="282" height="400"></img-self-plus>
402
- </div>
403
- <div class="col-md-6">
404
- <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck2_path"
405
- :src="showimg8" width="282" height="400"></img-self-plus>
406
- </div>
407
- </div>
408
- </div>
409
- </article>
410
- <footer slot="modal-footer" class="modal-footer" v-show="false">
411
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
412
- </footer>
413
- </modal>
414
- <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
415
- <div slot="modal-header" class="modal-header">
416
- <h4 class="modal-title">
417
- 安检审核备注
418
- </h4>
419
- </div>
420
- <div slot="modal-body" class="modal-body">
421
- <div class="row">
422
- <div class="form-group col-sm-4">
423
- <label class="font_normal_body">审核备注:</label>
424
- <textarea v-model="message"></textarea>
425
- </div>
426
- </div>
427
- </div>
428
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
429
- <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
430
- <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
431
- </div>
432
- </modal>
433
- </template>
434
-
435
- <script>
436
- // import PaperUserm from './PaperUserm'
437
- // import PaperStatem from './PaperStatem'
438
- // import Devicesm from './Devicesm'
439
- // import PaperFeedbackm from './PaperFeedbackm'
440
- import ObjConfig from '../../../utils/GerJsonObjectConfig'
441
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
442
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
443
- import Vue from 'vue'
444
- import * as Util from '../../Util'
445
- import { jsonSort } from '../../../utils/LdapHelper'
446
- import { HttpResetClass } from "vue-client";
447
-
448
- let asyncReady = async function (self) {
449
- // 获取配置信息
450
- try {
451
- let res = await new HttpResetClass().load('get', '/api/af-safecheck/vue', null, { resolveMsg: null, rejectMsg: null })
452
- self.delConfigKey(res.data)
453
- Vue.config.safecheck = res.data
454
- console.log('获取配置结果===', res.data)
455
- } catch (error) {
456
- // 忽略704,文件找不到异常R
457
- if (error.status !== 704) {
458
- throw error
459
- }
460
- }
461
- }
462
-
463
- export default {
464
- title: '安检单',
465
- props: ['f_plan_id', 'item', 'role'],
466
- data() {
467
- return {
468
- f_approvedstart_time: '',
469
- message: '',
470
- showButton: false,
471
- showModel: false,
472
- data: {
473
- f_devices: [],
474
- f_defect_content: ''
475
- },
476
- paperdata: {},
477
- picturename: '隐患照片',
478
- defectDevice: {},
479
- hasDevice: false,
480
- deviceCollect: {},
481
- deviceCollects: [],
482
- isshow: false,
483
- ajresult: '',
484
- loading: true,
485
- imgshow: false,
486
- imgshow2: false,
487
- isUpload: false,
488
- livedispose: '',
489
- showimg1: '',
490
- showimg2: '',
491
- showimg3: '',
492
- showimg4: '',
493
- showimg5: '',
494
- showimg6: '',
495
- showimg7: '',
496
- showimg8: '',
497
- hiddenDangerImgNumber: 0, //配置项中隐患照片数
498
- otherDarginShowImgs: [],//其他隐患图片
499
- startClick: false, //开始安检按钮是否可点击
500
- isStrat: false, //是否开始安检
501
- checkResult: {},//查询结果
502
- newcheckResult: {},
503
- timer: null,
504
- showModal: false,
505
- pic_to_be_viewed: '',
506
- showBack: true,
507
- devices: [],
508
- devicesAll: [],
509
- configAJ: [],
510
- configRQ: [],
511
- deviceconfig: {},
512
- deviceconfig2: [],
513
- f_devices: [],
514
- config: {
515
- "燃气表": {
516
- "checkmust": true,
517
- "index": 1,
518
- "items": {
519
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
520
- "基表编号": { "index": 1, "type": "string", "readonly": true },
521
- "气表型号": { "index": 2, "type": "string", "readonly": true },
522
- "气表品牌": { "index": 3, "type": "string", "readonly": true },
523
- "进气方向": { "index": 4, "type": "string", "readonly": true },
524
- "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
525
- "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
526
- "累购气量": { "index": 7, "type": "number", "readonly": true },
527
- "累购金额": { "index": 7, "type": "number", "readonly": true },
528
- "已用气量": { "index": 8, "type": "number", "checkmust": false },//基表数
529
- "已用金额": { "index": 8, "type": "number", "checkmust": false },
530
- "剩余气量": { "index": 9, "type": "number", "checkmust": false },//累购-已用
531
- //显示屏数 --实际剩余气量
532
- "剩余金额": { "index": 9, "type": "number", "checkmust": false },
533
- "气量异常差值": { "index": 10, "type": "number", "readonly": true },
534
- "金额异常差值": { "index": 10, "type": "number", "readonly": true },
535
- "表箱号": { "index": 11, "type": "string", "readonly": true },
536
- "燃气表照片1": { "index": 12, "type": "picture", "checkmust": true },
537
- "燃气表照片2": { "index": 13, "type": "picture", "checkmust": false },
538
- "燃气表照片3": { "index": 14, "type": "picture", "checkmust": false },
539
- "燃气表照片4": { "index": 15, "type": "picture", "checkmust": false }
540
- }
541
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
542
- },
543
- // "燃气表2":{
544
- // "checkmust":true,
545
- // "index":2,src
546
- // "items":{
547
- // "燃气表照片":{"index":1,"type":"picture"},
548
- // "表品牌":{"index":2,"type":"string","readonly":true},
549
- // "表号":{"index":3,"type":"string","readonly":true},
550
- // "表封号":{"index":4,"type":"number","readonly":true},
551
- // "表型号":{"index":5,"type":"string","readonly":true},
552
- // "位置":{"index":6,"type":"string","readonly":true},
553
- // "表底数":{"index":7,"type":"number","readonly":true},
554
- // "累购气量":{"index":8,"type":"number","readonly":true},
555
- // "累购金额":{"index":8,"type":"number","readonly":true}
556
- // }
557
- // }
558
- },
559
- //金额
560
- config2: {
561
- "燃气表": {
562
- "checkmust": true,
563
- "index": 1,
564
- "items": {
565
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
566
- "基表编号": { "index": 1, "type": "string", "readonly": true },
567
- "气表型号": { "index": 2, "type": "string", "readonly": true },
568
- "气表品牌": { "index": 3, "type": "string", "readonly": true },
569
- "进气方向": { "index": 4, "type": "string", "readonly": true },
570
- "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
571
- "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
572
- "累购气量": { "index": 7, "type": "number", "readonly": true },
573
- "累购金额": { "index": 7, "type": "number", "readonly": true },
574
- "已用气量": { "index": 8, "type": "number", "checkmust": false },//基表数
575
- "已用金额": { "index": 8, "type": "number", "checkmust": false },
576
- "剩余气量": { "index": 9, "type": "number", "checkmust": false },//累购-已用
577
- //显示屏数 --实际剩余气量
578
- "剩余金额": { "index": 9, "type": "number", "checkmust": false },
579
- "气量异常差值": { "index": 10, "type": "number", "readonly": true },
580
- "金额异常差值": { "index": 10, "type": "number", "readonly": true },
581
- "表箱号": { "index": 11, "type": "string", "readonly": true },
582
- "燃气表照片": { "index": 12, "type": "picture", "checkmust": false }
583
- }
584
- }
585
- },
586
- }
587
- },
588
- components: {
589
- RadioGroup,
590
- Radio,
591
- },
592
- computed: {
593
- isRecodrDownloadBtn() {
594
- // 投诉单下派还是处理
595
- let res = this.$appdata.getSingleValue('无限制录音');
596
- if (res == 'true') {
597
- return true;
598
- } else {
599
- return false;
600
- }
601
- },
602
- selector: {
603
- get() {
604
- return 'paper-state'
605
- },
606
- set(val) {
607
- if (this.isStrat) {
608
- this.$goto(val, { userinfo: this.data }, 'paper-router')
609
- } else {
610
- this.$showMessage('未开始安检!')
611
- }
612
- }
613
- },
614
- actionEnabled: {
615
- get() {
616
- return this.role == 'inspect'
617
- }
618
- }
619
- },
620
- methods: {
621
- delConfigKey(obj) {
622
- // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
623
- Object.keys(obj).forEach(key => {
624
- Object.keys(obj[key]).forEach(col => {
625
- // 检查键是否以$开头
626
- if (col.startsWith('$')) {
627
- // 使用delete操作符删除键
628
- delete obj[key][col];
629
- }
630
- })
631
- })
632
- },
633
-
634
- //组织config数据---
635
- organizationalData(type) {
636
- console.log('看看表类型', type)
637
- if (type.indexOf('机表') > -1) {
638
- delete this.config["燃气表"]["items"]["累购金额"]
639
- delete this.config["燃气表"]["items"]["已用金额"]
640
- delete this.config["燃气表"]["items"]["剩余金额"]
641
- delete this.config["燃气表"]["items"]["金额异常差值"]
642
- this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
643
- this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
644
- this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
645
- this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
646
- } else if (type.indexOf('物联网表') > -1) {
647
- delete this.config["燃气表"]["items"]["累购气量"]
648
- delete this.config["燃气表"]["items"]["已用金额"]
649
- delete this.config["燃气表"]["items"]["剩余气量"]
650
- delete this.config["燃气表"]["items"]["气量异常差值"]
651
- this.config["燃气表"]["items"]["累购金额"]["isshow"] = false
652
- this.config["燃气表"]["items"]["金额异常差值"]["isshow"] = true
653
- this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
654
- this.config["燃气表"]["items"]["剩余金额"]["isshow"] = true
655
- } else if (type == '按金额') {
656
- delete this.config["燃气表"]["items"]["累购气量"]
657
- delete this.config["燃气表"]["items"]["已用气量"]
658
- delete this.config["燃气表"]["items"]["剩余气量"]
659
- delete this.config["燃气表"]["items"]["气量异常差值"]
660
- this.config["燃气表"]["items"]["初始表底"]["isshow"] = false
661
- this.config["燃气表"]["items"]["已用金额"]["isshow"] = false
662
- this.config["燃气表"]["items"]["剩余金额"]["isshow"] = false
663
- this.config["燃气表"]["items"]["金额异常差值"]["isshow"] = false
664
- this.config["燃气表"]["items"]["累购金额"]["isshow"] = true
665
- } else if (type == '按气量') {
666
- delete this.config["燃气表"]["items"]["累购金额"]
667
- delete this.config["燃气表"]["items"]["已用金额"]
668
- delete this.config["燃气表"]["items"]["剩余金额"]
669
- delete this.config["燃气表"]["items"]["金额异常差值"]
670
- this.config["燃气表"]["items"]["初始表底"]["isshow"] = false
671
- this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
672
- this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
673
- this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
674
- this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
675
- } else {
676
- delete this.config["燃气表"]["items"]["累购金额"]
677
- delete this.config["燃气表"]["items"]["已用金额"]
678
- delete this.config["燃气表"]["items"]["剩余金额"]
679
- delete this.config["燃气表"]["items"]["金额异常差值"]
680
- this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
681
- this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
682
- this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
683
- this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
684
- }
685
- },
686
- showAudit() {
687
- var audit = this.$appdata.getSingleValue('安检审核');
688
- if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
689
- this.f_approvedstart_time = Util.toStandardTimeString()
690
- this.showButton = true
691
- }
692
- },
693
- //安检审核成功
694
- auditSuccesss() {
695
- this.loading = true;
696
- let reqdata = {
697
- audit_result: '通过',
698
- operator: "success",
699
- audit_time: Util.getNowDate(),
700
- f_approvedstart_time: this.f_approvedstart_time,
701
- user_name: this.$login.f.name,
702
- id: this.item.id,
703
- f_check_item_id: this.item.f_check_item_id,
704
- f_userinfo_id: this.item.f_userinfoid
705
- }
706
- new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', { data: reqdata }, {
707
- resolveMsg: '安检审核成功!',
708
- rejectMsg: '安检审核出错!'
709
- }).then((res) => {
710
- if (res.data.code == 200) {
711
- this.loading = false;
712
- this.$back()
713
- }
714
- })
715
- },
716
- auditFail() {
717
- this.showModel = true;
718
- },
719
- auditFailOK() {
720
-
721
- this.loading = true;
722
- let reqdata = {
723
- message: this.message,
724
- audit_result: '不通过',
725
- operator: "fail",
726
- f_approvedstart_time: this.f_approvedstart_time,
727
- audit_time: Util.getNowDate(),
728
- user_name: this.$login.f.name,
729
- id: this.item.id,
730
- f_check_item_id: this.item.f_check_item_id,
731
- f_userinfo_id: this.item.f_userinfoid
732
- }
733
- new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', { data: reqdata }, {
734
- resolveMsg: '安检审核成功!',
735
- rejectMsg: '安检审核出错!'
736
- }).then((res) => {
737
- if (res.data.code == 200) {
738
- this.loading = false;
739
- this.message = '';
740
- this.showModel = false;
741
- this.back();
742
- }
743
- })
744
- },
745
- auditFailCancel() {
746
- this.showModel = false;
747
- this.message = '';
748
- },
749
-
750
- devicesCollect() {
751
- //tag
752
- //tag)
753
- //tag)
754
- //tag
755
- this.deviceCollects = []
756
- let checkResult = '正常'
757
- this.result = '正常'
758
- let codata = JSON.parse(JSON.stringify(this.data))
759
- //tag)
760
- for (let device in this.data) {
761
- let f_device_type
762
- if (device.startsWith("device")) {
763
- for (let item in this.data[device]) {
764
- if (this.data[device].length > 1) {
765
- let j = Number.parseInt(item) + 1
766
- f_device_type = `${this.data[device][item].f_device_type}${j}`
767
- } else {
768
- f_device_type = this.data[device][item].f_device_type
769
- }
770
- // //tag
771
- let deviceelse = []
772
- let deviceInfos = []
773
- for (let i in this.data[device][item].f_items) {
774
- let defects = ''
775
-
776
- let items = this.data[device][item].f_items[i]
777
-
778
-
779
- if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox') && items.f_item_value != null && items.f_item_value instanceof Array) {
780
- for (let i in items.f_item_value) {
781
- let f_item_value = items.f_item_value[i]
782
-
783
- //tag)
784
- //tag)
785
- //tag)
786
- //tag)
787
-
788
- if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
789
- continue
790
- }
791
- if (items.f_is_defect != true && items.f_is_defect != 'true') {
792
- continue
793
- }
794
- console.log('items', items)
795
- if (items.f_is_defect == 'true' || items.f_is_defect == true) {
796
- checkResult = '有隐患'
797
- this.result = '有隐患'
798
- defects = `${defects}:${items.f_item_value}/`
799
- }
800
-
801
- /*let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
802
- for (let option in options) {
803
- if (options[option].data == f_item_value) {
804
- if (options[option].isdefect == 'true' || options[option].isdefect == true) {
805
- checkResult = '有隐患'
806
- this.result = '有隐患'
807
- defects = `${defects}:${options[option].data}/`
808
- // let level = options[option].level
809
- }
810
- }
811
- }*/
812
- //tag)
813
- }
814
- if (defects != '') {
815
- console.log('有隐患items', items)
816
- deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
817
- }
818
- }
819
- else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
820
- checkResult = '有隐患'
821
- this.result = '有隐患'
822
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
823
-
824
- }
825
- else if (items.f_item_name == '金额异常差值') {
826
- var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
827
- //tag
828
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
829
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
830
- checkResult = '有隐患'
831
- this.result = '有隐患'
832
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
833
- }
834
- }
835
- }
836
- else if (items.f_item_name == '气量异常差值') {
837
- var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
838
- //tag
839
- if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
840
- if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
841
- checkResult = '有隐患'
842
- this.result = '有隐患'
843
- deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
844
- }
845
- }
846
- }
847
- if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
848
- console.log('this.config[this.data[device][item].f_device_type]', this.config[this.data[device][item].f_device_type])
849
- console.log('this.deviceconfig2', this.deviceconfig2)
850
- for (let dev in this.deviceconfig2) {
851
- if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
852
- this.deviceconfig2[dev].items.push({
853
- lname: items.f_item_name
854
- })
855
- }
856
- }
857
- }
858
- //tag)
859
- //tag
860
- //tag
861
- if (items.type === 'selector') {
862
- items.selected = []
863
- } else if (items.type === 'inputSelector') {
864
- items.selected = ''
865
- }
866
- }
867
-
868
-
869
- //tag
870
- this.$set('deviceCollect.name', f_device_type)
871
- this.$set('deviceCollect.value', checkResult)
872
- this.$set('deviceCollect.devices', deviceInfos)
873
- this.$set('deviceCollect.else', deviceelse)
874
- console.log('deviceCollect.devices', this.deviceCollect.devices)
875
- console.log('deviceCollect.else', this.deviceCollect.else)
876
- //tag)
877
- if (this.deviceCollect.name) {
878
- //tag
879
- this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
880
- }
881
-
882
- checkResult = '正常'
883
- this.deviceCollect = {}
884
- }
885
- }
886
- }
887
- if (this.deviceCollects.length > 0) {
888
- this.hasDevice = true
889
- }
890
- this.ajresult = JSON.parse(this.data.f_defect_content).result
891
- this.showimg3 = this.data.f_noanswer_path
892
- this.showimg5 = this.data.f_noanswer1_path
893
- this.showimg6 = this.data.f_noanswer2_path
894
- this.showimg4 = this.data.f_rejectcheck_path
895
- this.showimg7 = this.data.f_rejectcheck1_path
896
- this.showimg8 = this.data.f_rejectcheck2_path
897
- this.paperdata = this.data
898
- this.loading = false
899
- },
900
- imgclose() {
901
- this.imgshow = false
902
- },
903
- putDevices() {
904
- ////tag
905
- this.$set('data.approve', "true")
906
- this.$set('data.writeback', "false")
907
- if (Vue.config.safecheck.ApproveConfig != undefined) {
908
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
909
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
910
- }
911
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
912
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
913
- }
914
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
915
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
916
- }
917
- if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
918
- if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
919
- this.hiddenDangerImgNumber = 3
920
- } else {
921
- this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
922
- }
923
- }
924
- }
925
- //tag
926
-
927
- //tag)
928
- if (!this.item.f_safecheck_type) {
929
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
930
- } else {
931
- if (Vue.config.safecheck.DevicesConfig != undefined)
932
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
933
- }
934
- //遍历安检项配置
935
- for (let i in this.config) {
936
- //取得安检项索引值
937
- let n = this.config[i].index
938
- this.devices[n - 1] = { device: i, n: n, checkmust: this.config[i].checkmust }
939
- this.$set('data.' + 'device' + n, [])
940
- let items = []
941
- for (let it in this.config[i].items) {
942
- //赋值下拉选项
943
- if (this.config[i].items[it].type == 'selector') {
944
- for (let op in this.config[i].items[it].options)
945
- if (this.config[i].items[it].options[op].isdefault == true) {
946
- items.push({
947
- f_defect_level: this.config[i].items[it].options[op].level,
948
- f_is_defect: this.config[i].items[it].options[op].isdefect,
949
- f_item_name: it,
950
- f_item_value: this.config[i].items[it].options[op].data,
951
- f_path: "",
952
- type: "selector"
953
- })
954
- }
955
- }
956
- }
957
- n = n + 1
958
- }
959
-
960
- },
961
- showpath(val1, val2) {
962
- //tag
963
- //tag
964
- if (val1) {
965
- this.showimg1 = val1
966
- this.picturename = val2
967
- this.imgshow = true
968
- }
969
- },
970
- showpicture(val1, val2) {
971
- //tag
972
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
973
- return
974
- }
975
- for (let i = 0; i < this.devicesAll.length; i++) {
976
- for (let j = 0; j < this.devicesAll[i].length; j++) {
977
- if (this.devicesAll[i][j].f_device_type == val1) {
978
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
979
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
980
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
981
- return false
982
- } else {
983
- this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
984
- this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
985
- this.otherDarginShowImgs = []
986
- for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
987
- let img = { path: '' }
988
- if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
989
- img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
990
- this.otherDarginShowImgs.push(img)
991
- }
992
- }
993
- this.picturename = '隐患照片'
994
- this.imgshow = true
995
- return true
996
- }
997
- }
998
- }
999
-
1000
- }
1001
- }
1002
- }
1003
- },
1004
- isred(val1, val2) {
1005
- //tag
1006
- if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1007
- return
1008
- }
1009
- for (let i = 0; i < this.devicesAll.length; i++) {
1010
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1011
- if (this.devicesAll[i][j].f_device_type == val1) {
1012
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1013
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1014
- if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1015
- return false
1016
- } else {
1017
- return true
1018
- }
1019
- }
1020
- }
1021
-
1022
- }
1023
- }
1024
- }
1025
- },
1026
- showpicture2() {
1027
- this.imgshow2 = true
1028
- },
1029
- getDeviceValue(val1, val2) {
1030
- let aa = ''
1031
- for (let i = 0; i < this.devicesAll.length; i++) {
1032
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1033
- if (this.devicesAll[i][j].f_device_type == val1) {
1034
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1035
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1036
- if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1037
- for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1038
- let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
1039
- aa += (val === null ? '空' : val) + ' '
1040
- }
1041
- return aa
1042
- }
1043
- }
1044
- }
1045
-
1046
- }
1047
- }
1048
- }
1049
-
1050
- },
1051
- getDevicePath(val1, val2) {
1052
- for (let i = 0; i < this.devicesAll.length; i++) {
1053
- for (let j = 0; j < this.devicesAll[i].length; j++) {
1054
- if (this.devicesAll[i][j].f_device_type == val1) {
1055
- for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1056
- if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1057
- return this.devicesAll[i][j].f_items[k].f_path
1058
- }
1059
- }
1060
-
1061
- }
1062
- }
1063
- }
1064
-
1065
- },
1066
- getDeviceAll() {
1067
- let keyall = Object.keys(this.data)
1068
- for (let i = 0; i < keyall.length; i++) {
1069
- //tag)
1070
- if (keyall[i].startsWith('device') && keyall[i] != 'deviceundefined') {
1071
- this.devicesAll.push(this.data[keyall[i]])
1072
- //tag
1073
- }
1074
- }
1075
- //tag
1076
- //tag)
1077
- this.devicesCollect()
1078
-
1079
- },
1080
-
1081
- back() {
1082
- if (this.role == 'inspect') {
1083
- if (!this.isStrat) {
1084
- this.$back()
1085
- return
1086
- } else {
1087
- this.savePaper(true).then(() => {
1088
- this.$back()
1089
- this.isStrat = false
1090
- })
1091
- }
1092
- } else {
1093
- this.$back()
1094
- }
1095
- },
1096
- checkIsStart() {
1097
- alert('asdad')
1098
- return
1099
- },
1100
-
1101
- viewPic(fileName) {
1102
- //tag
1103
- if (this.role == 'view') {
1104
- if (!fileName.endsWith('nopic.png')) {
1105
- this.pic_to_be_viewed = fileName
1106
- this.showModal = true
1107
- }
1108
- } else {
1109
- HostApp.viewPic(fileName)
1110
- }
1111
- },
1112
- tick() {
1113
- this.timer = null
1114
- this.data.f_offsite_time = Util.toStandardTimeString()
1115
- this.timer = window.setTimeout(this.tick, 1000)
1116
- },
1117
- getRepairState() {
1118
- let repaired = true
1119
- this.data.f_defects.forEach((defect) => {
1120
- repaired = repaired & (defect.f_ratification == '已处理')
1121
- })
1122
- return repaired
1123
- },
1124
- verifyRepairDefects() {
1125
- this.data.f_repair_date = Util.toStandardTimeString()
1126
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1127
- },
1128
- genuineSave(saveOnly) {
1129
- HostApp.__this__.save(saveOnly)
1130
- if (!saveOnly)
1131
- HostApp.__this__.disableTimer()
1132
- HostApp.__callback__ = null
1133
- HostApp.__this__ = null
1134
- },
1135
- setUrgency() {
1136
- this.data.f_defect_urgency = 'Z'
1137
- let that = this
1138
- this.data.f_defects.forEach(function (defect) {
1139
- if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1140
- that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1141
- })
1142
- if (this.data.f_defect_urgency == 'Z')
1143
- this.data.f_defect_urgency = null
1144
- },
1145
- disableTimer() {
1146
- if (this.timer) {
1147
- window.clearTimeout(this.timer)
1148
- this.timer = null
1149
- }
1150
- },
1151
- loaded(paper) {
1152
- if (!paper.hasOwnProperty('id')) {
1153
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1154
- this.init()
1155
- } else {
1156
- Util.booleanFilter(paper)
1157
- HostApp.__this__.$set('data', paper)
1158
- HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1159
- // 如果打回重检则重新计时
1160
- //tag
1161
- if (HostApp.__this__.role == 'inspect'
1162
- && HostApp.__this__.data.f_approved
1163
- && HostApp.__this__.data.f_approved == '打回') {
1164
- //tag
1165
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1166
- HostApp.__this__.tick()
1167
- }
1168
- }
1169
- HostApp.__callback__ = null
1170
- HostApp.__this__ = null
1171
- },
1172
- S4() {
1173
- return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1174
- },
1175
- init() {
1176
- this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1177
- this.data.ename = Vue.user.ename
1178
- this.data.f_outlets = Vue.user.f_parentname
1179
- this.data.f_meetunit = Vue.user.orgpathnames
1180
- this.data.orgpathstr = Vue.user.orgpathstr
1181
- this.data.f_check_item_id = this.item.id
1182
- this.data.f_check_plan_id = this.f_plan_id
1183
- this.data.f_checker_id = Vue.user.id
1184
- this.data.f_checker_name = Vue.user.name
1185
- this.data.f_check_type = this.item.f_user_type
1186
- this.data.f_subcompany = this.item.f_subcompany
1187
- this.data.f_approved = this.item.f_approved
1188
- this.data.f_repair_approved = this.item.f_repair_approved
1189
- this.data.f_no_checkplan = this.item.f_no_checkplan
1190
- this.data.f_approved = this.item.f_approved
1191
- this.data.f_filialeid = this.item.f_filialeid
1192
- this.data.f_orgstr = this.item.f_orgstr
1193
- this.data.version = this.item.version
1194
- this.$set('data.f_meters', this.item.f_plan_meters)
1195
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1196
- // 安检状态
1197
- this.$set('data.f_entry_status', '入户')
1198
- this.$set('data.f_usegas', '已使用')
1199
- this.$set('data.f_state', this.item.f_state)
1200
- // 用户信息
1201
- this.$set('data.f_user_name', this.item.f_user_name)
1202
- this.$set('data.f_user_phone', this.item.f_user_phone)
1203
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1204
- this.$set('data.f_address', this.item.f_address)
1205
- this.$set('data.f_card_id', this.item.f_card_id)
1206
- this.$set('data.f_area', this.item.f_area)
1207
- this.$set('data.f_street', this.item.f_street)
1208
- this.$set('data.f_room', this.item.f_room)
1209
- this.$set('data.f_building', this.item.f_building)
1210
- this.$set('data.f_unit', this.item.f_unit)
1211
- this.$set('data.f_floor', this.item.f_floor)
1212
- this.$set('data.f_residential_area', this.item.f_residential_area)
1213
- this.$set('data.f_idnumber', this.item.f_idnumber)
1214
- this.$set('data.f_comments', this.item.f_comments)
1215
- this.$set('data.f_userproperties', this.item.f_userproperties)
1216
- // 处置方式
1217
- this.$set('data.f_no_gas_device', false)
1218
- this.$set('data.f_close_valve', false)
1219
- this.$set('data.f_unload_battery', false)
1220
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1221
- this.data.f_check_item_id = this.data.f_noplan_item_id
1222
- }
1223
-
1224
- //房屋结构
1225
- // this.$set('data.f_room_style', '多层')
1226
- //供暖方式
1227
- // this.$set('data.f_heating_style', '热力公司集中供暖')
1228
- if (this.item.f_plan_meters) {
1229
- for (let de in this.devices) {
1230
- this.$set('data.device' + this.devices[de].n, [])
1231
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1232
- if (this.item.f_plan_meters[i].f_meter_type) {
1233
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1234
- delete this.config['燃气表']['items']['累计购气量']
1235
- this.data['device' + this.devices[de].n].push({
1236
- f_device_type: "燃气表",
1237
- f_items: [{
1238
- f_defect_level: null,
1239
- f_device_id: "",
1240
- f_is_defect: "",
1241
- f_item_name: "表品牌",
1242
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1243
- f_path: "",
1244
- type: "string"
1245
- },
1246
- {
1247
- f_defect_level: null,
1248
- f_device_id: "",
1249
- f_is_defect: "",
1250
- f_item_name: "位置",
1251
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1252
- f_path: "",
1253
- type: "selector"
1254
- },
1255
- {
1256
- f_defect_level: null,
1257
- f_device_id: "",
1258
- f_is_defect: "",
1259
- f_item_name: "表号",
1260
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1261
- f_path: "",
1262
- type: "number"
1263
- },
1264
- {
1265
- f_defect_level: null,
1266
- f_device_id: "",
1267
- f_is_defect: "",
1268
- f_item_name: "表封号",
1269
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1270
- f_path: "",
1271
- type: "number"
1272
- },
1273
- {
1274
- f_defect_level: null,
1275
- f_device_id: "",
1276
- f_is_defect: "",
1277
- f_item_name: "表型号",
1278
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1279
- f_path: "",
1280
- type: "selector"
1281
- },
1282
- {
1283
- f_defect_level: null,
1284
- f_device_id: "",
1285
- f_is_defect: "",
1286
- f_item_name: "表底数",
1287
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1288
- f_path: "",
1289
- type: "number"
1290
- }
1291
- ]
1292
- })
1293
- } else if (this.devices[de].device == "燃气表") {
1294
- delete this.config['燃气表']['items']['表底数']
1295
- this.data['device' + this.devices[de].n].push({
1296
- f_device_type: "燃气表",
1297
- f_items: [{
1298
- f_defect_level: null,
1299
- f_device_id: "",
1300
- f_is_defect: "",
1301
- f_item_name: "表品牌",
1302
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1303
- f_path: "",
1304
- type: "string"
1305
- },
1306
- {
1307
- f_defect_level: null,
1308
- f_device_id: "",
1309
- f_is_defect: "",
1310
- f_item_name: "位置",
1311
- f_item_value: this.item.f_plan_meters[i].f_weizhi,
1312
- f_path: "",
1313
- type: "selector"
1314
- },
1315
- {
1316
- f_defect_level: null,
1317
- f_device_id: "",
1318
- f_is_defect: "",
1319
- f_item_name: "表号",
1320
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1321
- f_path: "",
1322
- type: "number"
1323
- },
1324
- {
1325
- f_defect_level: null,
1326
- f_device_id: "",
1327
- f_is_defect: "",
1328
- f_item_name: "表封号",
1329
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1330
- f_path: "",
1331
- type: "number"
1332
- },
1333
- {
1334
- f_defect_level: null,
1335
- f_device_id: "",
1336
- f_is_defect: "",
1337
- f_item_name: "表型号",
1338
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1339
- f_path: "",
1340
- type: "selector"
1341
- },
1342
- {
1343
- f_defect_level: null,
1344
- f_device_id: "",
1345
- f_is_defect: "",
1346
- f_item_name: "累计购气量",
1347
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1348
- f_path: "",
1349
- type: "number"
1350
- }
1351
- ]
1352
- })
1353
- }
1354
- }
1355
- }
1356
- }
1357
- }
1358
-
1359
- this.$goto('paper-state', {}, 'paper-router')
1360
- },
1361
- extend(initalObj, finalObj) {
1362
- var obj = finalObj || {};
1363
- for (var i in initalObj) {
1364
- var prop = initalObj[i];
1365
-
1366
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1367
- if (prop === obj) {
1368
- continue;
1369
- }
1370
-
1371
- if (typeof prop === 'object') {
1372
- if (obj[i]) {
1373
- this.extend(obj[i], prop)
1374
- } else {
1375
- obj[i] = prop;
1376
- }
1377
- }
1378
- }
1379
- return obj;
1380
- },
1381
- //获取当前时间
1382
- getNowFormatDate() {
1383
- var date = new Date();
1384
- var seperator1 = "-";
1385
- var seperator2 = ":";
1386
- var month = date.getMonth() + 1;
1387
- var strDate = date.getDate();
1388
- if (month >= 1 && month <= 9) {
1389
- month = "0" + month;
1390
- }
1391
- if (strDate >= 0 && strDate <= 9) {
1392
- strDate = "0" + strDate;
1393
- }
1394
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1395
- + " " + date.getHours() + seperator2 + date.getMinutes()
1396
- + seperator2 + date.getSeconds();
1397
- return currentdate;
1398
- }
1399
- },
1400
- ready() {
1401
- asyncReady(this).then(() => {
1402
- this.showAudit()
1403
- this.putDevices()
1404
- if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1405
- if (this.role != 'inspect') {
1406
- let that = this
1407
- let id
1408
- if (this.role == 'view') {
1409
- id = this.item.id
1410
- } else if (this.role == 'androidview') {
1411
- id = this.item.f_paper_id
1412
- }
1413
- this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, { id: id }).then((respanse) => {
1414
- //tag
1415
- console.log('respanse', respanse)
1416
- if (respanse.data.length != 0) {
1417
- // 包含 其它 特殊处理的数组
1418
- // 对应位置
1419
- that.data = Object.assign(that.data, respanse.data[0])
1420
- if (respanse.data[0].f_devices) {
1421
- for (let da in that.devices) {
1422
- that.$set('data.device' + that.devices[da].n, [])
1423
- }
1424
- respanse.data[0].f_devices.forEach((item) => {
1425
- for (let de in that.devices) {
1426
- if (that.devices[de].device == item.f_device_type) {
1427
- item.f_items.forEach((f_item) => {
1428
- //tag
1429
- //tag
1430
- let itemValues = []
1431
- f_item.f_item_lists.forEach((tempItem) => {
1432
- //tag
1433
- if (tempItem.f_item_value !== 'null') {
1434
- itemValues.push(tempItem.f_item_value)
1435
- }
1436
- })
1437
- f_item.f_item_value = itemValues
1438
- })
1439
- that.data['device' + that.devices[de].n].push({
1440
- f_device_type: item.f_device_type,
1441
- f_items: item.f_items
1442
- })
1443
- }
1444
- }
1445
- })
1446
- }
1447
- Util.replaceFalse(that.data)
1448
- Util.booleanFilter(that.data)
1449
- if (this.role == 'view') {
1450
- Util.ratifyPics(that.data)
1451
- Util.ratifyPics(that.picture)
1452
- } else {
1453
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1454
- }
1455
- //tag
1456
- }
1457
- // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1458
- this.isshow = true
1459
- this.organizationalData(this.data.f_collection_type)
1460
- //tag
1461
- //tag)
1462
- if (this.data.f_check_type == '民用') {
1463
- console.log('11111',this.deviceconfig)
1464
- this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesConfig))
1465
- if (typeof this.deviceconfig === 'string') {
1466
- this.deviceconfig = JSON.parse(this.deviceconfig)
1467
- }
1468
- //tag)
1469
- } else if (this.data.f_check_type == '非民用') {
1470
- this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesSetConfig))
1471
- if (typeof this.deviceconfig === 'string') {
1472
- this.deviceconfig = JSON.parse(this.deviceconfig)
1473
- }
1474
- //tag)
1475
- }
1476
- this.deviceconfig["燃气表"].items = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1477
- /*if (this.data.f_collection_type == '按金额') {
1478
-
1479
- //this.deviceconfig["燃气表"]=this.config2["燃气表"]
1480
- //tag)
1481
- } else {
1482
- let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1483
- this.deviceconfig["燃气表"].items = aaa
1484
- //tag)
1485
- }*/
1486
- console.log('===========', this.deviceconfig)
1487
- this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1488
- // this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1489
- // this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1490
- this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1491
- this.deviceconfig2.forEach(item=>{
1492
- item.items.sort((a, b) => {
1493
- return a.index - b.index
1494
- })
1495
- })
1496
- console.log('>>>>>>>>>>>>>>',this.deviceconfig2)
1497
-
1498
- this.getDeviceAll()
1499
-
1500
- }
1501
- ).catch(
1502
- (respanse) => {
1503
- //tag
1504
- alert('查找安检单失败')
1505
- })
1506
- }
1507
- }
1508
- })
1509
- },
1510
- watch: {
1511
- // 'isUpload'(val){
1512
- // //tag
1513
- // }
1514
- },
1515
- destroyed() {
1516
- //tag
1517
- this.disableTimer()
1518
- }
1519
- }
1520
-
1521
- </script>
1522
- <style scoped>
1523
- .table-striped thead tr th {
1524
- background-color: rgb(223, 237, 251);
1525
- padding: 10px;
1526
- border-left: solid 0px #dae4f2;
1527
- border-top: solid 1px #dae4f2;
1528
- border-right: none;
1529
- border-bottom: none;
1530
- text-align: center;
1531
- color: black;
1532
- }
1533
- </style>
1
+ <style scoped>
2
+ .img {
3
+ border: 1px solid #9773ed;
4
+ width: auto;
5
+ height: auto;
6
+ float: left;
7
+ text-align: center;
8
+ margin: 6px;
9
+ }
10
+
11
+ img {
12
+ margin: 6px;
13
+ }
14
+
15
+
16
+ .container {
17
+ margin: 10px auto;
18
+ width: 80%;
19
+ height: auto;
20
+ }
21
+
22
+ div::-webkit-scrollbar {
23
+ width: 0 !important;
24
+ height: 0 !important;
25
+ }
26
+
27
+ div {
28
+ -ms-overflow-style: none;
29
+ overflow: -moz-scrollbars-none;
30
+ }
31
+
32
+ .divmask {
33
+ pointer-events: none;
34
+ }
35
+
36
+ .app-header {
37
+ border-radius: 50%;
38
+ background: rgba(73, 158, 223, 0.4);
39
+ color: #FFF;
40
+ padding: 20px;
41
+ text-align: center;
42
+ font-size: 1.2em;
43
+ z-index: 10;
44
+ opacity: 0.5;
45
+ bottom: 50px;
46
+ margin-top: -20px;
47
+ position: absolute;
48
+ top: 10%;
49
+ right: 2%;
50
+ height: 8%;
51
+ }
52
+ </style>
53
+
54
+ <template>
55
+ <div class="basic-main" style="height: 100%">
56
+ <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
+ <div @click="back()">
58
+ <img src="../../../assets/back.png" style="margin: 0px" />
59
+ </div>
60
+ </div>
61
+ <work-busy :is-busy="loading"></work-busy>
62
+ <div class="container-fluid" style="overflow: scroll">
63
+ <div class="row">
64
+ <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
65
+ <div style="width: 100%;margin: auto">
66
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px">
67
+ <thead>
68
+ <tr>
69
+ <th colspan="6" style="text-align: center">用户基本信息</th>
70
+ </tr>
71
+ </thead>
72
+ <tbody>
73
+ <tr>
74
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
75
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}
76
+ </td>
77
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
78
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
79
+ </tr>
80
+ <tr>
81
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
82
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
83
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
84
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
85
+ </tr>
86
+ <tr>
87
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
88
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
89
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
90
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
91
+ </tr>
92
+ <tr>
93
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
94
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
95
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
96
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
97
+ </tr>
98
+ <tr>
99
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
100
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
101
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
102
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
103
+ </tr>
104
+ <tr>
105
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
106
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
107
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用气性质:</td>
108
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_gasproperties }}</td>
109
+ </tr>
110
+ <tr>
111
+ <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
112
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
113
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
114
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
115
+ </tr>
116
+ <tr>
117
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
118
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
119
+ </tr>
120
+ </tbody>
121
+ </table>
122
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
123
+ <thead>
124
+ <tr>
125
+ <th colspan="4" style="text-align: center">用户安检概况</th>
126
+ </tr>
127
+ </thead>
128
+ <tbody>
129
+ <tr>
130
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
131
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
132
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
133
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}
134
+ </td>
135
+ </tr>
136
+ <tr>
137
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
138
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}
139
+ </td>
140
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
141
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
142
+ </tr>
143
+ <tr>
144
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
145
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
146
+ paperdata.f_client_evaluation
147
+ }}
148
+ </td>
149
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
150
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
151
+ :style="{ 'color': ajresult == '有隐患' ? 'red' : '' }">{{ ajresult }}</td>
152
+ </tr>
153
+ <tr>
154
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;">用户信息是否一致:</td>
155
+ <td colspan="2"
156
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
157
+ {{ paperdata.f_is_consistent }}
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
162
+ <td colspan="3"
163
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
164
+ {{ paperdata.f_repair_approved_note }}
165
+ </td>
166
+ </tr>
167
+ <tr>
168
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
169
+ <td colspan="3"
170
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
171
+ <span v-for="deviceCollect in deviceCollects">
172
+ <span class="li-font">
173
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
174
+ </span>
175
+ <br>
176
+ <span v-if="deviceCollect.value == '有隐患'">
177
+ <lable>
178
+ 隐患:
179
+ </lable>
180
+ <span v-for="val in deviceCollect.devices">
181
+ {{ val }}
182
+ </span><br>
183
+ </span>
184
+
185
+ </span>
186
+ </td>
187
+ </tr>
188
+
189
+ </tbody>
190
+ </table>
191
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status != '入户'">
192
+ <thead>
193
+ <tr>
194
+ <th colspan="4" style="text-align: center">用户安检概况</th>
195
+ </tr>
196
+ </thead>
197
+ <tbody>
198
+ <tr>
199
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
200
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
201
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
202
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}
203
+ </td>
204
+ </tr>
205
+ <tr>
206
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
207
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
208
+ {{ paperdata.f_entry_status }}
209
+ </td>
210
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
211
+ <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
212
+ {{ dev.lname }}
213
+ 查看{{ data.f_entry_status }}照片
214
+ </button-link>
215
+ </td>
216
+ </tr>
217
+
218
+ </tbody>
219
+ </table>
220
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
221
+ <thead>
222
+ <tr>
223
+ <th style="text-align: center">总体安检照片</th>
224
+ </tr>
225
+ </thead>
226
+ <tbody>
227
+ <tr>
228
+ <td style="margin: auto;text-align: center">
229
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
230
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
231
+ <img-self-plus :src="img.f_overall_path" style="float: left" width="150"
232
+ height="200"></img-self-plus>
233
+ </div>
234
+ </div>
235
+
236
+
237
+ </td>
238
+
239
+ </tr>
240
+ </tbody>
241
+ </table>
242
+ <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status == '入户'">
243
+ <thead>
244
+ <tr>
245
+ <th style="text-align: center">用户签名照片</th>
246
+ </tr>
247
+ </thead>
248
+ <tbody>
249
+ <tr>
250
+ <td style="margin: auto;text-align: center">
251
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
252
+ <div class="img" style="float: none">
253
+ <img-self-plus :src="paperdata.f_sign_path" width="486" height="300"></img-self-plus>
254
+ </div>
255
+ </div>
256
+ </td>
257
+ </tr>
258
+ </tbody>
259
+ </table>
260
+ <table class="table table-striped table-bordered"
261
+ v-show="paperdata.f_entry_status == '入户' && paperdata.f_defect_notified">
262
+ <thead>
263
+ <tr>
264
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
265
+ </tr>
266
+ </thead>
267
+ <tbody>
268
+ <tr>
269
+ <td style="margin: auto;text-align: center">
270
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
271
+ <div class="img" style="float: none">
272
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
273
+ </div>
274
+ </div>
275
+ </td>
276
+ </tr>
277
+ </tbody>
278
+ </table>
279
+ <table class="table table-striped table-bordered"
280
+ v-show="paperdata.f_entry_status == '入户' && item.f_recording1_path">
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: 500px;background: #FFFFFF">
290
+ <a class="button_spacing button_search-1"
291
+ :download="item.f_user_name + '-' + item.f_check_type + '-' + '录音文件.arm'"
292
+ :href="'rs/image/file/' + item.f_recording1_path">录音下载</a>
293
+ </div>
294
+ </td>
295
+ </tr>
296
+ </tbody>
297
+ </table>
298
+ </div>
299
+ </div>
300
+ <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
301
+ <div class="col-md-6" style="height: 100%;overflow: scroll">
302
+ <div style="width: 95%;margin-left: 5%">
303
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
304
+ <thead v-show="!(config.checkname != '燃气表' && paperdata.f_entry_status != '入户')">
305
+ <tr>
306
+ <th style="text-align: center">{{ config.checkname }}</th>
307
+ </tr>
308
+ </thead>
309
+ <tbody v-show="!(config.checkname != '燃气表' && paperdata.f_entry_status != '入户')">
310
+ <tr v-for="dev in config.items">
311
+ <td v-if="dev.type != 'text' && dev.isshow != false">
312
+ <div class="row">
313
+ <div class="col-md-8" style="text-align: center;">
314
+ <label>
315
+ <button-link type="button" class="btn btn-link"
316
+ @click="showpicture(config.checkname, dev.lname)"
317
+ :style="isred(config.checkname, dev.lname) ? 'color:red' : 'color:black'">
318
+ {{ dev.lname }}
319
+ </button-link>
320
+ </label>
321
+ </div>
322
+ <div class="col-md-4" style="text-align: center">
323
+ <label style="font-weight: normal" v-if="dev.type != 'picture'">{{
324
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) :
325
+ '无' }}</label>
326
+ <label style="font-weight: normal" v-if="dev.type == 'picture'">
327
+ <div v-show="getDevicePath(config.checkname, dev.lname)">
328
+ <button-link style="color: black" type="button" class="btn btn-link"
329
+ @click="showpath(getDevicePath(config.checkname, dev.lname), dev.lname)">查看照片
330
+ </button-link>
331
+ </div>
332
+ <div v-show="!getDevicePath(config.checkname, dev.lname)">无照片</div>
333
+ </label>
334
+ </div>
335
+ </div>
336
+ </td>
337
+ <td v-if="dev.type === 'text' && dev.isshow != false">
338
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
339
+ </td>
340
+ </tr>
341
+ </tbody>
342
+ </table>
343
+ <div v-show="showButton">
344
+ <button class="button_spacing button_search" @click="auditSuccesss()">通过</button>
345
+ <button class="button_spacing button_search" @click="auditFail()">不通过</button>
346
+ </div>
347
+ </div>
348
+ </div>
349
+
350
+ </div>
351
+ </div>
352
+ </div>
353
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
354
+ <header slot="modal-header" class="modal-header">
355
+ {{ picturename }}
356
+ </header>
357
+ <article slot="modal-body" class="modal-body">
358
+ <div class="from-group">
359
+ <div class="row">
360
+ <div class="col-md-6">
361
+ <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
362
+ </div>
363
+ <div class="col-md-6">
364
+ <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
365
+ </div>
366
+ <div class="col-md-6" v-for="item in otherDarginShowImgs">
367
+ <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
368
+ </div>
369
+ </div>
370
+ </div>
371
+ </article>
372
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
373
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
374
+ </footer>
375
+ </modal>
376
+ <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
377
+ <header slot="modal-header" class="modal-header">
378
+ {{ paperdata.f_entry_status }}照片
379
+ </header>
380
+ <article slot="modal-body" class="modal-body">
381
+ <div class="from-group">
382
+ <div class="row">
383
+ <div class="col-md-6">
384
+ <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer_path" :src="showimg3"
385
+ width="282" height="400"></img-self-plus>
386
+ </div>
387
+ <div class="col-md-6">
388
+ <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer1_path"
389
+ :src="showimg5" width="282" height="400"></img-self-plus>
390
+ </div>
391
+ <div class="col-md-6">
392
+ <img-self-plus v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer2_path"
393
+ :src="showimg6" width="282" height="400"></img-self-plus>
394
+ </div>
395
+ <div class="col-md-6">
396
+ <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck_path"
397
+ :src="showimg4" width="282" height="400"></img-self-plus>
398
+ </div>
399
+ <div class="col-md-6">
400
+ <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck1_path"
401
+ :src="showimg7" width="282" height="400"></img-self-plus>
402
+ </div>
403
+ <div class="col-md-6">
404
+ <img-self-plus v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck2_path"
405
+ :src="showimg8" width="282" height="400"></img-self-plus>
406
+ </div>
407
+ </div>
408
+ </div>
409
+ </article>
410
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
411
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
412
+ </footer>
413
+ </modal>
414
+ <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
415
+ <div slot="modal-header" class="modal-header">
416
+ <h4 class="modal-title">
417
+ 安检审核备注
418
+ </h4>
419
+ </div>
420
+ <div slot="modal-body" class="modal-body">
421
+ <div class="row">
422
+ <div class="form-group col-sm-4">
423
+ <label class="font_normal_body">审核备注:</label>
424
+ <textarea v-model="message"></textarea>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
429
+ <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
430
+ <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
431
+ </div>
432
+ </modal>
433
+ </template>
434
+
435
+ <script>
436
+ // import PaperUserm from './PaperUserm'
437
+ // import PaperStatem from './PaperStatem'
438
+ // import Devicesm from './Devicesm'
439
+ // import PaperFeedbackm from './PaperFeedbackm'
440
+ import ObjConfig from '../../../utils/GerJsonObjectConfig'
441
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
442
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
443
+ import Vue from 'vue'
444
+ import * as Util from '../../Util'
445
+ import { jsonSort } from '../../../utils/LdapHelper'
446
+ import { HttpResetClass } from "vue-client";
447
+
448
+ let asyncReady = async function (self) {
449
+ // 获取配置信息
450
+ try {
451
+ let res = await new HttpResetClass().load('get', '/api/af-safecheck/vue', null, { resolveMsg: null, rejectMsg: null })
452
+ self.delConfigKey(res.data)
453
+ Vue.config.safecheck = res.data
454
+ console.log('获取配置结果===', res.data)
455
+ } catch (error) {
456
+ // 忽略704,文件找不到异常R
457
+ if (error.status !== 704) {
458
+ throw error
459
+ }
460
+ }
461
+ }
462
+
463
+ export default {
464
+ title: '安检单',
465
+ props: ['f_plan_id', 'item', 'role'],
466
+ data() {
467
+ return {
468
+ f_approvedstart_time: '',
469
+ message: '',
470
+ showButton: false,
471
+ showModel: false,
472
+ data: {
473
+ f_devices: [],
474
+ f_defect_content: ''
475
+ },
476
+ paperdata: {},
477
+ picturename: '隐患照片',
478
+ defectDevice: {},
479
+ hasDevice: false,
480
+ deviceCollect: {},
481
+ deviceCollects: [],
482
+ isshow: false,
483
+ ajresult: '',
484
+ loading: true,
485
+ imgshow: false,
486
+ imgshow2: false,
487
+ isUpload: false,
488
+ livedispose: '',
489
+ showimg1: '',
490
+ showimg2: '',
491
+ showimg3: '',
492
+ showimg4: '',
493
+ showimg5: '',
494
+ showimg6: '',
495
+ showimg7: '',
496
+ showimg8: '',
497
+ hiddenDangerImgNumber: 0, //配置项中隐患照片数
498
+ otherDarginShowImgs: [],//其他隐患图片
499
+ startClick: false, //开始安检按钮是否可点击
500
+ isStrat: false, //是否开始安检
501
+ checkResult: {},//查询结果
502
+ newcheckResult: {},
503
+ timer: null,
504
+ showModal: false,
505
+ pic_to_be_viewed: '',
506
+ showBack: true,
507
+ devices: [],
508
+ devicesAll: [],
509
+ configAJ: [],
510
+ configRQ: [],
511
+ deviceconfig: {},
512
+ deviceconfig2: [],
513
+ f_devices: [],
514
+ config: {
515
+ "燃气表": {
516
+ "checkmust": true,
517
+ "index": 1,
518
+ "items": {
519
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
520
+ "基表编号": { "index": 1, "type": "string", "readonly": true },
521
+ "气表型号": { "index": 2, "type": "string", "readonly": true },
522
+ "气表品牌": { "index": 3, "type": "string", "readonly": true },
523
+ "进气方向": { "index": 4, "type": "string", "readonly": true },
524
+ "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
525
+ "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
526
+ "累购气量": { "index": 7, "type": "number", "readonly": true },
527
+ "累购金额": { "index": 7, "type": "number", "readonly": true },
528
+ "已用气量": { "index": 8, "type": "number", "checkmust": false },//基表数
529
+ "已用金额": { "index": 8, "type": "number", "checkmust": false },
530
+ "剩余气量": { "index": 9, "type": "number", "checkmust": false },//累购-已用
531
+ //显示屏数 --实际剩余气量
532
+ "剩余金额": { "index": 9, "type": "number", "checkmust": false },
533
+ "气量异常差值": { "index": 10, "type": "number", "readonly": true },
534
+ "金额异常差值": { "index": 10, "type": "number", "readonly": true },
535
+ "表箱号": { "index": 11, "type": "string", "readonly": true },
536
+ "燃气表照片1": { "index": 12, "type": "picture", "checkmust": true },
537
+ "燃气表照片2": { "index": 13, "type": "picture", "checkmust": false },
538
+ "燃气表照片3": { "index": 14, "type": "picture", "checkmust": false },
539
+ "燃气表照片4": { "index": 15, "type": "picture", "checkmust": false }
540
+ }
541
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
542
+ },
543
+ // "燃气表2":{
544
+ // "checkmust":true,
545
+ // "index":2,src
546
+ // "items":{
547
+ // "燃气表照片":{"index":1,"type":"picture"},
548
+ // "表品牌":{"index":2,"type":"string","readonly":true},
549
+ // "表号":{"index":3,"type":"string","readonly":true},
550
+ // "表封号":{"index":4,"type":"number","readonly":true},
551
+ // "表型号":{"index":5,"type":"string","readonly":true},
552
+ // "位置":{"index":6,"type":"string","readonly":true},
553
+ // "表底数":{"index":7,"type":"number","readonly":true},
554
+ // "累购气量":{"index":8,"type":"number","readonly":true},
555
+ // "累购金额":{"index":8,"type":"number","readonly":true}
556
+ // }
557
+ // }
558
+ },
559
+ //金额
560
+ config2: {
561
+ "燃气表": {
562
+ "checkmust": true,
563
+ "index": 1,
564
+ "items": {
565
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
566
+ "基表编号": { "index": 1, "type": "string", "readonly": true },
567
+ "气表型号": { "index": 2, "type": "string", "readonly": true },
568
+ "气表品牌": { "index": 3, "type": "string", "readonly": true },
569
+ "进气方向": { "index": 4, "type": "string", "readonly": true },
570
+ "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
571
+ "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
572
+ "累购气量": { "index": 7, "type": "number", "readonly": true },
573
+ "累购金额": { "index": 7, "type": "number", "readonly": true },
574
+ "已用气量": { "index": 8, "type": "number", "checkmust": false },//基表数
575
+ "已用金额": { "index": 8, "type": "number", "checkmust": false },
576
+ "剩余气量": { "index": 9, "type": "number", "checkmust": false },//累购-已用
577
+ //显示屏数 --实际剩余气量
578
+ "剩余金额": { "index": 9, "type": "number", "checkmust": false },
579
+ "气量异常差值": { "index": 10, "type": "number", "readonly": true },
580
+ "金额异常差值": { "index": 10, "type": "number", "readonly": true },
581
+ "表箱号": { "index": 11, "type": "string", "readonly": true },
582
+ "燃气表照片": { "index": 12, "type": "picture", "checkmust": false }
583
+ }
584
+ }
585
+ },
586
+ }
587
+ },
588
+ components: {
589
+ RadioGroup,
590
+ Radio,
591
+ },
592
+ computed: {
593
+ isRecodrDownloadBtn() {
594
+ // 投诉单下派还是处理
595
+ let res = this.$appdata.getSingleValue('无限制录音');
596
+ if (res == 'true') {
597
+ return true;
598
+ } else {
599
+ return false;
600
+ }
601
+ },
602
+ selector: {
603
+ get() {
604
+ return 'paper-state'
605
+ },
606
+ set(val) {
607
+ if (this.isStrat) {
608
+ this.$goto(val, { userinfo: this.data }, 'paper-router')
609
+ } else {
610
+ this.$showMessage('未开始安检!')
611
+ }
612
+ }
613
+ },
614
+ actionEnabled: {
615
+ get() {
616
+ return this.role == 'inspect'
617
+ }
618
+ }
619
+ },
620
+ methods: {
621
+ delConfigKey(obj) {
622
+ // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
623
+ Object.keys(obj).forEach(key => {
624
+ Object.keys(obj[key]).forEach(col => {
625
+ // 检查键是否以$开头
626
+ if (col.startsWith('$')) {
627
+ // 使用delete操作符删除键
628
+ delete obj[key][col];
629
+ }
630
+ })
631
+ })
632
+ },
633
+
634
+ //组织config数据---
635
+ organizationalData(type) {
636
+ console.log('看看表类型', type)
637
+ if (type.indexOf('机表') > -1) {
638
+ delete this.config["燃气表"]["items"]["累购金额"]
639
+ delete this.config["燃气表"]["items"]["已用金额"]
640
+ delete this.config["燃气表"]["items"]["剩余金额"]
641
+ delete this.config["燃气表"]["items"]["金额异常差值"]
642
+ this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
643
+ this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
644
+ this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
645
+ this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
646
+ } else if (type.indexOf('物联网表') > -1) {
647
+ delete this.config["燃气表"]["items"]["累购气量"]
648
+ delete this.config["燃气表"]["items"]["已用金额"]
649
+ delete this.config["燃气表"]["items"]["剩余气量"]
650
+ delete this.config["燃气表"]["items"]["气量异常差值"]
651
+ this.config["燃气表"]["items"]["累购金额"]["isshow"] = false
652
+ this.config["燃气表"]["items"]["金额异常差值"]["isshow"] = true
653
+ this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
654
+ this.config["燃气表"]["items"]["剩余金额"]["isshow"] = true
655
+ } else if (type == '按金额') {
656
+ delete this.config["燃气表"]["items"]["累购气量"]
657
+ delete this.config["燃气表"]["items"]["已用气量"]
658
+ delete this.config["燃气表"]["items"]["剩余气量"]
659
+ delete this.config["燃气表"]["items"]["气量异常差值"]
660
+ this.config["燃气表"]["items"]["初始表底"]["isshow"] = false
661
+ this.config["燃气表"]["items"]["已用金额"]["isshow"] = false
662
+ this.config["燃气表"]["items"]["剩余金额"]["isshow"] = false
663
+ this.config["燃气表"]["items"]["金额异常差值"]["isshow"] = false
664
+ this.config["燃气表"]["items"]["累购金额"]["isshow"] = true
665
+ } else if (type == '按气量') {
666
+ delete this.config["燃气表"]["items"]["累购金额"]
667
+ delete this.config["燃气表"]["items"]["已用金额"]
668
+ delete this.config["燃气表"]["items"]["剩余金额"]
669
+ delete this.config["燃气表"]["items"]["金额异常差值"]
670
+ this.config["燃气表"]["items"]["初始表底"]["isshow"] = false
671
+ this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
672
+ this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
673
+ this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
674
+ this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
675
+ } else {
676
+ delete this.config["燃气表"]["items"]["累购金额"]
677
+ delete this.config["燃气表"]["items"]["已用金额"]
678
+ delete this.config["燃气表"]["items"]["剩余金额"]
679
+ delete this.config["燃气表"]["items"]["金额异常差值"]
680
+ this.config["燃气表"]["items"]["累购气量"]["isshow"] = true
681
+ this.config["燃气表"]["items"]["已用气量"]["isshow"] = true
682
+ this.config["燃气表"]["items"]["剩余气量"]["isshow"] = true
683
+ this.config["燃气表"]["items"]["气量异常差值"]["isshow"] = true
684
+ }
685
+ },
686
+ showAudit() {
687
+ var audit = this.$appdata.getSingleValue('安检审核');
688
+ if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
689
+ this.f_approvedstart_time = Util.toStandardTimeString()
690
+ this.showButton = true
691
+ }
692
+ },
693
+ //安检审核成功
694
+ auditSuccesss() {
695
+ this.loading = true;
696
+ let reqdata = {
697
+ audit_result: '通过',
698
+ operator: "success",
699
+ audit_time: Util.getNowDate(),
700
+ f_approvedstart_time: this.f_approvedstart_time,
701
+ user_name: this.$login.f.name,
702
+ id: this.item.id,
703
+ f_check_item_id: this.item.f_check_item_id,
704
+ f_userinfo_id: this.item.f_userinfoid
705
+ }
706
+ new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', { data: reqdata }, {
707
+ resolveMsg: '安检审核成功!',
708
+ rejectMsg: '安检审核出错!'
709
+ }).then((res) => {
710
+ if (res.data.code == 200) {
711
+ this.loading = false;
712
+ this.$root.$emit('audit-status-changed')
713
+ this.$back()
714
+ }
715
+ })
716
+ },
717
+ auditFail() {
718
+ this.showModel = true;
719
+ },
720
+ auditFailOK() {
721
+
722
+ this.loading = true;
723
+ let reqdata = {
724
+ message: this.message,
725
+ audit_result: '不通过',
726
+ operator: "fail",
727
+ f_approvedstart_time: this.f_approvedstart_time,
728
+ audit_time: Util.getNowDate(),
729
+ user_name: this.$login.f.name,
730
+ id: this.item.id,
731
+ f_check_item_id: this.item.f_check_item_id,
732
+ f_userinfo_id: this.item.f_userinfoid
733
+ }
734
+ new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', { data: reqdata }, {
735
+ resolveMsg: '安检审核成功!',
736
+ rejectMsg: '安检审核出错!'
737
+ }).then((res) => {
738
+ if (res.data.code == 200) {
739
+ this.loading = false;
740
+ this.message = '';
741
+ this.showModel = false;
742
+ this.$root.$emit('audit-status-changed')
743
+ this.back();
744
+ }
745
+ })
746
+ },
747
+ auditFailCancel() {
748
+ this.showModel = false;
749
+ this.message = '';
750
+ },
751
+
752
+ devicesCollect() {
753
+ //tag
754
+ //tag)
755
+ //tag)
756
+ //tag
757
+ this.deviceCollects = []
758
+ let checkResult = '正常'
759
+ this.result = '正常'
760
+ let codata = JSON.parse(JSON.stringify(this.data))
761
+ //tag)
762
+ for (let device in this.data) {
763
+ let f_device_type
764
+ if (device.startsWith("device")) {
765
+ for (let item in this.data[device]) {
766
+ if (this.data[device].length > 1) {
767
+ let j = Number.parseInt(item) + 1
768
+ f_device_type = `${this.data[device][item].f_device_type}${j}`
769
+ } else {
770
+ f_device_type = this.data[device][item].f_device_type
771
+ }
772
+ // //tag
773
+ let deviceelse = []
774
+ let deviceInfos = []
775
+ for (let i in this.data[device][item].f_items) {
776
+ let defects = ''
777
+
778
+ let items = this.data[device][item].f_items[i]
779
+
780
+
781
+ if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox') && items.f_item_value != null && items.f_item_value instanceof Array) {
782
+ for (let i in items.f_item_value) {
783
+ let f_item_value = items.f_item_value[i]
784
+
785
+ //tag)
786
+ //tag)
787
+ //tag)
788
+ //tag)
789
+
790
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
791
+ continue
792
+ }
793
+ if (items.f_is_defect != true && items.f_is_defect != 'true') {
794
+ continue
795
+ }
796
+ console.log('items', items)
797
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
798
+ checkResult = '有隐患'
799
+ this.result = '有隐患'
800
+ defects = `${defects}:${items.f_item_value}/`
801
+ }
802
+
803
+ /*let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
804
+ for (let option in options) {
805
+ if (options[option].data == f_item_value) {
806
+ if (options[option].isdefect == 'true' || options[option].isdefect == true) {
807
+ checkResult = '有隐患'
808
+ this.result = '有隐患'
809
+ defects = `${defects}:${options[option].data}/`
810
+ // let level = options[option].level
811
+ }
812
+ }
813
+ }*/
814
+ //tag)
815
+ }
816
+ if (defects != '') {
817
+ console.log('有隐患items', items)
818
+ deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
819
+ }
820
+ }
821
+ else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
822
+ checkResult = '有隐患'
823
+ this.result = '有隐患'
824
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
825
+
826
+ }
827
+ else if (items.f_item_name == '金额异常差值') {
828
+ var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
829
+ //tag
830
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
831
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
832
+ checkResult = '有隐患'
833
+ this.result = '有隐患'
834
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
835
+ }
836
+ }
837
+ }
838
+ else if (items.f_item_name == '气量异常差值') {
839
+ var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
840
+ //tag
841
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
842
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
843
+ checkResult = '有隐患'
844
+ this.result = '有隐患'
845
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
846
+ }
847
+ }
848
+ }
849
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
850
+ console.log('this.config[this.data[device][item].f_device_type]', this.config[this.data[device][item].f_device_type])
851
+ console.log('this.deviceconfig2', this.deviceconfig2)
852
+ for (let dev in this.deviceconfig2) {
853
+ if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
854
+ this.deviceconfig2[dev].items.push({
855
+ lname: items.f_item_name
856
+ })
857
+ }
858
+ }
859
+ }
860
+ //tag)
861
+ //tag
862
+ //tag
863
+ if (items.type === 'selector') {
864
+ items.selected = []
865
+ } else if (items.type === 'inputSelector') {
866
+ items.selected = ''
867
+ }
868
+ }
869
+
870
+
871
+ //tag
872
+ this.$set('deviceCollect.name', f_device_type)
873
+ this.$set('deviceCollect.value', checkResult)
874
+ this.$set('deviceCollect.devices', deviceInfos)
875
+ this.$set('deviceCollect.else', deviceelse)
876
+ console.log('deviceCollect.devices', this.deviceCollect.devices)
877
+ console.log('deviceCollect.else', this.deviceCollect.else)
878
+ //tag)
879
+ if (this.deviceCollect.name) {
880
+ //tag
881
+ this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
882
+ }
883
+
884
+ checkResult = '正常'
885
+ this.deviceCollect = {}
886
+ }
887
+ }
888
+ }
889
+ if (this.deviceCollects.length > 0) {
890
+ this.hasDevice = true
891
+ }
892
+ this.ajresult = JSON.parse(this.data.f_defect_content).result
893
+ this.showimg3 = this.data.f_noanswer_path
894
+ this.showimg5 = this.data.f_noanswer1_path
895
+ this.showimg6 = this.data.f_noanswer2_path
896
+ this.showimg4 = this.data.f_rejectcheck_path
897
+ this.showimg7 = this.data.f_rejectcheck1_path
898
+ this.showimg8 = this.data.f_rejectcheck2_path
899
+ this.paperdata = this.data
900
+ this.loading = false
901
+ },
902
+ imgclose() {
903
+ this.imgshow = false
904
+ },
905
+ putDevices() {
906
+ ////tag
907
+ this.$set('data.approve', "true")
908
+ this.$set('data.writeback', "false")
909
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
910
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
911
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
912
+ }
913
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
914
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
915
+ }
916
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
917
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
918
+ }
919
+ if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
920
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
921
+ this.hiddenDangerImgNumber = 3
922
+ } else {
923
+ this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
924
+ }
925
+ }
926
+ }
927
+ //tag
928
+
929
+ //tag)
930
+ if (!this.item.f_safecheck_type) {
931
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
932
+ } else {
933
+ if (Vue.config.safecheck.DevicesConfig != undefined)
934
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
935
+ }
936
+ //遍历安检项配置
937
+ for (let i in this.config) {
938
+ //取得安检项索引值
939
+ let n = this.config[i].index
940
+ this.devices[n - 1] = { device: i, n: n, checkmust: this.config[i].checkmust }
941
+ this.$set('data.' + 'device' + n, [])
942
+ let items = []
943
+ for (let it in this.config[i].items) {
944
+ //赋值下拉选项
945
+ if (this.config[i].items[it].type == 'selector') {
946
+ for (let op in this.config[i].items[it].options)
947
+ if (this.config[i].items[it].options[op].isdefault == true) {
948
+ items.push({
949
+ f_defect_level: this.config[i].items[it].options[op].level,
950
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
951
+ f_item_name: it,
952
+ f_item_value: this.config[i].items[it].options[op].data,
953
+ f_path: "",
954
+ type: "selector"
955
+ })
956
+ }
957
+ }
958
+ }
959
+ n = n + 1
960
+ }
961
+
962
+ },
963
+ showpath(val1, val2) {
964
+ //tag
965
+ //tag
966
+ if (val1) {
967
+ this.showimg1 = val1
968
+ this.picturename = val2
969
+ this.imgshow = true
970
+ }
971
+ },
972
+ showpicture(val1, val2) {
973
+ //tag
974
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
975
+ return
976
+ }
977
+ for (let i = 0; i < this.devicesAll.length; i++) {
978
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
979
+ if (this.devicesAll[i][j].f_device_type == val1) {
980
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
981
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
982
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
983
+ return false
984
+ } else {
985
+ this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
986
+ this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
987
+ this.otherDarginShowImgs = []
988
+ for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
989
+ let img = { path: '' }
990
+ if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
991
+ img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
992
+ this.otherDarginShowImgs.push(img)
993
+ }
994
+ }
995
+ this.picturename = '隐患照片'
996
+ this.imgshow = true
997
+ return true
998
+ }
999
+ }
1000
+ }
1001
+
1002
+ }
1003
+ }
1004
+ }
1005
+ },
1006
+ isred(val1, val2) {
1007
+ //tag
1008
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1009
+ return
1010
+ }
1011
+ for (let i = 0; i < this.devicesAll.length; i++) {
1012
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1013
+ if (this.devicesAll[i][j].f_device_type == val1) {
1014
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1015
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1016
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1017
+ return false
1018
+ } else {
1019
+ return true
1020
+ }
1021
+ }
1022
+ }
1023
+
1024
+ }
1025
+ }
1026
+ }
1027
+ },
1028
+ showpicture2() {
1029
+ this.imgshow2 = true
1030
+ },
1031
+ getDeviceValue(val1, val2) {
1032
+ let aa = ''
1033
+ for (let i = 0; i < this.devicesAll.length; i++) {
1034
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1035
+ if (this.devicesAll[i][j].f_device_type == val1) {
1036
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1037
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1038
+ if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1039
+ for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1040
+ let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
1041
+ aa += (val === null ? '空' : val) + ' '
1042
+ }
1043
+ return aa
1044
+ }
1045
+ }
1046
+ }
1047
+
1048
+ }
1049
+ }
1050
+ }
1051
+
1052
+ },
1053
+ getDevicePath(val1, val2) {
1054
+ for (let i = 0; i < this.devicesAll.length; i++) {
1055
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1056
+ if (this.devicesAll[i][j].f_device_type == val1) {
1057
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1058
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1059
+ return this.devicesAll[i][j].f_items[k].f_path
1060
+ }
1061
+ }
1062
+
1063
+ }
1064
+ }
1065
+ }
1066
+
1067
+ },
1068
+ getDeviceAll() {
1069
+ let keyall = Object.keys(this.data)
1070
+ for (let i = 0; i < keyall.length; i++) {
1071
+ //tag)
1072
+ if (keyall[i].startsWith('device') && keyall[i] != 'deviceundefined') {
1073
+ this.devicesAll.push(this.data[keyall[i]])
1074
+ //tag
1075
+ }
1076
+ }
1077
+ //tag
1078
+ //tag)
1079
+ this.devicesCollect()
1080
+
1081
+ },
1082
+
1083
+ back() {
1084
+ if (this.role == 'inspect') {
1085
+ if (!this.isStrat) {
1086
+ this.$back()
1087
+ return
1088
+ } else {
1089
+ this.savePaper(true).then(() => {
1090
+ this.$back()
1091
+ this.isStrat = false
1092
+ })
1093
+ }
1094
+ } else {
1095
+ this.$root.$emit('audit-status-changed')
1096
+ this.$back()
1097
+ }
1098
+ },
1099
+ checkIsStart() {
1100
+ alert('asdad')
1101
+ return
1102
+ },
1103
+
1104
+ viewPic(fileName) {
1105
+ //tag
1106
+ if (this.role == 'view') {
1107
+ if (!fileName.endsWith('nopic.png')) {
1108
+ this.pic_to_be_viewed = fileName
1109
+ this.showModal = true
1110
+ }
1111
+ } else {
1112
+ HostApp.viewPic(fileName)
1113
+ }
1114
+ },
1115
+ tick() {
1116
+ this.timer = null
1117
+ this.data.f_offsite_time = Util.toStandardTimeString()
1118
+ this.timer = window.setTimeout(this.tick, 1000)
1119
+ },
1120
+ getRepairState() {
1121
+ let repaired = true
1122
+ this.data.f_defects.forEach((defect) => {
1123
+ repaired = repaired & (defect.f_ratification == '已处理')
1124
+ })
1125
+ return repaired
1126
+ },
1127
+ verifyRepairDefects() {
1128
+ this.data.f_repair_date = Util.toStandardTimeString()
1129
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1130
+ },
1131
+ genuineSave(saveOnly) {
1132
+ HostApp.__this__.save(saveOnly)
1133
+ if (!saveOnly)
1134
+ HostApp.__this__.disableTimer()
1135
+ HostApp.__callback__ = null
1136
+ HostApp.__this__ = null
1137
+ },
1138
+ setUrgency() {
1139
+ this.data.f_defect_urgency = 'Z'
1140
+ let that = this
1141
+ this.data.f_defects.forEach(function (defect) {
1142
+ if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1143
+ that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1144
+ })
1145
+ if (this.data.f_defect_urgency == 'Z')
1146
+ this.data.f_defect_urgency = null
1147
+ },
1148
+ disableTimer() {
1149
+ if (this.timer) {
1150
+ window.clearTimeout(this.timer)
1151
+ this.timer = null
1152
+ }
1153
+ },
1154
+ loaded(paper) {
1155
+ if (!paper.hasOwnProperty('id')) {
1156
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1157
+ this.init()
1158
+ } else {
1159
+ Util.booleanFilter(paper)
1160
+ HostApp.__this__.$set('data', paper)
1161
+ HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1162
+ // 如果打回重检则重新计时
1163
+ //tag
1164
+ if (HostApp.__this__.role == 'inspect'
1165
+ && HostApp.__this__.data.f_approved
1166
+ && HostApp.__this__.data.f_approved == '打回') {
1167
+ //tag
1168
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1169
+ HostApp.__this__.tick()
1170
+ }
1171
+ }
1172
+ HostApp.__callback__ = null
1173
+ HostApp.__this__ = null
1174
+ },
1175
+ S4() {
1176
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1177
+ },
1178
+ init() {
1179
+ this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1180
+ this.data.ename = Vue.user.ename
1181
+ this.data.f_outlets = Vue.user.f_parentname
1182
+ this.data.f_meetunit = Vue.user.orgpathnames
1183
+ this.data.orgpathstr = Vue.user.orgpathstr
1184
+ this.data.f_check_item_id = this.item.id
1185
+ this.data.f_check_plan_id = this.f_plan_id
1186
+ this.data.f_checker_id = Vue.user.id
1187
+ this.data.f_checker_name = Vue.user.name
1188
+ this.data.f_check_type = this.item.f_user_type
1189
+ this.data.f_subcompany = this.item.f_subcompany
1190
+ this.data.f_approved = this.item.f_approved
1191
+ this.data.f_repair_approved = this.item.f_repair_approved
1192
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1193
+ this.data.f_approved = this.item.f_approved
1194
+ this.data.f_filialeid = this.item.f_filialeid
1195
+ this.data.f_orgstr = this.item.f_orgstr
1196
+ this.data.version = this.item.version
1197
+ this.$set('data.f_meters', this.item.f_plan_meters)
1198
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1199
+ // 安检状态
1200
+ this.$set('data.f_entry_status', '入户')
1201
+ this.$set('data.f_usegas', '已使用')
1202
+ this.$set('data.f_state', this.item.f_state)
1203
+ // 用户信息
1204
+ this.$set('data.f_user_name', this.item.f_user_name)
1205
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1206
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1207
+ this.$set('data.f_address', this.item.f_address)
1208
+ this.$set('data.f_card_id', this.item.f_card_id)
1209
+ this.$set('data.f_area', this.item.f_area)
1210
+ this.$set('data.f_street', this.item.f_street)
1211
+ this.$set('data.f_room', this.item.f_room)
1212
+ this.$set('data.f_building', this.item.f_building)
1213
+ this.$set('data.f_unit', this.item.f_unit)
1214
+ this.$set('data.f_floor', this.item.f_floor)
1215
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1216
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1217
+ this.$set('data.f_comments', this.item.f_comments)
1218
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1219
+ // 处置方式
1220
+ this.$set('data.f_no_gas_device', false)
1221
+ this.$set('data.f_close_valve', false)
1222
+ this.$set('data.f_unload_battery', false)
1223
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1224
+ this.data.f_check_item_id = this.data.f_noplan_item_id
1225
+ }
1226
+
1227
+ //房屋结构
1228
+ // this.$set('data.f_room_style', '多层')
1229
+ //供暖方式
1230
+ // this.$set('data.f_heating_style', '热力公司集中供暖')
1231
+ if (this.item.f_plan_meters) {
1232
+ for (let de in this.devices) {
1233
+ this.$set('data.device' + this.devices[de].n, [])
1234
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1235
+ if (this.item.f_plan_meters[i].f_meter_type) {
1236
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1237
+ delete this.config['燃气表']['items']['累计购气量']
1238
+ this.data['device' + this.devices[de].n].push({
1239
+ f_device_type: "燃气表",
1240
+ f_items: [{
1241
+ f_defect_level: null,
1242
+ f_device_id: "",
1243
+ f_is_defect: "",
1244
+ f_item_name: "表品牌",
1245
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1246
+ f_path: "",
1247
+ type: "string"
1248
+ },
1249
+ {
1250
+ f_defect_level: null,
1251
+ f_device_id: "",
1252
+ f_is_defect: "",
1253
+ f_item_name: "位置",
1254
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1255
+ f_path: "",
1256
+ type: "selector"
1257
+ },
1258
+ {
1259
+ f_defect_level: null,
1260
+ f_device_id: "",
1261
+ f_is_defect: "",
1262
+ f_item_name: "表号",
1263
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1264
+ f_path: "",
1265
+ type: "number"
1266
+ },
1267
+ {
1268
+ f_defect_level: null,
1269
+ f_device_id: "",
1270
+ f_is_defect: "",
1271
+ f_item_name: "表封号",
1272
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1273
+ f_path: "",
1274
+ type: "number"
1275
+ },
1276
+ {
1277
+ f_defect_level: null,
1278
+ f_device_id: "",
1279
+ f_is_defect: "",
1280
+ f_item_name: "表型号",
1281
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1282
+ f_path: "",
1283
+ type: "selector"
1284
+ },
1285
+ {
1286
+ f_defect_level: null,
1287
+ f_device_id: "",
1288
+ f_is_defect: "",
1289
+ f_item_name: "表底数",
1290
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1291
+ f_path: "",
1292
+ type: "number"
1293
+ }
1294
+ ]
1295
+ })
1296
+ } else if (this.devices[de].device == "燃气表") {
1297
+ delete this.config['燃气表']['items']['表底数']
1298
+ this.data['device' + this.devices[de].n].push({
1299
+ f_device_type: "燃气表",
1300
+ f_items: [{
1301
+ f_defect_level: null,
1302
+ f_device_id: "",
1303
+ f_is_defect: "",
1304
+ f_item_name: "表品牌",
1305
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1306
+ f_path: "",
1307
+ type: "string"
1308
+ },
1309
+ {
1310
+ f_defect_level: null,
1311
+ f_device_id: "",
1312
+ f_is_defect: "",
1313
+ f_item_name: "位置",
1314
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1315
+ f_path: "",
1316
+ type: "selector"
1317
+ },
1318
+ {
1319
+ f_defect_level: null,
1320
+ f_device_id: "",
1321
+ f_is_defect: "",
1322
+ f_item_name: "表号",
1323
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1324
+ f_path: "",
1325
+ type: "number"
1326
+ },
1327
+ {
1328
+ f_defect_level: null,
1329
+ f_device_id: "",
1330
+ f_is_defect: "",
1331
+ f_item_name: "表封号",
1332
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1333
+ f_path: "",
1334
+ type: "number"
1335
+ },
1336
+ {
1337
+ f_defect_level: null,
1338
+ f_device_id: "",
1339
+ f_is_defect: "",
1340
+ f_item_name: "表型号",
1341
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1342
+ f_path: "",
1343
+ type: "selector"
1344
+ },
1345
+ {
1346
+ f_defect_level: null,
1347
+ f_device_id: "",
1348
+ f_is_defect: "",
1349
+ f_item_name: "累计购气量",
1350
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1351
+ f_path: "",
1352
+ type: "number"
1353
+ }
1354
+ ]
1355
+ })
1356
+ }
1357
+ }
1358
+ }
1359
+ }
1360
+ }
1361
+
1362
+ this.$goto('paper-state', {}, 'paper-router')
1363
+ },
1364
+ extend(initalObj, finalObj) {
1365
+ var obj = finalObj || {};
1366
+ for (var i in initalObj) {
1367
+ var prop = initalObj[i];
1368
+
1369
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1370
+ if (prop === obj) {
1371
+ continue;
1372
+ }
1373
+
1374
+ if (typeof prop === 'object') {
1375
+ if (obj[i]) {
1376
+ this.extend(obj[i], prop)
1377
+ } else {
1378
+ obj[i] = prop;
1379
+ }
1380
+ }
1381
+ }
1382
+ return obj;
1383
+ },
1384
+ //获取当前时间
1385
+ getNowFormatDate() {
1386
+ var date = new Date();
1387
+ var seperator1 = "-";
1388
+ var seperator2 = ":";
1389
+ var month = date.getMonth() + 1;
1390
+ var strDate = date.getDate();
1391
+ if (month >= 1 && month <= 9) {
1392
+ month = "0" + month;
1393
+ }
1394
+ if (strDate >= 0 && strDate <= 9) {
1395
+ strDate = "0" + strDate;
1396
+ }
1397
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1398
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1399
+ + seperator2 + date.getSeconds();
1400
+ return currentdate;
1401
+ }
1402
+ },
1403
+ ready() {
1404
+ asyncReady(this).then(() => {
1405
+ this.showAudit()
1406
+ this.putDevices()
1407
+ if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1408
+ if (this.role != 'inspect') {
1409
+ let that = this
1410
+ let id
1411
+ if (this.role == 'view') {
1412
+ id = this.item.id
1413
+ } else if (this.role == 'androidview') {
1414
+ id = this.item.f_paper_id
1415
+ }
1416
+ this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, { id: id }).then((respanse) => {
1417
+ //tag
1418
+ console.log('respanse', respanse)
1419
+ if (respanse.data.length != 0) {
1420
+ // 包含 其它 特殊处理的数组
1421
+ // 对应位置
1422
+ that.data = Object.assign(that.data, respanse.data[0])
1423
+ if (respanse.data[0].f_devices) {
1424
+ for (let da in that.devices) {
1425
+ that.$set('data.device' + that.devices[da].n, [])
1426
+ }
1427
+ respanse.data[0].f_devices.forEach((item) => {
1428
+ for (let de in that.devices) {
1429
+ if (that.devices[de].device == item.f_device_type) {
1430
+ item.f_items.forEach((f_item) => {
1431
+ //tag
1432
+ //tag
1433
+ let itemValues = []
1434
+ f_item.f_item_lists.forEach((tempItem) => {
1435
+ //tag
1436
+ if (tempItem.f_item_value !== 'null') {
1437
+ itemValues.push(tempItem.f_item_value)
1438
+ }
1439
+ })
1440
+ f_item.f_item_value = itemValues
1441
+ })
1442
+ that.data['device' + that.devices[de].n].push({
1443
+ f_device_type: item.f_device_type,
1444
+ f_items: item.f_items
1445
+ })
1446
+ }
1447
+ }
1448
+ })
1449
+ }
1450
+ Util.replaceFalse(that.data)
1451
+ Util.booleanFilter(that.data)
1452
+ if (this.role == 'view') {
1453
+ Util.ratifyPics(that.data)
1454
+ Util.ratifyPics(that.picture)
1455
+ } else {
1456
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1457
+ }
1458
+ //tag
1459
+ }
1460
+ // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1461
+ this.isshow = true
1462
+ this.organizationalData(this.data.f_collection_type)
1463
+ //tag
1464
+ //tag)
1465
+ if (this.data.f_check_type == '民用') {
1466
+ console.log('11111',this.deviceconfig)
1467
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesConfig))
1468
+ if (typeof this.deviceconfig === 'string') {
1469
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1470
+ }
1471
+ //tag)
1472
+ } else if (this.data.f_check_type == '非民用') {
1473
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesSetConfig))
1474
+ if (typeof this.deviceconfig === 'string') {
1475
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1476
+ }
1477
+ //tag)
1478
+ }
1479
+ this.deviceconfig["燃气表"].items = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1480
+ /*if (this.data.f_collection_type == '按金额') {
1481
+
1482
+ //this.deviceconfig["燃气表"]=this.config2["燃气表"]
1483
+ //tag)
1484
+ } else {
1485
+ let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1486
+ this.deviceconfig["燃气表"].items = aaa
1487
+ //tag)
1488
+ }*/
1489
+ console.log('===========', this.deviceconfig)
1490
+ this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1491
+ // this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1492
+ // this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1493
+ this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1494
+ this.deviceconfig2.forEach(item=>{
1495
+ item.items.sort((a, b) => {
1496
+ return a.index - b.index
1497
+ })
1498
+ })
1499
+ console.log('>>>>>>>>>>>>>>',this.deviceconfig2)
1500
+
1501
+ this.getDeviceAll()
1502
+
1503
+ }
1504
+ ).catch(
1505
+ (respanse) => {
1506
+ //tag
1507
+ alert('查找安检单失败')
1508
+ })
1509
+ }
1510
+ }
1511
+ })
1512
+ },
1513
+ watch: {
1514
+ // 'isUpload'(val){
1515
+ // //tag
1516
+ // }
1517
+ },
1518
+ destroyed() {
1519
+ //tag
1520
+ this.disableTimer()
1521
+ }
1522
+ }
1523
+
1524
+ </script>
1525
+ <style scoped>
1526
+ .table-striped thead tr th {
1527
+ background-color: rgb(223, 237, 251);
1528
+ padding: 10px;
1529
+ border-left: solid 0px #dae4f2;
1530
+ border-top: solid 1px #dae4f2;
1531
+ border-right: none;
1532
+ border-bottom: none;
1533
+ text-align: center;
1534
+ color: black;
1535
+ }
1536
+ </style>