safecheck-client 3.0.33-1 → 3.0.33-100

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