safecheck-client 4.0.2-65 → 4.0.2-66

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 (489) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +1 -1
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/Widget.vue +13 -13
  49. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  50. package/src/android-bootstrap/less/.csscomb.json +304 -304
  51. package/src/android-bootstrap/less/.csslintrc +19 -19
  52. package/src/android-bootstrap/less/alerts.less +73 -73
  53. package/src/android-bootstrap/less/badges.less +66 -66
  54. package/src/android-bootstrap/less/bootstrap.less +56 -56
  55. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  56. package/src/android-bootstrap/less/button-groups.less +247 -247
  57. package/src/android-bootstrap/less/buttons.less +173 -173
  58. package/src/android-bootstrap/less/carousel.less +269 -269
  59. package/src/android-bootstrap/less/close.less +34 -34
  60. package/src/android-bootstrap/less/code.less +69 -69
  61. package/src/android-bootstrap/less/component-animations.less +33 -33
  62. package/src/android-bootstrap/less/grid.less +84 -84
  63. package/src/android-bootstrap/less/input-groups.less +167 -167
  64. package/src/android-bootstrap/less/jumbotron.less +52 -52
  65. package/src/android-bootstrap/less/labels.less +64 -64
  66. package/src/android-bootstrap/less/list-group.less +141 -141
  67. package/src/android-bootstrap/less/media.less +66 -66
  68. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  69. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  70. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  71. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  72. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  73. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  74. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  75. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  76. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  77. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  78. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  79. package/src/android-bootstrap/less/mixins/image.less +33 -33
  80. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  81. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  82. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  83. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  84. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  85. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  86. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  87. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  88. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  89. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  90. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  91. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  92. package/src/android-bootstrap/less/mixins/size.less +10 -10
  93. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  94. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  95. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  96. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  97. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  98. package/src/android-bootstrap/less/mixins.less +40 -40
  99. package/src/android-bootstrap/less/modals.less +151 -151
  100. package/src/android-bootstrap/less/navbar.less +660 -660
  101. package/src/android-bootstrap/less/navs.less +290 -290
  102. package/src/android-bootstrap/less/normalize.less +424 -424
  103. package/src/android-bootstrap/less/pager.less +76 -76
  104. package/src/android-bootstrap/less/pagination.less +89 -89
  105. package/src/android-bootstrap/less/panels.less +274 -274
  106. package/src/android-bootstrap/less/popovers.less +131 -131
  107. package/src/android-bootstrap/less/print.less +101 -101
  108. package/src/android-bootstrap/less/progress-bars.less +87 -87
  109. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  110. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  111. package/src/android-bootstrap/less/scaffolding.less +161 -161
  112. package/src/android-bootstrap/less/tables.less +262 -262
  113. package/src/android-bootstrap/less/theme.less +291 -291
  114. package/src/android-bootstrap/less/thumbnails.less +36 -36
  115. package/src/android-bootstrap/less/tooltip.less +102 -102
  116. package/src/android-bootstrap/less/type.less +303 -303
  117. package/src/android-bootstrap/less/utilities.less +55 -55
  118. package/src/android-bootstrap/less/variables.less +896 -896
  119. package/src/android-bootstrap/less/wells.less +29 -29
  120. package/src/bootstrap/less/.csscomb.json +304 -304
  121. package/src/bootstrap/less/.csslintrc +19 -19
  122. package/src/bootstrap/less/alerts.less +73 -73
  123. package/src/bootstrap/less/badges.less +66 -66
  124. package/src/bootstrap/less/breadcrumbs.less +26 -26
  125. package/src/bootstrap/less/button-groups.less +247 -247
  126. package/src/bootstrap/less/buttons.less +172 -172
  127. package/src/bootstrap/less/carousel.less +269 -269
  128. package/src/bootstrap/less/close.less +34 -34
  129. package/src/bootstrap/less/code.less +69 -69
  130. package/src/bootstrap/less/component-animations.less +33 -33
  131. package/src/bootstrap/less/dropdowns.less +216 -216
  132. package/src/bootstrap/less/grid.less +84 -84
  133. package/src/bootstrap/less/input-groups.less +167 -167
  134. package/src/bootstrap/less/jumbotron.less +52 -52
  135. package/src/bootstrap/less/labels.less +64 -64
  136. package/src/bootstrap/less/list-group.less +141 -141
  137. package/src/bootstrap/less/media.less +66 -66
  138. package/src/bootstrap/less/mixins/alerts.less +14 -14
  139. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  140. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  141. package/src/bootstrap/less/mixins/buttons.less +69 -69
  142. package/src/bootstrap/less/mixins/center-block.less +7 -7
  143. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  144. package/src/bootstrap/less/mixins/forms.less +90 -90
  145. package/src/bootstrap/less/mixins/gradients.less +59 -59
  146. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  147. package/src/bootstrap/less/mixins/grid.less +122 -122
  148. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  149. package/src/bootstrap/less/mixins/image.less +33 -33
  150. package/src/bootstrap/less/mixins/labels.less +12 -12
  151. package/src/bootstrap/less/mixins/list-group.less +30 -30
  152. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  153. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  154. package/src/bootstrap/less/mixins/opacity.less +8 -8
  155. package/src/bootstrap/less/mixins/pagination.less +24 -24
  156. package/src/bootstrap/less/mixins/panels.less +24 -24
  157. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  158. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  159. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  160. package/src/bootstrap/less/mixins/resize.less +6 -6
  161. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  162. package/src/bootstrap/less/mixins/size.less +10 -10
  163. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  164. package/src/bootstrap/less/mixins/table-row.less +44 -44
  165. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  166. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  167. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  168. package/src/bootstrap/less/mixins.less +40 -40
  169. package/src/bootstrap/less/modals.less +151 -151
  170. package/src/bootstrap/less/navbar.less +660 -660
  171. package/src/bootstrap/less/normalize.less +424 -424
  172. package/src/bootstrap/less/pagination.less +89 -89
  173. package/src/bootstrap/less/panels.less +275 -275
  174. package/src/bootstrap/less/popovers.less +131 -131
  175. package/src/bootstrap/less/print.less +101 -101
  176. package/src/bootstrap/less/progress-bars.less +87 -87
  177. package/src/bootstrap/less/responsive-embed.less +35 -35
  178. package/src/bootstrap/less/responsive-utilities.less +194 -194
  179. package/src/bootstrap/less/scaffolding.less +161 -161
  180. package/src/bootstrap/less/theme.less +291 -291
  181. package/src/bootstrap/less/thumbnails.less +36 -36
  182. package/src/bootstrap/less/tooltip.less +102 -102
  183. package/src/bootstrap/less/type.less +303 -303
  184. package/src/bootstrap/less/utilities.less +55 -55
  185. package/src/bootstrap/less/wells.less +29 -29
  186. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  187. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  188. package/src/components/FileUpload.vue +696 -696
  189. package/src/components/Hello.vue +39 -39
  190. package/src/components/LeftTree.vue +27 -27
  191. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  192. package/src/components/android/AddPlanItem.vue +447 -447
  193. package/src/components/android/AddPlanItemYy.vue +451 -451
  194. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  195. package/src/components/android/AndroidNotifiedDeal.vue +417 -417
  196. package/src/components/android/AttendanceTally.vue +116 -116
  197. package/src/components/android/Blank.vue +10 -10
  198. package/src/components/android/CheckUnplanPage.vue +56 -56
  199. package/src/components/android/Checker.vue +12 -12
  200. package/src/components/android/CheckerAnnual.vue +81 -81
  201. package/src/components/android/CheckerAvarta.vue +82 -82
  202. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  203. package/src/components/android/DailyworkloadQuery.vue +473 -473
  204. package/src/components/android/Devices.vue +327 -327
  205. package/src/components/android/Devicesm.vue +327 -327
  206. package/src/components/android/EquipmentInspection.vue +348 -348
  207. package/src/components/android/FootprintMap.vue +120 -120
  208. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  209. package/src/components/android/MasterMain.vue +77 -77
  210. package/src/components/android/Menu.vue +132 -132
  211. package/src/components/android/PaperAlarm.vue +85 -85
  212. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  213. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  214. package/src/components/android/PhoneRecordInfo.vue +113 -113
  215. package/src/components/android/PhoneSellInfo.vue +113 -113
  216. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  217. package/src/components/android/PlumberAnnual.vue +83 -83
  218. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  219. package/src/components/android/PlumberMonthly.vue +84 -84
  220. package/src/components/android/PostMap.vue +83 -83
  221. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  222. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  223. package/src/components/android/QueryCheckHistory.vue +122 -122
  224. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  225. package/src/components/android/RepairMain.vue +60 -60
  226. package/src/components/android/Repairman.vue +12 -12
  227. package/src/components/android/SafePlanItem.vue +509 -509
  228. package/src/components/android/StationMaster.vue +12 -12
  229. package/src/components/android/UploadPage.vue +232 -232
  230. package/src/components/android/examples/SafeListExamples.vue +296 -296
  231. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  232. package/src/components/android/recheck/Recheck.vue +402 -402
  233. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  234. package/src/components/checkplan/checkmsg.vue +459 -459
  235. package/src/components/defect/DefectList.vue +507 -507
  236. package/src/components/defect/DefectListWeixiu.vue +484 -484
  237. package/src/components/defects/DefectModal.vue +101 -101
  238. package/src/components/defects/DevicesAndItem.vue +39 -39
  239. package/src/components/filialCircle/CircleList.vue +139 -139
  240. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  241. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  242. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  243. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  244. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  245. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  246. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  247. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  248. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  249. package/src/components/map/PersonTrack.vue +226 -226
  250. package/src/components/notice/NoticeForm.vue +100 -100
  251. package/src/components/notice/NoticeIssue.vue +20 -20
  252. package/src/components/paper/PicViewer.vue +18 -18
  253. package/src/components/paper/RegionalList.vue +220 -220
  254. package/src/components/pc/AnnouncementPC.vue +524 -524
  255. package/src/components/pc/DefectDeal.vue +1012 -1012
  256. package/src/components/pc/DefectList.vue +742 -742
  257. package/src/components/pc/DefectMaterialLook.vue +98 -98
  258. package/src/components/pc/DeviceChange.vue +1068 -1068
  259. package/src/components/pc/PaperDefectMain.vue +905 -905
  260. package/src/components/pc/RoleSelectorDep.vue +166 -166
  261. package/src/components/pc/SafeVisitInfo.vue +261 -261
  262. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  263. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  264. package/src/components/phonestate/PostMap.vue +82 -82
  265. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  266. package/src/components/report/HiddenSituation.vue +165 -165
  267. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  268. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  269. package/src/components/rongcheng/DefectList.vue +560 -560
  270. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  271. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  272. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  273. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  274. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  275. package/src/components/shaoguan/DefectList.vue +473 -473
  276. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  277. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  278. package/src/components/userfile/MeterFile.vue +145 -145
  279. package/src/components/userfile/MeterModify.vue +46 -46
  280. package/src/components/userfile/SecurityAudit.vue +243 -243
  281. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  282. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  283. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  284. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  285. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  286. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  287. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  288. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  289. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  290. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  291. package/src/filiale/bayan/android/Edit.vue +132 -132
  292. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  293. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  294. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  295. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  296. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  297. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  298. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  299. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  300. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  301. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  302. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  303. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  304. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  305. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  306. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  307. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  308. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  309. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  310. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  311. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  312. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  313. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  314. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  315. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  316. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  317. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  318. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  319. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  320. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  321. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  322. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -722
  323. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -521
  324. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +463 -463
  325. package/src/filiale/jinhong/pc/CheckSearchUser.vue +3 -0
  326. package/src/filiale/jinhong/pc/PaperList.vue +3 -0
  327. package/src/filiale/jinhong/pc/PlanManage.vue +933 -933
  328. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  329. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  330. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  331. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  332. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  333. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  334. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  335. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  336. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  337. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  338. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  339. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  340. package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
  341. package/src/filiale/libo/android.js +15 -15
  342. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  343. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  344. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  345. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  346. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  347. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  348. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2462 -2445
  349. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  350. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -52
  351. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2028 -2028
  352. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2051
  353. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1289 -1289
  354. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -262
  355. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  356. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  357. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  358. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  359. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  360. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  361. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  362. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  363. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  364. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  365. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  366. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  367. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  368. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  369. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  370. package/src/filiale/qingjian/pc.js +15 -15
  371. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  372. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  373. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  374. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  375. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  376. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  377. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  378. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  379. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  380. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  381. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  382. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  383. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  384. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  385. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  386. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  387. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  388. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  389. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  390. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  391. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  392. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  393. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  394. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  395. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  396. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  397. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  398. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  399. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  400. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  401. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  402. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  403. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  404. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  405. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  406. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  407. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  408. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  409. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  410. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  411. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  412. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  413. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  414. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  415. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  416. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  417. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  418. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  419. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  420. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  421. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  422. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  423. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  424. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  425. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  426. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  427. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  428. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  429. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  430. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  431. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  432. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  433. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  434. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  435. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  436. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  437. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  438. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  439. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  440. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  441. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  442. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  443. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  444. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -814
  445. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -206
  446. package/src/filiale/xinliansihui/pc.js +13 -13
  447. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  448. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  449. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  450. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  451. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  452. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  453. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  454. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  455. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  456. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  457. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  458. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  459. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  460. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  461. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  462. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  463. package/src/filiale/yunchengminsheng/android.js +15 -15
  464. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  465. package/src/filiale/yunchengminsheng/pc.js +15 -15
  466. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  467. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  468. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  469. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  470. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  471. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  472. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  473. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  474. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  475. package/src/main.js +32 -33
  476. package/src/plugins/LoadData.js +10 -10
  477. package/src/plugins/LoadParams.js +24 -24
  478. package/src/safecheck-android.js +328 -328
  479. package/src/safecheck.js +927 -927
  480. package/src/stores/wxconfig.js +10 -10
  481. package/src/utils/getNowDate.js +33 -33
  482. package/test/e2e/custom-assertions/elementCount.js +26 -26
  483. package/test/e2e/nightwatch.conf.js +40 -40
  484. package/test/e2e/runner.js +30 -30
  485. package/test/e2e/specs/test.js +13 -13
  486. package/test/unit/.eslintrc +5 -5
  487. package/test/unit/TestUtil.js +62 -62
  488. package/test/unit/context.html +20 -20
  489. package/test/unit/index.js +13 -13
