safecheck-client 4.0.2-52 → 4.0.2-55

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