safecheck-client 4.0.1-72 → 4.0.1-75

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 (483) 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/NewDefectList/DefectListNew.vue +682 -682
  193. package/src/components/Util/RightTreeSafeDep.vue +12 -0
  194. package/src/components/android/AddPlanItem.vue +447 -447
  195. package/src/components/android/AddPlanItemYy.vue +451 -451
  196. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  197. package/src/components/android/AndroidDefectDeal.vue +667 -667
  198. package/src/components/android/AttendanceTally.vue +116 -116
  199. package/src/components/android/Blank.vue +10 -10
  200. package/src/components/android/CheckUnplanPage.vue +56 -56
  201. package/src/components/android/Checker.vue +12 -12
  202. package/src/components/android/CheckerAnnual.vue +81 -81
  203. package/src/components/android/CheckerAvarta.vue +82 -82
  204. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  205. package/src/components/android/DailyworkloadQuery.vue +473 -473
  206. package/src/components/android/Devices.vue +327 -327
  207. package/src/components/android/Devicesm.vue +327 -327
  208. package/src/components/android/EquipmentInspection.vue +348 -348
  209. package/src/components/android/FootprintMap.vue +120 -120
  210. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  211. package/src/components/android/MasterMain.vue +77 -77
  212. package/src/components/android/Menu.vue +132 -132
  213. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1343
  214. package/src/components/android/PaperAlarm.vue +85 -85
  215. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  216. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  217. package/src/components/android/PhoneRecordInfo.vue +113 -113
  218. package/src/components/android/PhoneSellInfo.vue +113 -113
  219. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  220. package/src/components/android/PlumberAnnual.vue +83 -83
  221. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  222. package/src/components/android/PlumberMonthly.vue +84 -84
  223. package/src/components/android/PostMap.vue +83 -83
  224. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  225. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  226. package/src/components/android/QueryCheckHistory.vue +122 -122
  227. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  228. package/src/components/android/RepairMain.vue +60 -60
  229. package/src/components/android/Repairman.vue +12 -12
  230. package/src/components/android/SafePlanItem.vue +509 -509
  231. package/src/components/android/SafecheckOrderV.vue +2281 -2275
  232. package/src/components/android/StationMaster.vue +12 -12
  233. package/src/components/android/examples/SafeListExamples.vue +296 -296
  234. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  235. package/src/components/android/recheck/Recheck.vue +402 -402
  236. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  237. package/src/components/checkplan/checkmsg.vue +459 -459
  238. package/src/components/defect/DefectList.vue +507 -507
  239. package/src/components/defect/DefectListWeixiu.vue +484 -484
  240. package/src/components/defects/DefectModal.vue +101 -101
  241. package/src/components/defects/DevicesAndItem.vue +39 -39
  242. package/src/components/filialCircle/CircleList.vue +139 -139
  243. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  244. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  245. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  246. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  247. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  248. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  249. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  250. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  251. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  252. package/src/components/map/PersonTrack.vue +226 -226
  253. package/src/components/map/SecurityCheckCoordinates.vue +361 -361
  254. package/src/components/notice/NoticeForm.vue +100 -100
  255. package/src/components/notice/NoticeIssue.vue +20 -20
  256. package/src/components/paper/PicViewer.vue +18 -18
  257. package/src/components/paper/RegionalList.vue +220 -220
  258. package/src/components/pc/AnnouncementPC.vue +524 -524
  259. package/src/components/pc/DefectList.vue +742 -742
  260. package/src/components/pc/DefectMaterialLook.vue +98 -98
  261. package/src/components/pc/DeviceChange.vue +1068 -1068
  262. package/src/components/pc/PaperDefectMain.vue +905 -905
  263. package/src/components/pc/RoleSelectorDep.vue +9 -2
  264. package/src/components/pc/SafeVisitInfo.vue +261 -261
  265. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  266. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  267. package/src/components/phonestate/PostMap.vue +82 -82
  268. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  269. package/src/components/report/HiddenSituation.vue +165 -165
  270. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  271. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  272. package/src/components/rongcheng/DefectList.vue +560 -560
  273. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  274. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  275. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  276. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  277. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  278. package/src/components/shaoguan/DefectList.vue +473 -473
  279. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  280. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  281. package/src/components/userfile/MeterFile.vue +145 -145
  282. package/src/components/userfile/MeterModify.vue +46 -46
  283. package/src/components/userfile/SecurityAudit.vue +243 -243
  284. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  285. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  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/pc/DefectListNew.vue +597 -597
  296. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  297. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  298. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  299. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  300. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  301. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  302. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  303. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  304. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  305. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  306. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  307. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  308. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  309. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  310. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  311. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  312. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  313. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  314. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  315. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  316. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  317. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  318. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  319. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  320. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  321. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  322. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  323. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  324. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  325. package/src/filiale/jinhong/pc/CheckBookList.vue +2 -0
  326. package/src/filiale/jinhong/pc/PaperList.vue +853 -853
  327. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  328. package/src/filiale/jinhong/pc/checkPlanList.vue +2 -0
  329. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  330. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  331. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  332. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  333. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  334. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  335. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  336. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  337. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  338. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  339. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  340. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  341. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  342. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  343. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  344. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  345. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  346. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  347. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  348. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  349. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  350. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  351. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  352. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  353. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  354. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  355. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  356. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  357. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  358. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  359. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  360. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  361. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  362. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  363. package/src/filiale/qingjian/pc.js +15 -15
  364. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  365. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  366. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  367. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  368. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  369. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  370. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  371. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  372. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  373. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  374. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  375. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  376. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  377. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  378. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  379. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  380. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  381. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  382. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  383. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  384. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  385. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  386. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  387. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  388. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  389. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  390. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  391. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  392. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  393. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -2341
  394. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  395. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  396. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  397. package/src/filiale/taiyuan/pc.js +15 -15
  398. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  399. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  400. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  401. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  402. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  403. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  404. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  405. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  406. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  407. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  408. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  409. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  410. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  411. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  412. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  413. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  414. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  415. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  416. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  417. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  418. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  419. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  420. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  421. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  422. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  423. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  424. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  425. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  426. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  427. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  428. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  429. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  430. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  431. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  432. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  433. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  434. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  435. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  436. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  437. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  438. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  439. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  440. package/src/filiale/xinkang/pc/NewCheckpaper.vue +37 -28
  441. package/src/filiale/xinkang/pc/PaperList.vue +24 -2
  442. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  443. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  444. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  445. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  446. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  447. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  448. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  449. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  450. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  451. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  452. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  453. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  454. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  455. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  456. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  457. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  458. package/src/filiale/yunchengminsheng/android.js +15 -15
  459. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  460. package/src/filiale/yunchengminsheng/pc.js +15 -15
  461. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  462. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  463. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  464. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  465. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  466. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  467. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  468. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  469. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  470. package/src/main.js +33 -32
  471. package/src/plugins/LoadData.js +10 -10
  472. package/src/plugins/LoadParams.js +24 -24
  473. package/src/safecheck.js +924 -924
  474. package/src/stores/wxconfig.js +10 -10
  475. package/src/utils/getNowDate.js +33 -33
  476. package/test/e2e/custom-assertions/elementCount.js +26 -26
  477. package/test/e2e/nightwatch.conf.js +40 -40
  478. package/test/e2e/runner.js +30 -30
  479. package/test/e2e/specs/test.js +13 -13
  480. package/test/unit/.eslintrc +5 -5
  481. package/test/unit/TestUtil.js +62 -62
  482. package/test/unit/context.html +20 -20
  483. package/test/unit/index.js +13 -13
