safecheck-client 4.0.0-25 → 4.0.0-27

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