@@ -1,1509 +1,1509 @@
1
- <template>
2
- <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
- <div class="col-md-12 col-sm-12 col-xs-12">
7
- <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
- </div>
9
- </div>
10
- </div>
11
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
- <div class="text-center">
13
- <label class="font">总体安检照片请依次拍摄:</label>
14
- </div>
15
- <div class="col-md-12 col-sm-12 col-xs-12">
16
- <ol class="showIi">
17
- <li>1.燃气设施全景</li>
18
- <li>2.燃气表照片</li>
19
- <li>3.灶具照片</li>
20
- <li>4.其他照片</li>
21
- </ol>
22
- </div>
23
- </div>
24
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
- <label class="text-left font">总体安检照片</label>
26
-
27
- <div class="auto" :class="style__">
28
- <div class="panel" style="padding: 10px 10px 5px 10px;">
29
- <div class="panel-body panel-self"
30
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
31
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
32
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
33
- v-for="(index,img) in paper.f_overall_imgs">
34
- <android-img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></android-img-self>
35
- <img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
36
- style="width: 15px;margin-top: -80px" alt="">
37
- </div>
38
- </div>
39
- <div class="row text-right div-photo">
40
- <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">
41
- 拍照
42
- </button>
43
- </div>
44
- </div>
45
- </div>
46
- </div>
47
- </div>
48
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
49
- <label class="text-left font">总体隐患照片</label>
50
- <div class="auto" :class="style__">
51
- <div class="panel" style="padding: 10px 10px 5px 10px;">
52
- <div class="panel-body panel-self"
53
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
54
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
55
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
56
- <android-img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></android-img-self>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- </div>
62
- </div>
63
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
64
- <div class="text-center">
65
- <label class="font">隐患汇总:</label>
66
- </div>
67
- <div class="col-md-12 col-sm-12 col-xs-12">
68
- <ol class="showIi">
69
- <li v-for="item in defectReason">{{ item.deviceitem }}</li>
70
- </ol>
71
- </div>
72
- </div>
73
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
74
- <div class="text-center">
75
- <label class="font">整改建议汇总:</label>
76
- </div>
77
- <div class="col-md-12 col-sm-12 col-xs-12">
78
- <ol class="showIi">
79
- <li v-for="item in defectToolTip">{{ item }}</li>
80
- </ol>
81
- </div>
82
- </div>
83
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
84
- <input type="checkbox" v-model="paper.f_read_instructions"/><label class="text-left font">我已阅读须知内容</label>
85
-
86
- </div>
87
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
88
- <label class="text-left font">用户签名</label>
89
- <div class="auto">
90
- <div class="panel">
91
- <div class="panel-body panel-self"
92
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
93
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
94
- <div class="col-sm-4">
95
- <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150"/>
96
- </div>
97
- </div>
98
- <div class="row text-right div-photo">
99
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
100
- </div>
101
- </div>
102
- </div>
103
- </div>
104
- </div>
105
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
106
- <label>请输入超期原因:</label><br/>
107
- <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
108
- </div>
109
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-show="showbacklist=='是'">
110
- <div class="col-xs-6 col-sm-6">
111
- <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label
112
- class="text-left font">限制该用户购气</label>
113
- </div>
114
- <div class="col-xs-6 col-sm-6">
115
- <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label
116
- class="text-left font">取消该用户购气</label>
117
- </div>
118
- </div>
119
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__"
120
- v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
121
- <div class="col-xs-12 col-sm-12">
122
- <input type="checkbox" v-model="paper.f_gas_guidelines"/><label class="text-left font">天然气安全使用须知</label>
123
- </div>
124
- <div class="col-xs-12 col-sm-12">
125
- <input type="checkbox" v-model="paper.f_safety_warning"/><label class="text-left font">天然气室内使用安全警示</label>
126
- </div>
127
- <div class="col-xs-12 col-sm-12">
128
- <input type="checkbox" v-model="paper.f_gas_manual"/><label class="text-left font">安全用气手册</label>
129
- </div>
130
- </div>
131
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
132
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
133
- <input type="checkbox" v-model="paper.f_defect_notified" class="showIi"/>安检通知书/隐患整改通知书
134
- </div>
135
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
136
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
137
- <button type="button" @click="print()">打印隐患整改单</button>
138
- </div>
139
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
140
- <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
141
- <div class="auto">
142
- <div class="panel" style="padding: 10px 10px 5px 10px;">
143
- <div class="panel-body panel-self"
144
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
145
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
146
- <div class="col-sm-4">
147
- <android-img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
148
- <div class="row text-right div-photo">
149
- <button type="button" name="button" class="btn btn-primary btn-photo"
150
- @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照
151
- </button>
152
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
153
- @click="delfile('f_notified_path', this.paper.f_notified_path)"
154
- style="width: 25%;"/>
155
-
156
- </div>
157
- </div>
158
- <div class="col-sm-4">
159
- <android-img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
160
- <div class="row text-right div-photo">
161
- <button type="button" name="button" class="btn btn-primary btn-photo"
162
- @click="takePic('f_notified1_path', '安检通知书/隐患整改通知书照片')">拍照
163
- </button>
164
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
165
- @click="delfile('f_notified1_path', this.paper.f_notified1_path)"
166
- style="width: 25%;"/>
167
-
168
- </div>
169
- </div>
170
- <div class="col-sm-4">
171
- <android-img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
172
- <div class="row text-right div-photo">
173
- <button type="button" name="button" class="btn btn-primary btn-photo"
174
- @click="takePic('f_notified2_path', '安检通知书/隐患整改通知书照片')">拍照
175
- </button>
176
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
177
- @click="delfile('f_notified2_path', this.paper.f_notified2_path)"
178
- style="width: 25%;"/>
179
-
180
- </div>
181
- </div>
182
- </div>
183
-
184
-
185
- </div>
186
- </div>
187
- </div>
188
- </div>
189
- </div>
190
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
191
- <div class="row">
192
- <label class="text-left">请对我们的服务做出评价:</label>
193
- </div>
194
- <div class="col-xs-4 col-sm-4" v-for="item in radios">
195
- <input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked'
196
- @click="check(item.value)" type="radio">{{ item.label }}
197
- </div>
198
-
199
- <!--<div class="col-sm-4">-->
200
- <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
201
- <!--<radio value="满意">满意</radio>-->
202
- <!--<radio value="基本满意">基本满意</radio>-->
203
- <!--<radio value="不满意">不满意</radio>-->
204
- <!--</radio-group>-->
205
- <!--</div>-->
206
- </div>
207
-
208
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
209
- <label class="text-left font">反馈录音:</label>
210
- <div class="col-md-12 col-sm-12 col-xs-12">
211
- <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
212
- <img src="../../../assets/录音.png" style="width: 14%;">
213
- <span v-if="!paper.f_recording1_path">开始录音</span>
214
- <span v-if="paper.f_recording1_path">已录音</span>
215
- </button>
216
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" style="width: 15px;" :class="style__"
217
- @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"/>
218
- </div>
219
- </div>
220
-
221
- <div v-if="false">
222
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
223
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button"
224
- v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') "
225
- class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存
226
- </button>
227
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button"
228
- v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')"
229
- class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检
230
- </button>
231
- </div>
232
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
233
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button"
234
- v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')"
235
- class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper">上传
236
- </button>
237
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%"
238
- v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled"
239
- class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修
240
- </button>
241
- </div>
242
- </div>
243
-
244
- </div>
245
- </form>
246
- <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
247
- <!-- <div slot="modal-header" class="modal-header">-->
248
- <!-- <h4 class="modal-title">-->
249
- <!-- 安检转维修-->
250
- <!-- </h4>-->
251
- <!-- </div>-->
252
- <!-- <div slot="modal-body" class="modal-body">-->
253
- <!-- <div v-if="showrepair">-->
254
- <!-- <div class="row">-->
255
- <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
256
- <!-- <div class="col-xs-8 col-md-8">-->
257
- <!-- <label v-for="handling1 in handling" >-->
258
- <!-- <input type="radio"-->
259
- <!-- v-model="meading"-->
260
- <!-- value="{{handling1.label}}">-->
261
- <!-- {{handling1.label}}-->
262
- <!-- </label>-->
263
- <!-- </div>-->
264
- <!-- </div>-->
265
- <!-- <div class="row" v-if="meading == '转站点'">-->
266
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
267
- <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
268
- <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
269
- <!-- <div class="col-xs-8 col-md-8">-->
270
- <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
271
- <!-- </right-tree>-->
272
- <!-- </div>-->
273
- <!-- </div>-->
274
-
275
- <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
276
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
277
- <!-- <div class="col-xs-8">-->
278
- <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
279
- <!-- :options='f_repair_person' placeholder='请选择维修员'-->
280
- <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
281
- <!-- </div>-->
282
-
283
- <!-- </div>-->
284
- <!-- <div class="row" style="margin-top: 6px">-->
285
- <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
286
- <!-- <div class="col-xs-8 col-md-8">-->
287
- <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
288
- <!-- :options='repairstypes' placeholder='报修类型'-->
289
- <!-- close-on-select>-->
290
- <!-- </v-select>-->
291
- <!-- </div>-->
292
- <!-- </div>-->
293
-
294
- <!-- <div class="row" style="margin-top: 6px">-->
295
- <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
296
- <!-- <div class="col-xs-8 col-md-8">-->
297
- <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
298
- <!-- </div>-->
299
-
300
- <!-- </div>-->
301
-
302
- <!-- </div>-->
303
- <!-- <div v-if="!showrepair">-->
304
- <!-- 暂无隐患设备信息-->
305
- <!-- </div>-->
306
- <!-- </div>-->
307
- <!-- <div slot="modal-footer" class="modal-footer">-->
308
- <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
309
- <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
310
- <!-- </div>-->
311
- <!-- </modal>-->
312
- <!--拉黑框-->
313
- <modal :show.sync="showmodel" v-ref:modal>
314
- <div slot="modal-header" class="modal-header">
315
- <h4 class="modal-title">
316
- 限制用户购气
317
- </h4>
318
- </div>
319
- <div slot="modal-body" class="modal-body">
320
- <!-- <div class="row" style="margin-top: 6px">-->
321
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
322
- <!-- </div>-->
323
- <div class="row" style="margin-top: 6px">
324
- <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因">
325
- </textarea>
326
- </div>
327
- </div>
328
- <div slot="modal-footer" class="modal-footer">
329
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
330
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
331
- </div>
332
- </modal>
333
-
334
- <modal :show.sync="showmodelthree" v-ref:modal>
335
- <div slot="modal-header" class="modal-header">
336
- <h4 class="modal-title">
337
- 取消限制用户购气
338
- </h4>
339
- </div>
340
- <div slot="modal-body" class="modal-body">
341
- <!-- <div class="row" style="margin-top: 6px">-->
342
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
343
- <!-- </div>-->
344
- <div class="row" style="margin-top: 6px">
345
- <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;"
346
- placeholder="请输入取消限制用户购气原因">
347
- </textarea>
348
- </div>
349
- </div>
350
- <div slot="modal-footer" class="modal-footer">
351
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
352
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
353
- </div>
354
- </modal>
355
- </template>
356
-
357
- <script>
358
- import Vue from 'vue'
359
- import * as Util from '../../Util'
360
- import {HttpResetClass} from 'vue-client'
361
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
362
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
363
- import co from 'co'
364
-
365
- // let getRepairParam = function * (self){
366
- // let data = {
367
- // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
368
- // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
369
- // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
370
- // }, user: self.user, callObj: self.callObj
371
- // }
372
- // if(self.$parent.$parent.meading == '转维修员'){
373
- // data.toRepair = '一级派单'
374
- // }
375
- // data.$parent.$parent.model.f_attendant = data.loginUser.name
376
- // ////tag
377
- // ////tag
378
- // let res
379
- // let errString = self.$parent. $parent.errorVerify()
380
- // if(errString){
381
- // ////tag
382
- // if (Vue.android)
383
- // self.undo()
384
- // this.$showMessage(errString)
385
- // return
386
- // } else {
387
- // if(self.role == 'inspect'){
388
- // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
389
- // this.$showMessage("请选择维修员!")
390
- // return
391
- // }
392
- // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
393
- // HostApp.alert()
394
- // this.$showMessage("请选择站点!")
395
- // return
396
- // }
397
- // if(self.$parent.$parent.model.f_repairtype == ''){
398
- // this.$showMessage("请选择报修类型!")
399
- // return
400
- // }
401
- // ////tag)
402
- // let checkResult = '正常'
403
- // let options = [{"data": "已处理"},{"data": "未处理"}]
404
- // let value = ''
405
- // let codata = JSON.parse(JSON.stringify(self.paper))
406
- // for(let device in codata){
407
- // ////tag)
408
- // let f_device_type
409
- // if(device.startsWith("device")){
410
- // for(let item in codata[device]) {
411
- // if(codata[device].length > 1 ){
412
- // let j = Number.parseInt(item)+1
413
- // f_device_type = `${codata[device][item].f_device_type}${j}`
414
- // }else{
415
- // f_device_type = codata[device][item].f_device_type
416
- // }
417
- // // ////tag
418
- // let details = []
419
- // for(let i in codata[device][item].f_items){
420
- // let items = codata[device][item].f_items[i]
421
- // ////tag
422
- // if(items.f_is_defect == true || items.f_is_defect == 'true'){
423
- // checkResult = '有隐患'
424
- // ////tag
425
- // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
426
- // ////tag)
427
- // self.$set('detail.f_defect_id', res.data[0].id)
428
- // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
429
- // self.$set('detail.type',items.type)
430
- // self.$set('detail.options',options)
431
- // details.push(JSON.parse(JSON.stringify(self.detail)))
432
- // }
433
- // if(items.type == 'selector'){
434
- // items.selected = ''
435
- // }
436
- // self.detail = {}
437
- // }
438
- // ////tag
439
- // self.$set('defectDevice.f_type',f_device_type)
440
- // self.$set('defectDevice.details',details)
441
- // if(self.defectDevice.details.length >0 ){
442
- // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
443
- // }
444
- // self.defectDevice = {}
445
- // ////tag
446
- // }
447
- // }
448
- // }
449
- // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
450
- //
451
- //
452
- // ////tag)
453
- // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
454
- // ////tag
455
- // ////tag
456
- // ////tag
457
- // if(res.code == 200){
458
- // self.$parent.$parent.isSafeCheckToRepair = true
459
- // self.undo()
460
- // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
461
- // ////tag
462
- // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
463
- // ////tag
464
- // if(ret.data.code ==200){
465
- // ////tag
466
- // self.$parent.$parent.$back()
467
- // }else{
468
- // self.$showMessage('安检转维修失败!')
469
- // }
470
- // }).catch(v=>{
471
- // ////tag)
472
- // self.$showMessage('安检转维修失败!')
473
- // })
474
- // }else{
475
- // self.$showMessage('安检转维修失败!')
476
- // }
477
- // }
478
- // }
479
- // }
480
-
481
-
482
- // let getRepairs = async function(self,url) {
483
- // // 获取配置信息
484
- // try {
485
- // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
486
- // let repairs =[]
487
- // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
488
- // res.data.forEach((item) => {
489
- // repairs.push({label: item.name, value: item})
490
- // })
491
- // self.f_repair_person = repairs
492
- // if(self.$parent.$parent.role == 'inspect'){
493
- // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
494
- // if(res.code == 200){
495
- // self.$parent.$parent.user = res.data[0]
496
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
497
- // }
498
- // }else{
499
- // ////tag
500
- // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
501
- // ////tag
502
- // if(res.data.length != 0){
503
- // self.$parent.$parent.user = res.data[0]
504
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
505
- // }
506
- // })
507
- // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
508
- // }
509
- // } catch (error) {
510
- // ////tag
511
- // }
512
- // }
513
-
514
- export default {
515
- title: '用户反馈',
516
- data() {
517
- return {
518
- defectImgs: [],
519
- defectToolTip: [],
520
- defectReason: [],
521
- images: [],
522
- showmodelthree: false,
523
- isneedDate: this.$parent.$parent.isneedDate,
524
- plan: this.$parent.$parent.item,
525
- meading: this.$parent.$parent.meading,
526
- paper: this.$parent.$parent.data,
527
- printContent: [],
528
- upload_state: this.$parent.$parent.item.f_upload_state,
529
- enabled: false,//控制限制购气是否可选
530
- deleteenabled: false,
531
- showmodel: false,
532
- showbacklist: '是',
533
- backlistisselect: false,
534
- deletebacklistisselect: false,
535
- radios: [
536
- {
537
- label: '满意',
538
- value: 0,
539
- isChecked: false,
540
- },
541
- {
542
- label: '基本满意',
543
- value: 1,
544
- isChecked: false,
545
- },
546
- {
547
- label: '不满意',
548
- value: 2,
549
- isChecked: false,
550
- },
551
- ],
552
- repairitems: [],
553
- repairstypes: this.$appdata.getParam('报修类型'),
554
- // f_repair_person: this.readRepair(),
555
- showrepair: false,
556
- safeCheckToRepair: '',
557
- showCheckToRepair: false,
558
- userid: '',
559
- source:
560
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
561
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
562
- isback: false,
563
- defectDevice: {},
564
- detail: {},
565
- callObj: null,
566
- user: {},
567
- role: this.$parent.$parent.role,
568
- handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
569
- Url: this.$androidUtil.getProxyUrl(),
570
- cause: "",
571
- deletecause: "",
572
- isRecodr: "false", //单值参数,为true则是开启全程录音
573
- }
574
- },
575
- props: ['idx'],
576
- components: {
577
- RadioGroup,
578
- Radio
579
- },
580
- methods: {
581
- timeSet(val) {
582
- //////tag
583
- if (!val) {
584
- return
585
- }
586
- let time = new Date(val).getTime()
587
- let time2 = new Date().getTime()
588
- if (time2 > time) {
589
- return true
590
- }
591
- },
592
- // async isoverDate(){
593
- // ////tag
594
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
595
- // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
596
- // }
597
- // })
598
- // this.isneedDate=res.data[0]["f_subscribe_date"]
599
- // ////tag
600
- // },
601
- check(index) {
602
- ////tag
603
- // 先取消所有选中项
604
- for (let item of this.radios) {
605
- item.isChecked = false;
606
- }
607
- //再设置当前点击项选中
608
- this.paper.f_client_evaluation = this.radios[index].label;
609
- // 设置值,以供传递
610
- this.radios[index].isChecked = true;
611
- ////tag;
612
- },
613
- getSignValue(fileName) {
614
- this.f_signname = fileName
615
- },
616
- cameraCallBack(prop, fileName) {
617
- if (prop == 'f_overall_path') {
618
- let f_overall_path = fileName + '?' + Math.random()
619
- HostApp.__this__.paper.f_overall_imgs.push({
620
- f_overall_path: f_overall_path
621
- })
622
- } else {
623
- HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
624
- }
625
- HostApp.__callback__ = null
626
- HostApp.__this__ = null
627
- },
628
- takePic(prop, title, index) {
629
- HostApp.__callback__ = this.cameraCallBack
630
- HostApp.__this__ = this
631
- ////tag
632
- ////tag
633
- let fileName
634
- if (prop == 'f_overall_path') {
635
- if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
636
- fileName = Util.guid() + '-' + prop + '.jpg'
637
- } else {
638
- fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
639
- }
640
- } else {
641
- if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
642
- fileName = Util.guid() + '-' + prop + '.jpg'
643
- } else {
644
- fileName = Util.getFileName(this.paper[prop])
645
- }
646
- }
647
- let jingweidu = ''
648
- if (this.$parent.$parent.is_has_jingweidu == 'true'){
649
- const obj = HostApp.getGpsDetailAddress()
650
- jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
651
- }
652
- HostApp._open_a_page({
653
- type: 'boomerang',
654
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
655
- param: {
656
- file: fileName,
657
- requestCode: 111,
658
- diaphaneity: 1000,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
661
- +jingweidu
662
- }
663
- })
664
- },
665
- amrCallBack(fileName) {
666
- HostApp.__this__.$set('paper.f_recording1_path', fileName)
667
- HostApp.__callback__ = null
668
- HostApp.__this__ = null
669
- },
670
- record() {
671
- if (this.$parent.$parent.role != 'inspect') {
672
- if (this.paper.f_recording1_path != '') {
673
- window.location = this.paper.f_recording1_path
674
- }
675
- } else {
676
- HostApp.__callback__ = this.amrCallBack
677
- HostApp.__this__ = this
678
- let fileName
679
- if (!this.paper.f_recording1_path) {
680
- fileName = Util.guid() + '.amr'
681
- } else {
682
- fileName = Util.getFileName(this.paper.f_recording1_path)
683
- }
684
- HostApp._open_a_page({
685
- type: 'boomerang',
686
- page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
687
- param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
688
- })
689
- }
690
- },
691
- // 签名回调
692
- signCallback(prop, fileName) {
693
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
694
- HostApp.__this__.$set('paper.f_sign_path', fileName)
695
- HostApp.__callback__ = null
696
- HostApp.__this__ = null
697
- },
698
- // 用户签名
699
- sign() {
700
- if (!this.paper.f_read_instructions) {
701
- this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
702
- return
703
- }
704
- this.delAudioFile('f_sign_path', this.paper.f_sign_path)
705
- let prop = 'f_sign_path'
706
- let idx = 'aofeng'
707
- let fileName
708
- if (!this.paper.f_sign_path) {
709
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
710
- } else {
711
- fileName = Util.getFileName(this.paper.f_sign_path)
712
- }
713
- HostApp.__callback__ = this.signCallback
714
- HostApp.__this__ = this
715
- HostApp.getSignature({
716
- file: fileName,
717
- requestCode: 111,
718
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
719
- })
720
- },
721
- delfile(prop, fileName, index) {
722
- if (fileName == Vue.nopic)
723
- return
724
- else {
725
- if (prop == 'f_overall_path') {
726
- this.paper.f_overall_imgs.splice(index, 1)
727
- HostApp.delfile(fileName)
728
- } else {
729
- HostApp.delfile(fileName)
730
- this.paper[prop] = Vue.nopic
731
- }
732
- }
733
- },
734
- delAudioFile(prop, fileName) {
735
- if (!fileName)
736
- return
737
- else {
738
- HostApp.delfile(fileName)
739
- this.paper[prop] = null
740
- }
741
- },
742
- //获取打印用户信息
743
- getUser() {
744
- if (this.paper.f_user_name == undefined)
745
- this.paper.f_user_name = ''
746
- this.printContent.push({
747
- type: 3,
748
- text: '用户名称:' + this.paper.f_user_name,
749
- fontsize: 2,
750
- isbold: false,
751
- align: 'left'
752
- })
753
- if (this.paper.f_userinfo_code == undefined)
754
- this.paper.f_userinfo_code = ''
755
- this.printContent.push({
756
- type: 3,
757
- text: '用户编号:' + this.paper.f_userinfo_code,
758
- fontsize: 2,
759
- isbold: false,
760
- align: 'left'
761
- })
762
- if (this.paper.f_address == undefined)
763
- this.paper.f_address = ''
764
- this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
765
- if (this.paper.f_user_phone == undefined)
766
- this.paper.f_user_phone = ''
767
- this.printContent.push({
768
- type: 3,
769
- text: '电话:' + this.paper.f_user_phone,
770
- fontsize: 2,
771
- isbold: false,
772
- align: 'left'
773
- })
774
- },
775
- verify() {
776
- let hasError = this.$parent.$parent.verifyUser()
777
- if (hasError)
778
- return hasError
779
- hasError = this.$parent.$parent.verifyDevices()
780
- if (hasError)
781
- return hasError
782
- },
783
- print() {
784
- let errString = this.verify()
785
- if (errString) {
786
- ////tag
787
- if (Vue.android)
788
- this.$showMessage(errString)
789
- return
790
- }
791
- // 文本
792
- let templatename = '安检结果单'
793
- if (Vue.config.safecheck != undefined) {
794
- if (Vue.config.safecheck.ApproveConfig != undefined) {
795
- if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
796
- templatename = Vue.config.safecheck.ApproveConfig.templatename
797
- }
798
- }
799
- }
800
- let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
801
- let feedPageHead = {type: 4, value: 2, unit: 'line'}
802
- let feedPageEnd = {type: 4, value: 4, unit: 'line'}
803
- this.printContent.push(textHead)
804
- this.printContent.push(feedPageHead)
805
- this.getUser()
806
- this.getDefect()
807
- this.getCheck()
808
- this.printContent.push(feedPageEnd)
809
- let arrstr = JSON.stringify(this.printContent)
810
- ////tag
811
- this.$androidUtil.print(arrstr)
812
- this.$set('printContent', [])
813
- },
814
- //打印安检信息
815
- getCheck() {
816
- let telephone = '96777'
817
- if (Vue.config.safecheck != undefined) {
818
- if (Vue.config.safecheck.ApproveConfig != undefined) {
819
- if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
820
- telephone = Vue.config.safecheck.ApproveConfig.checkphone
821
- }
822
- }
823
- }
824
- this.printContent.push({
825
- type: 3,
826
- text: '*******************************',
827
- fontsize: 3,
828
- isbold: false,
829
- align: 'center'
830
- })
831
- this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
832
- this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
833
- this.printContent.push({
834
- type: 3,
835
- text: '安检时间:' + this.getNowFormatDate(),
836
- fontsize: 2,
837
- isbold: false,
838
- align: 'left'
839
- })
840
- this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
841
- this.printContent.push({type: 4, value: 4, unit: 'line'})
842
- },
843
-
844
- getDefect() {
845
- let showmore = false
846
- if (Vue.config.safecheck != undefined) {
847
- if (Vue.config.safecheck.ApproveConfig != undefined) {
848
- if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
849
- showmore = Vue.config.safecheck.ApproveConfig.showmore
850
- }
851
- }
852
- }
853
-
854
- let backData = this.$parent.$parent.getAllDefect()
855
- // 对隐患信息进行遍历
856
- let res = JSON.parse(backData.f_defect_content)
857
- this.printContent.push({
858
- type: 3,
859
- text: '安检结果:' + res.result,
860
- fontsize: 2,
861
- isbold: false,
862
- align: 'left'
863
- })
864
- this.printContent.push({
865
- type: 3,
866
- text: '*******************************',
867
- fontsize: 3,
868
- isbold: false,
869
- align: 'center'
870
- })
871
-
872
-
873
- if (showmore) {
874
- //全部打印
875
- for (let dev in this.$parent.$parent.config) {
876
- for (let device in backData) {
877
- if (device.startsWith("device")) {
878
- for (let item in backData[device]) {
879
- //遍历结果
880
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
881
- let error = true
882
- for (let i in backData[device][item].f_items) {
883
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
884
- error = false
885
- }
886
- }
887
- if (error) {
888
- this.printContent.push({
889
- type: 3,
890
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
891
- fontsize: 2,
892
- isbold: false,
893
- align: 'left'
894
- })
895
- } else {
896
- this.printContent.push({
897
- type: 3,
898
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
899
- fontsize: 2,
900
- isbold: true,
901
- align: 'left'
902
- })
903
- }
904
-
905
- for (let i in backData[device][item].f_items) {
906
- if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
907
- this.printContent.push({
908
- type: 3,
909
- text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
910
- fontsize: 2,
911
- isbold: false,
912
- align: 'left'
913
- })
914
- }
915
- }
916
- this.printContent.push({type: 4, value: 2, unit: 'line'})
917
- }
918
- }
919
- }
920
- }
921
- }
922
-
923
- for (let dev in this.$parent.$parent.config) {
924
- for (let device in backData) {
925
- if (device.startsWith("device")) {
926
- for (let item in backData[device]) {
927
- //遍历结果
928
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
929
- let error = true
930
- for (let i in backData[device][item].f_items) {
931
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
932
- error = false
933
- }
934
- }
935
- if (!error) {
936
- this.printContent.push({
937
- type: 3,
938
- text: '隐患:',
939
- fontsize: 2,
940
- isbold: true,
941
- align: 'left'
942
- })
943
- }
944
- }
945
- }
946
- }
947
- }
948
- for (let device in backData) {
949
- if (device.startsWith("device")) {
950
- for (let item in backData[device]) {
951
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
952
- for (let i in backData[device][item].f_items) {
953
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
954
- this.printContent.push({
955
- type: 3,
956
- text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
957
- fontsize: 2,
958
- isbold: true,
959
- align: 'left'
960
- })
961
- }
962
- }
963
- }
964
- }
965
- }
966
- }
967
-
968
- }
969
- } else {
970
- for (let dev in this.$parent.$parent.config) {
971
- for (let device in backData) {
972
- if (device.startsWith("device")) {
973
- for (let item in backData[device]) {
974
- //遍历结果
975
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
976
- let error = true
977
- for (let i in backData[device][item].f_items) {
978
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
979
- error = false
980
- }
981
- }
982
- if (error) {
983
- this.printContent.push({
984
- type: 3,
985
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
986
- fontsize: 2,
987
- isbold: false,
988
- align: 'left'
989
- })
990
- } else {
991
- this.printContent.push({
992
- type: 3,
993
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
994
- fontsize: 2,
995
- isbold: false,
996
- align: 'left'
997
- })
998
- }
999
-
1000
- for (let i in backData[device][item].f_items) {
1001
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1002
- this.printContent.push({
1003
- type: 3,
1004
- text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
1005
- fontsize: 2,
1006
- isbold: false,
1007
- align: 'left'
1008
- })
1009
- }
1010
- }
1011
- this.printContent.push({type: 4, value: 2, unit: 'line'})
1012
- }
1013
- }
1014
- }
1015
- }
1016
- }
1017
- }
1018
- },
1019
- //获取当前时间
1020
- getNowFormatDate() {
1021
- var date = new Date();
1022
- var seperator1 = "-";
1023
- var seperator2 = ":";
1024
- var month = date.getMonth() + 1;
1025
- var strDate = date.getDate();
1026
- if (month >= 1 && month <= 9) {
1027
- month = "0" + month;
1028
- }
1029
- if (strDate >= 0 && strDate <= 9) {
1030
- strDate = "0" + strDate;
1031
- }
1032
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1033
- + " " + date.getHours() + seperator2 + date.getMinutes()
1034
- + seperator2 + date.getSeconds();
1035
- return currentdate;
1036
- },
1037
- readRepair() {
1038
- let url = this.$androidUtil.getProxyUrl()
1039
- let gen = getRepairs(this, url)
1040
- return co(gen)
1041
- },
1042
- showToRepair() {
1043
- let res = this.hasDefect()
1044
- ////tag
1045
- ////tag
1046
- if (res == '正常') {
1047
- this.showrepair = false
1048
- } else {
1049
- this.showrepair = true
1050
- this.assignObj()
1051
- }
1052
- this.showCheckToRepair = !this.showCheckToRepair
1053
- },
1054
- // 选中部门
1055
- reres(val) {
1056
- if (val.res == undefined) {
1057
- return
1058
- }
1059
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1060
- this.$parent.$parent.model.f_meetunit = val.res
1061
- this.$parent.$parent.model.f_orgstr = val.resids
1062
- var arr = val.res.split('.')
1063
- this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1064
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1065
- },
1066
- assignObj() {
1067
- this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1068
- this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1069
- this.$parent.$parent.model.f_address = this.paper.f_address
1070
- this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1071
- this.$parent.$parent.model.f_street = this.paper.f_street
1072
- this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1073
- this.$parent.$parent.model.f_building = this.paper.f_building
1074
- this.$parent.$parent.model.f_unit = this.paper.f_unit
1075
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1076
- this.$parent.$parent.model.f_room = this.paper.f_room
1077
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1078
- this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1079
- this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1080
- },
1081
- hasDefect() {
1082
- let checkResult = '正常'
1083
- let codata = JSON.parse(JSON.stringify(this.paper))
1084
- for (let device in this.paper) {
1085
- if (device.startsWith("device")) {
1086
- for (let item in this.paper[device]) {
1087
- for (let i in this.paper[device][item].f_items) {
1088
- let items = this.paper[device][item].f_items[i]
1089
- ////tag
1090
- if (items.f_is_defect == true || items.f_is_defect == 'true') {
1091
- checkResult = '有隐患'
1092
- }
1093
- }
1094
- }
1095
- }
1096
- }
1097
- return checkResult
1098
- },
1099
- uploadPaper() {
1100
- if (this.showrepair) {
1101
- ////tag
1102
- ////tag
1103
- ////tag
1104
- ////tag
1105
-
1106
- if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1107
- this.$showMessage("请选择维修员!")
1108
- return
1109
- }
1110
- if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1111
- this.$showMessage("请选择站点!")
1112
- return
1113
- }
1114
- if (this.$parent.$parent.model.f_repairtype == '') {
1115
- this.$showMessage("请选择报修类型!")
1116
- return
1117
- }
1118
- this.$parent.$parent.isToRepair = true
1119
- this.$parent.$parent.uploadCheckPaper()
1120
- // this.$parent.$parent.savePaper(false).then((res) => {
1121
- // ////tag
1122
- // if(res != true){
1123
- // ////tag
1124
- // return
1125
- // }else{
1126
- // this.$parent.$parent.todo()
1127
- // }
1128
- // })
1129
- } else {
1130
- this.$parent.$parent.undo()
1131
- }
1132
-
1133
- },
1134
- //确认安检转维修
1135
-
1136
- undo() {
1137
- this.showCheckToRepair = !this.showCheckToRepair
1138
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1139
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1140
- this.$parent.$parent.model.f_repairtype = ''
1141
- this.meading = '转站点'
1142
- },
1143
- //取消拉黑
1144
- async deletebacklist() {
1145
- if (!this.deletecause) {
1146
- this.$showMessage("请填写取消拉黑原因!")
1147
- return
1148
- }
1149
- this.paper.f_blocking_cause = this.deletecause
1150
- ////tag)
1151
- let http = new HttpResetClass()
1152
- ////tag
1153
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1154
- data: {
1155
- items: "version",
1156
- tablename: "t_userinfo",
1157
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1158
- orderitem: "f_userinfo_id"
1159
- }
1160
- }, {resolveMsg: null, rejectMsg: null})
1161
- ////tag)
1162
- ////tag
1163
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1164
- data: {
1165
- "f_operat_type": "取消拉黑",
1166
- "f_state": "有效",
1167
- "f_user_name": this.paper.f_user_name,
1168
- "f_comments": this.paper.f_delete_cause,
1169
- "f_operator": Vue.user.name,
1170
- "f_operatorid": Vue.user.id,
1171
- "f_orgid": Vue.user.orgid,
1172
- "f_orgname": Vue.user.orgs,
1173
- "f_depid": Vue.user.depids,
1174
- "f_depname": Vue.user.deps,
1175
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1176
- "f_userinfo_id": {
1177
- "f_userinfo_id": this.paper.f_userinfoid,
1178
- "f_user_state": "正常",
1179
- "version": res1.data[0].version
1180
- },
1181
- "f_limit_times": "",
1182
- "f_limit_value": ""
1183
- }
1184
- }, {resolveMsg: null, rejectMsg: null})
1185
-
1186
- ////tag)
1187
- if (res2.data.code == 200) {
1188
- this.showmodelthree = false
1189
- this.deleteenabled = true
1190
- this.paper.f_blacklist = "否"
1191
- this.$showMessage("取消该用户限制购气成功!")
1192
- } else {
1193
- this.$showMessage("网络异常,请稍后再试!")
1194
- }
1195
- },
1196
- async backlist() {
1197
- if (!this.cause) {
1198
- this.$showMessage("请填写拉黑原因!")
1199
- return
1200
- }
1201
- this.paper.f_blocking_cause = this.cause
1202
- ////tag)
1203
- let http = new HttpResetClass()
1204
- ////tag
1205
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1206
- data: {
1207
- items: "version",
1208
- tablename: "t_userinfo",
1209
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1210
- orderitem: "f_userinfo_id"
1211
- }
1212
- }, {resolveMsg: null, rejectMsg: null})
1213
- ////tag)
1214
- ////tag
1215
- let limit_times = 1
1216
- let limit_value = 3
1217
- if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
1218
- limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1219
- limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1220
- }
1221
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1222
- data: {
1223
- data: this.$parent.$parent.data,
1224
- item: this.$parent.$parent.data.item,
1225
- "f_operat_type": "拉黑",
1226
- "f_state": "有效",
1227
- "f_user_name": this.paper.f_user_name,
1228
- "f_comments": this.paper.f_blocking_cause,
1229
- "f_operator": Vue.user.name,
1230
- "f_operate_date": Util.toStandardTimeString(),
1231
- "f_operatorid": Vue.user.id,
1232
- "f_orgid": Vue.user.orgid,
1233
- "f_orgname": Vue.user.orgs,
1234
- "f_depid": Vue.user.depids,
1235
- "f_depname": Vue.user.deps,
1236
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1237
- "f_userinfo_id": {
1238
- "f_userinfo_id": this.paper.f_userinfoid
1239
- },
1240
- "f_limit_times": limit_times,
1241
- "f_limit_value": limit_value
1242
- }
1243
- }, {resolveMsg: null, rejectMsg: null})
1244
-
1245
- ////tag)
1246
- if (res2.data.code == 200) {
1247
- this.showmodel = false
1248
- this.enabled = true
1249
- this.paper.f_blacklist = "是"
1250
- this.$showMessage("将该用户限制购气成功!")
1251
- } else if (res2.data.msg == '数据增加重复') {
1252
- this.showmodel = false
1253
- this.enabled = true
1254
- this.$showMessage("该用户已被限制购气,请勿重复提交!")
1255
- } else {
1256
- this.$showMessage("网络异常,请稍后再试!")
1257
- }
1258
- },
1259
- cancel() {
1260
- this.backlistisselect = false
1261
- this.showmodel = false
1262
- },
1263
- deletecancel() {
1264
- this.deletebacklistisselect = false
1265
- this.showmodelthree = false
1266
- },
1267
- repiarmancg(val) {
1268
- if (val) {
1269
- ////tag
1270
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1271
- let http1 = new HttpResetClass()
1272
- http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1273
- data: {
1274
- items: 'f_user_telephone',
1275
- tablename: 't_user',
1276
- condition: `name = '${val}'`,
1277
- orderitem: 'id'
1278
- }
1279
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1280
- this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1281
- })
1282
- }
1283
- },
1284
- },
1285
- async ready() {
1286
- this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1287
- if (this.$appdata.getSingleValue('安检时显示拉黑')) {
1288
- this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1289
- }
1290
- // await this.isoverDate()
1291
- ////tag
1292
- ////tag
1293
- ////tag)
1294
- ////tag))
1295
- if (this.$parent.$parent.role == 'repair') {
1296
- this.$set('style__', 'divmask')
1297
- this.$set('style_view_', '')
1298
- } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1299
- this.$set('style__', 'divmask')
1300
- this.$set('style_view_', 'divmask')
1301
- ////tag
1302
- } else {
1303
- this.$set('style__', '')
1304
- this.$set('style_view_', '')
1305
- }
1306
-
1307
- for (let item of this.radios) {
1308
- if (this.paper.f_client_evaluation == item.label) {
1309
- item.isChecked = true;
1310
- }
1311
- }
1312
- if (!this.paper.f_notified_path)
1313
- this.$set('paper.f_notified_path', Vue.nopic)
1314
- if (!this.paper.f_notified1_path)
1315
- this.$set('paper.f_notified1_path', Vue.nopic)
1316
- if (!this.paper.f_notified2_path)
1317
- this.$set('paper.f_notified2_path', Vue.nopic)
1318
- if (!this.paper.f_sign_path)
1319
- this.$set('paper.f_sign_path', Vue.nopic)
1320
- ////tag
1321
- if (!this.paper.f_overall_imgs) {
1322
- let imgs = []
1323
- // imgs.push({f_overall_path:Vue.nopic})
1324
- this.$set('paper.f_overall_imgs', imgs)
1325
- ////tag
1326
- }
1327
- if (!this.paper.f_overall2_path)
1328
- this.$set('paper.f_overall2_path', Vue.nopic)
1329
-
1330
- this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1331
- if (Vue.config.safecheck != undefined) {
1332
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1333
- if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1334
- this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1335
- }
1336
- }
1337
- }
1338
- let device = this.$parent.$parent.data
1339
- for (const deviceitem in device) {
1340
- if (deviceitem.startsWith('device')) {
1341
- //tag)
1342
- if (device[deviceitem].length == 0) {
1343
- continue
1344
- }
1345
- let items = device[deviceitem][0].f_items
1346
- let deviceType = device[deviceitem][0].f_device_type
1347
- for (let i = 0; i < items.length; i++) {
1348
- if (items[i].f_is_defect) {
1349
- let reason = items[i].f_item_name + ":"
1350
- if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox') {
1351
- for (let j = 0; j < items[i].f_item_value.length; j++) {
1352
- if (j + 1 === items[i].f_item_value.length) {
1353
- reason += items[i].f_item_value[j]
1354
- } else {
1355
- reason += items[i].f_item_value[j] + ","
1356
- }
1357
- }
1358
- } else {
1359
- reason += items[i].f_item_value
1360
- }
1361
- if (items[i].f_path) {
1362
- this.defectImgs.push(items[i].f_path)
1363
- }
1364
- if (items[i].f_p1_path) {
1365
- this.defectImgs.push(items[i].f_p1_path)
1366
- }
1367
- if (items[i].f_p2_path) {
1368
- this.defectImgs.push(items[i].f_p2_path)
1369
- }
1370
- if (items[i].f_p3_path) {
1371
- this.defectImgs.push(items[i].f_p3_path)
1372
- }
1373
- if (items[i].tooltip) {
1374
- this.defectToolTip.push(items[i].tooltip)
1375
- }
1376
- this.defectReason.push({device: deviceType, deviceitem: reason})
1377
- } else if (items[i].type === 'errorstring' && items[i].f_item_value) {
1378
- let reason = items[i].f_item_name + ":" + items[i].f_item_value
1379
- this.defectReason.push({device: deviceType, deviceitem: reason})
1380
- }
1381
-
1382
- }
1383
- }
1384
- }
1385
- ////tag
1386
- ////tag
1387
- //tag
1388
- ////tag
1389
- //tag)
1390
- //tag)
1391
- //tag)
1392
- ////tag
1393
- ////tag
1394
- ////tag
1395
- },
1396
- watch: {
1397
- '$parent.$parent.isUpload'(val) {
1398
- ////tag
1399
- },
1400
- 'meading'(val) {
1401
- ////tag
1402
- this.$parent.$parent.meading = val
1403
- },
1404
- 'backlistisselect'(val) {
1405
- if (val == true) {
1406
- this.showmodel = true
1407
- this.deletebacklistisselect = false
1408
- }
1409
- },
1410
- 'deletebacklistisselect'(val) {
1411
- if (val == true) {
1412
- this.showmodelthree = true
1413
- this.backlistisselect = false
1414
- }
1415
- },
1416
- 'isRecodr'(val) {
1417
- if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1418
- this.isRecodr = "false";
1419
- }
1420
- }
1421
- }
1422
- }
1423
- </script>
1424
- <style scoped>
1425
- .panel-self {
1426
- border-radius: 5px;
1427
- border: 1px solid #c5e1f7;
1428
- background-color: #F2F6FA;
1429
- }
1430
-
1431
- .text-left {
1432
- text-align: left;
1433
- }
1434
-
1435
- .font {
1436
- font: 15px PingFang-SC-Medium;
1437
- color: #333333;
1438
- }
1439
-
1440
- .showIi {
1441
- font: 14px PingFang-SC-Medium;
1442
- color: #666666;
1443
- }
1444
-
1445
- .info {
1446
- margin-top: 15px;
1447
- border-radius: 5px;
1448
- background-color: #f3faff;
1449
- }
1450
-
1451
- .btn-photo {
1452
- border: 0;
1453
- border-radius: 7px;
1454
- background-color: #7dc1f4;
1455
- font: 15px PingFang-SC-Bold;
1456
- height: 20%;
1457
- }
1458
-
1459
- .div-photo {
1460
- width: auto;
1461
- height: auto;
1462
- /* margin-top: 10px; */
1463
- position: absolute;
1464
- bottom: 10px;
1465
- right: 10px;
1466
- }
1467
-
1468
- .btn-voice {
1469
- border-radius: 7px;
1470
- border: 1px solid #dedede;
1471
- background-color: #f5fbff;
1472
- font: 15px PingFang-SC-Bold;
1473
- color: #499edf;
1474
- }
1475
-
1476
- .save-btn {
1477
- width: 25%;
1478
- background-color: #499edf;
1479
- border-radius: 6px;
1480
- color: #FFFFFF;
1481
- font: 15px PingFang-SC-Bold;
1482
- }
1483
-
1484
- .upload-btn {
1485
- width: 25%;
1486
- background-color: #ffffff;
1487
- border: 1px solid #499edf;
1488
- border-radius: 6px;
1489
- color: #499edf;
1490
- font: 15px PingFang-SC-Bold;
1491
- }
1492
-
1493
- .repair-btn {
1494
- width: 25%;
1495
- border: 1px solid #499edf;
1496
- border-radius: 6px;
1497
- font: 15px PingFang-SC-Bold;
1498
- }
1499
-
1500
- #el_ca_tx {
1501
- width: 100%;
1502
- margin: 5px;
1503
- }
1504
-
1505
- #el_ca_txt {
1506
- width: 100%;
1507
- margin: 5px;
1508
- }
1509
- </style>
1
+ <template>
2
+ <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
+ <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
+ <div class="col-md-12 col-sm-12 col-xs-12">
7
+ <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
+ <div class="text-center">
13
+ <label class="font">总体安检照片请依次拍摄:</label>
14
+ </div>
15
+ <div class="col-md-12 col-sm-12 col-xs-12">
16
+ <ol class="showIi">
17
+ <li>1.燃气设施全景</li>
18
+ <li>2.燃气表照片</li>
19
+ <li>3.灶具照片</li>
20
+ <li>4.其他照片</li>
21
+ </ol>
22
+ </div>
23
+ </div>
24
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
+ <label class="text-left font">总体安检照片</label>
26
+
27
+ <div class="auto" :class="style__">
28
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
29
+ <div class="panel-body panel-self"
30
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
31
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
32
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
33
+ v-for="(index,img) in paper.f_overall_imgs">
34
+ <android-img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></android-img-self>
35
+ <img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
36
+ style="width: 15px;margin-top: -80px" alt="">
37
+ </div>
38
+ </div>
39
+ <div class="row text-right div-photo">
40
+ <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">
41
+ 拍照
42
+ </button>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
49
+ <label class="text-left font">总体隐患照片</label>
50
+ <div class="auto" :class="style__">
51
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
52
+ <div class="panel-body panel-self"
53
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
54
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
55
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
56
+ <android-img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></android-img-self>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
64
+ <div class="text-center">
65
+ <label class="font">隐患汇总:</label>
66
+ </div>
67
+ <div class="col-md-12 col-sm-12 col-xs-12">
68
+ <ol class="showIi">
69
+ <li v-for="item in defectReason">{{ item.deviceitem }}</li>
70
+ </ol>
71
+ </div>
72
+ </div>
73
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
74
+ <div class="text-center">
75
+ <label class="font">整改建议汇总:</label>
76
+ </div>
77
+ <div class="col-md-12 col-sm-12 col-xs-12">
78
+ <ol class="showIi">
79
+ <li v-for="item in defectToolTip">{{ item }}</li>
80
+ </ol>
81
+ </div>
82
+ </div>
83
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
84
+ <input type="checkbox" v-model="paper.f_read_instructions"/><label class="text-left font">我已阅读须知内容</label>
85
+
86
+ </div>
87
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
88
+ <label class="text-left font">用户签名</label>
89
+ <div class="auto">
90
+ <div class="panel">
91
+ <div class="panel-body panel-self"
92
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
93
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
94
+ <div class="col-sm-4">
95
+ <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150"/>
96
+ </div>
97
+ </div>
98
+ <div class="row text-right div-photo">
99
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
106
+ <label>请输入超期原因:</label><br/>
107
+ <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
108
+ </div>
109
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-show="showbacklist=='是'">
110
+ <div class="col-xs-6 col-sm-6">
111
+ <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label
112
+ class="text-left font">限制该用户购气</label>
113
+ </div>
114
+ <div class="col-xs-6 col-sm-6">
115
+ <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label
116
+ class="text-left font">取消该用户购气</label>
117
+ </div>
118
+ </div>
119
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__"
120
+ v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
121
+ <div class="col-xs-12 col-sm-12">
122
+ <input type="checkbox" v-model="paper.f_gas_guidelines"/><label class="text-left font">天然气安全使用须知</label>
123
+ </div>
124
+ <div class="col-xs-12 col-sm-12">
125
+ <input type="checkbox" v-model="paper.f_safety_warning"/><label class="text-left font">天然气室内使用安全警示</label>
126
+ </div>
127
+ <div class="col-xs-12 col-sm-12">
128
+ <input type="checkbox" v-model="paper.f_gas_manual"/><label class="text-left font">安全用气手册</label>
129
+ </div>
130
+ </div>
131
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
132
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
133
+ <input type="checkbox" v-model="paper.f_defect_notified" class="showIi"/>安检通知书/隐患整改通知书
134
+ </div>
135
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
136
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
137
+ <button type="button" @click="print()">打印隐患整改单</button>
138
+ </div>
139
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
140
+ <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
141
+ <div class="auto">
142
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
143
+ <div class="panel-body panel-self"
144
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
145
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
146
+ <div class="col-sm-4">
147
+ <android-img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
148
+ <div class="row text-right div-photo">
149
+ <button type="button" name="button" class="btn btn-primary btn-photo"
150
+ @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照
151
+ </button>
152
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
153
+ @click="delfile('f_notified_path', this.paper.f_notified_path)"
154
+ style="width: 25%;"/>
155
+
156
+ </div>
157
+ </div>
158
+ <div class="col-sm-4">
159
+ <android-img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
160
+ <div class="row text-right div-photo">
161
+ <button type="button" name="button" class="btn btn-primary btn-photo"
162
+ @click="takePic('f_notified1_path', '安检通知书/隐患整改通知书照片')">拍照
163
+ </button>
164
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
165
+ @click="delfile('f_notified1_path', this.paper.f_notified1_path)"
166
+ style="width: 25%;"/>
167
+
168
+ </div>
169
+ </div>
170
+ <div class="col-sm-4">
171
+ <android-img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
172
+ <div class="row text-right div-photo">
173
+ <button type="button" name="button" class="btn btn-primary btn-photo"
174
+ @click="takePic('f_notified2_path', '安检通知书/隐患整改通知书照片')">拍照
175
+ </button>
176
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__"
177
+ @click="delfile('f_notified2_path', this.paper.f_notified2_path)"
178
+ style="width: 25%;"/>
179
+
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
191
+ <div class="row">
192
+ <label class="text-left">请对我们的服务做出评价:</label>
193
+ </div>
194
+ <div class="col-xs-4 col-sm-4" v-for="item in radios">
195
+ <input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked'
196
+ @click="check(item.value)" type="radio">{{ item.label }}
197
+ </div>
198
+
199
+ <!--<div class="col-sm-4">-->
200
+ <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
201
+ <!--<radio value="满意">满意</radio>-->
202
+ <!--<radio value="基本满意">基本满意</radio>-->
203
+ <!--<radio value="不满意">不满意</radio>-->
204
+ <!--</radio-group>-->
205
+ <!--</div>-->
206
+ </div>
207
+
208
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
209
+ <label class="text-left font">反馈录音:</label>
210
+ <div class="col-md-12 col-sm-12 col-xs-12">
211
+ <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
212
+ <img src="../../../assets/录音.png" style="width: 14%;">
213
+ <span v-if="!paper.f_recording1_path">开始录音</span>
214
+ <span v-if="paper.f_recording1_path">已录音</span>
215
+ </button>
216
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" style="width: 15px;" :class="style__"
217
+ @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"/>
218
+ </div>
219
+ </div>
220
+
221
+ <div v-if="false">
222
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
223
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button"
224
+ v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') "
225
+ class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存
226
+ </button>
227
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button"
228
+ v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')"
229
+ class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检
230
+ </button>
231
+ </div>
232
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
233
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button"
234
+ v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')"
235
+ class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper">上传
236
+ </button>
237
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%"
238
+ v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled"
239
+ class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修
240
+ </button>
241
+ </div>
242
+ </div>
243
+
244
+ </div>
245
+ </form>
246
+ <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
247
+ <!-- <div slot="modal-header" class="modal-header">-->
248
+ <!-- <h4 class="modal-title">-->
249
+ <!-- 安检转维修-->
250
+ <!-- </h4>-->
251
+ <!-- </div>-->
252
+ <!-- <div slot="modal-body" class="modal-body">-->
253
+ <!-- <div v-if="showrepair">-->
254
+ <!-- <div class="row">-->
255
+ <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
256
+ <!-- <div class="col-xs-8 col-md-8">-->
257
+ <!-- <label v-for="handling1 in handling" >-->
258
+ <!-- <input type="radio"-->
259
+ <!-- v-model="meading"-->
260
+ <!-- value="{{handling1.label}}">-->
261
+ <!-- {{handling1.label}}-->
262
+ <!-- </label>-->
263
+ <!-- </div>-->
264
+ <!-- </div>-->
265
+ <!-- <div class="row" v-if="meading == '转站点'">-->
266
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
267
+ <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
268
+ <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
269
+ <!-- <div class="col-xs-8 col-md-8">-->
270
+ <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
271
+ <!-- </right-tree>-->
272
+ <!-- </div>-->
273
+ <!-- </div>-->
274
+
275
+ <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
276
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
277
+ <!-- <div class="col-xs-8">-->
278
+ <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
279
+ <!-- :options='f_repair_person' placeholder='请选择维修员'-->
280
+ <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
281
+ <!-- </div>-->
282
+
283
+ <!-- </div>-->
284
+ <!-- <div class="row" style="margin-top: 6px">-->
285
+ <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
286
+ <!-- <div class="col-xs-8 col-md-8">-->
287
+ <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
288
+ <!-- :options='repairstypes' placeholder='报修类型'-->
289
+ <!-- close-on-select>-->
290
+ <!-- </v-select>-->
291
+ <!-- </div>-->
292
+ <!-- </div>-->
293
+
294
+ <!-- <div class="row" style="margin-top: 6px">-->
295
+ <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
296
+ <!-- <div class="col-xs-8 col-md-8">-->
297
+ <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
298
+ <!-- </div>-->
299
+
300
+ <!-- </div>-->
301
+
302
+ <!-- </div>-->
303
+ <!-- <div v-if="!showrepair">-->
304
+ <!-- 暂无隐患设备信息-->
305
+ <!-- </div>-->
306
+ <!-- </div>-->
307
+ <!-- <div slot="modal-footer" class="modal-footer">-->
308
+ <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
309
+ <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
310
+ <!-- </div>-->
311
+ <!-- </modal>-->
312
+ <!--拉黑框-->
313
+ <modal :show.sync="showmodel" v-ref:modal>
314
+ <div slot="modal-header" class="modal-header">
315
+ <h4 class="modal-title">
316
+ 限制用户购气
317
+ </h4>
318
+ </div>
319
+ <div slot="modal-body" class="modal-body">
320
+ <!-- <div class="row" style="margin-top: 6px">-->
321
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
322
+ <!-- </div>-->
323
+ <div class="row" style="margin-top: 6px">
324
+ <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因">
325
+ </textarea>
326
+ </div>
327
+ </div>
328
+ <div slot="modal-footer" class="modal-footer">
329
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
330
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
331
+ </div>
332
+ </modal>
333
+
334
+ <modal :show.sync="showmodelthree" v-ref:modal>
335
+ <div slot="modal-header" class="modal-header">
336
+ <h4 class="modal-title">
337
+ 取消限制用户购气
338
+ </h4>
339
+ </div>
340
+ <div slot="modal-body" class="modal-body">
341
+ <!-- <div class="row" style="margin-top: 6px">-->
342
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
343
+ <!-- </div>-->
344
+ <div class="row" style="margin-top: 6px">
345
+ <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;"
346
+ placeholder="请输入取消限制用户购气原因">
347
+ </textarea>
348
+ </div>
349
+ </div>
350
+ <div slot="modal-footer" class="modal-footer">
351
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
352
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
353
+ </div>
354
+ </modal>
355
+ </template>
356
+
357
+ <script>
358
+ import Vue from 'vue'
359
+ import * as Util from '../../Util'
360
+ import {HttpResetClass} from 'vue-client'
361
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
362
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
363
+ import co from 'co'
364
+
365
+ // let getRepairParam = function * (self){
366
+ // let data = {
367
+ // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
368
+ // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
369
+ // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
370
+ // }, user: self.user, callObj: self.callObj
371
+ // }
372
+ // if(self.$parent.$parent.meading == '转维修员'){
373
+ // data.toRepair = '一级派单'
374
+ // }
375
+ // data.$parent.$parent.model.f_attendant = data.loginUser.name
376
+ // ////tag
377
+ // ////tag
378
+ // let res
379
+ // let errString = self.$parent. $parent.errorVerify()
380
+ // if(errString){
381
+ // ////tag
382
+ // if (Vue.android)
383
+ // self.undo()
384
+ // this.$showMessage(errString)
385
+ // return
386
+ // } else {
387
+ // if(self.role == 'inspect'){
388
+ // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
389
+ // this.$showMessage("请选择维修员!")
390
+ // return
391
+ // }
392
+ // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
393
+ // HostApp.alert()
394
+ // this.$showMessage("请选择站点!")
395
+ // return
396
+ // }
397
+ // if(self.$parent.$parent.model.f_repairtype == ''){
398
+ // this.$showMessage("请选择报修类型!")
399
+ // return
400
+ // }
401
+ // ////tag)
402
+ // let checkResult = '正常'
403
+ // let options = [{"data": "已处理"},{"data": "未处理"}]
404
+ // let value = ''
405
+ // let codata = JSON.parse(JSON.stringify(self.paper))
406
+ // for(let device in codata){
407
+ // ////tag)
408
+ // let f_device_type
409
+ // if(device.startsWith("device")){
410
+ // for(let item in codata[device]) {
411
+ // if(codata[device].length > 1 ){
412
+ // let j = Number.parseInt(item)+1
413
+ // f_device_type = `${codata[device][item].f_device_type}${j}`
414
+ // }else{
415
+ // f_device_type = codata[device][item].f_device_type
416
+ // }
417
+ // // ////tag
418
+ // let details = []
419
+ // for(let i in codata[device][item].f_items){
420
+ // let items = codata[device][item].f_items[i]
421
+ // ////tag
422
+ // if(items.f_is_defect == true || items.f_is_defect == 'true'){
423
+ // checkResult = '有隐患'
424
+ // ////tag
425
+ // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
426
+ // ////tag)
427
+ // self.$set('detail.f_defect_id', res.data[0].id)
428
+ // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
429
+ // self.$set('detail.type',items.type)
430
+ // self.$set('detail.options',options)
431
+ // details.push(JSON.parse(JSON.stringify(self.detail)))
432
+ // }
433
+ // if(items.type == 'selector'){
434
+ // items.selected = ''
435
+ // }
436
+ // self.detail = {}
437
+ // }
438
+ // ////tag
439
+ // self.$set('defectDevice.f_type',f_device_type)
440
+ // self.$set('defectDevice.details',details)
441
+ // if(self.defectDevice.details.length >0 ){
442
+ // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
443
+ // }
444
+ // self.defectDevice = {}
445
+ // ////tag
446
+ // }
447
+ // }
448
+ // }
449
+ // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
450
+ //
451
+ //
452
+ // ////tag)
453
+ // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
454
+ // ////tag
455
+ // ////tag
456
+ // ////tag
457
+ // if(res.code == 200){
458
+ // self.$parent.$parent.isSafeCheckToRepair = true
459
+ // self.undo()
460
+ // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
461
+ // ////tag
462
+ // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
463
+ // ////tag
464
+ // if(ret.data.code ==200){
465
+ // ////tag
466
+ // self.$parent.$parent.$back()
467
+ // }else{
468
+ // self.$showMessage('安检转维修失败!')
469
+ // }
470
+ // }).catch(v=>{
471
+ // ////tag)
472
+ // self.$showMessage('安检转维修失败!')
473
+ // })
474
+ // }else{
475
+ // self.$showMessage('安检转维修失败!')
476
+ // }
477
+ // }
478
+ // }
479
+ // }
480
+
481
+
482
+ // let getRepairs = async function(self,url) {
483
+ // // 获取配置信息
484
+ // try {
485
+ // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
486
+ // let repairs =[]
487
+ // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
488
+ // res.data.forEach((item) => {
489
+ // repairs.push({label: item.name, value: item})
490
+ // })
491
+ // self.f_repair_person = repairs
492
+ // if(self.$parent.$parent.role == 'inspect'){
493
+ // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
494
+ // if(res.code == 200){
495
+ // self.$parent.$parent.user = res.data[0]
496
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
497
+ // }
498
+ // }else{
499
+ // ////tag
500
+ // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
501
+ // ////tag
502
+ // if(res.data.length != 0){
503
+ // self.$parent.$parent.user = res.data[0]
504
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
505
+ // }
506
+ // })
507
+ // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
508
+ // }
509
+ // } catch (error) {
510
+ // ////tag
511
+ // }
512
+ // }
513
+
514
+ export default {
515
+ title: '用户反馈',
516
+ data() {
517
+ return {
518
+ defectImgs: [],
519
+ defectToolTip: [],
520
+ defectReason: [],
521
+ images: [],
522
+ showmodelthree: false,
523
+ isneedDate: this.$parent.$parent.isneedDate,
524
+ plan: this.$parent.$parent.item,
525
+ meading: this.$parent.$parent.meading,
526
+ paper: this.$parent.$parent.data,
527
+ printContent: [],
528
+ upload_state: this.$parent.$parent.item.f_upload_state,
529
+ enabled: false,//控制限制购气是否可选
530
+ deleteenabled: false,
531
+ showmodel: false,
532
+ showbacklist: '是',
533
+ backlistisselect: false,
534
+ deletebacklistisselect: false,
535
+ radios: [
536
+ {
537
+ label: '满意',
538
+ value: 0,
539
+ isChecked: false,
540
+ },
541
+ {
542
+ label: '基本满意',
543
+ value: 1,
544
+ isChecked: false,
545
+ },
546
+ {
547
+ label: '不满意',
548
+ value: 2,
549
+ isChecked: false,
550
+ },
551
+ ],
552
+ repairitems: [],
553
+ repairstypes: this.$appdata.getParam('报修类型'),
554
+ // f_repair_person: this.readRepair(),
555
+ showrepair: false,
556
+ safeCheckToRepair: '',
557
+ showCheckToRepair: false,
558
+ userid: '',
559
+ source:
560
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
561
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
562
+ isback: false,
563
+ defectDevice: {},
564
+ detail: {},
565
+ callObj: null,
566
+ user: {},
567
+ role: this.$parent.$parent.role,
568
+ handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
569
+ Url: this.$androidUtil.getProxyUrl(),
570
+ cause: "",
571
+ deletecause: "",
572
+ isRecodr: "false", //单值参数,为true则是开启全程录音
573
+ }
574
+ },
575
+ props: ['idx'],
576
+ components: {
577
+ RadioGroup,
578
+ Radio
579
+ },
580
+ methods: {
581
+ timeSet(val) {
582
+ //////tag
583
+ if (!val) {
584
+ return
585
+ }
586
+ let time = new Date(val).getTime()
587
+ let time2 = new Date().getTime()
588
+ if (time2 > time) {
589
+ return true
590
+ }
591
+ },
592
+ // async isoverDate(){
593
+ // ////tag
594
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
595
+ // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
596
+ // }
597
+ // })
598
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
599
+ // ////tag
600
+ // },
601
+ check(index) {
602
+ ////tag
603
+ // 先取消所有选中项
604
+ for (let item of this.radios) {
605
+ item.isChecked = false;
606
+ }
607
+ //再设置当前点击项选中
608
+ this.paper.f_client_evaluation = this.radios[index].label;
609
+ // 设置值,以供传递
610
+ this.radios[index].isChecked = true;
611
+ ////tag;
612
+ },
613
+ getSignValue(fileName) {
614
+ this.f_signname = fileName
615
+ },
616
+ cameraCallBack(prop, fileName) {
617
+ if (prop == 'f_overall_path') {
618
+ let f_overall_path = fileName + '?' + Math.random()
619
+ HostApp.__this__.paper.f_overall_imgs.push({
620
+ f_overall_path: f_overall_path
621
+ })
622
+ } else {
623
+ HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
624
+ }
625
+ HostApp.__callback__ = null
626
+ HostApp.__this__ = null
627
+ },
628
+ takePic(prop, title, index) {
629
+ HostApp.__callback__ = this.cameraCallBack
630
+ HostApp.__this__ = this
631
+ ////tag
632
+ ////tag
633
+ let fileName
634
+ if (prop == 'f_overall_path') {
635
+ if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
636
+ fileName = Util.guid() + '-' + prop + '.jpg'
637
+ } else {
638
+ fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
639
+ }
640
+ } else {
641
+ if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
642
+ fileName = Util.guid() + '-' + prop + '.jpg'
643
+ } else {
644
+ fileName = Util.getFileName(this.paper[prop])
645
+ }
646
+ }
647
+ let jingweidu = ''
648
+ if (this.$parent.$parent.is_has_jingweidu == 'true'){
649
+ const obj = HostApp.getGpsDetailAddress()
650
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
651
+ }
652
+ HostApp._open_a_page({
653
+ type: 'boomerang',
654
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
655
+ param: {
656
+ file: fileName,
657
+ requestCode: 111,
658
+ diaphaneity: 1000,
659
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
661
+ +jingweidu
662
+ }
663
+ })
664
+ },
665
+ amrCallBack(fileName) {
666
+ HostApp.__this__.$set('paper.f_recording1_path', fileName)
667
+ HostApp.__callback__ = null
668
+ HostApp.__this__ = null
669
+ },
670
+ record() {
671
+ if (this.$parent.$parent.role != 'inspect') {
672
+ if (this.paper.f_recording1_path != '') {
673
+ window.location = this.paper.f_recording1_path
674
+ }
675
+ } else {
676
+ HostApp.__callback__ = this.amrCallBack
677
+ HostApp.__this__ = this
678
+ let fileName
679
+ if (!this.paper.f_recording1_path) {
680
+ fileName = Util.guid() + '.amr'
681
+ } else {
682
+ fileName = Util.getFileName(this.paper.f_recording1_path)
683
+ }
684
+ HostApp._open_a_page({
685
+ type: 'boomerang',
686
+ page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
687
+ param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
688
+ })
689
+ }
690
+ },
691
+ // 签名回调
692
+ signCallback(prop, fileName) {
693
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
694
+ HostApp.__this__.$set('paper.f_sign_path', fileName)
695
+ HostApp.__callback__ = null
696
+ HostApp.__this__ = null
697
+ },
698
+ // 用户签名
699
+ sign() {
700
+ if (!this.paper.f_read_instructions) {
701
+ this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
702
+ return
703
+ }
704
+ this.delAudioFile('f_sign_path', this.paper.f_sign_path)
705
+ let prop = 'f_sign_path'
706
+ let idx = 'aofeng'
707
+ let fileName
708
+ if (!this.paper.f_sign_path) {
709
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
710
+ } else {
711
+ fileName = Util.getFileName(this.paper.f_sign_path)
712
+ }
713
+ HostApp.__callback__ = this.signCallback
714
+ HostApp.__this__ = this
715
+ HostApp.getSignature({
716
+ file: fileName,
717
+ requestCode: 111,
718
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
719
+ })
720
+ },
721
+ delfile(prop, fileName, index) {
722
+ if (fileName == Vue.nopic)
723
+ return
724
+ else {
725
+ if (prop == 'f_overall_path') {
726
+ this.paper.f_overall_imgs.splice(index, 1)
727
+ HostApp.delfile(fileName)
728
+ } else {
729
+ HostApp.delfile(fileName)
730
+ this.paper[prop] = Vue.nopic
731
+ }
732
+ }
733
+ },
734
+ delAudioFile(prop, fileName) {
735
+ if (!fileName)
736
+ return
737
+ else {
738
+ HostApp.delfile(fileName)
739
+ this.paper[prop] = null
740
+ }
741
+ },
742
+ //获取打印用户信息
743
+ getUser() {
744
+ if (this.paper.f_user_name == undefined)
745
+ this.paper.f_user_name = ''
746
+ this.printContent.push({
747
+ type: 3,
748
+ text: '用户名称:' + this.paper.f_user_name,
749
+ fontsize: 2,
750
+ isbold: false,
751
+ align: 'left'
752
+ })
753
+ if (this.paper.f_userinfo_code == undefined)
754
+ this.paper.f_userinfo_code = ''
755
+ this.printContent.push({
756
+ type: 3,
757
+ text: '用户编号:' + this.paper.f_userinfo_code,
758
+ fontsize: 2,
759
+ isbold: false,
760
+ align: 'left'
761
+ })
762
+ if (this.paper.f_address == undefined)
763
+ this.paper.f_address = ''
764
+ this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
765
+ if (this.paper.f_user_phone == undefined)
766
+ this.paper.f_user_phone = ''
767
+ this.printContent.push({
768
+ type: 3,
769
+ text: '电话:' + this.paper.f_user_phone,
770
+ fontsize: 2,
771
+ isbold: false,
772
+ align: 'left'
773
+ })
774
+ },
775
+ verify() {
776
+ let hasError = this.$parent.$parent.verifyUser()
777
+ if (hasError)
778
+ return hasError
779
+ hasError = this.$parent.$parent.verifyDevices()
780
+ if (hasError)
781
+ return hasError
782
+ },
783
+ print() {
784
+ let errString = this.verify()
785
+ if (errString) {
786
+ ////tag
787
+ if (Vue.android)
788
+ this.$showMessage(errString)
789
+ return
790
+ }
791
+ // 文本
792
+ let templatename = '安检结果单'
793
+ if (Vue.config.safecheck != undefined) {
794
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
795
+ if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
796
+ templatename = Vue.config.safecheck.ApproveConfig.templatename
797
+ }
798
+ }
799
+ }
800
+ let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
801
+ let feedPageHead = {type: 4, value: 2, unit: 'line'}
802
+ let feedPageEnd = {type: 4, value: 4, unit: 'line'}
803
+ this.printContent.push(textHead)
804
+ this.printContent.push(feedPageHead)
805
+ this.getUser()
806
+ this.getDefect()
807
+ this.getCheck()
808
+ this.printContent.push(feedPageEnd)
809
+ let arrstr = JSON.stringify(this.printContent)
810
+ ////tag
811
+ this.$androidUtil.print(arrstr)
812
+ this.$set('printContent', [])
813
+ },
814
+ //打印安检信息
815
+ getCheck() {
816
+ let telephone = '96777'
817
+ if (Vue.config.safecheck != undefined) {
818
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
819
+ if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
820
+ telephone = Vue.config.safecheck.ApproveConfig.checkphone
821
+ }
822
+ }
823
+ }
824
+ this.printContent.push({
825
+ type: 3,
826
+ text: '*******************************',
827
+ fontsize: 3,
828
+ isbold: false,
829
+ align: 'center'
830
+ })
831
+ this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
832
+ this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
833
+ this.printContent.push({
834
+ type: 3,
835
+ text: '安检时间:' + this.getNowFormatDate(),
836
+ fontsize: 2,
837
+ isbold: false,
838
+ align: 'left'
839
+ })
840
+ this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
841
+ this.printContent.push({type: 4, value: 4, unit: 'line'})
842
+ },
843
+
844
+ getDefect() {
845
+ let showmore = false
846
+ if (Vue.config.safecheck != undefined) {
847
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
848
+ if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
849
+ showmore = Vue.config.safecheck.ApproveConfig.showmore
850
+ }
851
+ }
852
+ }
853
+
854
+ let backData = this.$parent.$parent.getAllDefect()
855
+ // 对隐患信息进行遍历
856
+ let res = JSON.parse(backData.f_defect_content)
857
+ this.printContent.push({
858
+ type: 3,
859
+ text: '安检结果:' + res.result,
860
+ fontsize: 2,
861
+ isbold: false,
862
+ align: 'left'
863
+ })
864
+ this.printContent.push({
865
+ type: 3,
866
+ text: '*******************************',
867
+ fontsize: 3,
868
+ isbold: false,
869
+ align: 'center'
870
+ })
871
+
872
+
873
+ if (showmore) {
874
+ //全部打印
875
+ for (let dev in this.$parent.$parent.config) {
876
+ for (let device in backData) {
877
+ if (device.startsWith("device")) {
878
+ for (let item in backData[device]) {
879
+ //遍历结果
880
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
881
+ let error = true
882
+ for (let i in backData[device][item].f_items) {
883
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
884
+ error = false
885
+ }
886
+ }
887
+ if (error) {
888
+ this.printContent.push({
889
+ type: 3,
890
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
891
+ fontsize: 2,
892
+ isbold: false,
893
+ align: 'left'
894
+ })
895
+ } else {
896
+ this.printContent.push({
897
+ type: 3,
898
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
899
+ fontsize: 2,
900
+ isbold: true,
901
+ align: 'left'
902
+ })
903
+ }
904
+
905
+ for (let i in backData[device][item].f_items) {
906
+ if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
907
+ this.printContent.push({
908
+ type: 3,
909
+ text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
910
+ fontsize: 2,
911
+ isbold: false,
912
+ align: 'left'
913
+ })
914
+ }
915
+ }
916
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
917
+ }
918
+ }
919
+ }
920
+ }
921
+ }
922
+
923
+ for (let dev in this.$parent.$parent.config) {
924
+ for (let device in backData) {
925
+ if (device.startsWith("device")) {
926
+ for (let item in backData[device]) {
927
+ //遍历结果
928
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
929
+ let error = true
930
+ for (let i in backData[device][item].f_items) {
931
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
932
+ error = false
933
+ }
934
+ }
935
+ if (!error) {
936
+ this.printContent.push({
937
+ type: 3,
938
+ text: '隐患:',
939
+ fontsize: 2,
940
+ isbold: true,
941
+ align: 'left'
942
+ })
943
+ }
944
+ }
945
+ }
946
+ }
947
+ }
948
+ for (let device in backData) {
949
+ if (device.startsWith("device")) {
950
+ for (let item in backData[device]) {
951
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
952
+ for (let i in backData[device][item].f_items) {
953
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
954
+ this.printContent.push({
955
+ type: 3,
956
+ text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
957
+ fontsize: 2,
958
+ isbold: true,
959
+ align: 'left'
960
+ })
961
+ }
962
+ }
963
+ }
964
+ }
965
+ }
966
+ }
967
+
968
+ }
969
+ } else {
970
+ for (let dev in this.$parent.$parent.config) {
971
+ for (let device in backData) {
972
+ if (device.startsWith("device")) {
973
+ for (let item in backData[device]) {
974
+ //遍历结果
975
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
976
+ let error = true
977
+ for (let i in backData[device][item].f_items) {
978
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
979
+ error = false
980
+ }
981
+ }
982
+ if (error) {
983
+ this.printContent.push({
984
+ type: 3,
985
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
986
+ fontsize: 2,
987
+ isbold: false,
988
+ align: 'left'
989
+ })
990
+ } else {
991
+ this.printContent.push({
992
+ type: 3,
993
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
994
+ fontsize: 2,
995
+ isbold: false,
996
+ align: 'left'
997
+ })
998
+ }
999
+
1000
+ for (let i in backData[device][item].f_items) {
1001
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1002
+ this.printContent.push({
1003
+ type: 3,
1004
+ text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
1005
+ fontsize: 2,
1006
+ isbold: false,
1007
+ align: 'left'
1008
+ })
1009
+ }
1010
+ }
1011
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
1012
+ }
1013
+ }
1014
+ }
1015
+ }
1016
+ }
1017
+ }
1018
+ },
1019
+ //获取当前时间
1020
+ getNowFormatDate() {
1021
+ var date = new Date();
1022
+ var seperator1 = "-";
1023
+ var seperator2 = ":";
1024
+ var month = date.getMonth() + 1;
1025
+ var strDate = date.getDate();
1026
+ if (month >= 1 && month <= 9) {
1027
+ month = "0" + month;
1028
+ }
1029
+ if (strDate >= 0 && strDate <= 9) {
1030
+ strDate = "0" + strDate;
1031
+ }
1032
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1033
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1034
+ + seperator2 + date.getSeconds();
1035
+ return currentdate;
1036
+ },
1037
+ readRepair() {
1038
+ let url = this.$androidUtil.getProxyUrl()
1039
+ let gen = getRepairs(this, url)
1040
+ return co(gen)
1041
+ },
1042
+ showToRepair() {
1043
+ let res = this.hasDefect()
1044
+ ////tag
1045
+ ////tag
1046
+ if (res == '正常') {
1047
+ this.showrepair = false
1048
+ } else {
1049
+ this.showrepair = true
1050
+ this.assignObj()
1051
+ }
1052
+ this.showCheckToRepair = !this.showCheckToRepair
1053
+ },
1054
+ // 选中部门
1055
+ reres(val) {
1056
+ if (val.res == undefined) {
1057
+ return
1058
+ }
1059
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1060
+ this.$parent.$parent.model.f_meetunit = val.res
1061
+ this.$parent.$parent.model.f_orgstr = val.resids
1062
+ var arr = val.res.split('.')
1063
+ this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1064
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1065
+ },
1066
+ assignObj() {
1067
+ this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1068
+ this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1069
+ this.$parent.$parent.model.f_address = this.paper.f_address
1070
+ this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1071
+ this.$parent.$parent.model.f_street = this.paper.f_street
1072
+ this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1073
+ this.$parent.$parent.model.f_building = this.paper.f_building
1074
+ this.$parent.$parent.model.f_unit = this.paper.f_unit
1075
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1076
+ this.$parent.$parent.model.f_room = this.paper.f_room
1077
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1078
+ this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1079
+ this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1080
+ },
1081
+ hasDefect() {
1082
+ let checkResult = '正常'
1083
+ let codata = JSON.parse(JSON.stringify(this.paper))
1084
+ for (let device in this.paper) {
1085
+ if (device.startsWith("device")) {
1086
+ for (let item in this.paper[device]) {
1087
+ for (let i in this.paper[device][item].f_items) {
1088
+ let items = this.paper[device][item].f_items[i]
1089
+ ////tag
1090
+ if (items.f_is_defect == true || items.f_is_defect == 'true') {
1091
+ checkResult = '有隐患'
1092
+ }
1093
+ }
1094
+ }
1095
+ }
1096
+ }
1097
+ return checkResult
1098
+ },
1099
+ uploadPaper() {
1100
+ if (this.showrepair) {
1101
+ ////tag
1102
+ ////tag
1103
+ ////tag
1104
+ ////tag
1105
+
1106
+ if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1107
+ this.$showMessage("请选择维修员!")
1108
+ return
1109
+ }
1110
+ if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1111
+ this.$showMessage("请选择站点!")
1112
+ return
1113
+ }
1114
+ if (this.$parent.$parent.model.f_repairtype == '') {
1115
+ this.$showMessage("请选择报修类型!")
1116
+ return
1117
+ }
1118
+ this.$parent.$parent.isToRepair = true
1119
+ this.$parent.$parent.uploadCheckPaper()
1120
+ // this.$parent.$parent.savePaper(false).then((res) => {
1121
+ // ////tag
1122
+ // if(res != true){
1123
+ // ////tag
1124
+ // return
1125
+ // }else{
1126
+ // this.$parent.$parent.todo()
1127
+ // }
1128
+ // })
1129
+ } else {
1130
+ this.$parent.$parent.undo()
1131
+ }
1132
+
1133
+ },
1134
+ //确认安检转维修
1135
+
1136
+ undo() {
1137
+ this.showCheckToRepair = !this.showCheckToRepair
1138
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1139
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1140
+ this.$parent.$parent.model.f_repairtype = ''
1141
+ this.meading = '转站点'
1142
+ },
1143
+ //取消拉黑
1144
+ async deletebacklist() {
1145
+ if (!this.deletecause) {
1146
+ this.$showMessage("请填写取消拉黑原因!")
1147
+ return
1148
+ }
1149
+ this.paper.f_blocking_cause = this.deletecause
1150
+ ////tag)
1151
+ let http = new HttpResetClass()
1152
+ ////tag
1153
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1154
+ data: {
1155
+ items: "version",
1156
+ tablename: "t_userinfo",
1157
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1158
+ orderitem: "f_userinfo_id"
1159
+ }
1160
+ }, {resolveMsg: null, rejectMsg: null})
1161
+ ////tag)
1162
+ ////tag
1163
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1164
+ data: {
1165
+ "f_operat_type": "取消拉黑",
1166
+ "f_state": "有效",
1167
+ "f_user_name": this.paper.f_user_name,
1168
+ "f_comments": this.paper.f_delete_cause,
1169
+ "f_operator": Vue.user.name,
1170
+ "f_operatorid": Vue.user.id,
1171
+ "f_orgid": Vue.user.orgid,
1172
+ "f_orgname": Vue.user.orgs,
1173
+ "f_depid": Vue.user.depids,
1174
+ "f_depname": Vue.user.deps,
1175
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1176
+ "f_userinfo_id": {
1177
+ "f_userinfo_id": this.paper.f_userinfoid,
1178
+ "f_user_state": "正常",
1179
+ "version": res1.data[0].version
1180
+ },
1181
+ "f_limit_times": "",
1182
+ "f_limit_value": ""
1183
+ }
1184
+ }, {resolveMsg: null, rejectMsg: null})
1185
+
1186
+ ////tag)
1187
+ if (res2.data.code == 200) {
1188
+ this.showmodelthree = false
1189
+ this.deleteenabled = true
1190
+ this.paper.f_blacklist = "否"
1191
+ this.$showMessage("取消该用户限制购气成功!")
1192
+ } else {
1193
+ this.$showMessage("网络异常,请稍后再试!")
1194
+ }
1195
+ },
1196
+ async backlist() {
1197
+ if (!this.cause) {
1198
+ this.$showMessage("请填写拉黑原因!")
1199
+ return
1200
+ }
1201
+ this.paper.f_blocking_cause = this.cause
1202
+ ////tag)
1203
+ let http = new HttpResetClass()
1204
+ ////tag
1205
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1206
+ data: {
1207
+ items: "version",
1208
+ tablename: "t_userinfo",
1209
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1210
+ orderitem: "f_userinfo_id"
1211
+ }
1212
+ }, {resolveMsg: null, rejectMsg: null})
1213
+ ////tag)
1214
+ ////tag
1215
+ let limit_times = 1
1216
+ let limit_value = 3
1217
+ if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
1218
+ limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1219
+ limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1220
+ }
1221
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1222
+ data: {
1223
+ data: this.$parent.$parent.data,
1224
+ item: this.$parent.$parent.data.item,
1225
+ "f_operat_type": "拉黑",
1226
+ "f_state": "有效",
1227
+ "f_user_name": this.paper.f_user_name,
1228
+ "f_comments": this.paper.f_blocking_cause,
1229
+ "f_operator": Vue.user.name,
1230
+ "f_operate_date": Util.toStandardTimeString(),
1231
+ "f_operatorid": Vue.user.id,
1232
+ "f_orgid": Vue.user.orgid,
1233
+ "f_orgname": Vue.user.orgs,
1234
+ "f_depid": Vue.user.depids,
1235
+ "f_depname": Vue.user.deps,
1236
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1237
+ "f_userinfo_id": {
1238
+ "f_userinfo_id": this.paper.f_userinfoid
1239
+ },
1240
+ "f_limit_times": limit_times,
1241
+ "f_limit_value": limit_value
1242
+ }
1243
+ }, {resolveMsg: null, rejectMsg: null})
1244
+
1245
+ ////tag)
1246
+ if (res2.data.code == 200) {
1247
+ this.showmodel = false
1248
+ this.enabled = true
1249
+ this.paper.f_blacklist = "是"
1250
+ this.$showMessage("将该用户限制购气成功!")
1251
+ } else if (res2.data.msg == '数据增加重复') {
1252
+ this.showmodel = false
1253
+ this.enabled = true
1254
+ this.$showMessage("该用户已被限制购气,请勿重复提交!")
1255
+ } else {
1256
+ this.$showMessage("网络异常,请稍后再试!")
1257
+ }
1258
+ },
1259
+ cancel() {
1260
+ this.backlistisselect = false
1261
+ this.showmodel = false
1262
+ },
1263
+ deletecancel() {
1264
+ this.deletebacklistisselect = false
1265
+ this.showmodelthree = false
1266
+ },
1267
+ repiarmancg(val) {
1268
+ if (val) {
1269
+ ////tag
1270
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1271
+ let http1 = new HttpResetClass()
1272
+ http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1273
+ data: {
1274
+ items: 'f_user_telephone',
1275
+ tablename: 't_user',
1276
+ condition: `name = '${val}'`,
1277
+ orderitem: 'id'
1278
+ }
1279
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1280
+ this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1281
+ })
1282
+ }
1283
+ },
1284
+ },
1285
+ async ready() {
1286
+ this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1287
+ if (this.$appdata.getSingleValue('安检时显示拉黑')) {
1288
+ this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1289
+ }
1290
+ // await this.isoverDate()
1291
+ ////tag
1292
+ ////tag
1293
+ ////tag)
1294
+ ////tag))
1295
+ if (this.$parent.$parent.role == 'repair') {
1296
+ this.$set('style__', 'divmask')
1297
+ this.$set('style_view_', '')
1298
+ } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1299
+ this.$set('style__', 'divmask')
1300
+ this.$set('style_view_', 'divmask')
1301
+ ////tag
1302
+ } else {
1303
+ this.$set('style__', '')
1304
+ this.$set('style_view_', '')
1305
+ }
1306
+
1307
+ for (let item of this.radios) {
1308
+ if (this.paper.f_client_evaluation == item.label) {
1309
+ item.isChecked = true;
1310
+ }
1311
+ }
1312
+ if (!this.paper.f_notified_path)
1313
+ this.$set('paper.f_notified_path', Vue.nopic)
1314
+ if (!this.paper.f_notified1_path)
1315
+ this.$set('paper.f_notified1_path', Vue.nopic)
1316
+ if (!this.paper.f_notified2_path)
1317
+ this.$set('paper.f_notified2_path', Vue.nopic)
1318
+ if (!this.paper.f_sign_path)
1319
+ this.$set('paper.f_sign_path', Vue.nopic)
1320
+ ////tag
1321
+ if (!this.paper.f_overall_imgs) {
1322
+ let imgs = []
1323
+ // imgs.push({f_overall_path:Vue.nopic})
1324
+ this.$set('paper.f_overall_imgs', imgs)
1325
+ ////tag
1326
+ }
1327
+ if (!this.paper.f_overall2_path)
1328
+ this.$set('paper.f_overall2_path', Vue.nopic)
1329
+
1330
+ this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1331
+ if (Vue.config.safecheck != undefined) {
1332
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1333
+ if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1334
+ this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1335
+ }
1336
+ }
1337
+ }
1338
+ let device = this.$parent.$parent.data
1339
+ for (const deviceitem in device) {
1340
+ if (deviceitem.startsWith('device')) {
1341
+ //tag)
1342
+ if (device[deviceitem].length == 0) {
1343
+ continue
1344
+ }
1345
+ let items = device[deviceitem][0].f_items
1346
+ let deviceType = device[deviceitem][0].f_device_type
1347
+ for (let i = 0; i < items.length; i++) {
1348
+ if (items[i].f_is_defect) {
1349
+ let reason = items[i].f_item_name + ":"
1350
+ if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox') {
1351
+ for (let j = 0; j < items[i].f_item_value.length; j++) {
1352
+ if (j + 1 === items[i].f_item_value.length) {
1353
+ reason += items[i].f_item_value[j]
1354
+ } else {
1355
+ reason += items[i].f_item_value[j] + ","
1356
+ }
1357
+ }
1358
+ } else {
1359
+ reason += items[i].f_item_value
1360
+ }
1361
+ if (items[i].f_path) {
1362
+ this.defectImgs.push(items[i].f_path)
1363
+ }
1364
+ if (items[i].f_p1_path) {
1365
+ this.defectImgs.push(items[i].f_p1_path)
1366
+ }
1367
+ if (items[i].f_p2_path) {
1368
+ this.defectImgs.push(items[i].f_p2_path)
1369
+ }
1370
+ if (items[i].f_p3_path) {
1371
+ this.defectImgs.push(items[i].f_p3_path)
1372
+ }
1373
+ if (items[i].tooltip) {
1374
+ this.defectToolTip.push(items[i].tooltip)
1375
+ }
1376
+ this.defectReason.push({device: deviceType, deviceitem: reason})
1377
+ } else if (items[i].type === 'errorstring' && items[i].f_item_value) {
1378
+ let reason = items[i].f_item_name + ":" + items[i].f_item_value
1379
+ this.defectReason.push({device: deviceType, deviceitem: reason})
1380
+ }
1381
+
1382
+ }
1383
+ }
1384
+ }
1385
+ ////tag
1386
+ ////tag
1387
+ //tag
1388
+ ////tag
1389
+ //tag)
1390
+ //tag)
1391
+ //tag)
1392
+ ////tag
1393
+ ////tag
1394
+ ////tag
1395
+ },
1396
+ watch: {
1397
+ '$parent.$parent.isUpload'(val) {
1398
+ ////tag
1399
+ },
1400
+ 'meading'(val) {
1401
+ ////tag
1402
+ this.$parent.$parent.meading = val
1403
+ },
1404
+ 'backlistisselect'(val) {
1405
+ if (val == true) {
1406
+ this.showmodel = true
1407
+ this.deletebacklistisselect = false
1408
+ }
1409
+ },
1410
+ 'deletebacklistisselect'(val) {
1411
+ if (val == true) {
1412
+ this.showmodelthree = true
1413
+ this.backlistisselect = false
1414
+ }
1415
+ },
1416
+ 'isRecodr'(val) {
1417
+ if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1418
+ this.isRecodr = "false";
1419
+ }
1420
+ }
1421
+ }
1422
+ }
1423
+ </script>
1424
+ <style scoped>
1425
+ .panel-self {
1426
+ border-radius: 5px;
1427
+ border: 1px solid #c5e1f7;
1428
+ background-color: #F2F6FA;
1429
+ }
1430
+
1431
+ .text-left {
1432
+ text-align: left;
1433
+ }
1434
+
1435
+ .font {
1436
+ font: 15px PingFang-SC-Medium;
1437
+ color: #333333;
1438
+ }
1439
+
1440
+ .showIi {
1441
+ font: 14px PingFang-SC-Medium;
1442
+ color: #666666;
1443
+ }
1444
+
1445
+ .info {
1446
+ margin-top: 15px;
1447
+ border-radius: 5px;
1448
+ background-color: #f3faff;
1449
+ }
1450
+
1451
+ .btn-photo {
1452
+ border: 0;
1453
+ border-radius: 7px;
1454
+ background-color: #7dc1f4;
1455
+ font: 15px PingFang-SC-Bold;
1456
+ height: 20%;
1457
+ }
1458
+
1459
+ .div-photo {
1460
+ width: auto;
1461
+ height: auto;
1462
+ /* margin-top: 10px; */
1463
+ position: absolute;
1464
+ bottom: 10px;
1465
+ right: 10px;
1466
+ }
1467
+
1468
+ .btn-voice {
1469
+ border-radius: 7px;
1470
+ border: 1px solid #dedede;
1471
+ background-color: #f5fbff;
1472
+ font: 15px PingFang-SC-Bold;
1473
+ color: #499edf;
1474
+ }
1475
+
1476
+ .save-btn {
1477
+ width: 25%;
1478
+ background-color: #499edf;
1479
+ border-radius: 6px;
1480
+ color: #FFFFFF;
1481
+ font: 15px PingFang-SC-Bold;
1482
+ }
1483
+
1484
+ .upload-btn {
1485
+ width: 25%;
1486
+ background-color: #ffffff;
1487
+ border: 1px solid #499edf;
1488
+ border-radius: 6px;
1489
+ color: #499edf;
1490
+ font: 15px PingFang-SC-Bold;
1491
+ }
1492
+
1493
+ .repair-btn {
1494
+ width: 25%;
1495
+ border: 1px solid #499edf;
1496
+ border-radius: 6px;
1497
+ font: 15px PingFang-SC-Bold;
1498
+ }
1499
+
1500
+ #el_ca_tx {
1501
+ width: 100%;
1502
+ margin: 5px;
1503
+ }
1504
+
1505
+ #el_ca_txt {
1506
+ width: 100%;
1507
+ margin: 5px;
1508
+ }
1509
+ </style>