@@ -1,2424 +1,2424 @@
1
- <template>
2
- <!--<div class="app-botton" @click="back()">-->
3
- <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
- <!--</div>-->
5
- <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
- <div class="col-sm-12 col-xs-12" >
7
- <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
8
- <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
9
- v-if="$index < number+1 && $index < faultshow.number" >
10
- <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
11
- <span class="spanboder">{{row.header}}</span>
12
- <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
13
- <p></p>
14
- </li>
15
- <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
- <route name='repair' :reuse="false"></route>
17
- </div>
18
- <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
19
- v-if="$index > number && $index < faultshow.number ">
20
- <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
21
- <span class="spanboder">{{row.header}}</span>
22
- <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
23
- <p></p>
24
- </li>
25
- <div class="col-sm-12 col-xs-12 repair-bg" v-if="actionEnabled ">
26
- <div class="auto select-overspread form-horizontal repair-bg " style="padding-bottom:5px;">
27
- <div class="bq-parent">
28
- <blockquote class="blockquote">
29
- <p>安检上传</p>
30
- </blockquote>
31
- </div>
32
- <div class="panel panel-default auto repair-info-content">
33
- <div class="panel-body ">
34
- <div class="row auto">
35
- <!--<div class="col-xs-12 col-sm-12 col-md-12" :style="timeSet(this.isneedDate)?'':'display:none'">-->
36
- <!--<label>请输入超期原因:</label><br/>-->
37
- <!--<textarea style="width: 100%;" v-model=""></textarea>-->
38
- <!--</div>-->
39
- <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
40
- <div class="col-xs-3 col-sm-3 col-md-3" v-if="parentPage=='CurrentCreate'">
41
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')">
42
- 临时保存
43
- </button>
44
- </div>
45
- <div class="col-xs-3 col-sm-3 col-md-3">
46
- <button class="col-sm-3 btn btn-primary" @click="save('finish')">
47
- 本地缓存
48
- </button>
49
- </div>
50
- <div class="col-xs-3 col-sm-3 col-md-3">
51
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
52
- 上传
53
- </button>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- </ul>
62
- </div>
63
-
64
- </div>
65
- </template>
66
-
67
- <script>
68
- // 户内维修
69
- import Vue from 'vue'
70
- import * as Util from '../../../components/Util'
71
- // import DoorService from './DoorService'
72
- // import Pipeline from './Pipeline'
73
- // import DeviceService from './DeviceService'
74
- // import TroubleRemoval from './TroubleRemoval'
75
- // import FirstGasCheck from './FirstGasCheck'
76
- // import RepairMatterInfo from './RepairMatterInfo'
77
- // import TelChangeMatter from './TelChangeMatter'
78
- import { HttpResetClass } from 'vue-client'
79
- import co from 'co'
80
- import $ from "jquery";
81
- let loadParamGem = async function (self) {
82
- await self.$LoadParams.loadParam()
83
- }
84
-
85
- export default {
86
- title: '安检单',
87
- props: ['f_plan_id', 'item', 'role','parentPage','source'],
88
- // props: ['f_plan_id', 'role'],
89
- data() {
90
- return {
91
- //测试数据
92
- // f_plan_id:'',
93
- // role:'inspect',
94
- // item:{"f_approved_time":null,"f_user_family_remarks":null,"f_street":"测试街道","f_repair_approved_time":null,
95
- // "f_user_type":null,"f_approved_by":null,"f_card_id":null,"f_remark":null,"f_building":"1","f_batch_number":null,
96
- // "f_idnumber":null,"f_state":"未检","id":"0EFE0EE2-B155-46F9-8DE0-38C022664A4D","f_complete":null,"f_check_state":null,"f_last_check_state":"拒检",
97
- // "f_user_inhome_time":null,"f_residential_area":"测试小区1","version":1,"f_processid":null,"f_last_check_result":"{\"result\":\"正常\",\"data\":[]}",
98
- // "f_area":null,"f_usegas":null,"f_user_phone":"16566546548","f_slice_area":"营业大区","f_approved":"未审核","f_upload_state":"未传","f_user_check_time":null,
99
- // "f_unit":"1","f_user_spare_phone":null,"f_last_check_date":null,"f_userproperties":null,"f_userfile_id":null,"f_prearranged_date":null,"f_filialeid":"453",
100
- // "f_branch":null,"f_orgstr":null,"f_plan_year":2020,"f_orgid":null,"f_approval_notified":null,"f_plan_month":4,"f_approved_note":null,"f_filialeids":null,
101
- // "f_floor":"1","f_flag":null,"f_repair_approved_note":null,"f_userinfo_code":"00000002","f_create_time":"2020-05-10 18:56:03","f_meter_no":"","f_station":null,
102
- // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
103
- // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
104
- // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
105
- // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
106
- // },
107
-
108
- data: {
109
- f_devices: [],
110
- f_defect_content:'',
111
- f_recording1_path:''
112
- },
113
- updateuserphone:false, //安检时是否更新用户电话
114
- updatemetermodel:false, //安检时是否更新表型号
115
- updatemeternumber:false, //安检时是否更新表号
116
- beforephone:'',
117
- isUpload:false,
118
- onlySave:true, //判断保存还是保存并上传
119
- livedispose:'',
120
- startClick:false, //开始安检按钮是否可点击
121
- isStrat: false, //是否开始安检
122
- checkResult:{},//查询结果
123
- newcheckResult:{},
124
- timer: null,
125
- showModal: false,
126
- pic_to_be_viewed: '',
127
- showBack:true,
128
- devices: [],
129
- f_devices : [],
130
- isToRepair:false,
131
- clickBack:true, //是否点击返回按钮
132
- isSafeCheckToRepair:false,//是否转维修
133
- Url:this.$androidUtil.getProxyUrl(),
134
- detail:{},
135
- defectDevice:{},
136
- user:{},
137
- model: { //转维修数据
138
- // 一次派单
139
- serviceacitivity: [{
140
- f_service_acitivity_type: '派单'
141
- }],
142
- f_source:'安检',
143
- f_service_id: '',
144
- f_contact_phone: '',
145
- f_meetunit: '',
146
- f_phone: '',
147
- f_user_name: '',
148
- f_address: '',
149
- f_repair_date: Util.toStandardTimeString(),
150
- f_card_id: '',
151
- // f_department: '', 站点选择
152
- f_reciever:'',
153
- f_remarks: '',
154
- f_user_type: '',
155
- f_area: '',
156
- f_unit_name:'',
157
- f_street: '',
158
- f_residential_area: '',
159
- f_building: '',
160
- f_unit: '',
161
- f_floor: '',
162
- f_room: '',
163
- aState: null,
164
- f_repairtype: '',
165
- f_repairitems:{},
166
- },
167
- repairitems:[],
168
- meading:'转站点',
169
- config: {
170
- "燃气表":{
171
- "checkmust":true,
172
- "index":1,
173
- "items":{
174
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
175
- "基表编号":{"index":1,"type":"string","readonly":true},
176
- "气表型号":{"index":2,"type":"string","readonly":true},
177
- "气表品牌":{"index":3,"type":"string","readonly":true},
178
- "进气方向":{"index":4,"type":"string","readonly":true},
179
- "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
180
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
181
- "累购气量":{"index":7,"type":"number","readonly":true},
182
- "累购金额":{"index":7,"type":"number","readonly":true},
183
- "已用气量":{"index":8,"type":"number","checkmust": true},//基表数
184
- "已用金额":{"index":8,"type":"number","checkmust": true},
185
- "剩余气量":{"index":9,"type":"number","checkmust": true},//累购-已用
186
- //显示屏数 --实际剩余气量
187
- "剩余金额":{"index":9,"type":"number","checkmust": true},
188
- "气量异常差值":{"index":10,"type":"number","readonly": true},
189
- "金额异常差值":{"index":10,"type":"number","readonly": true},
190
- "表箱号":{"index":11,"type":"string","readonly": true}
191
- }
192
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
193
- },
194
- // "燃气表2":{
195
- // "checkmust":true,
196
- // "index":2,src
197
- // "items":{
198
- // "燃气表照片":{"index":1,"type":"picture"},
199
- // "表品牌":{"index":2,"type":"string","readonly":true},
200
- // "表号":{"index":3,"type":"string","readonly":true},
201
- // "表封号":{"index":4,"type":"number","readonly":true},
202
- // "表型号":{"index":5,"type":"string","readonly":true},
203
- // "位置":{"index":6,"type":"string","readonly":true},
204
- // "表底数":{"index":7,"type":"number","readonly":true},
205
- // "累购气量":{"index":8,"type":"number","readonly":true},
206
- // "累购金额":{"index":8,"type":"number","readonly":true}
207
- // }
208
- // }
209
- },
210
- // 维修项
211
- isneedDate:'',
212
- routeShow:true,
213
- number:0,
214
- shupingshow:false,
215
- pipeline: {},
216
- details: [],
217
- ids: '',
218
- savevalid: {
219
- uservalid: false,
220
- doorvalid: true,
221
- changetable: false
222
- },
223
- doordetails: {},
224
- devicedetails: {},
225
- cookdetails: {},
226
- componentName: 'safecheck-userinfo',
227
- header:'客户信息',
228
- tabs: [
229
- // 参数全部设置成空,在ready时,等model处理好了,再添加
230
- {
231
- header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
232
- },
233
- {
234
- header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
235
- }
236
- ],
237
- faultshow:{
238
- number : 8
239
- } // 控制 故障汇总 在 菜单里显示与否,
240
- }
241
- },
242
- computed: {
243
- actionEnabled: {
244
- get() {
245
- return this.role == 'inspect'
246
- }
247
- }
248
- },
249
- methods: {
250
- closely(isdelete){
251
- try {
252
- var startOrStopAudioClipStr;
253
- if (isdelete===true) {
254
- //tag
255
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
256
- }else {
257
- //tag
258
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
259
- }
260
- if (startOrStopAudioClipStr.code == 200) {
261
- //tag
262
- return true;
263
- }else {
264
- return false;
265
- }
266
- } catch (e) {
267
- console.error("关闭录音方法异常")
268
- console.error(e)
269
- return false;
270
- }
271
- },
272
- // 录音方法
273
- record() {
274
- //tag
275
- if (this.role != 'inspect') {
276
- if (this.data.f_recording1_path != '') {
277
- window.location = "/rs/file"+this.data.f_recording1_path
278
- }
279
- } else {
280
- //tag
281
- let fileName
282
- if (!this.data.f_recording1_path) {
283
- fileName = Util.guid() + '.amr'
284
- } else {
285
- fileName = Util.getFileName(this.data.f_recording1_path)
286
- }
287
- //HostApp.__this__ = this
288
- /*调用无限制录音模块*/
289
- let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
290
- //tag
291
- if (startOrStopState.code == 200) {
292
- this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
293
- //tag
294
- return true;
295
- }else {
296
- return false;
297
- }
298
- }
299
- },
300
- saveNoclick() {
301
- // 禁用点击事件
302
- $("#savebut").addClass("noclickbut");
303
- //tag
304
-
305
- // 5秒后启用点击事件
306
- setTimeout(function(){
307
- $("#savebut").removeClass("noclickbut");
308
- },5000);
309
- },
310
- timeSet(val){
311
- if (!val){
312
- return
313
- }
314
- let time =new Date(val).getTime()
315
- let time2=new Date().getTime()
316
- if (time2>time) {
317
- return true
318
- }
319
- },
320
- imgback(val,isheader){
321
- if(val && this.routeShow && isheader){
322
- return require('../../../assets/xiangxia1.png')
323
- }else{
324
- return require('../../../assets/xiangyou1.png')
325
- }
326
- },
327
- changediv(val){
328
- //tag
329
- return val
330
- },
331
- // 选择tab
332
- tabSelect (item,number) {
333
- this.header = item.header
334
- //tag
335
- //tag
336
- //tag
337
- //tag
338
- // 处理关闭/显示 内容
339
- if(this.number == number && !this.routeShow ){
340
- this.routeShow = true
341
- }else if(this.number == number && this.routeShow){
342
- this.routeShow = false
343
- }else if(this.number != item.complete){
344
- this.routeShow = true
345
- }
346
- this.number = number
347
- this.componentName = item.complete
348
- //tag
349
- if(item.complete == 'safecheck-devices'){
350
- //tag
351
- if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
352
- this.data['device' + item.number].push({})
353
- }
354
- //tag
355
- //tag)
356
- let idx=this.data['device' + item.number].length - 1
357
- let itemprops = {
358
- config:this.config,
359
- device:this.devices[item.number-1],
360
- idx:idx,
361
- role:'inspect'
362
- }
363
- //tag
364
- //tag)
365
- //tag)
366
- //tag
367
- if(this.routeShow){
368
- this.$goto(item.complete, itemprops, 'repair')
369
- //tag
370
- }
371
- }else{
372
- //tag
373
- if(this.routeShow){
374
- this.$goto(item.complete, {userinfo:this.data}, 'repair')
375
- }
376
- }
377
- this.shupingshow = true
378
- },
379
- // 给组件添加参数
380
- getImgPath() {
381
- for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
382
- this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
383
- }
384
- this.ids = this.ids.substring(0, this.ids.length - 1)
385
- if(this.ids){
386
- this.getImgGen();
387
- }
388
- },
389
- getImgGen(){
390
- let http = new HttpResetClass()
391
- http.load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
392
- items: '*',
393
- tablename: 't_files',
394
- condition: `id in (${this.ids})`,
395
- orderitem: 'id'
396
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
397
- for (let i = 0; i < res.data.length; i++) {
398
- for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
399
- //tag)
400
- //tag
401
- if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
402
- this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
403
- }
404
- }
405
-
406
- }
407
- })
408
- },
409
-
410
- sortDetails(){
411
- for (let i = 0; i < this.details.length; i++) {
412
- if (this.details[i].details.length) {
413
- for (let j = 0; j < this.details[i].details.length; j++) {
414
- if (this.details[i].details[j].f_type === 'a') {
415
- this.doordetails = {details: this.details[i].details}
416
- break
417
- }
418
- if (this.details[i].details[j].f_type === 'b') {
419
- this.devicedetails = {details: this.details[i].details}
420
- break
421
- }
422
- if (this.details[i].details[j].f_type === 'c') {
423
- this.cookdetails = {details: this.details[i].details}
424
- break
425
- }
426
- }
427
- }
428
- }
429
- },
430
- // 复制数据
431
- back () {
432
- let _this = this
433
- if(this.issee){
434
- _this.$back()
435
- return
436
- }
437
- this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
438
- if (res === 'confirm') {
439
- this.closely()
440
- _this.$back()
441
- }
442
- })
443
- },
444
- confirm(){
445
- this.$dispatch('confirm')
446
- },
447
- tick() {
448
- this.timer = null
449
- this.data.f_offsite_time = Util.toStandardTimeString()
450
- this.timer = window.setTimeout(this.tick, 1000)
451
- },
452
- getRepairState() {
453
- let repaired = true
454
- this.data.f_defects.forEach((defect) => {
455
- repaired = repaired & (defect.f_ratification == '已处理')
456
- })
457
- return repaired
458
- },
459
- verifyRepairDefects() {
460
- this.data.f_repair_date = Util.toStandardTimeString()
461
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
462
- },
463
- errorVerify() {
464
- let hasError = this.verifyState()
465
- if(hasError)
466
- return hasError
467
-
468
- if(this.data.f_entry_status != '入户')
469
- return null
470
- hasError = this.verifyUser()
471
- if(hasError)
472
- return hasError
473
- hasError = this.verifyDevices()
474
- if(hasError)
475
- return hasError
476
- hasError = this.verifyFeedback()
477
- if(hasError)
478
- return hasError
479
- },
480
- verifyState() {
481
- if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
482
- return '未使用天然气则必须拍照'
483
- if(Vue.android && this.data.f_entry_status == '到访不遇' && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer1_path == Vue.nopic))
484
- return '到访不遇必须拍2张照片'
485
- },
486
- verifyUser() {
487
- //tag
488
- //tag
489
- //tag)
490
- let prefix = '用户基本信息:'
491
- if(Util.required(this.data.f_user_name))
492
- return prefix + '用户名必须输入'
493
- if(!(/^\d{11}$/.test(this.data.f_user_phone))) {
494
-
495
- return '请输入正确的电话号码'
496
- }
497
- // if(Util.required(this.data.f_residential_area))
498
- // return prefix + '小区名称必须输入'
499
- if(Util.required(this.data.f_address))
500
- return prefix + '地址必须输入'
501
- },
502
- verifyDevices() {
503
- for (let dev in this.config) {
504
- if (this.config[dev].checkmust == true) {
505
- let error = true
506
- for(let device in this.data) {
507
- if (device.startsWith("device")) {
508
- for (let item in this.data[device]) {
509
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
510
- error = false
511
- }
512
- }
513
- }
514
- }
515
- if (error) {
516
- return "请检查" + dev
517
- }
518
- }
519
- }
520
-
521
- for (let dev in this.config) {
522
- for(let device in this.data) {
523
- if (device.startsWith("device")) {
524
- for (let item in this.data[device]) {
525
- //检查每一条安检结果
526
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
527
- for (let i in this.data[device][item].f_items) {
528
- for (let it in this.config[dev].items) {
529
- if (it == this.data[device][item].f_items[i].f_item_name) {
530
- let check=false
531
- if (!this.data[device][item].f_items[i].f_item_value){
532
- check=true
533
- }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
534
- if (this.data[device][item].f_items[i].f_item_value.length==0){
535
- check=true
536
- }
537
- }
538
-
539
- if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
540
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
541
- }
542
- if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
543
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
544
- }
545
- }
546
- }
547
- //检查安检下拉结果
548
- if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
549
- if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
550
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + this.data[device][item].f_items[i].f_item_value + "选中必须拍照"
551
- }
552
- }
553
- }
554
- }
555
- }
556
- }
557
- }
558
- }
559
- },
560
-
561
-
562
- verifyFeedback() {
563
- let prefix = '拍照签名:'
564
- //tag)
565
- if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
566
- return prefix + '必须有安检总体照片'
567
- if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
568
- return prefix + '必须有用户签名'
569
- if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
570
- return prefix + '下发安检通知书则必须给通知书拍照'
571
- if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
572
- return prefix + '请填写拉黑原因'
573
- if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
574
- return prefix + '请选择服务评价'
575
- },
576
-
577
- getAllDefect() {
578
- let checkResults = {
579
- result: '正常',
580
- data: []
581
- }
582
- let value = ''
583
- let codata = JSON.parse(JSON.stringify(this.data))
584
- //tag)
585
- //tag)
586
- codata.f_devices = []
587
- this.f_devices = []
588
- for (let device in codata) {
589
- let f_device_type
590
- if (device.startsWith("device")) {
591
- //tag)
592
- let hasOther = ''
593
- let otherValue = null
594
- for (let item in codata[device]) {
595
- if(typeof codata[device][item]=='function'){
596
- continue
597
- }
598
- codata[device][item].f_create_time = Util.toStandardTimeString()
599
- // if (codata[device].length > 1) {
600
- // let j = Number.parseInt(item) + 1
601
- // f_device_type = `${codata[device][item].f_device_type}${j}`
602
- // } else {
603
- // f_device_type = codata[device][item].f_device_type
604
- // }
605
- //tag
606
- //tag
607
- //tag)
608
- //tag)
609
- if(item == 'sum' || item == 'removeEmpty'){
610
- continue
611
- }
612
- for (let i = 0; i < codata[device][item].f_items.length ; i++) {
613
- //tag
614
- if(i == 'sum' || i == 'removeEmpty'){
615
- continue
616
- }
617
- //tag)
618
- var items = codata[device][item].f_items[i]
619
- items.f_create_time = Util.toStandardTimeString()
620
- //tag)
621
- items.f_item_lists = []
622
- //tag)
623
- // //tag)
624
- // //tag} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
625
- // console.log(`f_is_defect => ${this.config[codata[device][item]
626
- // .f_device_type]
627
- // .items[items.f_item_name]
628
- // .options
629
- // .find((option)=>option.data === items.f_item_value)
630
- // .map((option)=>option.f_is_defect)}`)
631
- // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
632
- // //tag
633
- // checkResults.result = '有隐患'
634
- // //tag)
635
- // //tag)
636
- // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
637
- // this.checkResult[items.f_item_name] = items.f_item_value
638
- // //tag)
639
- // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
640
- // // //tag)
641
- // }
642
- if (items.type == 'selector') {
643
- items.selected = []
644
- } else if (items.type == 'inputSelector') {
645
- items.selected = ''
646
- }
647
- //遍历配置项 将所选隐患项的配置信息放入保存的数据中
648
- let f_is_defect //是否是隐患
649
- let f_defect_level //是否是隐患
650
- let f_item_name = items.f_item_name
651
- let f_item_value
652
- let f_is_eliminate //隐患是否消除
653
- let f_meternumber = ''
654
- let f_user_defects = [] // 用户所有隐患
655
- //tag
656
- //tag
657
- if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
658
- for (let i in items.f_item_value) {
659
- if(typeof items.f_item_value[i]=='function'){
660
- continue
661
- }
662
- let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
663
- //tag)
664
- for (let k in configItems.options) {
665
- if(typeof configItems.options[k]=='function'){
666
- continue
667
- }
668
- //tag)
669
- if (items.f_item_value[i] === configItems.options[k].data) {
670
-
671
- f_is_defect = configItems.options[k].isdefect
672
- f_item_value = items.f_item_value[i]
673
- f_defect_level = configItems.options[k].level
674
-
675
- //tag
676
- //tag
677
- //tag
678
-
679
- if (f_is_defect) {
680
- if (checkResults.result !== '有隐患') {
681
- checkResults.result = '有隐患'
682
- }
683
- if (!this.checkResult.hasOwnProperty(f_item_name)) {
684
- //tag
685
- this.checkResult[f_item_name] = []
686
- }
687
-
688
- //tag
689
- this.checkResult[f_item_name].push(f_item_value)
690
-
691
- }
692
-
693
- let items_list = {
694
- f_is_defect: f_is_defect,
695
- f_item_value: f_item_value,
696
- f_defect_level: f_defect_level,
697
- f_is_eliminate: null,
698
- f_create_time: Util.toStandardTimeString()
699
- }
700
- if (!items.f_item_lists) {
701
- //tag
702
- items.f_item_lists = []
703
- //tag)
704
- if (JSON.stringify(items_list) !== '{}') {
705
- //tag
706
- items.f_item_lists.push(items_list)
707
- }
708
- } else {
709
- //tag)
710
- if (JSON.stringify(items_list) !== '{}') {
711
- //tag
712
- items.f_item_lists.push(items_list)
713
- }
714
- }
715
- }
716
- }
717
- }
718
- } else {
719
- let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
720
- f_is_defect = configItems.isdefect
721
- f_defect_level = configItems.level
722
- f_item_value = items.f_item_value
723
- let items_list = {
724
- f_is_defect: f_is_defect,
725
- f_item_value: f_item_value,
726
- f_defect_level: f_defect_level,
727
- f_create_time: Util.toStandardTimeString()
728
- }
729
- if (f_is_defect && f_item_value) {
730
- items.f_is_defect = true
731
- if (checkResults.result !== '有隐患') {
732
- checkResults.result = '有隐患'
733
- }
734
- if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
735
- //tag
736
- this.checkResult[items.f_item_name] = []
737
- }
738
-
739
- //tag
740
- this.checkResult[items.f_item_name].push(f_item_value)
741
-
742
- }
743
- //tag)
744
- //tag)
745
- if (!items.f_item_lists) {
746
- //tag
747
- items.f_item_lists = []
748
- if (JSON.stringify(items_list) != '{}') {
749
- //tag
750
- items.f_item_lists.push(items_list)
751
- }
752
- } else {
753
- // items.f_item_lists[0].f_item_value = f_item_value
754
- if (JSON.stringify(items_list) != '{}') {
755
- //tag
756
- //tag)
757
- //tag)
758
- //tag
759
- items.f_item_lists.push(items_list)
760
- }
761
- }
762
- }
763
- if (hasOther !== '' && otherValue !== null) {
764
- //tag
765
- this.checkResult[hasOther].push(otherValue)
766
- hasOther = ''
767
- otherValue = null
768
- }
769
- items.f_item_value = ''
770
- }
771
- //tag)
772
- this.f_devices.push(codata[device][item])
773
- }
774
- }
775
- }
776
- if (this.checkResult) {
777
- for (let key in this.checkResult) {
778
- if(typeof this.checkResult[key]=='function'){
779
- continue
780
- }
781
- // 上次安检结果数据组织
782
- //tag
783
- //tag
784
- let temp = {}
785
- temp[key] = this.checkResult[key].join(',')
786
- checkResults.data.push(temp)
787
- // this.newcheckResult[key] = this.checkResult[key]
788
- // checkResults.data.push(this.newcheckResult)
789
- //tag)
790
- // this.newcheckResult = {}
791
- }
792
- this.checkResult = {}
793
- }
794
- //tag
795
- //tag)
796
- codata.f_defect_content = JSON.stringify(checkResults)
797
- this.data.f_defect_content = JSON.stringify(checkResults)
798
- //tag
799
- return codata
800
- },
801
- uploadCheckPaper(){
802
- this.saveNoclick()
803
- //tag
804
- //tag
805
- this.closely(false) // 保存本地,不删除录音文件停止录音
806
- let errString = this.errorVerify()
807
- if (errString) {
808
- //tag
809
- //tag
810
- //tag
811
- if (Vue.android){
812
- // if(this.isUpload){
813
- // this.isUpload = false
814
- // }
815
- this.$showMessage(errString)
816
- }
817
- return
818
- } else {
819
- this.$set('data.f_offsite_time', Util.toStandardTimeString())
820
- this.$set('data.f_upload_time', Util.toStandardTimeString())
821
- this.$set('data.f_upload_date', Util.toStandardTimeString())
822
- //tag
823
- this.data.f_complete = '已完成'
824
- this.disableTimer()
825
- }
826
- //tag
827
- this.onlySave = false
828
- let res = this.save()
829
- // if(res) {
830
- // try {
831
- // let codata = this.getAllDefect()
832
- // //获取微信推送内容
833
- // let WxResult = this.getWeixin(codata)
834
- // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
835
- // f_check_item_id: this.data.f_check_item_id
836
- // })
837
- // //如果是转维修上传,则不做校验,上传完成后自动转维修
838
- // //tag
839
- // //tag
840
- // if(!this.isToRepair){
841
- // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
842
- // //tag
843
- // //tag
844
- // if(!this.isSafeCheckToRepair){
845
- // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
846
- // return
847
- // }
848
- // }
849
- // }
850
- // //tag
851
- // for (let key in codata){
852
- // if(key.startsWith("device")){
853
- // codata[key] = []
854
- // }
855
- // }
856
- // //tag}`)
857
- //
858
- // //tag
859
- // let isStart = true
860
- // let res
861
- // for (let i in this.f_devices){
862
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
863
- // if(res.code == 200){
864
- // isStart = false
865
- // }else{
866
- // this.$showMessage("保存失败!")
867
- // }
868
- // }
869
- // let result = HostApp.organizeJSON({
870
- // isStart:false,
871
- // isJSON:true,
872
- // jsonstr:{
873
- // f_check_item_id: this.data.f_check_item_id,
874
- // f_checker_id: this.data.f_checker_id,
875
- // row: codata
876
- // }
877
- // })
878
- // if(result.code == 200){
879
- // HostApp.__this__ = this
880
- // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
881
- // }
882
- //
883
- //
884
- // // let response = this.$androidUtil.bzLogic('上传安检信息', {
885
- // // f_check_item_id: this.data.f_check_item_id,
886
- // // f_checker_id: this.data.f_checker_id,
887
- // // row: codata
888
- // // })
889
- // // if (response.code == 200) {
890
- // // //tag
891
- // // //tag)
892
- // // let f_paper_id
893
- // // if(response.data != '' && response.data != null){
894
- // // f_paper_id = JSON.parse(response.data).id
895
- // // }
896
- // // this.$set('data.f_paper_id', f_paper_id)
897
- // // //tag
898
- // // //tag)
899
- // // //tag
900
- // // //tag)
901
- // // for (let device in this.data){
902
- // // //tag
903
- // // //tag)
904
- // // if(device.startsWith("device")){
905
- // // for(let devices of this.data[device]) {
906
- // // devices.f_paper_id = f_paper_id
907
- // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
908
- // // row: devices
909
- // // })
910
- // // //tag}`)
911
- // // if(ret.code == 200){
912
- // // //tag
913
- // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
914
- // // }
915
- // // //tag
916
- // // //tag)
917
- // // if (ret.code != 200) {
918
- // // //TODO 失败后处理
919
- // // // this.isUpload = false
920
- // // this.$showMessage("上传失败!")
921
- // // return false
922
- // // }
923
- // // }
924
- // // }
925
- // // }
926
- // // // for (let device of this.f_devices) {
927
- // // // device.f_paper_id = f_paper_id
928
- // // // //tag
929
- // // // //tag)
930
- // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
931
- // // // row: device
932
- // // // })
933
- // // // //tag
934
- // // // if (ret.code != 200) {
935
- // // // //TODO 失败后处理
936
- // // // HostApp.alert("上传失败!")
937
- // // // return false
938
- // // // }
939
- // // // }
940
- // // let result = this.$androidUtil.bzLogic('FinishUpload',
941
- // // {
942
- // // f_check_item_id: this.data.f_check_item_id,
943
- // // f_userinfo_id: codata.f_userinfoid,
944
- // // f_last_check_result: codata.f_defect_content
945
- // // })
946
- // // if(result.code == 200){
947
- // // // this.$showAlert('上传成功!', 'success', 2000)
948
- // // this.$showMessage('上传成功!')
949
- // // this.isStrat=false
950
- // // if(url != "" ){
951
- // // this.$resetpost(`${url}`,{data:WxResult})
952
- // // }
953
- // // return true
954
- // // }else{
955
- // // // this.isUpload = false
956
- // // this.$showMessage("上传失败!")
957
- // // return false
958
- // // }
959
- // // }else{
960
- // // // this.isUpload = false
961
- // // this.$showMessage("上传失败!")
962
- // // return false
963
- // // }
964
- // }catch (e) {
965
- // //tag)
966
- // // this.isUpload = false
967
- // this.$showMessage("上传失败!")
968
- // }
969
- // }
970
- },
971
- save(type) {
972
- //禁用事件
973
- this.saveNoclick()
974
- //tag
975
- //tag
976
- if(type == 'temp'){
977
- this.data.f_complete = '未完成'
978
- // 关闭录音方法
979
- this.closely(true) //临时保存,删除录音文件并暂停录音
980
- this.disableTimer()
981
- }else {
982
- // 关闭录音方法
983
- this.closely(false) // 保存本地,不删除录音文件暂停录音
984
- let errString = this.errorVerify()
985
- if (errString) {
986
- //tag
987
- //tag
988
- //tag
989
- if (Vue.android){
990
- this.$showMessage(errString)
991
- }
992
- return
993
- } else {
994
- this.data.f_complete = '已完成'
995
- this.$set('data.f_offsite_time', Util.toStandardTimeString())
996
- this.disableTimer()
997
- }
998
- }
999
- //tag
1000
- if(this.data.f_blacklist!='是'){
1001
- delete this.data.f_blocking_cause
1002
- }
1003
- // try {
1004
- let codata = this.getAllDefect()
1005
- //tag
1006
- //tag}`)
1007
- for (let key in codata) {
1008
- if (key.startsWith("device")) {
1009
- //tag)
1010
- codata[key] = []
1011
- }
1012
- }
1013
- //tag}`)
1014
- //tag}`)
1015
- //tag
1016
- if (Vue.android) {
1017
- //tag
1018
- let value = this.$androidUtil.path({
1019
- alias: 'getUserinfomation',
1020
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1021
- })
1022
- //tag)
1023
- if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1024
- // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1025
- // f_check_item_id: this.data.f_check_item_id,
1026
- // f_checker_id: this.data.f_checker_id,
1027
- // f_upload_state:'未传',
1028
- // row: codata
1029
- // })
1030
- //tag
1031
- let isStart = true
1032
- // let res
1033
- // for (let i in this.f_devices) {
1034
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1035
- // if (res.code == 200) {
1036
- // isStart = false
1037
- // } else {
1038
- // this.$showMessage("保存失败!")
1039
- // }
1040
- // }
1041
- // let result = HostApp.organizeJSON({
1042
- // isStart: false,
1043
- // isJSON: true,
1044
- // jsonstr: {
1045
- // f_check_item_id: this.data.f_check_item_id,
1046
- // f_checker_id: this.data.f_checker_id,
1047
- // f_upload_state: '未传',
1048
- // row: codata
1049
- // }
1050
- // })
1051
- codata.f_devices = this.f_devices
1052
- let param = {
1053
- f_check_item_id: this.data.f_check_item_id,
1054
- f_checker_id: this.data.f_checker_id,
1055
- f_upload_state: '未传',
1056
- row: codata
1057
- }
1058
- //tag)
1059
- let paramStr = JSON.stringify(param)
1060
- // 多长截断一次
1061
- let subLength = 800
1062
- for (let i = 0; i < paramStr.length; i += subLength) {
1063
- HostApp.param_cache(paramStr.substr(i, subLength))
1064
- }
1065
- HostApp.__this__ = this
1066
- HostApp.syncLogic({
1067
- // logic别名,key必须为logic
1068
- 'logic': 'SafeSaveNoPaper',
1069
- // 回调执行方法名,key必须为callback
1070
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1071
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1072
- // 执行回调方法传入key为backresult
1073
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1074
- 'backresult': 1
1075
- })
1076
- } else {
1077
- //tag
1078
- let isStart = true
1079
- let res
1080
- //tag)
1081
- // for (let i in this.f_devices) {
1082
- // //tag)
1083
- // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
1084
- // //tag)
1085
- // }
1086
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1087
- // //tag)
1088
- // if (res.code == 200) {
1089
- // isStart = false
1090
- // } else {
1091
- // this.$showMessage("保存失败!")
1092
- // }
1093
- // }
1094
- //tag)
1095
- //tag)
1096
- //tag)
1097
- // let result = HostApp.organizeJSON({
1098
- // isStart: false,
1099
- // isJSON: true,
1100
- // jsonstr: {
1101
- // f_check_item_id: this.data.f_check_item_id,
1102
- // f_checker_id: this.data.f_checker_id,
1103
- // row: codata
1104
- // }
1105
- // })
1106
- codata.f_devices = this.f_devices
1107
- let param = {
1108
- f_check_item_id: this.data.f_check_item_id,
1109
- f_checker_id: this.data.f_checker_id,
1110
- row: codata
1111
- }
1112
- //tag)
1113
- let paramStr = JSON.stringify(param)
1114
- // 多长截断一次
1115
- let subLength = 800
1116
- for (let i = 0; i < paramStr.length; i += subLength) {
1117
- HostApp.param_cache(paramStr.substr(i, subLength))
1118
- }
1119
- HostApp.__this__ = this
1120
- HostApp.syncLogic({
1121
- // logic别名,key必须为logic
1122
- 'logic': '保存安检单信息',
1123
- // 回调执行方法名,key必须为callback
1124
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1125
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1126
- // 执行回调方法传入key为backresult
1127
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1128
- 'backresult': 1
1129
- })
1130
- }
1131
-
1132
- } else {
1133
- //tag
1134
- let value = this.$androidUtil.path({
1135
- alias: 'getUserinfomation',
1136
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1137
- })
1138
-
1139
- if (this.item.f_no_checkplan == '无计划安检' && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1140
- this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1141
- f_check_item_id: this.data.f_check_item_id,
1142
- f_checker_id: this.data.f_checker_id,
1143
- f_upload_state: '未传',
1144
- row: codata
1145
- }).then((res) => {
1146
- if (res.data.code == 200) {
1147
- //保存devices
1148
- this.$androidUtil.bzLogic('getPaperInfo', {
1149
- f_check_item_id: this.data.f_check_item_id
1150
- }).then((res) => {
1151
- //tag
1152
- if (res.data.code == 200) {
1153
-
1154
- let f_paper_id = res.data.data[0].id
1155
- for (let device of this.f_devices) {
1156
- device.f_paper_id = f_paper_id
1157
- //tag
1158
- this.$androidUtil.bzLogic('saveDevice', {
1159
- row: device
1160
- }).then((ret) => {
1161
- //tag
1162
- if (ret.code != 200) {
1163
- // if(this.isUpload){
1164
- // this.isUpload = false
1165
- // }
1166
- //TODO 失败后处理
1167
- this.$showMessage("保存失败!")
1168
- return false
1169
- }
1170
- })
1171
- }
1172
- }
1173
- })
1174
- // this.$showAlert('保存成功!', 'success', 2000)
1175
- this.$showMessage('保存成功!')
1176
- return true
1177
- } else {
1178
- // if(this.isUpload){
1179
- // this.isUpload = false
1180
- // }
1181
- this.$showMessage("保存失败!")
1182
- return false
1183
- }
1184
- })
1185
- } else {
1186
- this.$androidUtil.bzLogic('保存安检单信息', {
1187
- f_check_item_id: this.data.f_check_item_id,
1188
- f_checker_id: this.data.f_checker_id,
1189
- row: codata
1190
- }).then((res) => {
1191
- //tag
1192
- if (res.data.code == 200) {
1193
- //保存devices
1194
- this.$androidUtil.bzLogic('getPaperInfo', {
1195
- f_check_item_id: this.data.f_check_item_id
1196
- }).then((res) => {
1197
- //tag
1198
- if (res.data.code == 200) {
1199
-
1200
- let f_paper_id = res.data.data[0].id
1201
- for (let device of this.f_devices) {
1202
- device.f_paper_id = f_paper_id
1203
- //tag
1204
- this.$androidUtil.bzLogic('saveDevice', {
1205
- row: device
1206
- }).then((ret) => {
1207
- //tag
1208
- if (ret.code != 200) {
1209
- // if(this.isUpload){
1210
- // this.isUpload = false
1211
- // }
1212
- //TODO 失败后处理
1213
- this.$showMessage("保存失败!")
1214
- return false
1215
- }
1216
- })
1217
- }
1218
- }
1219
- })
1220
- // this.$showAlert('保存成功!', 'success', 2000)
1221
- this.$showMessage('保存成功!')
1222
- return true
1223
- } else {
1224
- // if(this.isUpload){
1225
- // this.isUpload = false
1226
- // }
1227
- this.$showMessage("保存失败!")
1228
- return false
1229
- }
1230
- })
1231
- }
1232
- }
1233
- // }catch (e) {
1234
- // //tag)
1235
- // // this.isUpload = false
1236
- // this.$showMessage("保存失败!")
1237
- // }
1238
- },
1239
- runSyncLogic(logic,callback,backresult){
1240
- HostApp.runSyncLogic({
1241
- // logic别名,key必须为logic
1242
- 'logic': logic,
1243
- // 回调执行方法名,key必须为callback
1244
- 'callback': callback,
1245
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1246
- // 执行回调方法传入key为backresult
1247
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1248
- 'backresult':backresult
1249
- })
1250
- },
1251
- logicWithHint(logic,data,callback,backresult){
1252
- HostApp.logicWithHint({
1253
- // logic别名,key必须为logic
1254
- 'logic': logic,
1255
- // 回调执行方法名,key必须为callback
1256
- 'callback': callback,
1257
- // logic执行需要的业务参数
1258
- 'data': data,
1259
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1260
- // 执行回调方法传入key为backresult
1261
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1262
- 'backresult':backresult
1263
- })
1264
- },
1265
- saveCallBack(jo){
1266
- //tag)
1267
- if(jo.state == 'ok'){
1268
- let res = JSON.parse(jo.result)
1269
- //tag)
1270
- if(res.code == 200){
1271
- //tag
1272
- if(!this.onlySave){
1273
- let codata = this.getAllDefect()
1274
- //获取微信推送内容
1275
- // let WxResult = this.getWeixin(codata)
1276
- let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1277
- f_check_item_id: this.data.f_check_item_id
1278
- })
1279
- //如果是转维修上传,则不做校验,上传完成后自动转维修
1280
- //tag
1281
- //tag
1282
- if(!this.isToRepair){
1283
- if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1284
- //tag
1285
- //tag
1286
- if(!this.isSafeCheckToRepair){
1287
-
1288
- }
1289
- }
1290
- }
1291
- //tag
1292
- for (let key in codata){
1293
- if(key.startsWith("device")){
1294
- codata[key] = []
1295
- }
1296
- }
1297
- //tag}`)
1298
-
1299
- //tag
1300
- // let isStart = true
1301
- // let res
1302
- // for (let i in this.f_devices){
1303
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1304
- // if(res.code == 200){
1305
- // isStart = false
1306
- // }else{
1307
- // this.$showMessage("上传失败!")
1308
- // return
1309
- // }
1310
- // }
1311
- // let result = HostApp.organizeJSON({
1312
- // isStart:false,
1313
- // isJSON:true,
1314
- // jsonstr:{
1315
- // f_check_item_id: this.data.f_check_item_id,
1316
- // f_checker_id: this.data.f_checker_id,
1317
- // row: codata
1318
- // }
1319
- // })
1320
- codata.f_devices = this.f_devices
1321
- let param = {
1322
- f_check_item_id: this.data.f_check_item_id,
1323
- f_checker_id: this.data.f_checker_id,
1324
- row: codata
1325
- }
1326
- //tag)
1327
- let paramStr = JSON.stringify(param)
1328
- // 多长截断一次
1329
- let subLength = 800
1330
- for (let i = 0; i < paramStr.length; i += subLength) {
1331
- HostApp.param_cache(paramStr.substr(i, subLength))
1332
- }
1333
- HostApp.__this__ = this
1334
- HostApp.syncLogic({
1335
- // logic别名,key必须为logic
1336
- 'logic': '上传安检信息',
1337
- // 回调执行方法名,key必须为callback
1338
- 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1339
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1340
- // 执行回调方法传入key为backresult
1341
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1342
- 'backresult': 1
1343
- })
1344
- }else{
1345
- this.$showMessage('保存成功!')
1346
- if(this.clickBack){
1347
- this.isStrat = false
1348
- this.$dispatch('confirm')
1349
- //this.$back()
1350
- }
1351
- }
1352
- }else{
1353
- this.$showMessage('保存失败!')
1354
- return
1355
- }
1356
- }else{
1357
- this.$showMessage('服务器内部错误,保存失败!')
1358
- return
1359
- }
1360
- },
1361
- uploadCallBack(jo){
1362
- //获取微信推送路径
1363
- let url = ""
1364
- if(Vue.config.safecheck != undefined) {
1365
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1366
- if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1367
- url = Vue.config.safecheck.ApproveConfig.weixinurl
1368
- }
1369
- }
1370
- }
1371
- //tag)
1372
- //tag)
1373
- if(jo.state == 'ok'){
1374
- let res = JSON.parse(jo.result)
1375
- //tag)
1376
- //tag)
1377
- if(res.code == 200){
1378
- this.$set('data.f_paper_id', res.id)
1379
- this.isStrat=false
1380
- if(url != ""){
1381
- this.$resetpost(`${url}`,{data:WxResult})
1382
- }
1383
- //tag
1384
- if(this.isToRepair){
1385
- for (let device in this.data){
1386
- if(device.startsWith("device")){
1387
- this.data[device] = []
1388
- if(res.data.length > 0){
1389
- for(let i in res.data[0].f_devices){
1390
- if(this.data[device].length > 0){
1391
- if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1392
- this.data[device].push(res.data[0].f_devices[i])
1393
- res.data[0].f_devices.splice(i,1)
1394
- }
1395
- }else{
1396
- this.data[device].push(res.data[0].f_devices[i])
1397
- res.data[0].f_devices.splice(i,1)
1398
- }
1399
- }
1400
- }
1401
- }
1402
- }
1403
- this.todo()
1404
- }else{
1405
- this.$showMessage('上传成功!')
1406
- //tag
1407
- this.$dispatch('confirm')
1408
- // this.$back()
1409
- }
1410
- }else if(res.code == 309){
1411
- this.$showMessage('该安检单已作废!')
1412
- //tag
1413
- this.$dispatch('confirm')
1414
- }else if(res.code == 710){
1415
- this.$showMessage('上传照片失败,请检查用户签名或安检照片缺失,如无问题请检查手机当前网络是否正常(多次上传失败请先点击*本地缓存*按钮,在网络通畅情况下统一上传)!')
1416
- return
1417
- }else if(res.code == 711){
1418
- this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1419
- return
1420
- }else if(res.code == 712){
1421
- this.$showMessage('网络异常,请重新上传,多次上传失败请联系管理员!')
1422
- return
1423
- }
1424
- else{
1425
- this.$showMessage('上传失败!')
1426
- }
1427
- }else {
1428
- this.$showMessage('网络异常,上传失败!')
1429
- }
1430
- this.onlySave = true
1431
- },
1432
- safecheckToRepairCallBack(jo){
1433
- //获取微信推送路径
1434
- if(jo.state == 'ok'){
1435
- let res = JSON.parse(jo.result)
1436
- //tag)
1437
- if(res.code == 200){
1438
- //tag
1439
- if(res.data.code == 200){
1440
- this.$showMessage('上传并转维修成功!')
1441
- }else{
1442
- this.$showMessage('上传并转维修成功,回写安检单失败!')
1443
- }
1444
- this.$dispatch('confirm')
1445
- // this.$back()
1446
- }else{
1447
- this.$showMessage('上传失败!')
1448
- this.onlySave = true
1449
- }
1450
- }else{
1451
- this.$showMessage('网络异常,上传失败!')
1452
- this.onlySave = true
1453
- }
1454
- },
1455
- todo(){
1456
- let gen = getRepairParam(this)
1457
- co(gen)
1458
- },
1459
- undo(){
1460
- this.showCheckToRepair = !this.showCheckToRepair
1461
- this.model.serviceacitivity[0].f_reciever = ''
1462
- this.model.serviceacitivity[0].f_meetunit = ''
1463
- this.model.f_repairtype = ''
1464
- this.meading = '转站点'
1465
- },
1466
- disableTimer() {
1467
- if(this.timer) {
1468
- window.clearTimeout(this.timer)
1469
- this.timer = null
1470
- }
1471
- },
1472
- loaded(paper) {
1473
- if(!paper.hasOwnProperty('id')) {
1474
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1475
- this.init()
1476
- } else {
1477
- Util.booleanFilter(paper)
1478
- HostApp.__this__.$set('data', paper)
1479
- HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1480
- // 如果打回重检则重新计时
1481
- //tag
1482
- if(HostApp.__this__.role == 'inspect'
1483
- && HostApp.__this__.data.f_approved
1484
- && HostApp.__this__.data.f_approved == '打回') {
1485
- //tag
1486
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1487
- HostApp.__this__.tick()
1488
- }
1489
- }
1490
- HostApp.__callback__ = null
1491
- HostApp.__this__ = null
1492
- },
1493
- S4() {
1494
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1495
- },
1496
- extend(initalObj, finalObj) {
1497
- var obj = finalObj || {};
1498
- for (var i in initalObj) {
1499
- var prop = initalObj[i];
1500
-
1501
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1502
- if (prop === obj) {
1503
- continue;
1504
- }
1505
-
1506
- if (typeof prop === 'object') {
1507
- if (obj[i]) {
1508
- this.extend(obj[i], prop)
1509
- } else {
1510
- obj[i] = prop;
1511
- }
1512
- }
1513
- }
1514
- return obj;
1515
- },
1516
- // async isoverDate(){
1517
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
1518
- // condition:"f_plan_item_id='"+this.item.id+"'"
1519
- // }
1520
- // })
1521
- // this.isneedDate=res.data[0]["f_subscribe_date"]
1522
- // },
1523
- putDevices() {
1524
- //tag)
1525
- //tag)
1526
- this.$set('data.approve', "true")
1527
- this.$set('data.writeback', "false")
1528
- if (Vue.config.safecheck != undefined) {
1529
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1530
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1531
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1532
- }
1533
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1534
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1535
- }
1536
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1537
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1538
- }
1539
- }
1540
- //tag
1541
- //tag)
1542
- //tag)
1543
- //tag
1544
- if(this.item.f_user_type == '民用'){
1545
- // 民用户
1546
-
1547
- if (Vue.config.safecheck.DevicesConfig != undefined){
1548
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1549
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1550
- }else{
1551
- //tag
1552
- //tag
1553
- //tag
1554
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1555
- }
1556
- // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1557
- }
1558
- }else {
1559
- // 非民用
1560
- if (Vue.config.safecheck.DevicesSetConfig != undefined){
1561
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1562
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1563
- }else{
1564
- //tag
1565
- //tag
1566
- //tag
1567
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1568
- }
1569
- //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1570
- }
1571
- }
1572
-
1573
- }
1574
- //tag)
1575
- // 预留设备项位置
1576
- for (let i in this.config) {
1577
- this.tabs.splice(1,0,null)
1578
- }
1579
- //遍历安检项配置
1580
- for (let i in this.config) {
1581
- //取得安检项索引值
1582
- let n = this.config[i].index
1583
- //tag
1584
- this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1585
- this.$set('data.' + 'device' + n, [])
1586
- //tag
1587
- // this.tabs.splice(2 + n - 1, 0,
1588
- // {
1589
- // header:i,
1590
- // complete:'safecheck-devices',
1591
- // class:'repair-details-class',
1592
- // number:n
1593
- // })
1594
- this.tabs[n] = {
1595
- header: i,
1596
- complete: 'safecheck-devices',
1597
- class: 'repair-details-class',
1598
- number: n
1599
- }
1600
-
1601
- if(this.config[i].quantity && this.config[i].quantity >0){
1602
- let items = []
1603
- for (let it in this.config[i].items) {
1604
- //赋值下拉选项
1605
- if (this.config[i].items[it].type == 'selector') {
1606
- for (let op in this.config[i].items[it].options) {
1607
- if (this.config[i].items[it].options[op].isdefault == true) {
1608
- items.push({
1609
- f_defect_level: this.config[i].items[it].options[op].level,
1610
- f_is_defect: this.config[i].items[it].options[op].isdefect,
1611
- f_item_name: it,
1612
- f_item_value: this.config[i].items[it].options[op].data,
1613
- f_path: "",
1614
- type: "selector"
1615
- })
1616
- }
1617
- }
1618
- }
1619
- }
1620
- for(let q =0;q<this.config[i].quantity;q++) {
1621
- this.data['device' + n].push(
1622
- {f_device_type: i, f_items:items}
1623
- )
1624
- }
1625
- }
1626
- // this.data['device' + n].push(
1627
- // {f_device_type: i, f_items: items}
1628
- // )
1629
- n = n + 1
1630
- }
1631
- //tag
1632
- this.faultshow.number = this.tabs.length
1633
- },
1634
- init () {
1635
- //tag
1636
- // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1637
- this.data.ename = Vue.user.ename
1638
- this.data.f_outlets = Vue.user.f_parentname
1639
- this.data.f_meetunit = Vue.user.orgpathnames
1640
- this.data.orgpathstr = Vue.user.orgpathstr
1641
- this.data.f_check_item_id = this.item.id
1642
- this.data.f_check_plan_id = this.f_plan_id
1643
- this.data.f_checker_id = Vue.user.id
1644
- this.data.f_checker_name = Vue.user.name
1645
- this.data.f_check_type = this.item.f_user_type
1646
- this.data.f_safecheck_type = this.item.f_safecheck_type
1647
- //this.data.f_exceed_reason = ''//存放送气超期原因
1648
- //tag
1649
- this.data.f_subcompany = this.item.f_subcompany
1650
- this.data.f_approved = this.item.f_approvedf_read_instructions
1651
- this.data.f_repair_approved = this.item.f_repair_approved
1652
- this.data.f_no_checkplan = this.item.f_no_checkplan
1653
- this.data.f_approved = this.item.f_approved
1654
- this.data.f_filialeid = this.item.f_filialeid
1655
- this.data.f_orgstr = this.item.f_orgstr
1656
- this.data.version = this.item.version
1657
- this.data.f_check_version=this.item.f_check_version
1658
- this.$set('data.f_meters', this.item.f_plan_meters)
1659
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1660
- // 安检状态
1661
- this.$set('data.f_entry_status', '入户')
1662
- this.$set('data.f_usegas', '已使用')
1663
- this.$set('data.f_state',this.item.f_state)
1664
- this.$set('data.f_source', this.source?this.source:'安检')
1665
- //tag
1666
- // 用户信息
1667
- this.$set('data.f_user_name', this.item.f_user_name)
1668
- this.$set('data.f_user_phone', this.item.f_user_phone)
1669
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1670
- this.$set('data.f_address', this.item.f_address)
1671
- this.$set('data.f_card_id', this.item.f_card_id)
1672
- this.$set('data.f_area', this.item.f_area)
1673
- this.$set('data.f_street', this.item.f_street)
1674
- this.$set('data.f_room', this.item.f_room)
1675
- this.$set('data.f_building', this.item.f_building)
1676
- this.$set('data.f_unit', this.item.f_unit)
1677
- //tag
1678
- this.$set('data.f_floor', this.item.f_floor)
1679
- this.$set('data.f_residential_area' , this.item.f_residential_area)
1680
- this.$set('data.f_idnumber', this.item.f_idnumber)
1681
- this.$set('data.f_comments', this.item.f_comments)
1682
- this.$set('data.f_userproperties', this.item.f_userproperties)
1683
- // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1684
- // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1685
- // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1686
- // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1687
- // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1688
- // 处置方式
1689
- //tag
1690
- this.$set('data.f_gas_guidelines', true)
1691
- this.$set('data.f_safety_warning', true)
1692
- this.$set('data.f_gas_manual', true)
1693
- this.$set('data.f_no_gas_device', false)
1694
- this.$set('data.f_close_valve', false)
1695
- this.$set('data.f_unload_battery', false)
1696
- //tag
1697
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1698
- this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1699
- }
1700
- //tag
1701
- if(this.item.f_plan_meters) {
1702
- for (let de in this.devices) {
1703
- if(typeof this.devices[de]=='function'){
1704
- continue
1705
- }
1706
- this.$set('data.device' + this.devices[de].n, [])
1707
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1708
- if (this.item.f_plan_meters[i].f_meter_type) {
1709
- //tag)
1710
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1711
- this.data['device' + this.devices[de].n].push({
1712
- f_device_type: "燃气表",
1713
- f_items: [
1714
- {
1715
- f_defect_level: null,
1716
- f_device_id: "",
1717
- f_is_defect: "",
1718
- f_item_name: "基表编号",
1719
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1720
- f_path: "",
1721
- type: "number"
1722
- },
1723
- {
1724
- f_defect_level: null,
1725
- f_device_id: "",
1726
- f_is_defect: "",
1727
- f_item_name: "气表型号",
1728
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1729
- f_path: "",
1730
- type: "string"
1731
- },
1732
- {
1733
- f_defect_level: null,
1734
- f_device_id: "",
1735
- f_is_defect: "",
1736
- f_item_name: "气表品牌",
1737
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1738
- f_path: "",
1739
- type: "string"
1740
- },
1741
- {
1742
- f_defect_level: null,
1743
- f_device_id: "",
1744
- f_is_defect: "",
1745
- f_item_name: "进气方向",
1746
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1747
- f_path: "",
1748
- type: "string"
1749
- },
1750
- {
1751
- f_defect_level: null,
1752
- f_device_id: "",
1753
- f_is_defect: "",
1754
- f_item_name: "上期表读数",
1755
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1756
- f_path: "",
1757
- type: "number"
1758
- },
1759
- {
1760
- f_defect_level: null,
1761
- f_device_id: "",
1762
- f_is_defect: "",
1763
- f_item_name: "表箱号",
1764
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1765
- f_path: "",
1766
- type: "string"
1767
- }
1768
- ]
1769
- })
1770
- }
1771
- else if (this.devices[de].device == "燃气表") {
1772
- // delete this.config['燃气表']['items']['表底数']
1773
- this.data['device' + this.devices[de].n].push({
1774
- f_device_type: "燃气表",
1775
- f_items: [
1776
- {
1777
- f_defect_level: null,
1778
- f_device_id: "",
1779
- f_is_defect: "",
1780
- f_item_name: "基表编号",
1781
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1782
- f_path: "",
1783
- type: "number"
1784
- },
1785
- {
1786
- f_defect_level: null,
1787
- f_device_id: "",
1788
- f_is_defect: "",
1789
- f_item_name: "气表型号",
1790
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1791
- f_path: "",
1792
- type: "string"
1793
- },
1794
- {
1795
- f_defect_level: null,
1796
- f_device_id: "",
1797
- f_is_defect: "",
1798
- f_item_name: "气表品牌",
1799
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1800
- f_path: "",
1801
- type: "string"
1802
- },
1803
- {
1804
- f_defect_level: null,
1805
- f_device_id: "",
1806
- f_is_defect: "",
1807
- f_item_name: "进气方向",
1808
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1809
- f_path: "",
1810
- type: "string"
1811
- },
1812
- {
1813
- f_defect_level: null,
1814
- f_device_id: "",
1815
- f_is_defect: "",
1816
- f_item_name: "上期表读数",
1817
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1818
- f_path: "",
1819
- type: "number"
1820
- },
1821
- {
1822
- f_defect_level: null,
1823
- f_device_id: "",
1824
- f_is_defect: "",
1825
- f_item_name: "表箱号",
1826
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1827
- f_path: "",
1828
- type: "string"
1829
- }
1830
- ]
1831
- })
1832
- }
1833
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1834
- this.data['device' + this.devices[de].n].forEach(device => {
1835
- //tag)
1836
- //tag)
1837
- /*
1838
- "累购气量":{"index":8,"type":"number","readonly":true},
1839
- "累购金额":{"index":8,"type":"number","readonly":true},
1840
- "字轮读数":{"index":9,"type":"number","checkmust": true},
1841
- "已用金额":{"index":9,"type":"number","checkmust": true},
1842
- "剩余气量":{"index":10,"type":"number","checkmust": true},
1843
- "剩余金额":{"index":10,"type":"number","checkmust": true},
1844
- "气量异常差值":{"index":11,"type":"number","readonly": true},
1845
- "金额异常差值":{"index":11,"type":"number","readonly": true}
1846
- */
1847
- if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1848
- if (!this.data.f_collection_type) {
1849
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1850
- delete this.config['燃气表']['items']['累购气量']
1851
- delete this.config['燃气表']['items']['已用气量']
1852
- delete this.config['燃气表']['items']['剩余气量']
1853
- delete this.config['燃气表']['items']['气量异常差值']
1854
- device.f_items.push(
1855
- {
1856
- f_defect_level: null,
1857
- f_device_id: "",
1858
- f_is_defect: "",
1859
- f_item_name: "初始表底",
1860
- isshow: false,
1861
- f_item_value: '',
1862
- f_path: "",
1863
- type: "number"
1864
- },
1865
- {
1866
- f_defect_level: null,
1867
- f_device_id: "",
1868
- f_is_defect: "",
1869
- f_item_name: "累购金额",
1870
- f_item_value: this.item.f_plan_meters[i].f_total_fee,
1871
- f_path: "",
1872
- type: "number"
1873
- },
1874
- {
1875
- f_defect_level: null,
1876
- f_device_id: "",
1877
- f_is_defect: "",
1878
- f_item_name: "已用金额",
1879
- f_item_value: null,
1880
- f_path: "",
1881
- type: "number"
1882
- },
1883
- {
1884
- f_defect_level: null,
1885
- f_device_id: "",
1886
- f_is_defect: "",
1887
- f_item_name: "剩余金额",
1888
- f_item_value: null,
1889
- f_path: "",
1890
- type: "number"
1891
- },
1892
- {
1893
- f_defect_level: null,
1894
- f_device_id: "",
1895
- f_is_defect: "",
1896
- f_item_name: "金额异常差值",
1897
- f_item_value: null,
1898
- f_path: "",
1899
- type: "number"
1900
- }
1901
- )
1902
- //tag)
1903
- }
1904
- } else
1905
- if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
1906
- if (!this.data.f_collection_type) {
1907
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1908
- delete this.config['燃气表']['items']['累购金额']
1909
- delete this.config['燃气表']['items']['已用金额']
1910
- delete this.config['燃气表']['items']['剩余金额']
1911
- delete this.config['燃气表']['items']['金额异常差值']
1912
- device.f_items.push(
1913
- {
1914
- f_defect_level: null,
1915
- f_device_id: "",
1916
- f_is_defect: "",
1917
- f_item_name: "初始表底",
1918
- isshow: true,
1919
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1920
- f_path: "",
1921
- type: "number"
1922
- },
1923
- {
1924
- f_defect_level: null,
1925
- f_device_id: "",
1926
- f_is_defect: "",
1927
- f_item_name: "累购气量",
1928
- f_item_value: this.item.f_plan_meters[i].f_total_gas,
1929
- f_path: "",
1930
- type: "number"
1931
- },
1932
- {
1933
- f_defect_level: null,
1934
- f_device_id: "",
1935
- f_is_defect: "",
1936
- f_item_name: "已用气量",
1937
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
1938
- f_path: "",
1939
- type: "number"
1940
- },
1941
- {
1942
- f_defect_level: null,
1943
- f_device_id: "",
1944
- f_is_defect: "",
1945
- f_item_name: "剩余气量",
1946
- f_item_value: "",
1947
- f_path: "",
1948
- type: "number"
1949
- },
1950
- {
1951
- f_defect_level: null,
1952
- f_device_id: "",
1953
- f_is_defect: "",
1954
- f_item_name: "气量异常差值",
1955
- f_item_value: null,
1956
- f_path: "",
1957
- type: "number"
1958
- }
1959
- )
1960
- //tag)
1961
- }
1962
- }
1963
- })
1964
- }else if(this.devices[de].device == "燃气表"){
1965
- //tag
1966
- this.data['device' + this.devices[de].n].forEach(device => {
1967
- //tag)
1968
- if (!this.data.f_collection_type) {
1969
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1970
- delete this.config['燃气表']['items']['累购金额']
1971
- delete this.config['燃气表']['items']['已用金额']
1972
- delete this.config['燃气表']['items']['剩余金额']
1973
- delete this.config['燃气表']['items']['金额异常差值']
1974
- device.f_items.push(
1975
- {
1976
- f_defect_level: null,
1977
- f_device_id: "",
1978
- f_is_defect: "",
1979
- f_item_name: "初始表底",
1980
- isshow: true,
1981
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1982
- f_path: "",
1983
- type: "number"
1984
- },
1985
- {
1986
- f_defect_level: null,
1987
- f_device_id: "",
1988
- f_is_defect: "",
1989
- f_item_name: "累购气量",
1990
- f_item_value: this.item.f_plan_meters[i].f_total_gas,
1991
- f_path: "",
1992
- type: "number"
1993
- },
1994
- {
1995
- f_defect_level: null,
1996
- f_device_id: "",
1997
- f_is_defect: "",
1998
- f_item_name: "已用气量",
1999
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
2000
- f_path: "",
2001
- type: "number"
2002
- },
2003
- {
2004
- f_defect_level: null,
2005
- f_device_id: "",
2006
- f_is_defect: "",
2007
- f_item_name: "剩余气量",
2008
- f_item_value: '',
2009
- f_path: "",
2010
- type: "number"
2011
- },
2012
- {
2013
- f_defect_level: null,
2014
- f_device_id: "",
2015
- f_is_defect: "",
2016
- f_item_name: "气量异常差值",
2017
- isshow:false,
2018
- f_item_value: null,
2019
- f_path: "",
2020
- type: "number"
2021
- }
2022
- )
2023
- //tag)
2024
- }
2025
- })
2026
- }
2027
- }
2028
- }
2029
- }
2030
- }
2031
- var pardate = {
2032
- _this:this,
2033
- tittle:'安检详情',
2034
- safe:true
2035
- }
2036
- // this.$dispatch('gotoson',pardate)
2037
- //tag
2038
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2039
- }
2040
- },
2041
- watch: {
2042
- 'row' () {
2043
- //tag
2044
- this.copy()
2045
- }
2046
- },
2047
- async ready () {
2048
- //送气超期功能
2049
- //await this.isoverDate()
2050
- this.putDevices()
2051
- //如果已检,则提取安检单
2052
- if (this.item.f_state != '未检') {
2053
- if (this.role == 'inspect' || this.role == 'androidview') {
2054
- HostApp.__callback__ = this.loaded
2055
- HostApp.__this__ = this
2056
- let that = this
2057
- let value = {}
2058
- //tag
2059
- if (this.role == 'inspect') {
2060
- //tag
2061
- if (this.item.f_no_checkplan == '无计划安检') {
2062
- value = this.$androidUtil.path({
2063
- alias: 'getUserinfomation',
2064
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
2065
- })
2066
- } else {
2067
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2068
- }
2069
- } else {
2070
- value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2071
- }
2072
- Util.replaceFalse(value)
2073
- //tag)
2074
- if (value.data.length != 0) {
2075
- that.$set('data', value.data[0])
2076
- //tag)
2077
- if (this.data.f_collection_type == '按气量') {
2078
- delete this.config['燃气表']['items']['累购金额']
2079
- delete this.config['燃气表']['items']['已用金额']
2080
- delete this.config['燃气表']['items']['剩余金额']
2081
- delete this.config['燃气表']['items']['金额异常差值']
2082
- } else if (this.data.f_collection_type == '按金额') {
2083
- delete this.config['燃气表']['items']['累购气量']
2084
- delete this.config['燃气表']['items']['已用气量']
2085
- delete this.config['燃气表']['items']['剩余气量']
2086
- delete this.config['燃气表']['items']['气量异常差值']
2087
- }
2088
- //tag)
2089
- if (value.data[0].f_devices) {
2090
- for (let da in that.devices) {
2091
- if(typeof that.devices[da]=='function'){
2092
- continue
2093
- }
2094
- that.$set('data.device' + that.devices[da].n, [])
2095
- }
2096
- value.data[0].f_devices.forEach((item) => {
2097
- //tag)
2098
- for (let i in item.f_items) {
2099
- if(typeof item.f_items[i]=='function'){
2100
- continue
2101
- }
2102
- // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2103
- // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2104
- // }
2105
- for (let de in that.config[item.f_device_type].items) {
2106
- if(typeof that.config[item.f_device_type].items[de]=='function'){
2107
- continue
2108
- }
2109
- if (item.f_items[i].f_item_name == de) {
2110
- if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
2111
- item.f_items[i].f_item_value = []
2112
- } else {
2113
- item.f_items[i].f_item_value = ''
2114
- }
2115
- }
2116
- }
2117
- //tag)
2118
-
2119
- // if (item.f_items[i].f_item_name=='累购气量'){
2120
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2121
- // }else if (item.f_items[i].f_item_name=='累购金额'){
2122
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2123
- // }else if (item.f_items[i].f_item_name=='基表编号'){
2124
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2125
- // }else if (item.f_items[i].f_item_name=='气表品牌'){
2126
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2127
- // }else if (item.f_items[i].f_item_name=='进气方向'){
2128
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2129
- // }else if (item.f_items[i].f_item_name=='气表型号'){
2130
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2131
- // }else if (item.f_items[i].f_item_name=='表箱号'){
2132
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2133
- // }
2134
- // else{
2135
- for (let j in item.f_items[i].f_item_lists) {
2136
- if(typeof item.f_items[i].f_item_lists[j]=='function'){
2137
- continue
2138
- }
2139
- //tag)
2140
- if (item.f_items[i].f_item_value instanceof Array) {
2141
- item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2142
- } else {
2143
- item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2144
- }
2145
- }
2146
- // }
2147
-
2148
- }
2149
- for (let de in that.devices) {
2150
- if(typeof that.devices[de]=='function'){
2151
- continue
2152
- }
2153
- if (that.devices[de].device == item.f_device_type) {
2154
- that.data['device' + that.devices[de].n].push({
2155
- f_device_type: item.f_device_type,
2156
- f_items: item.f_items
2157
- })
2158
- //tag)
2159
- }
2160
- }
2161
- })
2162
- if (this.role == 'androidview') {
2163
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2164
- Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2165
- Util.booleanFilter(that.data)
2166
- }
2167
- //tag)
2168
- }
2169
- } else {
2170
- //tag
2171
- this.init()
2172
- }
2173
- if(this.parentPage && this.parentPage=='CurrentCreate'){
2174
- //tag
2175
- let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2176
- if (isRecodr) {
2177
- if (isRecodr=='true') {
2178
- this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2179
- // 初始化录音
2180
- let resse = this.record()
2181
- }
2182
- }
2183
- }
2184
- //tag
2185
- var pardate = {
2186
- _this:this,
2187
- tittle:'安检详情',
2188
- safe:true
2189
- }
2190
- // this.$dispatch('gotoson',pardate)getImgPath
2191
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2192
- } else {
2193
- let that = this
2194
- let id
2195
- if (this.role == 'view') {
2196
- id = this.item.id
2197
- }
2198
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2199
- if (respanse.data.length != 0) {
2200
- that.data = Object.assign(that.data,respanse.data[0])
2201
- if(respanse.data[0].f_devices) {
2202
- for (let da in that.devices) {
2203
- that.$set('data.device' + that.devices[da].n, [])
2204
- }
2205
- respanse.data[0].f_devices.forEach((item) => {
2206
- for (let de in that.devices) {
2207
- if (that.devices[de].device == item.f_device_type) {
2208
- that.data['device' + that.devices[de].n].push({
2209
- f_device_type: item.f_device_type,
2210
- f_items: item.f_items
2211
- })
2212
- }
2213
- }
2214
- })
2215
- }
2216
- Util.replaceFalse(that.data)
2217
- Util.booleanFilter(that.data)
2218
- if(this.role == 'view'){
2219
- Util.ratifyPics(that.data)
2220
- }else{
2221
- Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2222
- }
2223
- //tag
2224
- } else {
2225
- alert("该安检单可能已不在本地!")
2226
- this.init()
2227
- }
2228
- var pardate = {
2229
- _this:this,
2230
- tittle:'安检详情',
2231
- safe:true
2232
- }
2233
- // this.$dispatch('gotoson',pardate)
2234
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2235
- }
2236
- ).catch(
2237
- (respanse) => {
2238
- alert('查找安检单失败')
2239
- })
2240
- }
2241
- }else{
2242
- if(this.parentPage && this.parentPage=='CurrentCreate'){
2243
- //tag
2244
- let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2245
- if (isRecodr) {
2246
- if (isRecodr=='true') {
2247
- this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2248
- // 初始化录音
2249
- let resse = this.record()
2250
- }
2251
- }
2252
- }
2253
- this.init()
2254
- }
2255
- // tbs合并数组
2256
- // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2257
- // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2258
- //
2259
- // }
2260
- // }
2261
- },
2262
- components: {
2263
- // 'door-service': DoorService,
2264
- // 'repair-info': RepairInfo,
2265
- // 'repair-user-info': RepairUserInfo,
2266
- // 'outlay': Outlay,
2267
- // 'fault-all': FaultAll,
2268
- // 'repair-details':RepairDetails
2269
- // 'pipeline': Pipeline,
2270
- // 'device-service': DeviceService,
2271
- // 'trouble-removal': TroubleRemoval,
2272
- // 'cooking-utensils': CookingUtensils,
2273
- // 'repair-matter-info': RepairMatterInfo,
2274
- // 'first-gas-check': FirstGasCheck,
2275
- // 'tel-change-matter': TelChangeMatter/
2276
- },
2277
- events: {
2278
- 'tijiao': function () {
2279
- // 事件回调内的 `this` 自动绑定到注册它的实例上
2280
- this.confirm()
2281
- }
2282
- }
2283
- }
2284
- </script>
2285
- <style lang="less">
2286
- @import "../../../bootstrap/less/variables.less";
2287
- .noclickbut {
2288
- pointer-events: none;
2289
- }
2290
- .tab-befor-img (@url) {
2291
- content: '';
2292
- background-image: url("@{url}");
2293
- background-size: 20px;
2294
- display: inline-block;
2295
- margin-right: 8px;
2296
- margin-top: 0.3em;
2297
- height: 1.3em;
2298
- width: 1.3em;
2299
- vertical-align: -35%;
2300
- }
2301
-
2302
- @media screen and (min-width: 768px) {
2303
- .android-repair-order > div > ul a {
2304
- font-size: @font-size-h2;
2305
- margin: 0.3em 0;
2306
- }
2307
- }
2308
- .repair-details-class{
2309
- &::before {
2310
- .tab-befor-img("../../../assets/huneiweixiu1.png");
2311
- }
2312
- }
2313
- .repair-info-class {
2314
- &::before {
2315
- .tab-befor-img("../../../assets/baoxiuxinxi1.png");
2316
- }
2317
- }
2318
- .repair-user-info-class {
2319
- &::before {
2320
- .tab-befor-img("../../../assets/jibenxinxi1.png")
2321
- }
2322
- }
2323
-
2324
- .door-service-class {
2325
- &::before {
2326
- .tab-befor-img("../../../assets/huneiweixiu1.png")
2327
- }
2328
- }
2329
-
2330
- .pipeline-class {
2331
- &::before {
2332
- .tab-befor-img("../../../assets/guandao1.png")
2333
- }
2334
- }
2335
-
2336
- .device-service-class {
2337
- &::before {
2338
- .tab-befor-img("../../../assets/shebeiweixiu1.png")
2339
- }
2340
- }
2341
-
2342
- .trouble-removal-class {
2343
- &::before {
2344
- .tab-befor-img("../../../assets/shiguchuli.png")
2345
- }
2346
- }
2347
-
2348
- .cooking-utensils-class {
2349
- &::before {
2350
- .tab-befor-img("../../../assets/zaoju1.png")
2351
- }
2352
- }
2353
-
2354
- .outlay-class {
2355
- &::before {
2356
- .tab-befor-img("../../../assets/feiyong1.png")
2357
- }
2358
- }
2359
-
2360
- .fault-all-class {
2361
- &::before {
2362
- .tab-befor-img("../../../assets/guzhanghuizong1.png")
2363
- }
2364
- }
2365
- .photo-write-class {
2366
- &::before {
2367
- .tab-befor-img("../../../assets/zaoju.png")
2368
- }
2369
- }
2370
- .delay-apply-class {
2371
- &::before {
2372
- .tab-befor-img("../../../assets/yonghubaoxiu.png")
2373
- }
2374
- }
2375
-
2376
- .repair-back-class {
2377
- &::before {
2378
- .tab-befor-img("../../../assets/fanhui.png")
2379
- }
2380
- }
2381
- .butt2 {
2382
- display: inline;
2383
- float: right;
2384
- width: 10px;
2385
- text-align: center;
2386
- align-items:center;
2387
- position: absolute;
2388
- top:50%;
2389
-
2390
- left:90%;
2391
- transform: translate(-50%,-50%);
2392
- }
2393
- .linesty{
2394
- display: inline-block;
2395
- height:1px;
2396
- width:100%;
2397
- background:#d0d0d0;
2398
- overflow:hidden;
2399
- vertical-align: middle;
2400
- }
2401
- .spanboder{
2402
- border-bottom:2px solid #499edf;
2403
- padding-bottom: 8px
2404
- }
2405
- .app-botton {
2406
- position:fixed;
2407
- background: #87b2dd;
2408
- right:8px;
2409
- color: #FFF;
2410
- padding: 8px;
2411
- text-align: center;
2412
- font-size: 1.2em;
2413
- z-index: 10;
2414
- opacity:0.5;
2415
- bottom: 50px;
2416
- margin-top: -10px;
2417
- height: 40px;
2418
- }
2419
- .android-repair-order > div > ul a {
2420
- font-size: 12px;
2421
- color: #333333;
2422
- padding: 13px 16px;
2423
- }
2424
- </style>
1
+ <template>
2
+ <!--<div class="app-botton" @click="back()">-->
3
+ <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
+ <!--</div>-->
5
+ <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
+ <div class="col-sm-12 col-xs-12" >
7
+ <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
8
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
9
+ v-if="$index < number+1 && $index < faultshow.number" >
10
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
11
+ <span class="spanboder">{{row.header}}</span>
12
+ <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
13
+ <p></p>
14
+ </li>
15
+ <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
+ <route name='repair' :reuse="false"></route>
17
+ </div>
18
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
19
+ v-if="$index > number && $index < faultshow.number ">
20
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
21
+ <span class="spanboder">{{row.header}}</span>
22
+ <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
23
+ <p></p>
24
+ </li>
25
+ <div class="col-sm-12 col-xs-12 repair-bg" v-if="actionEnabled ">
26
+ <div class="auto select-overspread form-horizontal repair-bg " style="padding-bottom:5px;">
27
+ <div class="bq-parent">
28
+ <blockquote class="blockquote">
29
+ <p>安检上传</p>
30
+ </blockquote>
31
+ </div>
32
+ <div class="panel panel-default auto repair-info-content">
33
+ <div class="panel-body ">
34
+ <div class="row auto">
35
+ <!--<div class="col-xs-12 col-sm-12 col-md-12" :style="timeSet(this.isneedDate)?'':'display:none'">-->
36
+ <!--<label>请输入超期原因:</label><br/>-->
37
+ <!--<textarea style="width: 100%;" v-model=""></textarea>-->
38
+ <!--</div>-->
39
+ <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
40
+ <div class="col-xs-3 col-sm-3 col-md-3" v-if="parentPage=='CurrentCreate'">
41
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')">
42
+ 临时保存
43
+ </button>
44
+ </div>
45
+ <div class="col-xs-3 col-sm-3 col-md-3">
46
+ <button class="col-sm-3 btn btn-primary" @click="save('finish')">
47
+ 本地缓存
48
+ </button>
49
+ </div>
50
+ <div class="col-xs-3 col-sm-3 col-md-3">
51
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
52
+ 上传
53
+ </button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </ul>
62
+ </div>
63
+
64
+ </div>
65
+ </template>
66
+
67
+ <script>
68
+ // 户内维修
69
+ import Vue from 'vue'
70
+ import * as Util from '../../../components/Util'
71
+ // import DoorService from './DoorService'
72
+ // import Pipeline from './Pipeline'
73
+ // import DeviceService from './DeviceService'
74
+ // import TroubleRemoval from './TroubleRemoval'
75
+ // import FirstGasCheck from './FirstGasCheck'
76
+ // import RepairMatterInfo from './RepairMatterInfo'
77
+ // import TelChangeMatter from './TelChangeMatter'
78
+ import { HttpResetClass } from 'vue-client'
79
+ import co from 'co'
80
+ import $ from "jquery";
81
+ let loadParamGem = async function (self) {
82
+ await self.$LoadParams.loadParam()
83
+ }
84
+
85
+ export default {
86
+ title: '安检单',
87
+ props: ['f_plan_id', 'item', 'role','parentPage','source'],
88
+ // props: ['f_plan_id', 'role'],
89
+ data() {
90
+ return {
91
+ //测试数据
92
+ // f_plan_id:'',
93
+ // role:'inspect',
94
+ // item:{"f_approved_time":null,"f_user_family_remarks":null,"f_street":"测试街道","f_repair_approved_time":null,
95
+ // "f_user_type":null,"f_approved_by":null,"f_card_id":null,"f_remark":null,"f_building":"1","f_batch_number":null,
96
+ // "f_idnumber":null,"f_state":"未检","id":"0EFE0EE2-B155-46F9-8DE0-38C022664A4D","f_complete":null,"f_check_state":null,"f_last_check_state":"拒检",
97
+ // "f_user_inhome_time":null,"f_residential_area":"测试小区1","version":1,"f_processid":null,"f_last_check_result":"{\"result\":\"正常\",\"data\":[]}",
98
+ // "f_area":null,"f_usegas":null,"f_user_phone":"16566546548","f_slice_area":"营业大区","f_approved":"未审核","f_upload_state":"未传","f_user_check_time":null,
99
+ // "f_unit":"1","f_user_spare_phone":null,"f_last_check_date":null,"f_userproperties":null,"f_userfile_id":null,"f_prearranged_date":null,"f_filialeid":"453",
100
+ // "f_branch":null,"f_orgstr":null,"f_plan_year":2020,"f_orgid":null,"f_approval_notified":null,"f_plan_month":4,"f_approved_note":null,"f_filialeids":null,
101
+ // "f_floor":"1","f_flag":null,"f_repair_approved_note":null,"f_userinfo_code":"00000002","f_create_time":"2020-05-10 18:56:03","f_meter_no":"","f_station":null,
102
+ // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
103
+ // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
104
+ // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
105
+ // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
106
+ // },
107
+
108
+ data: {
109
+ f_devices: [],
110
+ f_defect_content:'',
111
+ f_recording1_path:''
112
+ },
113
+ updateuserphone:false, //安检时是否更新用户电话
114
+ updatemetermodel:false, //安检时是否更新表型号
115
+ updatemeternumber:false, //安检时是否更新表号
116
+ beforephone:'',
117
+ isUpload:false,
118
+ onlySave:true, //判断保存还是保存并上传
119
+ livedispose:'',
120
+ startClick:false, //开始安检按钮是否可点击
121
+ isStrat: false, //是否开始安检
122
+ checkResult:{},//查询结果
123
+ newcheckResult:{},
124
+ timer: null,
125
+ showModal: false,
126
+ pic_to_be_viewed: '',
127
+ showBack:true,
128
+ devices: [],
129
+ f_devices : [],
130
+ isToRepair:false,
131
+ clickBack:true, //是否点击返回按钮
132
+ isSafeCheckToRepair:false,//是否转维修
133
+ Url:this.$androidUtil.getProxyUrl(),
134
+ detail:{},
135
+ defectDevice:{},
136
+ user:{},
137
+ model: { //转维修数据
138
+ // 一次派单
139
+ serviceacitivity: [{
140
+ f_service_acitivity_type: '派单'
141
+ }],
142
+ f_source:'安检',
143
+ f_service_id: '',
144
+ f_contact_phone: '',
145
+ f_meetunit: '',
146
+ f_phone: '',
147
+ f_user_name: '',
148
+ f_address: '',
149
+ f_repair_date: Util.toStandardTimeString(),
150
+ f_card_id: '',
151
+ // f_department: '', 站点选择
152
+ f_reciever:'',
153
+ f_remarks: '',
154
+ f_user_type: '',
155
+ f_area: '',
156
+ f_unit_name:'',
157
+ f_street: '',
158
+ f_residential_area: '',
159
+ f_building: '',
160
+ f_unit: '',
161
+ f_floor: '',
162
+ f_room: '',
163
+ aState: null,
164
+ f_repairtype: '',
165
+ f_repairitems:{},
166
+ },
167
+ repairitems:[],
168
+ meading:'转站点',
169
+ config: {
170
+ "燃气表":{
171
+ "checkmust":true,
172
+ "index":1,
173
+ "items":{
174
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
175
+ "基表编号":{"index":1,"type":"string","readonly":true},
176
+ "气表型号":{"index":2,"type":"string","readonly":true},
177
+ "气表品牌":{"index":3,"type":"string","readonly":true},
178
+ "进气方向":{"index":4,"type":"string","readonly":true},
179
+ "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
180
+ "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
181
+ "累购气量":{"index":7,"type":"number","readonly":true},
182
+ "累购金额":{"index":7,"type":"number","readonly":true},
183
+ "已用气量":{"index":8,"type":"number","checkmust": true},//基表数
184
+ "已用金额":{"index":8,"type":"number","checkmust": true},
185
+ "剩余气量":{"index":9,"type":"number","checkmust": true},//累购-已用
186
+ //显示屏数 --实际剩余气量
187
+ "剩余金额":{"index":9,"type":"number","checkmust": true},
188
+ "气量异常差值":{"index":10,"type":"number","readonly": true},
189
+ "金额异常差值":{"index":10,"type":"number","readonly": true},
190
+ "表箱号":{"index":11,"type":"string","readonly": true}
191
+ }
192
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
193
+ },
194
+ // "燃气表2":{
195
+ // "checkmust":true,
196
+ // "index":2,src
197
+ // "items":{
198
+ // "燃气表照片":{"index":1,"type":"picture"},
199
+ // "表品牌":{"index":2,"type":"string","readonly":true},
200
+ // "表号":{"index":3,"type":"string","readonly":true},
201
+ // "表封号":{"index":4,"type":"number","readonly":true},
202
+ // "表型号":{"index":5,"type":"string","readonly":true},
203
+ // "位置":{"index":6,"type":"string","readonly":true},
204
+ // "表底数":{"index":7,"type":"number","readonly":true},
205
+ // "累购气量":{"index":8,"type":"number","readonly":true},
206
+ // "累购金额":{"index":8,"type":"number","readonly":true}
207
+ // }
208
+ // }
209
+ },
210
+ // 维修项
211
+ isneedDate:'',
212
+ routeShow:true,
213
+ number:0,
214
+ shupingshow:false,
215
+ pipeline: {},
216
+ details: [],
217
+ ids: '',
218
+ savevalid: {
219
+ uservalid: false,
220
+ doorvalid: true,
221
+ changetable: false
222
+ },
223
+ doordetails: {},
224
+ devicedetails: {},
225
+ cookdetails: {},
226
+ componentName: 'safecheck-userinfo',
227
+ header:'客户信息',
228
+ tabs: [
229
+ // 参数全部设置成空,在ready时,等model处理好了,再添加
230
+ {
231
+ header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
232
+ },
233
+ {
234
+ header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
235
+ }
236
+ ],
237
+ faultshow:{
238
+ number : 8
239
+ } // 控制 故障汇总 在 菜单里显示与否,
240
+ }
241
+ },
242
+ computed: {
243
+ actionEnabled: {
244
+ get() {
245
+ return this.role == 'inspect'
246
+ }
247
+ }
248
+ },
249
+ methods: {
250
+ closely(isdelete){
251
+ try {
252
+ var startOrStopAudioClipStr;
253
+ if (isdelete===true) {
254
+ //tag
255
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
256
+ }else {
257
+ //tag
258
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
259
+ }
260
+ if (startOrStopAudioClipStr.code == 200) {
261
+ //tag
262
+ return true;
263
+ }else {
264
+ return false;
265
+ }
266
+ } catch (e) {
267
+ console.error("关闭录音方法异常")
268
+ console.error(e)
269
+ return false;
270
+ }
271
+ },
272
+ // 录音方法
273
+ record() {
274
+ //tag
275
+ if (this.role != 'inspect') {
276
+ if (this.data.f_recording1_path != '') {
277
+ window.location = "/rs/file"+this.data.f_recording1_path
278
+ }
279
+ } else {
280
+ //tag
281
+ let fileName
282
+ if (!this.data.f_recording1_path) {
283
+ fileName = Util.guid() + '.amr'
284
+ } else {
285
+ fileName = Util.getFileName(this.data.f_recording1_path)
286
+ }
287
+ //HostApp.__this__ = this
288
+ /*调用无限制录音模块*/
289
+ let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
290
+ //tag
291
+ if (startOrStopState.code == 200) {
292
+ this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
293
+ //tag
294
+ return true;
295
+ }else {
296
+ return false;
297
+ }
298
+ }
299
+ },
300
+ saveNoclick() {
301
+ // 禁用点击事件
302
+ $("#savebut").addClass("noclickbut");
303
+ //tag
304
+
305
+ // 5秒后启用点击事件
306
+ setTimeout(function(){
307
+ $("#savebut").removeClass("noclickbut");
308
+ },5000);
309
+ },
310
+ timeSet(val){
311
+ if (!val){
312
+ return
313
+ }
314
+ let time =new Date(val).getTime()
315
+ let time2=new Date().getTime()
316
+ if (time2>time) {
317
+ return true
318
+ }
319
+ },
320
+ imgback(val,isheader){
321
+ if(val && this.routeShow && isheader){
322
+ return require('../../../assets/xiangxia1.png')
323
+ }else{
324
+ return require('../../../assets/xiangyou1.png')
325
+ }
326
+ },
327
+ changediv(val){
328
+ //tag
329
+ return val
330
+ },
331
+ // 选择tab
332
+ tabSelect (item,number) {
333
+ this.header = item.header
334
+ //tag
335
+ //tag
336
+ //tag
337
+ //tag
338
+ // 处理关闭/显示 内容
339
+ if(this.number == number && !this.routeShow ){
340
+ this.routeShow = true
341
+ }else if(this.number == number && this.routeShow){
342
+ this.routeShow = false
343
+ }else if(this.number != item.complete){
344
+ this.routeShow = true
345
+ }
346
+ this.number = number
347
+ this.componentName = item.complete
348
+ //tag
349
+ if(item.complete == 'safecheck-devices'){
350
+ //tag
351
+ if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
352
+ this.data['device' + item.number].push({})
353
+ }
354
+ //tag
355
+ //tag)
356
+ let idx=this.data['device' + item.number].length - 1
357
+ let itemprops = {
358
+ config:this.config,
359
+ device:this.devices[item.number-1],
360
+ idx:idx,
361
+ role:'inspect'
362
+ }
363
+ //tag
364
+ //tag)
365
+ //tag)
366
+ //tag
367
+ if(this.routeShow){
368
+ this.$goto(item.complete, itemprops, 'repair')
369
+ //tag
370
+ }
371
+ }else{
372
+ //tag
373
+ if(this.routeShow){
374
+ this.$goto(item.complete, {userinfo:this.data}, 'repair')
375
+ }
376
+ }
377
+ this.shupingshow = true
378
+ },
379
+ // 给组件添加参数
380
+ getImgPath() {
381
+ for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
382
+ this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
383
+ }
384
+ this.ids = this.ids.substring(0, this.ids.length - 1)
385
+ if(this.ids){
386
+ this.getImgGen();
387
+ }
388
+ },
389
+ getImgGen(){
390
+ let http = new HttpResetClass()
391
+ http.load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
392
+ items: '*',
393
+ tablename: 't_files',
394
+ condition: `id in (${this.ids})`,
395
+ orderitem: 'id'
396
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
397
+ for (let i = 0; i < res.data.length; i++) {
398
+ for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
399
+ //tag)
400
+ //tag
401
+ if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
402
+ this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
403
+ }
404
+ }
405
+
406
+ }
407
+ })
408
+ },
409
+
410
+ sortDetails(){
411
+ for (let i = 0; i < this.details.length; i++) {
412
+ if (this.details[i].details.length) {
413
+ for (let j = 0; j < this.details[i].details.length; j++) {
414
+ if (this.details[i].details[j].f_type === 'a') {
415
+ this.doordetails = {details: this.details[i].details}
416
+ break
417
+ }
418
+ if (this.details[i].details[j].f_type === 'b') {
419
+ this.devicedetails = {details: this.details[i].details}
420
+ break
421
+ }
422
+ if (this.details[i].details[j].f_type === 'c') {
423
+ this.cookdetails = {details: this.details[i].details}
424
+ break
425
+ }
426
+ }
427
+ }
428
+ }
429
+ },
430
+ // 复制数据
431
+ back () {
432
+ let _this = this
433
+ if(this.issee){
434
+ _this.$back()
435
+ return
436
+ }
437
+ this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
438
+ if (res === 'confirm') {
439
+ this.closely()
440
+ _this.$back()
441
+ }
442
+ })
443
+ },
444
+ confirm(){
445
+ this.$dispatch('confirm')
446
+ },
447
+ tick() {
448
+ this.timer = null
449
+ this.data.f_offsite_time = Util.toStandardTimeString()
450
+ this.timer = window.setTimeout(this.tick, 1000)
451
+ },
452
+ getRepairState() {
453
+ let repaired = true
454
+ this.data.f_defects.forEach((defect) => {
455
+ repaired = repaired & (defect.f_ratification == '已处理')
456
+ })
457
+ return repaired
458
+ },
459
+ verifyRepairDefects() {
460
+ this.data.f_repair_date = Util.toStandardTimeString()
461
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
462
+ },
463
+ errorVerify() {
464
+ let hasError = this.verifyState()
465
+ if(hasError)
466
+ return hasError
467
+
468
+ if(this.data.f_entry_status != '入户')
469
+ return null
470
+ hasError = this.verifyUser()
471
+ if(hasError)
472
+ return hasError
473
+ hasError = this.verifyDevices()
474
+ if(hasError)
475
+ return hasError
476
+ hasError = this.verifyFeedback()
477
+ if(hasError)
478
+ return hasError
479
+ },
480
+ verifyState() {
481
+ if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
482
+ return '未使用天然气则必须拍照'
483
+ if(Vue.android && this.data.f_entry_status == '到访不遇' && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer1_path == Vue.nopic))
484
+ return '到访不遇必须拍2张照片'
485
+ },
486
+ verifyUser() {
487
+ //tag
488
+ //tag
489
+ //tag)
490
+ let prefix = '用户基本信息:'
491
+ if(Util.required(this.data.f_user_name))
492
+ return prefix + '用户名必须输入'
493
+ if(!(/^\d{11}$/.test(this.data.f_user_phone))) {
494
+
495
+ return '请输入正确的电话号码'
496
+ }
497
+ // if(Util.required(this.data.f_residential_area))
498
+ // return prefix + '小区名称必须输入'
499
+ if(Util.required(this.data.f_address))
500
+ return prefix + '地址必须输入'
501
+ },
502
+ verifyDevices() {
503
+ for (let dev in this.config) {
504
+ if (this.config[dev].checkmust == true) {
505
+ let error = true
506
+ for(let device in this.data) {
507
+ if (device.startsWith("device")) {
508
+ for (let item in this.data[device]) {
509
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
510
+ error = false
511
+ }
512
+ }
513
+ }
514
+ }
515
+ if (error) {
516
+ return "请检查" + dev
517
+ }
518
+ }
519
+ }
520
+
521
+ for (let dev in this.config) {
522
+ for(let device in this.data) {
523
+ if (device.startsWith("device")) {
524
+ for (let item in this.data[device]) {
525
+ //检查每一条安检结果
526
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
527
+ for (let i in this.data[device][item].f_items) {
528
+ for (let it in this.config[dev].items) {
529
+ if (it == this.data[device][item].f_items[i].f_item_name) {
530
+ let check=false
531
+ if (!this.data[device][item].f_items[i].f_item_value){
532
+ check=true
533
+ }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
534
+ if (this.data[device][item].f_items[i].f_item_value.length==0){
535
+ check=true
536
+ }
537
+ }
538
+
539
+ if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
540
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
541
+ }
542
+ if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
543
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
544
+ }
545
+ }
546
+ }
547
+ //检查安检下拉结果
548
+ if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
549
+ if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
550
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + this.data[device][item].f_items[i].f_item_value + "选中必须拍照"
551
+ }
552
+ }
553
+ }
554
+ }
555
+ }
556
+ }
557
+ }
558
+ }
559
+ },
560
+
561
+
562
+ verifyFeedback() {
563
+ let prefix = '拍照签名:'
564
+ //tag)
565
+ if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
566
+ return prefix + '必须有安检总体照片'
567
+ if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
568
+ return prefix + '必须有用户签名'
569
+ if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
570
+ return prefix + '下发安检通知书则必须给通知书拍照'
571
+ if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
572
+ return prefix + '请填写拉黑原因'
573
+ if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
574
+ return prefix + '请选择服务评价'
575
+ },
576
+
577
+ getAllDefect() {
578
+ let checkResults = {
579
+ result: '正常',
580
+ data: []
581
+ }
582
+ let value = ''
583
+ let codata = JSON.parse(JSON.stringify(this.data))
584
+ //tag)
585
+ //tag)
586
+ codata.f_devices = []
587
+ this.f_devices = []
588
+ for (let device in codata) {
589
+ let f_device_type
590
+ if (device.startsWith("device")) {
591
+ //tag)
592
+ let hasOther = ''
593
+ let otherValue = null
594
+ for (let item in codata[device]) {
595
+ if(typeof codata[device][item]=='function'){
596
+ continue
597
+ }
598
+ codata[device][item].f_create_time = Util.toStandardTimeString()
599
+ // if (codata[device].length > 1) {
600
+ // let j = Number.parseInt(item) + 1
601
+ // f_device_type = `${codata[device][item].f_device_type}${j}`
602
+ // } else {
603
+ // f_device_type = codata[device][item].f_device_type
604
+ // }
605
+ //tag
606
+ //tag
607
+ //tag)
608
+ //tag)
609
+ if(item == 'sum' || item == 'removeEmpty'){
610
+ continue
611
+ }
612
+ for (let i = 0; i < codata[device][item].f_items.length ; i++) {
613
+ //tag
614
+ if(i == 'sum' || i == 'removeEmpty'){
615
+ continue
616
+ }
617
+ //tag)
618
+ var items = codata[device][item].f_items[i]
619
+ items.f_create_time = Util.toStandardTimeString()
620
+ //tag)
621
+ items.f_item_lists = []
622
+ //tag)
623
+ // //tag)
624
+ // //tag} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
625
+ // console.log(`f_is_defect => ${this.config[codata[device][item]
626
+ // .f_device_type]
627
+ // .items[items.f_item_name]
628
+ // .options
629
+ // .find((option)=>option.data === items.f_item_value)
630
+ // .map((option)=>option.f_is_defect)}`)
631
+ // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
632
+ // //tag
633
+ // checkResults.result = '有隐患'
634
+ // //tag)
635
+ // //tag)
636
+ // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
637
+ // this.checkResult[items.f_item_name] = items.f_item_value
638
+ // //tag)
639
+ // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
640
+ // // //tag)
641
+ // }
642
+ if (items.type == 'selector') {
643
+ items.selected = []
644
+ } else if (items.type == 'inputSelector') {
645
+ items.selected = ''
646
+ }
647
+ //遍历配置项 将所选隐患项的配置信息放入保存的数据中
648
+ let f_is_defect //是否是隐患
649
+ let f_defect_level //是否是隐患
650
+ let f_item_name = items.f_item_name
651
+ let f_item_value
652
+ let f_is_eliminate //隐患是否消除
653
+ let f_meternumber = ''
654
+ let f_user_defects = [] // 用户所有隐患
655
+ //tag
656
+ //tag
657
+ if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
658
+ for (let i in items.f_item_value) {
659
+ if(typeof items.f_item_value[i]=='function'){
660
+ continue
661
+ }
662
+ let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
663
+ //tag)
664
+ for (let k in configItems.options) {
665
+ if(typeof configItems.options[k]=='function'){
666
+ continue
667
+ }
668
+ //tag)
669
+ if (items.f_item_value[i] === configItems.options[k].data) {
670
+
671
+ f_is_defect = configItems.options[k].isdefect
672
+ f_item_value = items.f_item_value[i]
673
+ f_defect_level = configItems.options[k].level
674
+
675
+ //tag
676
+ //tag
677
+ //tag
678
+
679
+ if (f_is_defect) {
680
+ if (checkResults.result !== '有隐患') {
681
+ checkResults.result = '有隐患'
682
+ }
683
+ if (!this.checkResult.hasOwnProperty(f_item_name)) {
684
+ //tag
685
+ this.checkResult[f_item_name] = []
686
+ }
687
+
688
+ //tag
689
+ this.checkResult[f_item_name].push(f_item_value)
690
+
691
+ }
692
+
693
+ let items_list = {
694
+ f_is_defect: f_is_defect,
695
+ f_item_value: f_item_value,
696
+ f_defect_level: f_defect_level,
697
+ f_is_eliminate: null,
698
+ f_create_time: Util.toStandardTimeString()
699
+ }
700
+ if (!items.f_item_lists) {
701
+ //tag
702
+ items.f_item_lists = []
703
+ //tag)
704
+ if (JSON.stringify(items_list) !== '{}') {
705
+ //tag
706
+ items.f_item_lists.push(items_list)
707
+ }
708
+ } else {
709
+ //tag)
710
+ if (JSON.stringify(items_list) !== '{}') {
711
+ //tag
712
+ items.f_item_lists.push(items_list)
713
+ }
714
+ }
715
+ }
716
+ }
717
+ }
718
+ } else {
719
+ let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
720
+ f_is_defect = configItems.isdefect
721
+ f_defect_level = configItems.level
722
+ f_item_value = items.f_item_value
723
+ let items_list = {
724
+ f_is_defect: f_is_defect,
725
+ f_item_value: f_item_value,
726
+ f_defect_level: f_defect_level,
727
+ f_create_time: Util.toStandardTimeString()
728
+ }
729
+ if (f_is_defect && f_item_value) {
730
+ items.f_is_defect = true
731
+ if (checkResults.result !== '有隐患') {
732
+ checkResults.result = '有隐患'
733
+ }
734
+ if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
735
+ //tag
736
+ this.checkResult[items.f_item_name] = []
737
+ }
738
+
739
+ //tag
740
+ this.checkResult[items.f_item_name].push(f_item_value)
741
+
742
+ }
743
+ //tag)
744
+ //tag)
745
+ if (!items.f_item_lists) {
746
+ //tag
747
+ items.f_item_lists = []
748
+ if (JSON.stringify(items_list) != '{}') {
749
+ //tag
750
+ items.f_item_lists.push(items_list)
751
+ }
752
+ } else {
753
+ // items.f_item_lists[0].f_item_value = f_item_value
754
+ if (JSON.stringify(items_list) != '{}') {
755
+ //tag
756
+ //tag)
757
+ //tag)
758
+ //tag
759
+ items.f_item_lists.push(items_list)
760
+ }
761
+ }
762
+ }
763
+ if (hasOther !== '' && otherValue !== null) {
764
+ //tag
765
+ this.checkResult[hasOther].push(otherValue)
766
+ hasOther = ''
767
+ otherValue = null
768
+ }
769
+ items.f_item_value = ''
770
+ }
771
+ //tag)
772
+ this.f_devices.push(codata[device][item])
773
+ }
774
+ }
775
+ }
776
+ if (this.checkResult) {
777
+ for (let key in this.checkResult) {
778
+ if(typeof this.checkResult[key]=='function'){
779
+ continue
780
+ }
781
+ // 上次安检结果数据组织
782
+ //tag
783
+ //tag
784
+ let temp = {}
785
+ temp[key] = this.checkResult[key].join(',')
786
+ checkResults.data.push(temp)
787
+ // this.newcheckResult[key] = this.checkResult[key]
788
+ // checkResults.data.push(this.newcheckResult)
789
+ //tag)
790
+ // this.newcheckResult = {}
791
+ }
792
+ this.checkResult = {}
793
+ }
794
+ //tag
795
+ //tag)
796
+ codata.f_defect_content = JSON.stringify(checkResults)
797
+ this.data.f_defect_content = JSON.stringify(checkResults)
798
+ //tag
799
+ return codata
800
+ },
801
+ uploadCheckPaper(){
802
+ this.saveNoclick()
803
+ //tag
804
+ //tag
805
+ this.closely(false) // 保存本地,不删除录音文件停止录音
806
+ let errString = this.errorVerify()
807
+ if (errString) {
808
+ //tag
809
+ //tag
810
+ //tag
811
+ if (Vue.android){
812
+ // if(this.isUpload){
813
+ // this.isUpload = false
814
+ // }
815
+ this.$showMessage(errString)
816
+ }
817
+ return
818
+ } else {
819
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
820
+ this.$set('data.f_upload_time', Util.toStandardTimeString())
821
+ this.$set('data.f_upload_date', Util.toStandardTimeString())
822
+ //tag
823
+ this.data.f_complete = '已完成'
824
+ this.disableTimer()
825
+ }
826
+ //tag
827
+ this.onlySave = false
828
+ let res = this.save()
829
+ // if(res) {
830
+ // try {
831
+ // let codata = this.getAllDefect()
832
+ // //获取微信推送内容
833
+ // let WxResult = this.getWeixin(codata)
834
+ // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
835
+ // f_check_item_id: this.data.f_check_item_id
836
+ // })
837
+ // //如果是转维修上传,则不做校验,上传完成后自动转维修
838
+ // //tag
839
+ // //tag
840
+ // if(!this.isToRepair){
841
+ // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
842
+ // //tag
843
+ // //tag
844
+ // if(!this.isSafeCheckToRepair){
845
+ // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
846
+ // return
847
+ // }
848
+ // }
849
+ // }
850
+ // //tag
851
+ // for (let key in codata){
852
+ // if(key.startsWith("device")){
853
+ // codata[key] = []
854
+ // }
855
+ // }
856
+ // //tag}`)
857
+ //
858
+ // //tag
859
+ // let isStart = true
860
+ // let res
861
+ // for (let i in this.f_devices){
862
+ // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
863
+ // if(res.code == 200){
864
+ // isStart = false
865
+ // }else{
866
+ // this.$showMessage("保存失败!")
867
+ // }
868
+ // }
869
+ // let result = HostApp.organizeJSON({
870
+ // isStart:false,
871
+ // isJSON:true,
872
+ // jsonstr:{
873
+ // f_check_item_id: this.data.f_check_item_id,
874
+ // f_checker_id: this.data.f_checker_id,
875
+ // row: codata
876
+ // }
877
+ // })
878
+ // if(result.code == 200){
879
+ // HostApp.__this__ = this
880
+ // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
881
+ // }
882
+ //
883
+ //
884
+ // // let response = this.$androidUtil.bzLogic('上传安检信息', {
885
+ // // f_check_item_id: this.data.f_check_item_id,
886
+ // // f_checker_id: this.data.f_checker_id,
887
+ // // row: codata
888
+ // // })
889
+ // // if (response.code == 200) {
890
+ // // //tag
891
+ // // //tag)
892
+ // // let f_paper_id
893
+ // // if(response.data != '' && response.data != null){
894
+ // // f_paper_id = JSON.parse(response.data).id
895
+ // // }
896
+ // // this.$set('data.f_paper_id', f_paper_id)
897
+ // // //tag
898
+ // // //tag)
899
+ // // //tag
900
+ // // //tag)
901
+ // // for (let device in this.data){
902
+ // // //tag
903
+ // // //tag)
904
+ // // if(device.startsWith("device")){
905
+ // // for(let devices of this.data[device]) {
906
+ // // devices.f_paper_id = f_paper_id
907
+ // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
908
+ // // row: devices
909
+ // // })
910
+ // // //tag}`)
911
+ // // if(ret.code == 200){
912
+ // // //tag
913
+ // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
914
+ // // }
915
+ // // //tag
916
+ // // //tag)
917
+ // // if (ret.code != 200) {
918
+ // // //TODO 失败后处理
919
+ // // // this.isUpload = false
920
+ // // this.$showMessage("上传失败!")
921
+ // // return false
922
+ // // }
923
+ // // }
924
+ // // }
925
+ // // }
926
+ // // // for (let device of this.f_devices) {
927
+ // // // device.f_paper_id = f_paper_id
928
+ // // // //tag
929
+ // // // //tag)
930
+ // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
931
+ // // // row: device
932
+ // // // })
933
+ // // // //tag
934
+ // // // if (ret.code != 200) {
935
+ // // // //TODO 失败后处理
936
+ // // // HostApp.alert("上传失败!")
937
+ // // // return false
938
+ // // // }
939
+ // // // }
940
+ // // let result = this.$androidUtil.bzLogic('FinishUpload',
941
+ // // {
942
+ // // f_check_item_id: this.data.f_check_item_id,
943
+ // // f_userinfo_id: codata.f_userinfoid,
944
+ // // f_last_check_result: codata.f_defect_content
945
+ // // })
946
+ // // if(result.code == 200){
947
+ // // // this.$showAlert('上传成功!', 'success', 2000)
948
+ // // this.$showMessage('上传成功!')
949
+ // // this.isStrat=false
950
+ // // if(url != "" ){
951
+ // // this.$resetpost(`${url}`,{data:WxResult})
952
+ // // }
953
+ // // return true
954
+ // // }else{
955
+ // // // this.isUpload = false
956
+ // // this.$showMessage("上传失败!")
957
+ // // return false
958
+ // // }
959
+ // // }else{
960
+ // // // this.isUpload = false
961
+ // // this.$showMessage("上传失败!")
962
+ // // return false
963
+ // // }
964
+ // }catch (e) {
965
+ // //tag)
966
+ // // this.isUpload = false
967
+ // this.$showMessage("上传失败!")
968
+ // }
969
+ // }
970
+ },
971
+ save(type) {
972
+ //禁用事件
973
+ this.saveNoclick()
974
+ //tag
975
+ //tag
976
+ if(type == 'temp'){
977
+ this.data.f_complete = '未完成'
978
+ // 关闭录音方法
979
+ this.closely(true) //临时保存,删除录音文件并暂停录音
980
+ this.disableTimer()
981
+ }else {
982
+ // 关闭录音方法
983
+ this.closely(false) // 保存本地,不删除录音文件暂停录音
984
+ let errString = this.errorVerify()
985
+ if (errString) {
986
+ //tag
987
+ //tag
988
+ //tag
989
+ if (Vue.android){
990
+ this.$showMessage(errString)
991
+ }
992
+ return
993
+ } else {
994
+ this.data.f_complete = '已完成'
995
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
996
+ this.disableTimer()
997
+ }
998
+ }
999
+ //tag
1000
+ if(this.data.f_blacklist!='是'){
1001
+ delete this.data.f_blocking_cause
1002
+ }
1003
+ // try {
1004
+ let codata = this.getAllDefect()
1005
+ //tag
1006
+ //tag}`)
1007
+ for (let key in codata) {
1008
+ if (key.startsWith("device")) {
1009
+ //tag)
1010
+ codata[key] = []
1011
+ }
1012
+ }
1013
+ //tag}`)
1014
+ //tag}`)
1015
+ //tag
1016
+ if (Vue.android) {
1017
+ //tag
1018
+ let value = this.$androidUtil.path({
1019
+ alias: 'getUserinfomation',
1020
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1021
+ })
1022
+ //tag)
1023
+ if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1024
+ // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1025
+ // f_check_item_id: this.data.f_check_item_id,
1026
+ // f_checker_id: this.data.f_checker_id,
1027
+ // f_upload_state:'未传',
1028
+ // row: codata
1029
+ // })
1030
+ //tag
1031
+ let isStart = true
1032
+ // let res
1033
+ // for (let i in this.f_devices) {
1034
+ // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1035
+ // if (res.code == 200) {
1036
+ // isStart = false
1037
+ // } else {
1038
+ // this.$showMessage("保存失败!")
1039
+ // }
1040
+ // }
1041
+ // let result = HostApp.organizeJSON({
1042
+ // isStart: false,
1043
+ // isJSON: true,
1044
+ // jsonstr: {
1045
+ // f_check_item_id: this.data.f_check_item_id,
1046
+ // f_checker_id: this.data.f_checker_id,
1047
+ // f_upload_state: '未传',
1048
+ // row: codata
1049
+ // }
1050
+ // })
1051
+ codata.f_devices = this.f_devices
1052
+ let param = {
1053
+ f_check_item_id: this.data.f_check_item_id,
1054
+ f_checker_id: this.data.f_checker_id,
1055
+ f_upload_state: '未传',
1056
+ row: codata
1057
+ }
1058
+ //tag)
1059
+ let paramStr = JSON.stringify(param)
1060
+ // 多长截断一次
1061
+ let subLength = 800
1062
+ for (let i = 0; i < paramStr.length; i += subLength) {
1063
+ HostApp.param_cache(paramStr.substr(i, subLength))
1064
+ }
1065
+ HostApp.__this__ = this
1066
+ HostApp.syncLogic({
1067
+ // logic别名,key必须为logic
1068
+ 'logic': 'SafeSaveNoPaper',
1069
+ // 回调执行方法名,key必须为callback
1070
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1071
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1072
+ // 执行回调方法传入key为backresult
1073
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1074
+ 'backresult': 1
1075
+ })
1076
+ } else {
1077
+ //tag
1078
+ let isStart = true
1079
+ let res
1080
+ //tag)
1081
+ // for (let i in this.f_devices) {
1082
+ // //tag)
1083
+ // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
1084
+ // //tag)
1085
+ // }
1086
+ // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1087
+ // //tag)
1088
+ // if (res.code == 200) {
1089
+ // isStart = false
1090
+ // } else {
1091
+ // this.$showMessage("保存失败!")
1092
+ // }
1093
+ // }
1094
+ //tag)
1095
+ //tag)
1096
+ //tag)
1097
+ // let result = HostApp.organizeJSON({
1098
+ // isStart: false,
1099
+ // isJSON: true,
1100
+ // jsonstr: {
1101
+ // f_check_item_id: this.data.f_check_item_id,
1102
+ // f_checker_id: this.data.f_checker_id,
1103
+ // row: codata
1104
+ // }
1105
+ // })
1106
+ codata.f_devices = this.f_devices
1107
+ let param = {
1108
+ f_check_item_id: this.data.f_check_item_id,
1109
+ f_checker_id: this.data.f_checker_id,
1110
+ row: codata
1111
+ }
1112
+ //tag)
1113
+ let paramStr = JSON.stringify(param)
1114
+ // 多长截断一次
1115
+ let subLength = 800
1116
+ for (let i = 0; i < paramStr.length; i += subLength) {
1117
+ HostApp.param_cache(paramStr.substr(i, subLength))
1118
+ }
1119
+ HostApp.__this__ = this
1120
+ HostApp.syncLogic({
1121
+ // logic别名,key必须为logic
1122
+ 'logic': '保存安检单信息',
1123
+ // 回调执行方法名,key必须为callback
1124
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1125
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1126
+ // 执行回调方法传入key为backresult
1127
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1128
+ 'backresult': 1
1129
+ })
1130
+ }
1131
+
1132
+ } else {
1133
+ //tag
1134
+ let value = this.$androidUtil.path({
1135
+ alias: 'getUserinfomation',
1136
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1137
+ })
1138
+
1139
+ if (this.item.f_no_checkplan == '无计划安检' && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1140
+ this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1141
+ f_check_item_id: this.data.f_check_item_id,
1142
+ f_checker_id: this.data.f_checker_id,
1143
+ f_upload_state: '未传',
1144
+ row: codata
1145
+ }).then((res) => {
1146
+ if (res.data.code == 200) {
1147
+ //保存devices
1148
+ this.$androidUtil.bzLogic('getPaperInfo', {
1149
+ f_check_item_id: this.data.f_check_item_id
1150
+ }).then((res) => {
1151
+ //tag
1152
+ if (res.data.code == 200) {
1153
+
1154
+ let f_paper_id = res.data.data[0].id
1155
+ for (let device of this.f_devices) {
1156
+ device.f_paper_id = f_paper_id
1157
+ //tag
1158
+ this.$androidUtil.bzLogic('saveDevice', {
1159
+ row: device
1160
+ }).then((ret) => {
1161
+ //tag
1162
+ if (ret.code != 200) {
1163
+ // if(this.isUpload){
1164
+ // this.isUpload = false
1165
+ // }
1166
+ //TODO 失败后处理
1167
+ this.$showMessage("保存失败!")
1168
+ return false
1169
+ }
1170
+ })
1171
+ }
1172
+ }
1173
+ })
1174
+ // this.$showAlert('保存成功!', 'success', 2000)
1175
+ this.$showMessage('保存成功!')
1176
+ return true
1177
+ } else {
1178
+ // if(this.isUpload){
1179
+ // this.isUpload = false
1180
+ // }
1181
+ this.$showMessage("保存失败!")
1182
+ return false
1183
+ }
1184
+ })
1185
+ } else {
1186
+ this.$androidUtil.bzLogic('保存安检单信息', {
1187
+ f_check_item_id: this.data.f_check_item_id,
1188
+ f_checker_id: this.data.f_checker_id,
1189
+ row: codata
1190
+ }).then((res) => {
1191
+ //tag
1192
+ if (res.data.code == 200) {
1193
+ //保存devices
1194
+ this.$androidUtil.bzLogic('getPaperInfo', {
1195
+ f_check_item_id: this.data.f_check_item_id
1196
+ }).then((res) => {
1197
+ //tag
1198
+ if (res.data.code == 200) {
1199
+
1200
+ let f_paper_id = res.data.data[0].id
1201
+ for (let device of this.f_devices) {
1202
+ device.f_paper_id = f_paper_id
1203
+ //tag
1204
+ this.$androidUtil.bzLogic('saveDevice', {
1205
+ row: device
1206
+ }).then((ret) => {
1207
+ //tag
1208
+ if (ret.code != 200) {
1209
+ // if(this.isUpload){
1210
+ // this.isUpload = false
1211
+ // }
1212
+ //TODO 失败后处理
1213
+ this.$showMessage("保存失败!")
1214
+ return false
1215
+ }
1216
+ })
1217
+ }
1218
+ }
1219
+ })
1220
+ // this.$showAlert('保存成功!', 'success', 2000)
1221
+ this.$showMessage('保存成功!')
1222
+ return true
1223
+ } else {
1224
+ // if(this.isUpload){
1225
+ // this.isUpload = false
1226
+ // }
1227
+ this.$showMessage("保存失败!")
1228
+ return false
1229
+ }
1230
+ })
1231
+ }
1232
+ }
1233
+ // }catch (e) {
1234
+ // //tag)
1235
+ // // this.isUpload = false
1236
+ // this.$showMessage("保存失败!")
1237
+ // }
1238
+ },
1239
+ runSyncLogic(logic,callback,backresult){
1240
+ HostApp.runSyncLogic({
1241
+ // logic别名,key必须为logic
1242
+ 'logic': logic,
1243
+ // 回调执行方法名,key必须为callback
1244
+ 'callback': callback,
1245
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1246
+ // 执行回调方法传入key为backresult
1247
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1248
+ 'backresult':backresult
1249
+ })
1250
+ },
1251
+ logicWithHint(logic,data,callback,backresult){
1252
+ HostApp.logicWithHint({
1253
+ // logic别名,key必须为logic
1254
+ 'logic': logic,
1255
+ // 回调执行方法名,key必须为callback
1256
+ 'callback': callback,
1257
+ // logic执行需要的业务参数
1258
+ 'data': data,
1259
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1260
+ // 执行回调方法传入key为backresult
1261
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1262
+ 'backresult':backresult
1263
+ })
1264
+ },
1265
+ saveCallBack(jo){
1266
+ //tag)
1267
+ if(jo.state == 'ok'){
1268
+ let res = JSON.parse(jo.result)
1269
+ //tag)
1270
+ if(res.code == 200){
1271
+ //tag
1272
+ if(!this.onlySave){
1273
+ let codata = this.getAllDefect()
1274
+ //获取微信推送内容
1275
+ // let WxResult = this.getWeixin(codata)
1276
+ let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1277
+ f_check_item_id: this.data.f_check_item_id
1278
+ })
1279
+ //如果是转维修上传,则不做校验,上传完成后自动转维修
1280
+ //tag
1281
+ //tag
1282
+ if(!this.isToRepair){
1283
+ if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1284
+ //tag
1285
+ //tag
1286
+ if(!this.isSafeCheckToRepair){
1287
+
1288
+ }
1289
+ }
1290
+ }
1291
+ //tag
1292
+ for (let key in codata){
1293
+ if(key.startsWith("device")){
1294
+ codata[key] = []
1295
+ }
1296
+ }
1297
+ //tag}`)
1298
+
1299
+ //tag
1300
+ // let isStart = true
1301
+ // let res
1302
+ // for (let i in this.f_devices){
1303
+ // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1304
+ // if(res.code == 200){
1305
+ // isStart = false
1306
+ // }else{
1307
+ // this.$showMessage("上传失败!")
1308
+ // return
1309
+ // }
1310
+ // }
1311
+ // let result = HostApp.organizeJSON({
1312
+ // isStart:false,
1313
+ // isJSON:true,
1314
+ // jsonstr:{
1315
+ // f_check_item_id: this.data.f_check_item_id,
1316
+ // f_checker_id: this.data.f_checker_id,
1317
+ // row: codata
1318
+ // }
1319
+ // })
1320
+ codata.f_devices = this.f_devices
1321
+ let param = {
1322
+ f_check_item_id: this.data.f_check_item_id,
1323
+ f_checker_id: this.data.f_checker_id,
1324
+ row: codata
1325
+ }
1326
+ //tag)
1327
+ let paramStr = JSON.stringify(param)
1328
+ // 多长截断一次
1329
+ let subLength = 800
1330
+ for (let i = 0; i < paramStr.length; i += subLength) {
1331
+ HostApp.param_cache(paramStr.substr(i, subLength))
1332
+ }
1333
+ HostApp.__this__ = this
1334
+ HostApp.syncLogic({
1335
+ // logic别名,key必须为logic
1336
+ 'logic': '上传安检信息',
1337
+ // 回调执行方法名,key必须为callback
1338
+ 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1339
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1340
+ // 执行回调方法传入key为backresult
1341
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1342
+ 'backresult': 1
1343
+ })
1344
+ }else{
1345
+ this.$showMessage('保存成功!')
1346
+ if(this.clickBack){
1347
+ this.isStrat = false
1348
+ this.$dispatch('confirm')
1349
+ //this.$back()
1350
+ }
1351
+ }
1352
+ }else{
1353
+ this.$showMessage('保存失败!')
1354
+ return
1355
+ }
1356
+ }else{
1357
+ this.$showMessage('服务器内部错误,保存失败!')
1358
+ return
1359
+ }
1360
+ },
1361
+ uploadCallBack(jo){
1362
+ //获取微信推送路径
1363
+ let url = ""
1364
+ if(Vue.config.safecheck != undefined) {
1365
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1366
+ if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1367
+ url = Vue.config.safecheck.ApproveConfig.weixinurl
1368
+ }
1369
+ }
1370
+ }
1371
+ //tag)
1372
+ //tag)
1373
+ if(jo.state == 'ok'){
1374
+ let res = JSON.parse(jo.result)
1375
+ //tag)
1376
+ //tag)
1377
+ if(res.code == 200){
1378
+ this.$set('data.f_paper_id', res.id)
1379
+ this.isStrat=false
1380
+ if(url != ""){
1381
+ this.$resetpost(`${url}`,{data:WxResult})
1382
+ }
1383
+ //tag
1384
+ if(this.isToRepair){
1385
+ for (let device in this.data){
1386
+ if(device.startsWith("device")){
1387
+ this.data[device] = []
1388
+ if(res.data.length > 0){
1389
+ for(let i in res.data[0].f_devices){
1390
+ if(this.data[device].length > 0){
1391
+ if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1392
+ this.data[device].push(res.data[0].f_devices[i])
1393
+ res.data[0].f_devices.splice(i,1)
1394
+ }
1395
+ }else{
1396
+ this.data[device].push(res.data[0].f_devices[i])
1397
+ res.data[0].f_devices.splice(i,1)
1398
+ }
1399
+ }
1400
+ }
1401
+ }
1402
+ }
1403
+ this.todo()
1404
+ }else{
1405
+ this.$showMessage('上传成功!')
1406
+ //tag
1407
+ this.$dispatch('confirm')
1408
+ // this.$back()
1409
+ }
1410
+ }else if(res.code == 309){
1411
+ this.$showMessage('该安检单已作废!')
1412
+ //tag
1413
+ this.$dispatch('confirm')
1414
+ }else if(res.code == 710){
1415
+ this.$showMessage('上传照片失败,请检查用户签名或安检照片缺失,如无问题请检查手机当前网络是否正常(多次上传失败请先点击*本地缓存*按钮,在网络通畅情况下统一上传)!')
1416
+ return
1417
+ }else if(res.code == 711){
1418
+ this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1419
+ return
1420
+ }else if(res.code == 712){
1421
+ this.$showMessage('网络异常,请重新上传,多次上传失败请联系管理员!')
1422
+ return
1423
+ }
1424
+ else{
1425
+ this.$showMessage('上传失败!')
1426
+ }
1427
+ }else {
1428
+ this.$showMessage('网络异常,上传失败!')
1429
+ }
1430
+ this.onlySave = true
1431
+ },
1432
+ safecheckToRepairCallBack(jo){
1433
+ //获取微信推送路径
1434
+ if(jo.state == 'ok'){
1435
+ let res = JSON.parse(jo.result)
1436
+ //tag)
1437
+ if(res.code == 200){
1438
+ //tag
1439
+ if(res.data.code == 200){
1440
+ this.$showMessage('上传并转维修成功!')
1441
+ }else{
1442
+ this.$showMessage('上传并转维修成功,回写安检单失败!')
1443
+ }
1444
+ this.$dispatch('confirm')
1445
+ // this.$back()
1446
+ }else{
1447
+ this.$showMessage('上传失败!')
1448
+ this.onlySave = true
1449
+ }
1450
+ }else{
1451
+ this.$showMessage('网络异常,上传失败!')
1452
+ this.onlySave = true
1453
+ }
1454
+ },
1455
+ todo(){
1456
+ let gen = getRepairParam(this)
1457
+ co(gen)
1458
+ },
1459
+ undo(){
1460
+ this.showCheckToRepair = !this.showCheckToRepair
1461
+ this.model.serviceacitivity[0].f_reciever = ''
1462
+ this.model.serviceacitivity[0].f_meetunit = ''
1463
+ this.model.f_repairtype = ''
1464
+ this.meading = '转站点'
1465
+ },
1466
+ disableTimer() {
1467
+ if(this.timer) {
1468
+ window.clearTimeout(this.timer)
1469
+ this.timer = null
1470
+ }
1471
+ },
1472
+ loaded(paper) {
1473
+ if(!paper.hasOwnProperty('id')) {
1474
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1475
+ this.init()
1476
+ } else {
1477
+ Util.booleanFilter(paper)
1478
+ HostApp.__this__.$set('data', paper)
1479
+ HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1480
+ // 如果打回重检则重新计时
1481
+ //tag
1482
+ if(HostApp.__this__.role == 'inspect'
1483
+ && HostApp.__this__.data.f_approved
1484
+ && HostApp.__this__.data.f_approved == '打回') {
1485
+ //tag
1486
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1487
+ HostApp.__this__.tick()
1488
+ }
1489
+ }
1490
+ HostApp.__callback__ = null
1491
+ HostApp.__this__ = null
1492
+ },
1493
+ S4() {
1494
+ return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1495
+ },
1496
+ extend(initalObj, finalObj) {
1497
+ var obj = finalObj || {};
1498
+ for (var i in initalObj) {
1499
+ var prop = initalObj[i];
1500
+
1501
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1502
+ if (prop === obj) {
1503
+ continue;
1504
+ }
1505
+
1506
+ if (typeof prop === 'object') {
1507
+ if (obj[i]) {
1508
+ this.extend(obj[i], prop)
1509
+ } else {
1510
+ obj[i] = prop;
1511
+ }
1512
+ }
1513
+ }
1514
+ return obj;
1515
+ },
1516
+ // async isoverDate(){
1517
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
1518
+ // condition:"f_plan_item_id='"+this.item.id+"'"
1519
+ // }
1520
+ // })
1521
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
1522
+ // },
1523
+ putDevices() {
1524
+ //tag)
1525
+ //tag)
1526
+ this.$set('data.approve', "true")
1527
+ this.$set('data.writeback', "false")
1528
+ if (Vue.config.safecheck != undefined) {
1529
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1530
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1531
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1532
+ }
1533
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1534
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1535
+ }
1536
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1537
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1538
+ }
1539
+ }
1540
+ //tag
1541
+ //tag)
1542
+ //tag)
1543
+ //tag
1544
+ if(this.item.f_user_type == '民用'){
1545
+ // 民用户
1546
+
1547
+ if (Vue.config.safecheck.DevicesConfig != undefined){
1548
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1549
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1550
+ }else{
1551
+ //tag
1552
+ //tag
1553
+ //tag
1554
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1555
+ }
1556
+ // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1557
+ }
1558
+ }else {
1559
+ // 非民用
1560
+ if (Vue.config.safecheck.DevicesSetConfig != undefined){
1561
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1562
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1563
+ }else{
1564
+ //tag
1565
+ //tag
1566
+ //tag
1567
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1568
+ }
1569
+ //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1570
+ }
1571
+ }
1572
+
1573
+ }
1574
+ //tag)
1575
+ // 预留设备项位置
1576
+ for (let i in this.config) {
1577
+ this.tabs.splice(1,0,null)
1578
+ }
1579
+ //遍历安检项配置
1580
+ for (let i in this.config) {
1581
+ //取得安检项索引值
1582
+ let n = this.config[i].index
1583
+ //tag
1584
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1585
+ this.$set('data.' + 'device' + n, [])
1586
+ //tag
1587
+ // this.tabs.splice(2 + n - 1, 0,
1588
+ // {
1589
+ // header:i,
1590
+ // complete:'safecheck-devices',
1591
+ // class:'repair-details-class',
1592
+ // number:n
1593
+ // })
1594
+ this.tabs[n] = {
1595
+ header: i,
1596
+ complete: 'safecheck-devices',
1597
+ class: 'repair-details-class',
1598
+ number: n
1599
+ }
1600
+
1601
+ if(this.config[i].quantity && this.config[i].quantity >0){
1602
+ let items = []
1603
+ for (let it in this.config[i].items) {
1604
+ //赋值下拉选项
1605
+ if (this.config[i].items[it].type == 'selector') {
1606
+ for (let op in this.config[i].items[it].options) {
1607
+ if (this.config[i].items[it].options[op].isdefault == true) {
1608
+ items.push({
1609
+ f_defect_level: this.config[i].items[it].options[op].level,
1610
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
1611
+ f_item_name: it,
1612
+ f_item_value: this.config[i].items[it].options[op].data,
1613
+ f_path: "",
1614
+ type: "selector"
1615
+ })
1616
+ }
1617
+ }
1618
+ }
1619
+ }
1620
+ for(let q =0;q<this.config[i].quantity;q++) {
1621
+ this.data['device' + n].push(
1622
+ {f_device_type: i, f_items:items}
1623
+ )
1624
+ }
1625
+ }
1626
+ // this.data['device' + n].push(
1627
+ // {f_device_type: i, f_items: items}
1628
+ // )
1629
+ n = n + 1
1630
+ }
1631
+ //tag
1632
+ this.faultshow.number = this.tabs.length
1633
+ },
1634
+ init () {
1635
+ //tag
1636
+ // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1637
+ this.data.ename = Vue.user.ename
1638
+ this.data.f_outlets = Vue.user.f_parentname
1639
+ this.data.f_meetunit = Vue.user.orgpathnames
1640
+ this.data.orgpathstr = Vue.user.orgpathstr
1641
+ this.data.f_check_item_id = this.item.id
1642
+ this.data.f_check_plan_id = this.f_plan_id
1643
+ this.data.f_checker_id = Vue.user.id
1644
+ this.data.f_checker_name = Vue.user.name
1645
+ this.data.f_check_type = this.item.f_user_type
1646
+ this.data.f_safecheck_type = this.item.f_safecheck_type
1647
+ //this.data.f_exceed_reason = ''//存放送气超期原因
1648
+ //tag
1649
+ this.data.f_subcompany = this.item.f_subcompany
1650
+ this.data.f_approved = this.item.f_approvedf_read_instructions
1651
+ this.data.f_repair_approved = this.item.f_repair_approved
1652
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1653
+ this.data.f_approved = this.item.f_approved
1654
+ this.data.f_filialeid = this.item.f_filialeid
1655
+ this.data.f_orgstr = this.item.f_orgstr
1656
+ this.data.version = this.item.version
1657
+ this.data.f_check_version=this.item.f_check_version
1658
+ this.$set('data.f_meters', this.item.f_plan_meters)
1659
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1660
+ // 安检状态
1661
+ this.$set('data.f_entry_status', '入户')
1662
+ this.$set('data.f_usegas', '已使用')
1663
+ this.$set('data.f_state',this.item.f_state)
1664
+ this.$set('data.f_source', this.source?this.source:'安检')
1665
+ //tag
1666
+ // 用户信息
1667
+ this.$set('data.f_user_name', this.item.f_user_name)
1668
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1669
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1670
+ this.$set('data.f_address', this.item.f_address)
1671
+ this.$set('data.f_card_id', this.item.f_card_id)
1672
+ this.$set('data.f_area', this.item.f_area)
1673
+ this.$set('data.f_street', this.item.f_street)
1674
+ this.$set('data.f_room', this.item.f_room)
1675
+ this.$set('data.f_building', this.item.f_building)
1676
+ this.$set('data.f_unit', this.item.f_unit)
1677
+ //tag
1678
+ this.$set('data.f_floor', this.item.f_floor)
1679
+ this.$set('data.f_residential_area' , this.item.f_residential_area)
1680
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1681
+ this.$set('data.f_comments', this.item.f_comments)
1682
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1683
+ // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1684
+ // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1685
+ // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1686
+ // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1687
+ // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1688
+ // 处置方式
1689
+ //tag
1690
+ this.$set('data.f_gas_guidelines', true)
1691
+ this.$set('data.f_safety_warning', true)
1692
+ this.$set('data.f_gas_manual', true)
1693
+ this.$set('data.f_no_gas_device', false)
1694
+ this.$set('data.f_close_valve', false)
1695
+ this.$set('data.f_unload_battery', false)
1696
+ //tag
1697
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1698
+ this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1699
+ }
1700
+ //tag
1701
+ if(this.item.f_plan_meters) {
1702
+ for (let de in this.devices) {
1703
+ if(typeof this.devices[de]=='function'){
1704
+ continue
1705
+ }
1706
+ this.$set('data.device' + this.devices[de].n, [])
1707
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1708
+ if (this.item.f_plan_meters[i].f_meter_type) {
1709
+ //tag)
1710
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1711
+ this.data['device' + this.devices[de].n].push({
1712
+ f_device_type: "燃气表",
1713
+ f_items: [
1714
+ {
1715
+ f_defect_level: null,
1716
+ f_device_id: "",
1717
+ f_is_defect: "",
1718
+ f_item_name: "基表编号",
1719
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1720
+ f_path: "",
1721
+ type: "number"
1722
+ },
1723
+ {
1724
+ f_defect_level: null,
1725
+ f_device_id: "",
1726
+ f_is_defect: "",
1727
+ f_item_name: "气表型号",
1728
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1729
+ f_path: "",
1730
+ type: "string"
1731
+ },
1732
+ {
1733
+ f_defect_level: null,
1734
+ f_device_id: "",
1735
+ f_is_defect: "",
1736
+ f_item_name: "气表品牌",
1737
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1738
+ f_path: "",
1739
+ type: "string"
1740
+ },
1741
+ {
1742
+ f_defect_level: null,
1743
+ f_device_id: "",
1744
+ f_is_defect: "",
1745
+ f_item_name: "进气方向",
1746
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1747
+ f_path: "",
1748
+ type: "string"
1749
+ },
1750
+ {
1751
+ f_defect_level: null,
1752
+ f_device_id: "",
1753
+ f_is_defect: "",
1754
+ f_item_name: "上期表读数",
1755
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1756
+ f_path: "",
1757
+ type: "number"
1758
+ },
1759
+ {
1760
+ f_defect_level: null,
1761
+ f_device_id: "",
1762
+ f_is_defect: "",
1763
+ f_item_name: "表箱号",
1764
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1765
+ f_path: "",
1766
+ type: "string"
1767
+ }
1768
+ ]
1769
+ })
1770
+ }
1771
+ else if (this.devices[de].device == "燃气表") {
1772
+ // delete this.config['燃气表']['items']['表底数']
1773
+ this.data['device' + this.devices[de].n].push({
1774
+ f_device_type: "燃气表",
1775
+ f_items: [
1776
+ {
1777
+ f_defect_level: null,
1778
+ f_device_id: "",
1779
+ f_is_defect: "",
1780
+ f_item_name: "基表编号",
1781
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1782
+ f_path: "",
1783
+ type: "number"
1784
+ },
1785
+ {
1786
+ f_defect_level: null,
1787
+ f_device_id: "",
1788
+ f_is_defect: "",
1789
+ f_item_name: "气表型号",
1790
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1791
+ f_path: "",
1792
+ type: "string"
1793
+ },
1794
+ {
1795
+ f_defect_level: null,
1796
+ f_device_id: "",
1797
+ f_is_defect: "",
1798
+ f_item_name: "气表品牌",
1799
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1800
+ f_path: "",
1801
+ type: "string"
1802
+ },
1803
+ {
1804
+ f_defect_level: null,
1805
+ f_device_id: "",
1806
+ f_is_defect: "",
1807
+ f_item_name: "进气方向",
1808
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1809
+ f_path: "",
1810
+ type: "string"
1811
+ },
1812
+ {
1813
+ f_defect_level: null,
1814
+ f_device_id: "",
1815
+ f_is_defect: "",
1816
+ f_item_name: "上期表读数",
1817
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1818
+ f_path: "",
1819
+ type: "number"
1820
+ },
1821
+ {
1822
+ f_defect_level: null,
1823
+ f_device_id: "",
1824
+ f_is_defect: "",
1825
+ f_item_name: "表箱号",
1826
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1827
+ f_path: "",
1828
+ type: "string"
1829
+ }
1830
+ ]
1831
+ })
1832
+ }
1833
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1834
+ this.data['device' + this.devices[de].n].forEach(device => {
1835
+ //tag)
1836
+ //tag)
1837
+ /*
1838
+ "累购气量":{"index":8,"type":"number","readonly":true},
1839
+ "累购金额":{"index":8,"type":"number","readonly":true},
1840
+ "字轮读数":{"index":9,"type":"number","checkmust": true},
1841
+ "已用金额":{"index":9,"type":"number","checkmust": true},
1842
+ "剩余气量":{"index":10,"type":"number","checkmust": true},
1843
+ "剩余金额":{"index":10,"type":"number","checkmust": true},
1844
+ "气量异常差值":{"index":11,"type":"number","readonly": true},
1845
+ "金额异常差值":{"index":11,"type":"number","readonly": true}
1846
+ */
1847
+ if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1848
+ if (!this.data.f_collection_type) {
1849
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1850
+ delete this.config['燃气表']['items']['累购气量']
1851
+ delete this.config['燃气表']['items']['已用气量']
1852
+ delete this.config['燃气表']['items']['剩余气量']
1853
+ delete this.config['燃气表']['items']['气量异常差值']
1854
+ device.f_items.push(
1855
+ {
1856
+ f_defect_level: null,
1857
+ f_device_id: "",
1858
+ f_is_defect: "",
1859
+ f_item_name: "初始表底",
1860
+ isshow: false,
1861
+ f_item_value: '',
1862
+ f_path: "",
1863
+ type: "number"
1864
+ },
1865
+ {
1866
+ f_defect_level: null,
1867
+ f_device_id: "",
1868
+ f_is_defect: "",
1869
+ f_item_name: "累购金额",
1870
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
1871
+ f_path: "",
1872
+ type: "number"
1873
+ },
1874
+ {
1875
+ f_defect_level: null,
1876
+ f_device_id: "",
1877
+ f_is_defect: "",
1878
+ f_item_name: "已用金额",
1879
+ f_item_value: null,
1880
+ f_path: "",
1881
+ type: "number"
1882
+ },
1883
+ {
1884
+ f_defect_level: null,
1885
+ f_device_id: "",
1886
+ f_is_defect: "",
1887
+ f_item_name: "剩余金额",
1888
+ f_item_value: null,
1889
+ f_path: "",
1890
+ type: "number"
1891
+ },
1892
+ {
1893
+ f_defect_level: null,
1894
+ f_device_id: "",
1895
+ f_is_defect: "",
1896
+ f_item_name: "金额异常差值",
1897
+ f_item_value: null,
1898
+ f_path: "",
1899
+ type: "number"
1900
+ }
1901
+ )
1902
+ //tag)
1903
+ }
1904
+ } else
1905
+ if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
1906
+ if (!this.data.f_collection_type) {
1907
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1908
+ delete this.config['燃气表']['items']['累购金额']
1909
+ delete this.config['燃气表']['items']['已用金额']
1910
+ delete this.config['燃气表']['items']['剩余金额']
1911
+ delete this.config['燃气表']['items']['金额异常差值']
1912
+ device.f_items.push(
1913
+ {
1914
+ f_defect_level: null,
1915
+ f_device_id: "",
1916
+ f_is_defect: "",
1917
+ f_item_name: "初始表底",
1918
+ isshow: true,
1919
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
1920
+ f_path: "",
1921
+ type: "number"
1922
+ },
1923
+ {
1924
+ f_defect_level: null,
1925
+ f_device_id: "",
1926
+ f_is_defect: "",
1927
+ f_item_name: "累购气量",
1928
+ f_item_value: this.item.f_plan_meters[i].f_total_gas,
1929
+ f_path: "",
1930
+ type: "number"
1931
+ },
1932
+ {
1933
+ f_defect_level: null,
1934
+ f_device_id: "",
1935
+ f_is_defect: "",
1936
+ f_item_name: "已用气量",
1937
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
1938
+ f_path: "",
1939
+ type: "number"
1940
+ },
1941
+ {
1942
+ f_defect_level: null,
1943
+ f_device_id: "",
1944
+ f_is_defect: "",
1945
+ f_item_name: "剩余气量",
1946
+ f_item_value: "",
1947
+ f_path: "",
1948
+ type: "number"
1949
+ },
1950
+ {
1951
+ f_defect_level: null,
1952
+ f_device_id: "",
1953
+ f_is_defect: "",
1954
+ f_item_name: "气量异常差值",
1955
+ f_item_value: null,
1956
+ f_path: "",
1957
+ type: "number"
1958
+ }
1959
+ )
1960
+ //tag)
1961
+ }
1962
+ }
1963
+ })
1964
+ }else if(this.devices[de].device == "燃气表"){
1965
+ //tag
1966
+ this.data['device' + this.devices[de].n].forEach(device => {
1967
+ //tag)
1968
+ if (!this.data.f_collection_type) {
1969
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1970
+ delete this.config['燃气表']['items']['累购金额']
1971
+ delete this.config['燃气表']['items']['已用金额']
1972
+ delete this.config['燃气表']['items']['剩余金额']
1973
+ delete this.config['燃气表']['items']['金额异常差值']
1974
+ device.f_items.push(
1975
+ {
1976
+ f_defect_level: null,
1977
+ f_device_id: "",
1978
+ f_is_defect: "",
1979
+ f_item_name: "初始表底",
1980
+ isshow: true,
1981
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
1982
+ f_path: "",
1983
+ type: "number"
1984
+ },
1985
+ {
1986
+ f_defect_level: null,
1987
+ f_device_id: "",
1988
+ f_is_defect: "",
1989
+ f_item_name: "累购气量",
1990
+ f_item_value: this.item.f_plan_meters[i].f_total_gas,
1991
+ f_path: "",
1992
+ type: "number"
1993
+ },
1994
+ {
1995
+ f_defect_level: null,
1996
+ f_device_id: "",
1997
+ f_is_defect: "",
1998
+ f_item_name: "已用气量",
1999
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
2000
+ f_path: "",
2001
+ type: "number"
2002
+ },
2003
+ {
2004
+ f_defect_level: null,
2005
+ f_device_id: "",
2006
+ f_is_defect: "",
2007
+ f_item_name: "剩余气量",
2008
+ f_item_value: '',
2009
+ f_path: "",
2010
+ type: "number"
2011
+ },
2012
+ {
2013
+ f_defect_level: null,
2014
+ f_device_id: "",
2015
+ f_is_defect: "",
2016
+ f_item_name: "气量异常差值",
2017
+ isshow:false,
2018
+ f_item_value: null,
2019
+ f_path: "",
2020
+ type: "number"
2021
+ }
2022
+ )
2023
+ //tag)
2024
+ }
2025
+ })
2026
+ }
2027
+ }
2028
+ }
2029
+ }
2030
+ }
2031
+ var pardate = {
2032
+ _this:this,
2033
+ tittle:'安检详情',
2034
+ safe:true
2035
+ }
2036
+ // this.$dispatch('gotoson',pardate)
2037
+ //tag
2038
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2039
+ }
2040
+ },
2041
+ watch: {
2042
+ 'row' () {
2043
+ //tag
2044
+ this.copy()
2045
+ }
2046
+ },
2047
+ async ready () {
2048
+ //送气超期功能
2049
+ //await this.isoverDate()
2050
+ this.putDevices()
2051
+ //如果已检,则提取安检单
2052
+ if (this.item.f_state != '未检') {
2053
+ if (this.role == 'inspect' || this.role == 'androidview') {
2054
+ HostApp.__callback__ = this.loaded
2055
+ HostApp.__this__ = this
2056
+ let that = this
2057
+ let value = {}
2058
+ //tag
2059
+ if (this.role == 'inspect') {
2060
+ //tag
2061
+ if (this.item.f_no_checkplan == '无计划安检') {
2062
+ value = this.$androidUtil.path({
2063
+ alias: 'getUserinfomation',
2064
+ data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
2065
+ })
2066
+ } else {
2067
+ value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2068
+ }
2069
+ } else {
2070
+ value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2071
+ }
2072
+ Util.replaceFalse(value)
2073
+ //tag)
2074
+ if (value.data.length != 0) {
2075
+ that.$set('data', value.data[0])
2076
+ //tag)
2077
+ if (this.data.f_collection_type == '按气量') {
2078
+ delete this.config['燃气表']['items']['累购金额']
2079
+ delete this.config['燃气表']['items']['已用金额']
2080
+ delete this.config['燃气表']['items']['剩余金额']
2081
+ delete this.config['燃气表']['items']['金额异常差值']
2082
+ } else if (this.data.f_collection_type == '按金额') {
2083
+ delete this.config['燃气表']['items']['累购气量']
2084
+ delete this.config['燃气表']['items']['已用气量']
2085
+ delete this.config['燃气表']['items']['剩余气量']
2086
+ delete this.config['燃气表']['items']['气量异常差值']
2087
+ }
2088
+ //tag)
2089
+ if (value.data[0].f_devices) {
2090
+ for (let da in that.devices) {
2091
+ if(typeof that.devices[da]=='function'){
2092
+ continue
2093
+ }
2094
+ that.$set('data.device' + that.devices[da].n, [])
2095
+ }
2096
+ value.data[0].f_devices.forEach((item) => {
2097
+ //tag)
2098
+ for (let i in item.f_items) {
2099
+ if(typeof item.f_items[i]=='function'){
2100
+ continue
2101
+ }
2102
+ // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2103
+ // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2104
+ // }
2105
+ for (let de in that.config[item.f_device_type].items) {
2106
+ if(typeof that.config[item.f_device_type].items[de]=='function'){
2107
+ continue
2108
+ }
2109
+ if (item.f_items[i].f_item_name == de) {
2110
+ if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
2111
+ item.f_items[i].f_item_value = []
2112
+ } else {
2113
+ item.f_items[i].f_item_value = ''
2114
+ }
2115
+ }
2116
+ }
2117
+ //tag)
2118
+
2119
+ // if (item.f_items[i].f_item_name=='累购气量'){
2120
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2121
+ // }else if (item.f_items[i].f_item_name=='累购金额'){
2122
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2123
+ // }else if (item.f_items[i].f_item_name=='基表编号'){
2124
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2125
+ // }else if (item.f_items[i].f_item_name=='气表品牌'){
2126
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2127
+ // }else if (item.f_items[i].f_item_name=='进气方向'){
2128
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2129
+ // }else if (item.f_items[i].f_item_name=='气表型号'){
2130
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2131
+ // }else if (item.f_items[i].f_item_name=='表箱号'){
2132
+ // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2133
+ // }
2134
+ // else{
2135
+ for (let j in item.f_items[i].f_item_lists) {
2136
+ if(typeof item.f_items[i].f_item_lists[j]=='function'){
2137
+ continue
2138
+ }
2139
+ //tag)
2140
+ if (item.f_items[i].f_item_value instanceof Array) {
2141
+ item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2142
+ } else {
2143
+ item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2144
+ }
2145
+ }
2146
+ // }
2147
+
2148
+ }
2149
+ for (let de in that.devices) {
2150
+ if(typeof that.devices[de]=='function'){
2151
+ continue
2152
+ }
2153
+ if (that.devices[de].device == item.f_device_type) {
2154
+ that.data['device' + that.devices[de].n].push({
2155
+ f_device_type: item.f_device_type,
2156
+ f_items: item.f_items
2157
+ })
2158
+ //tag)
2159
+ }
2160
+ }
2161
+ })
2162
+ if (this.role == 'androidview') {
2163
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2164
+ Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2165
+ Util.booleanFilter(that.data)
2166
+ }
2167
+ //tag)
2168
+ }
2169
+ } else {
2170
+ //tag
2171
+ this.init()
2172
+ }
2173
+ if(this.parentPage && this.parentPage=='CurrentCreate'){
2174
+ //tag
2175
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2176
+ if (isRecodr) {
2177
+ if (isRecodr=='true') {
2178
+ this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2179
+ // 初始化录音
2180
+ let resse = this.record()
2181
+ }
2182
+ }
2183
+ }
2184
+ //tag
2185
+ var pardate = {
2186
+ _this:this,
2187
+ tittle:'安检详情',
2188
+ safe:true
2189
+ }
2190
+ // this.$dispatch('gotoson',pardate)getImgPath
2191
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2192
+ } else {
2193
+ let that = this
2194
+ let id
2195
+ if (this.role == 'view') {
2196
+ id = this.item.id
2197
+ }
2198
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2199
+ if (respanse.data.length != 0) {
2200
+ that.data = Object.assign(that.data,respanse.data[0])
2201
+ if(respanse.data[0].f_devices) {
2202
+ for (let da in that.devices) {
2203
+ that.$set('data.device' + that.devices[da].n, [])
2204
+ }
2205
+ respanse.data[0].f_devices.forEach((item) => {
2206
+ for (let de in that.devices) {
2207
+ if (that.devices[de].device == item.f_device_type) {
2208
+ that.data['device' + that.devices[de].n].push({
2209
+ f_device_type: item.f_device_type,
2210
+ f_items: item.f_items
2211
+ })
2212
+ }
2213
+ }
2214
+ })
2215
+ }
2216
+ Util.replaceFalse(that.data)
2217
+ Util.booleanFilter(that.data)
2218
+ if(this.role == 'view'){
2219
+ Util.ratifyPics(that.data)
2220
+ }else{
2221
+ Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2222
+ }
2223
+ //tag
2224
+ } else {
2225
+ alert("该安检单可能已不在本地!")
2226
+ this.init()
2227
+ }
2228
+ var pardate = {
2229
+ _this:this,
2230
+ tittle:'安检详情',
2231
+ safe:true
2232
+ }
2233
+ // this.$dispatch('gotoson',pardate)
2234
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2235
+ }
2236
+ ).catch(
2237
+ (respanse) => {
2238
+ alert('查找安检单失败')
2239
+ })
2240
+ }
2241
+ }else{
2242
+ if(this.parentPage && this.parentPage=='CurrentCreate'){
2243
+ //tag
2244
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2245
+ if (isRecodr) {
2246
+ if (isRecodr=='true') {
2247
+ this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2248
+ // 初始化录音
2249
+ let resse = this.record()
2250
+ }
2251
+ }
2252
+ }
2253
+ this.init()
2254
+ }
2255
+ // tbs合并数组
2256
+ // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2257
+ // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2258
+ //
2259
+ // }
2260
+ // }
2261
+ },
2262
+ components: {
2263
+ // 'door-service': DoorService,
2264
+ // 'repair-info': RepairInfo,
2265
+ // 'repair-user-info': RepairUserInfo,
2266
+ // 'outlay': Outlay,
2267
+ // 'fault-all': FaultAll,
2268
+ // 'repair-details':RepairDetails
2269
+ // 'pipeline': Pipeline,
2270
+ // 'device-service': DeviceService,
2271
+ // 'trouble-removal': TroubleRemoval,
2272
+ // 'cooking-utensils': CookingUtensils,
2273
+ // 'repair-matter-info': RepairMatterInfo,
2274
+ // 'first-gas-check': FirstGasCheck,
2275
+ // 'tel-change-matter': TelChangeMatter/
2276
+ },
2277
+ events: {
2278
+ 'tijiao': function () {
2279
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
2280
+ this.confirm()
2281
+ }
2282
+ }
2283
+ }
2284
+ </script>
2285
+ <style lang="less">
2286
+ @import "../../../bootstrap/less/variables.less";
2287
+ .noclickbut {
2288
+ pointer-events: none;
2289
+ }
2290
+ .tab-befor-img (@url) {
2291
+ content: '';
2292
+ background-image: url("@{url}");
2293
+ background-size: 20px;
2294
+ display: inline-block;
2295
+ margin-right: 8px;
2296
+ margin-top: 0.3em;
2297
+ height: 1.3em;
2298
+ width: 1.3em;
2299
+ vertical-align: -35%;
2300
+ }
2301
+
2302
+ @media screen and (min-width: 768px) {
2303
+ .android-repair-order > div > ul a {
2304
+ font-size: @font-size-h2;
2305
+ margin: 0.3em 0;
2306
+ }
2307
+ }
2308
+ .repair-details-class{
2309
+ &::before {
2310
+ .tab-befor-img("../../../assets/huneiweixiu1.png");
2311
+ }
2312
+ }
2313
+ .repair-info-class {
2314
+ &::before {
2315
+ .tab-befor-img("../../../assets/baoxiuxinxi1.png");
2316
+ }
2317
+ }
2318
+ .repair-user-info-class {
2319
+ &::before {
2320
+ .tab-befor-img("../../../assets/jibenxinxi1.png")
2321
+ }
2322
+ }
2323
+
2324
+ .door-service-class {
2325
+ &::before {
2326
+ .tab-befor-img("../../../assets/huneiweixiu1.png")
2327
+ }
2328
+ }
2329
+
2330
+ .pipeline-class {
2331
+ &::before {
2332
+ .tab-befor-img("../../../assets/guandao1.png")
2333
+ }
2334
+ }
2335
+
2336
+ .device-service-class {
2337
+ &::before {
2338
+ .tab-befor-img("../../../assets/shebeiweixiu1.png")
2339
+ }
2340
+ }
2341
+
2342
+ .trouble-removal-class {
2343
+ &::before {
2344
+ .tab-befor-img("../../../assets/shiguchuli.png")
2345
+ }
2346
+ }
2347
+
2348
+ .cooking-utensils-class {
2349
+ &::before {
2350
+ .tab-befor-img("../../../assets/zaoju1.png")
2351
+ }
2352
+ }
2353
+
2354
+ .outlay-class {
2355
+ &::before {
2356
+ .tab-befor-img("../../../assets/feiyong1.png")
2357
+ }
2358
+ }
2359
+
2360
+ .fault-all-class {
2361
+ &::before {
2362
+ .tab-befor-img("../../../assets/guzhanghuizong1.png")
2363
+ }
2364
+ }
2365
+ .photo-write-class {
2366
+ &::before {
2367
+ .tab-befor-img("../../../assets/zaoju.png")
2368
+ }
2369
+ }
2370
+ .delay-apply-class {
2371
+ &::before {
2372
+ .tab-befor-img("../../../assets/yonghubaoxiu.png")
2373
+ }
2374
+ }
2375
+
2376
+ .repair-back-class {
2377
+ &::before {
2378
+ .tab-befor-img("../../../assets/fanhui.png")
2379
+ }
2380
+ }
2381
+ .butt2 {
2382
+ display: inline;
2383
+ float: right;
2384
+ width: 10px;
2385
+ text-align: center;
2386
+ align-items:center;
2387
+ position: absolute;
2388
+ top:50%;
2389
+
2390
+ left:90%;
2391
+ transform: translate(-50%,-50%);
2392
+ }
2393
+ .linesty{
2394
+ display: inline-block;
2395
+ height:1px;
2396
+ width:100%;
2397
+ background:#d0d0d0;
2398
+ overflow:hidden;
2399
+ vertical-align: middle;
2400
+ }
2401
+ .spanboder{
2402
+ border-bottom:2px solid #499edf;
2403
+ padding-bottom: 8px
2404
+ }
2405
+ .app-botton {
2406
+ position:fixed;
2407
+ background: #87b2dd;
2408
+ right:8px;
2409
+ color: #FFF;
2410
+ padding: 8px;
2411
+ text-align: center;
2412
+ font-size: 1.2em;
2413
+ z-index: 10;
2414
+ opacity:0.5;
2415
+ bottom: 50px;
2416
+ margin-top: -10px;
2417
+ height: 40px;
2418
+ }
2419
+ .android-repair-order > div > ul a {
2420
+ font-size: 12px;
2421
+ color: #333333;
2422
+ padding: 13px 16px;
2423
+ }
2424
+ </style>