safecheck-client 4.0.1-11 → 4.0.1-12

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 (473) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +1 -1
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/App.vue +31 -31
  49. package/src/Widget.vue +13 -13
  50. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  51. package/src/android-bootstrap/less/.csscomb.json +304 -304
  52. package/src/android-bootstrap/less/.csslintrc +19 -19
  53. package/src/android-bootstrap/less/alerts.less +73 -73
  54. package/src/android-bootstrap/less/badges.less +66 -66
  55. package/src/android-bootstrap/less/bootstrap.less +56 -56
  56. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  57. package/src/android-bootstrap/less/button-groups.less +247 -247
  58. package/src/android-bootstrap/less/buttons.less +173 -173
  59. package/src/android-bootstrap/less/carousel.less +269 -269
  60. package/src/android-bootstrap/less/close.less +34 -34
  61. package/src/android-bootstrap/less/code.less +69 -69
  62. package/src/android-bootstrap/less/component-animations.less +33 -33
  63. package/src/android-bootstrap/less/grid.less +84 -84
  64. package/src/android-bootstrap/less/input-groups.less +167 -167
  65. package/src/android-bootstrap/less/jumbotron.less +52 -52
  66. package/src/android-bootstrap/less/labels.less +64 -64
  67. package/src/android-bootstrap/less/list-group.less +141 -141
  68. package/src/android-bootstrap/less/media.less +66 -66
  69. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  70. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  71. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  72. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  73. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  74. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  75. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  76. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  77. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  78. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  79. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  80. package/src/android-bootstrap/less/mixins/image.less +33 -33
  81. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  82. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  83. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  84. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  85. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  86. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  87. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  88. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  89. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  90. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  91. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  92. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  93. package/src/android-bootstrap/less/mixins/size.less +10 -10
  94. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  95. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  96. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  97. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  98. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  99. package/src/android-bootstrap/less/mixins.less +40 -40
  100. package/src/android-bootstrap/less/modals.less +151 -151
  101. package/src/android-bootstrap/less/navbar.less +660 -660
  102. package/src/android-bootstrap/less/navs.less +290 -290
  103. package/src/android-bootstrap/less/normalize.less +424 -424
  104. package/src/android-bootstrap/less/pager.less +76 -76
  105. package/src/android-bootstrap/less/pagination.less +89 -89
  106. package/src/android-bootstrap/less/panels.less +274 -274
  107. package/src/android-bootstrap/less/popovers.less +131 -131
  108. package/src/android-bootstrap/less/print.less +101 -101
  109. package/src/android-bootstrap/less/progress-bars.less +87 -87
  110. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  111. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  112. package/src/android-bootstrap/less/scaffolding.less +161 -161
  113. package/src/android-bootstrap/less/tables.less +262 -262
  114. package/src/android-bootstrap/less/theme.less +291 -291
  115. package/src/android-bootstrap/less/thumbnails.less +36 -36
  116. package/src/android-bootstrap/less/tooltip.less +102 -102
  117. package/src/android-bootstrap/less/type.less +303 -303
  118. package/src/android-bootstrap/less/utilities.less +55 -55
  119. package/src/android-bootstrap/less/variables.less +896 -896
  120. package/src/android-bootstrap/less/wells.less +29 -29
  121. package/src/bootstrap/less/.csscomb.json +304 -304
  122. package/src/bootstrap/less/.csslintrc +19 -19
  123. package/src/bootstrap/less/alerts.less +73 -73
  124. package/src/bootstrap/less/badges.less +66 -66
  125. package/src/bootstrap/less/breadcrumbs.less +26 -26
  126. package/src/bootstrap/less/button-groups.less +247 -247
  127. package/src/bootstrap/less/buttons.less +172 -172
  128. package/src/bootstrap/less/carousel.less +269 -269
  129. package/src/bootstrap/less/close.less +34 -34
  130. package/src/bootstrap/less/code.less +69 -69
  131. package/src/bootstrap/less/component-animations.less +33 -33
  132. package/src/bootstrap/less/dropdowns.less +216 -216
  133. package/src/bootstrap/less/grid.less +84 -84
  134. package/src/bootstrap/less/input-groups.less +167 -167
  135. package/src/bootstrap/less/jumbotron.less +52 -52
  136. package/src/bootstrap/less/labels.less +64 -64
  137. package/src/bootstrap/less/list-group.less +141 -141
  138. package/src/bootstrap/less/media.less +66 -66
  139. package/src/bootstrap/less/mixins/alerts.less +14 -14
  140. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  141. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  142. package/src/bootstrap/less/mixins/buttons.less +69 -69
  143. package/src/bootstrap/less/mixins/center-block.less +7 -7
  144. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  145. package/src/bootstrap/less/mixins/forms.less +90 -90
  146. package/src/bootstrap/less/mixins/gradients.less +59 -59
  147. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  148. package/src/bootstrap/less/mixins/grid.less +122 -122
  149. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  150. package/src/bootstrap/less/mixins/image.less +33 -33
  151. package/src/bootstrap/less/mixins/labels.less +12 -12
  152. package/src/bootstrap/less/mixins/list-group.less +30 -30
  153. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  154. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  155. package/src/bootstrap/less/mixins/opacity.less +8 -8
  156. package/src/bootstrap/less/mixins/pagination.less +24 -24
  157. package/src/bootstrap/less/mixins/panels.less +24 -24
  158. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  159. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  160. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  161. package/src/bootstrap/less/mixins/resize.less +6 -6
  162. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  163. package/src/bootstrap/less/mixins/size.less +10 -10
  164. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  165. package/src/bootstrap/less/mixins/table-row.less +44 -44
  166. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  167. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  168. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  169. package/src/bootstrap/less/mixins.less +40 -40
  170. package/src/bootstrap/less/modals.less +151 -151
  171. package/src/bootstrap/less/navbar.less +660 -660
  172. package/src/bootstrap/less/normalize.less +424 -424
  173. package/src/bootstrap/less/pagination.less +89 -89
  174. package/src/bootstrap/less/panels.less +275 -275
  175. package/src/bootstrap/less/popovers.less +131 -131
  176. package/src/bootstrap/less/print.less +101 -101
  177. package/src/bootstrap/less/progress-bars.less +87 -87
  178. package/src/bootstrap/less/responsive-embed.less +35 -35
  179. package/src/bootstrap/less/responsive-utilities.less +194 -194
  180. package/src/bootstrap/less/scaffolding.less +161 -161
  181. package/src/bootstrap/less/theme.less +291 -291
  182. package/src/bootstrap/less/thumbnails.less +36 -36
  183. package/src/bootstrap/less/tooltip.less +102 -102
  184. package/src/bootstrap/less/type.less +303 -303
  185. package/src/bootstrap/less/utilities.less +55 -55
  186. package/src/bootstrap/less/wells.less +29 -29
  187. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  188. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  189. package/src/components/FileUpload.vue +696 -696
  190. package/src/components/Hello.vue +39 -39
  191. package/src/components/LeftTree.vue +27 -27
  192. package/src/components/android/AddPlanItem.vue +447 -447
  193. package/src/components/android/AddPlanItemYy.vue +451 -451
  194. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  195. package/src/components/android/AndroidDefectDetails.vue +769 -769
  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/Devices.vue +327 -327
  204. package/src/components/android/Devicesm.vue +327 -327
  205. package/src/components/android/EquipmentInspection.vue +348 -348
  206. package/src/components/android/FootprintMap.vue +120 -120
  207. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  208. package/src/components/android/MasterMain.vue +77 -77
  209. package/src/components/android/Menu.vue +132 -132
  210. package/src/components/android/PaperAlarm.vue +85 -85
  211. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  212. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  213. package/src/components/android/PhoneRecordInfo.vue +113 -113
  214. package/src/components/android/PhoneSellInfo.vue +113 -113
  215. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  216. package/src/components/android/PlumberAnnual.vue +83 -83
  217. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  218. package/src/components/android/PlumberMonthly.vue +84 -84
  219. package/src/components/android/PostMap.vue +83 -83
  220. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  221. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  222. package/src/components/android/QueryCheckHistory.vue +122 -122
  223. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  224. package/src/components/android/RepairMain.vue +60 -60
  225. package/src/components/android/Repairman.vue +12 -12
  226. package/src/components/android/SafePlanItem.vue +509 -509
  227. package/src/components/android/StationMaster.vue +12 -12
  228. package/src/components/android/SwitchValve.vue +323 -323
  229. package/src/components/android/examples/SafeListExamples.vue +296 -296
  230. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  231. package/src/components/android/recheck/Recheck.vue +402 -402
  232. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  233. package/src/components/checkplan/checkmsg.vue +459 -459
  234. package/src/components/defect/DefectList.vue +507 -507
  235. package/src/components/defect/DefectListWeixiu.vue +484 -484
  236. package/src/components/defects/DefectModal.vue +101 -101
  237. package/src/components/defects/DevicesAndItem.vue +39 -39
  238. package/src/components/filialCircle/CircleList.vue +139 -139
  239. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  240. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  241. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  242. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  243. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  244. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  245. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  246. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  247. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  248. package/src/components/map/PersonTrack.vue +226 -226
  249. package/src/components/notice/NoticeForm.vue +100 -100
  250. package/src/components/notice/NoticeIssue.vue +20 -20
  251. package/src/components/paper/PicViewer.vue +18 -18
  252. package/src/components/paper/RegionalList.vue +220 -220
  253. package/src/components/pc/AnnouncementPC.vue +524 -524
  254. package/src/components/pc/DefectList.vue +742 -742
  255. package/src/components/pc/DeviceChange.vue +1068 -1068
  256. package/src/components/pc/SafeVisitInfo.vue +261 -261
  257. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  258. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  259. package/src/components/phonestate/PostMap.vue +82 -82
  260. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  261. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  262. package/src/components/report/HiddenSituation.vue +165 -165
  263. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  264. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  265. package/src/components/rongcheng/DefectList.vue +560 -560
  266. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  267. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  268. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  269. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  270. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  271. package/src/components/shaoguan/DefectList.vue +473 -473
  272. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  273. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  274. package/src/components/userfile/MeterFile.vue +145 -145
  275. package/src/components/userfile/MeterModify.vue +46 -46
  276. package/src/components/userfile/SecurityAudit.vue +243 -243
  277. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  278. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  279. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  280. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  281. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  282. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  283. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  284. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  285. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  286. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  287. package/src/filiale/bayan/android/Edit.vue +132 -132
  288. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  289. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  290. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  291. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  292. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  293. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  294. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  295. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  296. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  297. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  298. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  299. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  300. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  301. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  302. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  303. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  304. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  305. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  306. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  307. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  308. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  309. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  310. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  311. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  312. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  313. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  314. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  315. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  316. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  317. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  318. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  319. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  320. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  321. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  322. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  323. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  324. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  325. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  326. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  327. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  328. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  329. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  330. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  331. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  332. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  333. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  334. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1306 -1306
  335. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  336. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  337. package/src/filiale/meihekou/pc.js +13 -13
  338. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  339. package/src/filiale/minsheng/android/SwitchValve.vue +497 -497
  340. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  341. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  342. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  343. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  344. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  345. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  346. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  347. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  348. package/src/filiale/qianneng/android/SwitchValve.vue +370 -370
  349. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  350. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  351. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  352. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  353. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  354. package/src/filiale/qingjian/pc.js +15 -15
  355. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  356. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  357. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  358. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  359. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  360. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  361. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  362. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  363. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  364. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  365. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  366. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  367. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  368. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  369. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  370. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  371. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  372. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  373. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  374. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  375. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  376. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  377. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  378. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  379. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  380. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  381. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  382. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  383. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  384. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -1016
  385. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2340 -0
  386. package/src/filiale/taiyuan/android.js +2 -1
  387. package/src/filiale/taiyuan/pc/DefectDeal.vue +1017 -0
  388. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  389. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  390. package/src/filiale/taiyuan/pc.js +14 -0
  391. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  392. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  393. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  394. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  395. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  396. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  397. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  398. package/src/filiale/tongchuan/android/SwitchValve.vue +284 -284
  399. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  400. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  401. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  402. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  403. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  404. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  405. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  406. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  407. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  408. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  409. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  410. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  411. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  412. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  413. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  414. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  415. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  416. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  417. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  418. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  419. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  420. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  421. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  422. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  423. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  424. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  425. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  426. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  427. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  428. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  429. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  430. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  431. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  432. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  433. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  434. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  435. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  436. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  437. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  438. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  439. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  440. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  441. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  442. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  443. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
  444. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  445. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  446. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  447. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  448. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  449. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  450. package/src/filiale/yunchengminsheng/android.js +15 -15
  451. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  452. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  453. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  454. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  455. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  456. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  457. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  458. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  459. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  460. package/src/main.js +32 -33
  461. package/src/plugins/LoadData.js +10 -10
  462. package/src/plugins/LoadParams.js +24 -24
  463. package/src/safecheck-android.js +312 -312
  464. package/src/stores/wxconfig.js +10 -10
  465. package/src/utils/getNowDate.js +33 -33
  466. package/test/e2e/custom-assertions/elementCount.js +26 -26
  467. package/test/e2e/nightwatch.conf.js +40 -40
  468. package/test/e2e/runner.js +30 -30
  469. package/test/e2e/specs/test.js +13 -13
  470. package/test/unit/.eslintrc +5 -5
  471. package/test/unit/TestUtil.js +62 -62
  472. package/test/unit/context.html +20 -20
  473. package/test/unit/index.js +13 -13
@@ -0,0 +1,1017 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_id"
11
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_user_name"
16
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">客户电话</label>
20
+ <input type="text" class="input_search" v-model="model.f_user_phone"
21
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">是否处理</label>
25
+ <v-select :value.sync="model.f_is_repaired" v-model='model.f_is_repaired'
26
+ :value-single="true" style="width: 60%"
27
+ :options='$parent.$parent.dealOptions' placeholder='请选择'
28
+ close-on-select
29
+ condition="f_is_repaired = '{}'"></v-select>
30
+ </div>
31
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
32
+ <export-excel :data="$parent.$parent.searchData"
33
+ :field="$parent.$parent.excelHeaders"
34
+ progress="safeGetExportProgress"
35
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="defectDetails" template-name='隐患处置'></export-excel>
36
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
37
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
38
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="search()">查询</button>
39
+ <div
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.hidden()"></div>
42
+ </div>
43
+ </div>
44
+ <div class="row">
45
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
46
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
47
+ <input type="text" class="input_search" v-model="model.f_residential_area"
48
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
49
+ </div>
50
+ <div class="col-sm-4 form-group" style="margin: 0" v-show="$parent.$parent.criteriaShow">
51
+ <role-selector-safe
52
+ role-name="安检员"
53
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
+ :value.sync="model.f_checker_id"
55
+ v-model="model.f_checker_id"
56
+ :value-multiple="true"
57
+ :value-close="false"
58
+ condition="f_checker_name in {}">
59
+ </role-selector-safe>
60
+ </div>
61
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
62
+ <label class="font_normal_body">检&ensp;查&ensp;项</label>
63
+ <v-select :value.sync="model.f_device_type"
64
+ v-model="model.f_device_type"
65
+ style="width: 60%"
66
+ :options='$parent.$parent.device_types'
67
+ placeholder='检查项'
68
+ :multiple="true"
69
+ condition="f_device_type in {}"></v-select>
70
+ </div>
71
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
72
+ <label class="font_normal_body">隐患名称</label>
73
+ <v-select :value.sync="model.f_item_name"
74
+ v-model='model.f_item_name'
75
+ style="width: 60%"
76
+ :options='$parent.$parent.DefectConfigs'
77
+ placeholder='隐患名称'
78
+ :multiple="true"
79
+ condition="f_item_name in {}"></v-select>
80
+ </div>
81
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
82
+ <label class="font_normal_body">安检起始</label>
83
+ <datepicker
84
+ :value.sync="model.f_check_start"
85
+ placeholder='安检起始时间' style="width: 60%"
86
+ :disabled-days-of-week="[]"
87
+ :format="'yyyy-MM-dd'"
88
+ :show-rest-button="reset"
89
+ v-model="model.f_check_start"
90
+ condition="f_offsite_time >= '{} 00:00:00'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
94
+ <label class="font_normal_body">安检结束</label>
95
+ <datepicker
96
+ :value.sync="model.f_check_end"
97
+ placeholder='安检结束时间' style="width: 60%"
98
+ :disabled-days-of-week="[]"
99
+ :format="'yyyy-MM-dd'"
100
+ :show-rest-button="reset"
101
+ v-model="model.f_check_end"
102
+ condition="f_offsite_time <= '{} 23:59:59'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
106
+ <label class="font_normal_body">用户类型</label>
107
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
108
+ :value-single="true" style="width: 60%"
109
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
110
+ close-on-select
111
+ condition="f_check_type = '{}'"></v-select>
112
+ </div>
113
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
114
+ <label class="font_normal_body">详细地址</label>
115
+ <input type="text" class="input_search" v-model="model.f_address"
116
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
117
+ </div>
118
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
119
+ <dep-selector
120
+ :value.sync="model.parentid"
121
+ v-model="model.parentid"
122
+ condition="parentid in {}">
123
+ </dep-selector>
124
+ </div>
125
+ </div>
126
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
127
+ <div slot="modal-header" class="modal-header">
128
+ <h4 class="modal-title">
129
+ 选择计划
130
+ </h4>
131
+ </div>
132
+ <div slot="modal-body" class="modal-body">
133
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
134
+ </div>
135
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
136
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
137
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
138
+ </div>
139
+ </modal>
140
+ </div>
141
+ </criteria>
142
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
143
+ <template partial='head'>
144
+ <tr>
145
+ <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
146
+ <th>
147
+ <nobr>检查项</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>隐患名称</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>隐患级别</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>客户编号</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>客户名称</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>客户电话</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>客户类型</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>客户小区</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>客户地址</nobr>
172
+ </th>
173
+ <th>
174
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
175
+ </th>
176
+ <th>
177
+ <nobr>安检员</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>是否处理</nobr>
181
+ </th>
182
+ <th style="width: 188px">
183
+ <nobr>到期时间</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>操作</nobr>
187
+ </th>
188
+ </tr>
189
+ </template>
190
+ <template partial='body'>
191
+ <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['用户自行整改', '现场已处理', '维修已处理', '转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
192
+ <td style="text-align: center">{{row.f_device_type}}</td>
193
+ <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
194
+ <td style="text-align: center">{{row.f_defect_level}}</td>
195
+ <td style="text-align: center">{{row.f_userinfo_id}}</td>
196
+ <td style="text-align: center">{{row.f_user_name}}</td>
197
+ <td style="text-align: center">{{row.f_user_phone}}</td>
198
+ <td style="text-align: center">{{row.f_check_type}}</td>
199
+ <td style="text-align: center">{{row.f_residential_area}}</td>
200
+ <td style="text-align: center">{{row.f_address}}</td>
201
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
202
+ <td style="text-align: center">{{row.f_checker_name}}</td>
203
+ <td style="text-align: center">{{row.f_is_repaired}}</td>
204
+ <td style="" v-if="row.f_is_repaired == '未处理'">
205
+ <datepicker
206
+ :value.sync="row.f_handle_date"
207
+ placeholder='到期时间' style="width: 60%; position: static"
208
+ :disabled-days-of-week="[]"
209
+ :format="'yyyy-MM-dd'"
210
+ :show-rest-button="reset"
211
+ v-model="row.f_handle_date">
212
+ </datepicker>
213
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.a(row)'>修改</button>
214
+ </td>
215
+ <td style="text-align: center" v-if="row.f_is_repaired == '已处理' || row.f_is_repaired == '转维修'">
216
+ {{row.f_handle_date}}
217
+ </td>
218
+ <td style="text-align: center">
219
+ <button style="margin-bottom: 5px" class="button_spacing button_search-1" @click='$parent.$parent.$parent.showDealModal(row)'>{{row.f_is_repaired == '未处理' ? '处理' : '查看'}}</button>
220
+ <button style="margin-bottom: 5px" class="button_spacing button_search-1" v-if="row.f_is_repaired == '未处理'" @click='$parent.$parent.$parent.delDefect(row)'>删除</button>
221
+ </td>
222
+ </template>
223
+ </data-grid>
224
+ </criteria-paged>
225
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
226
+ <modal :show.sync="showSolveModal" v-ref:solveModal width="750px">
227
+ <div slot="modal-header" class="modal-header">
228
+ <h4 class="modal-title">
229
+ {{solveModal.preData.state == '已处理' ? '查看隐患' : '处理隐患'}}
230
+ </h4>
231
+ </div>
232
+ <div slot="modal-body" class="modal-body">
233
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
234
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
235
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
236
+ </div>
237
+
238
+ <div class="col-sm-6" style="margin-top: 10px">
239
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
240
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
241
+ </div>
242
+ <div class="col-sm-6" style="margin-top: 10px">
243
+ <label class="font_normal_body">安检时间</label>
244
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
245
+ </div>
246
+ <div class="col-sm-12" style="margin-bottom: 10px; display: flex; gap: 10px" >
247
+ <label class="font_normal_body">隐患图片</label>
248
+ <img-self-plus v-if="solveModal.preData.defectImg" :width="200" :height="200" :src="solveModal.preData.defectImg"></img-self-plus>
249
+ <img-self-plus v-if="solveModal.preData.defectImg1" :width="200" :height="200" :src="solveModal.preData.defectImg1"></img-self-plus>
250
+ <img-self-plus v-if="solveModal.preData.defectImg2" :width="200" :height="200" :src="solveModal.preData.defectImg2"></img-self-plus>
251
+ </div>
252
+
253
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
254
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
255
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
256
+ </div>
257
+ <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
258
+ <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
259
+ <input class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
260
+ <v-select
261
+ v-if="solveModal.preData.type == 'solve'"
262
+ :value.sync="solveModal.uploadData.f_repairman"
263
+ :value-single="true"
264
+ :options='toRepairModal.preData.repairers'
265
+ placeholder='请选择维修员'
266
+ close-on-select></v-select>
267
+ </div>
268
+ <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
269
+ <label class="font_normal_body">处理时间</label>
270
+ <datepicker
271
+ :disabled="true"
272
+ placeholder='处理时间' style="width:60%"
273
+ :disabled-days-of-week="[]"
274
+ :format="'yyyy-MM-dd'"
275
+ :show-rest-button="reset"
276
+ :value.sync="solveModal.uploadData.f_repair_date">
277
+ </datepicker>
278
+ </div>
279
+ <div v-if="solveModal.preData.state == '未处理'" class="col-sm-12" style="margin-bottom: 10px">
280
+ <label class="font_normal_body">处理后图片</label>
281
+ <safecheck-file-upload
282
+ :issearch="false"
283
+ :isupload="true"
284
+ :blodid="check.id"
285
+ :isdelete="true"
286
+ flag="safeCheck"
287
+ @filename="getfile"
288
+ ></safecheck-file-upload>
289
+ </div>
290
+ <div v-if="solveModal.preData.state == '已处理'" class="col-sm-12" style="margin-bottom: 10px">
291
+ <p> <label class="font_normal_body">处理后图片</label></p>
292
+ <P></P>
293
+ <div class="col-sm-12">
294
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg">
295
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg" style="margin-left: 10px"></img-self-plus>
296
+ </div>
297
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg1">
298
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg1" style="margin-left: 10px"></img-self-plus>
299
+ </div>
300
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg2">
301
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg2" style="margin-left: 10px"></img-self-plus>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
307
+ <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核通过</button>
308
+ <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('不通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核不通过</button>
309
+ <button class="button_search" v-if="solveModal.preData.state == '未处理'" @click="ok">确认</button>
310
+ <button class="button_search" @click="cancel">取消</button>
311
+ <button class="button_search" v-if="false" @click="toRepair(check)">转维修</button>
312
+ </div>
313
+ </modal>
314
+ <modal :show.sync="showModal2" :backdrop="false">
315
+ <div slot="modal-header" class="modal-header">
316
+ <h4 class="modal-title">
317
+ 转维修
318
+ </h4>
319
+ </div>
320
+ <div slot="modal-body" class="modal-body">
321
+ <div v-if="true">
322
+ <div>
323
+
324
+ </div>
325
+ <!-- <div v-for="(index, item) in dangerGroup">-->
326
+
327
+ <!-- </div>-->
328
+ <div class="row" style="margin-top: 10px">
329
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
330
+ <div class="col-xs-8 col-md-8">
331
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
332
+ :options='dispatchTypeOptions' placeholder='派发类型'
333
+ close-on-select>
334
+ </v-select>
335
+ </div>
336
+ </div>
337
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
338
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
339
+ <div class="col-xs-8 col-md-8">
340
+ <v-select
341
+ :value.sync="selectData.f_repairman"
342
+ :value-single="true"
343
+ :options='repairers'
344
+ placeholder='请选择维修员'
345
+ close-on-select></v-select>
346
+ </div>
347
+ </div>
348
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
349
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
350
+ <div class="col-xs-8 col-md-8">
351
+ <right-tree
352
+ islist
353
+ :userid="userid"
354
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
355
+ @re-res="getSiteRes"></right-tree>
356
+ </div>
357
+ </div>
358
+ <div class="row" style="margin-top: 10px">
359
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
360
+ <div class="col-xs-8 col-md-8">
361
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
362
+ class="select select_list"
363
+ :value-single="true"
364
+ :options='repairTypeOptions'
365
+ close-on-select>
366
+ </v-select>
367
+ </div>
368
+ </div>
369
+ <div class="row" style="margin-top: 10px">
370
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
371
+ <div class="col-xs-8 col-md-8">
372
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
373
+ </div>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
378
+ <button class="button_search" @click="rectification">转维修</button>
379
+ <button class="button_search" @click="cancel1">取消</button>
380
+ </div>
381
+ </modal>
382
+ <modal :show.sync="showModal3">
383
+ <div slot="modal-header" class="modal-header">
384
+ <h4 class="modal-title">
385
+ 转维修进度{{ progressbarWidth }}%
386
+ </h4>
387
+ </div>
388
+ <div slot="modal-body" class="modal-body">
389
+ <div class="progress">
390
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
391
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
392
+ </div>
393
+ </div>
394
+ </div>
395
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
396
+ </modal>
397
+ </div>
398
+ </div>
399
+ </template>
400
+
401
+ <script>
402
+ import {PagedList} from 'vue-client'
403
+ import Vue from 'vue'
404
+ import co from 'co'
405
+ import * as Util from "../../../components/Util";
406
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
407
+ //获取json配置文件
408
+ let asyncReady = async function (self) {
409
+ // 获取配置信息
410
+ try {
411
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
412
+ Vue.config = res.data
413
+ // self.getDefectInfoConfig(res.data)
414
+ } catch (error) {
415
+ // 忽略704,文件找不到异常R
416
+ if (error.status !== 704) {
417
+ throw error
418
+ }
419
+ }
420
+ }
421
+
422
+ let select = function* (self) {
423
+ let http = new HttpResetClass()
424
+ let getGasman = yield http.load('POST', '/rs/search', {
425
+ source: 'tool.getChildrenOfResName($新安检员$)',
426
+ userid: self.$login.f.id
427
+ }, {resolveMsg: null, rejectMsg: null})
428
+ ////tag
429
+ self.checkersid.push({label: '全部', value: ''})
430
+ getGasman.data.forEach((checker) => {
431
+ self.checkersid.push({label: checker.name, value: checker.id})
432
+ })
433
+ }
434
+
435
+ export default {
436
+ title: '隐患处置',
437
+ data() {
438
+ let model = new PagedList('api/af-safecheck/sql/DefectDetailsYC', 20,{
439
+ })
440
+ model.f_plan_id = ''
441
+ model.f_approved = ''
442
+ model.f_entry = ''
443
+ model.f_no_checkplan = ''
444
+ model.f_check_type=''
445
+ return {
446
+ audioshow:false,
447
+
448
+ model: model,
449
+ deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
450
+ repairStateOptions: [{label:'全部',value:''}, {label:'转维修',value:'转维修'}, {label:'维修已处理',value:'维修已处理'}, {label: '隐患未处理', value: '隐患未处理'}, {label:'现场已处理',value:'现场已处理'}, {label:'用户自行整改',value:'用户自行整改'}],
451
+ //searchData:searchData,
452
+ excelHeaders: {
453
+ 'f_device_type': '检查项',
454
+ 'f_item_name': '隐患名称',
455
+ 'f_item_value': '隐患内容',
456
+ 'f_defect_level': '隐患级别',
457
+ 'f_userinfo_id': '客户编号',
458
+ 'f_user_name': '客户姓名',
459
+ 'f_user_phone': '客户电话',
460
+ 'f_check_type': '客户类型',
461
+ 'f_residential_area': '客户小区',
462
+ 'f_address': '客户地址',
463
+ 'f_offsite_time': '安检时间',
464
+ 'f_checker_name': '安检员',
465
+ },
466
+ fun: this.$login.f,
467
+ checkersid: [],
468
+ safetype: this.getSafeParam('安检类型'),
469
+ criteriaShow: false,
470
+ showModal: false,
471
+ f_approval_states: this.getSafeParam('安检单审核状态'),
472
+ f_entry_status:this.getSafeParam('安检状态'),
473
+ f_checkplans: this.getSafeParam('有无计划'),
474
+ showcheckmsg: false,
475
+ checkInfo: {},
476
+ orderDefault: "'f_offsite_time'",
477
+ orderFields: {
478
+ f_offsite_time: 'no'
479
+ },
480
+ sliceArea: [],
481
+ cbc:[],
482
+ DefectConfig:'' ,
483
+ DefectConfigs:[],
484
+ device_types:[],
485
+ f_check_type: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
486
+ dealOptions: [{label:'全部',value:''},{label:'已处理',value:'已处理'},{label:'未处理',value:'未处理'},{label:'转维修',value:'转维修'}],
487
+ showModal2: false,
488
+ selectData:{
489
+ dispatchType:'',
490
+ f_repairman:'',
491
+ f_remarks:'',
492
+ f_repairtype:''
493
+ },
494
+ repairers: [],
495
+ repairTypeOptions:this.$appdata.getParam('报修类型'),
496
+ dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
497
+ dangerGroups: [],
498
+ showModal3: false,
499
+ progressbarWidth:'0',
500
+ canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
501
+ checkes: [],
502
+ solveModal: {
503
+ preData: {
504
+ type: '',
505
+ defectImg: '',
506
+ defectImg1: '',
507
+ defectImg2: '',
508
+ repairedImg: '',
509
+ repairedImg1: '',
510
+ repairedImg2: '',
511
+ state: ''
512
+ },
513
+ uploadData: {
514
+ id: '',
515
+ f_repairman: this.$login.f.name,
516
+ f_repair_date: Util.getNowDate(),
517
+ f_repair_path: '',
518
+ imgSrc: '',
519
+ filename: ''
520
+ }
521
+ },
522
+ showSolveModal: false,
523
+ check: null
524
+ }
525
+ },
526
+ computed :{
527
+ searchData() {
528
+ return {condition: this.model.condition}
529
+ }
530
+ },
531
+ methods: {
532
+ delDefect(row){
533
+ this.$showMessage('确认删除吗?', ['confirm', 'cancel']).then(async res => {
534
+ if (res == 'confirm') {
535
+ let http = new HttpResetClass()
536
+ let updevices = `update t_devices_items set f_is_repaired ='已处理' where id = '${row.f_defect_id}'`
537
+ http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: updevices}},
538
+ {resolveMsg: null, rejectMsg: '删除安检册失败'})
539
+ this.$refs.paged.$refs.criteria.search()
540
+ this.$showMessage('删除成功')
541
+ }
542
+ })
543
+ },
544
+ getfile(res){
545
+ this.solveModal.uploadData.filename=res.f_filename
546
+ },
547
+ async getDefectOption() {
548
+ let res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
549
+ data: {
550
+ items: "pd.f_device_type",
551
+ tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
552
+ groupitem: "pd.f_device_type",
553
+ condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
554
+ }
555
+ }, {resolveMsg: null, rejectMsg: null})
556
+ const device_types = [{label: '全部', value: ''}]
557
+ res.data.forEach((item) => {
558
+ device_types.push({label: item.f_device_type, value: item.f_device_type})
559
+ })
560
+ this.device_types = device_types
561
+ res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
562
+ data: {
563
+ items: "di.f_item_name",
564
+ tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
565
+ groupitem: "di.f_item_name",
566
+ condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
567
+ }
568
+ }, {resolveMsg: null, rejectMsg: null})
569
+ const DefectConfigs = [{label: '全部', value: ''}]
570
+ res.data.forEach((item) => {
571
+ DefectConfigs.push({label: item.f_item_name, value: item.f_item_name})
572
+ })
573
+ this.DefectConfigs = DefectConfigs
574
+ },
575
+ async a(row) {
576
+ console.log('row=', JSON.stringify(row))
577
+ let res = await this.$showMessage('确认修改到期时间吗?', ['confirm', 'cancel'])
578
+ if (res == 'confirm'){
579
+ await new HttpResetClass().http('post', '/api/af-safecheck/logic/updateDefectTime', {
580
+ defect: {
581
+ f_defect_id: row.f_defect_id,
582
+ f_handle_date: row.f_handle_date
583
+ },
584
+ user: {
585
+ name: this.$login.f.name,
586
+ id: this.$login.f.id,
587
+ }
588
+ })
589
+ this.$refs.paged.$refs.criteria.search()
590
+ this.$showMessage('修改成功')
591
+ }
592
+ },
593
+ async upSolveDefect() {
594
+ console.log('this.solveModal.uploadData=', JSON.stringify(this.solveModal.uploadData))
595
+ this.solveModal.uploadData.f_repairman = this.$login.f.name
596
+ this.solveModal.uploadData.f_repair_date = Util.getNowDate()
597
+ let res = await this.$resetpost('/api/af-safecheck/logic/pcRepairDefectNew', this.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
598
+ if (res.data.code === 200) {
599
+ this.$showMessage('操作成功')
600
+ }else {
601
+ this.$showMessage('网络异常')
602
+ }
603
+ this.showSolveModal = false
604
+ this.$refs.paged.$refs.criteria.search()
605
+ this.solveModal.uploadData={
606
+ id: '',
607
+ f_repairman: '',
608
+ f_repair_date: '',
609
+ f_repair_path: '',
610
+ imgSrc: '',
611
+ filename: '',
612
+ f_defect_remark:''
613
+ }
614
+ },
615
+ ok() {
616
+ if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
617
+ this.$showMessage('请录入处理后照片')
618
+ return
619
+ }
620
+ this.upSolveDefect()
621
+ },
622
+ cancel() {
623
+ this.showSolveModal = false
624
+ },
625
+ showDealModal(row){
626
+ console.log('row=', JSON.stringify(row))
627
+ this.check = row
628
+ this.solveModal.preData.state = (row.f_is_repaired == '未处理' ? '未处理' : '已处理')
629
+ this.solveModal.preData.defectImg = row.f_path ? '/rs/image/file/' + row.f_path : ''
630
+ this.solveModal.preData.defectImg1 = row.f_p1_path ? '/rs/image/file/' + row.f_p1_path : ''
631
+ this.solveModal.preData.defectImg2 = row.f_p2_path ? '/rs/image/file/' + row.f_p2_path : ''
632
+
633
+ this.solveModal.preData.repairedImg = row.f_repair_path ? '/rs/image/file/' + row.f_repair_path : ''
634
+ this.solveModal.preData.repairedImg1 = row.f_repair1_path ? '/rs/image/file/' + row.f_repair1_path : ''
635
+ this.solveModal.preData.repairedImg2 = row.f_repair2_path ? '/rs/image/file/' + row.f_repair2_path : ''
636
+ this.solveModal.uploadData.id = row.f_defect_id
637
+ this.solveModal.uploadData.f_repairman = row.f_repairman
638
+ this.solveModal.uploadData.f_repair_date = row.f_repair_date
639
+ this.showSolveModal = !this.showSolveModal
640
+ console.log('this.solveModal=', JSON.stringify(this.solveModal))
641
+ },
642
+ isChecked(row) {
643
+ return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
644
+ },
645
+ setCheckes(row) {
646
+ let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
647
+ if(index<0){
648
+ this.checkes.push(row)
649
+ }else{
650
+ this.checkes.splice(index,1)
651
+ }
652
+ console.log('this.checkes=', JSON.stringify(this.checkes))
653
+ },
654
+ toRepair(check){
655
+ console.log('this.checkes=', JSON.stringify(this.checkes))
656
+ let checkes = []
657
+ if (check){
658
+ checkes.push(check)
659
+ }else {
660
+ checkes = this.checkes
661
+ }
662
+ if(checkes.length==0){
663
+ return this.$showMessage('请先选择需要转维修的隐患!')
664
+ }
665
+
666
+ const dangerGroups = []
667
+ for (const danger of checkes) {
668
+ let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_id === danger.f_userinfo_id)
669
+ if (i == -1){
670
+ dangerGroups.push({
671
+ f_userinfo_id: danger.f_userinfo_id,
672
+ dangers: []
673
+ })
674
+ i = dangerGroups.length - 1
675
+ }
676
+ dangerGroups[i].dangers.push(danger)
677
+ }
678
+ this.dangerGroups = dangerGroups
679
+ console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
680
+ this.showModal2=true
681
+ },
682
+ getEmp() {
683
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${this.$login.f.id}`}
684
+ let http = new HttpResetClass()
685
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
686
+ let str=''
687
+ res.data.forEach((item,idx,arr) => {
688
+ //tag
689
+ if(idx+1==arr.length){
690
+ str += `'${item.id}'`
691
+ }else{
692
+ str += `'${item.id}',`
693
+ }
694
+
695
+ })
696
+ let http1 = new HttpResetClass()
697
+ http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
698
+ data: {
699
+ items: 'id,f_user_telephone',
700
+ tablename: 't_user',
701
+ condition: `id in (${str})`,
702
+ orderitem: 'id'
703
+ }
704
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
705
+
706
+ res.data.forEach((user)=>{
707
+ try {
708
+ ress.data.forEach((tel,tidx,arr)=>{
709
+ //tag
710
+ if(user.id==tel.id){
711
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
712
+ ress.data.splice(tidx,1)
713
+ //tag
714
+ throw new Error("跳出循环");
715
+ }
716
+ })
717
+ }catch (e) {
718
+ //tag
719
+ }
720
+ })
721
+ })
722
+
723
+ })
724
+ },
725
+ getSiteRes(obj) {
726
+ console.log('siteRes ---> ')
727
+ console.log(obj)
728
+ if(obj.resids[0]){
729
+ this.selectData.f_meetunit = obj.res.join('.')
730
+ this.selectData.f_reciever = obj.resids.join('.')
731
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
732
+ }else {
733
+ this.selectData.f_meetunit = ''
734
+ this.selectData.f_reciever = ''
735
+ this.selectData.f_outlets = ''
736
+ }
737
+ },
738
+ cancel1(){
739
+ this.showModal2=false
740
+ this.selectData={
741
+ dispatchType:'',
742
+ f_repairman:'',
743
+ f_remarks:'',
744
+ f_repairtype:''
745
+ }
746
+ },
747
+ async rectification(){
748
+ if(this.selectData.dispatchType){
749
+ if(this.selectData.dispatchType=='派发给站点'){
750
+ if(!this.selectData.f_reciever){
751
+ this.$showMessage('请选择部门!')
752
+ return
753
+ }
754
+ }else{
755
+ if(!this.selectData.f_repairman){
756
+ this.$showMessage('请选择维修员!')
757
+ return
758
+ }
759
+ }
760
+ }else {
761
+ this.$showMessage('请选择派发类型!')
762
+ return
763
+ }
764
+
765
+ if(!this.selectData.f_repairtype){
766
+ this.$showMessage('请选择报修类型!')
767
+ return
768
+ }
769
+ this.showModal3=true
770
+ let act={}
771
+ let toRepair=''
772
+ let successCount=0
773
+ if(this.selectData.dispatchType=='派发给站点'){
774
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
775
+ toRepair=null
776
+ }else{
777
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
778
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
779
+ toRepair='一级派单'
780
+ }
781
+ let rep={
782
+ loginUser: {
783
+ name: this.$login.f.name,
784
+ ename: this.$login.f.ename
785
+ },
786
+ f_meetunit: this.$login.f.deps,
787
+ f_attendant: this.$login.f.name,
788
+ f_outlets: this.$login.f.deps,
789
+ f_remarks: this.selectData.f_remarks,
790
+ f_repairtype: this.selectData.f_repairtype,
791
+ toRepair: toRepair,
792
+ activity:act
793
+ }
794
+ for(let i=0; i<this.dangerGroups.length; i++){
795
+ let defectIdStr = ''
796
+ const defectIds = []
797
+ for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
798
+ defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
799
+ }
800
+ defectIdStr = `(${defectIds.join(',')})`
801
+ const data = {
802
+ id:this.dangerGroups[i].dangers[0].f_paper_id,
803
+ repData:rep,
804
+ source:'pc',
805
+ defectIdStr: defectIdStr
806
+ }
807
+ console.log('data=', JSON.stringify(data))
808
+ try {
809
+ let result =await new HttpResetClass().load('post','/api/af-safecheck/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
810
+ if (result.data.code==200) {
811
+ successCount += result.data.successcon
812
+ this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
813
+ }
814
+ }catch (e) {
815
+ this.showModal3=false
816
+ this.$showMessage('网络异常,请稍后再试!')
817
+ return
818
+ }
819
+ }
820
+ this.showModal3=false
821
+ this.cancel1()
822
+ this.$showMessage('本次转维修成功'+successCount+'单')
823
+ this.showSolveModal = false
824
+ this.$refs.paged.$refs.criteria.search()
825
+ this.solveModal.uploadData={
826
+ id: '',
827
+ f_repairman: '',
828
+ f_repair_date: '',
829
+ f_repair_path: '',
830
+ imgSrc: '',
831
+ filename: '',
832
+ f_defect_remark:''
833
+ }
834
+ },
835
+ getDefectInfoConfig(val){
836
+ try {
837
+ if (val.safecheck.DevicesSetConfig != undefined) {
838
+ this.DefectConfig = val.safecheck.DevicesConfig
839
+ // 获取到配置项,进行遍历,获取每个隐患项
840
+ for (var Key1 in this.DefectConfig){
841
+ this.device_types.push({label:Key1,value:Key1})
842
+ for(var Key2 in this.DefectConfig[Key1].items){
843
+ this.DefectConfigs.push({label:Key2,value:Key2})
844
+ }
845
+ }
846
+ // 非民用或其他配置项加入,在进行遍历
847
+ }
848
+ }catch (e) {
849
+ //tag
850
+ }
851
+ },
852
+ showaudio(){
853
+ //tag
854
+ this.audioshow=!this.audioshow
855
+ //tag
856
+ },
857
+ getmeterbook(val){
858
+ this.cbc=[]
859
+ this.cbc.push({
860
+ label:'全部',
861
+ value:''
862
+ })
863
+ if (val==''){
864
+
865
+ this.cbcs.forEach(res=>{
866
+ this.cbc.push({
867
+ label:res.f_book_name,
868
+ value:res.id
869
+ })
870
+ })
871
+ }else{
872
+ this.cbcs.forEach(res=>{
873
+ if (res.f_book_slice_area==val){
874
+ this.cbc.push({
875
+ label:res.f_book_name,
876
+ value:res.id
877
+ })
878
+ }
879
+ })
880
+ }
881
+ },
882
+ getSafeParam(val){
883
+ if(this.$appdata.getParam(val)){
884
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
885
+ }else{
886
+ return [{label: '全部', value: ''}]
887
+ }
888
+
889
+ },
890
+ Mreadibook(val){
891
+ ////tag
892
+ ////tag
893
+ this.sliceArea=[]
894
+ if (val){
895
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
896
+ items: 'name',
897
+ tablename: 't_zone',
898
+ condition: `parentid in ${val}`,
899
+ orderitem: 'id'
900
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
901
+ this.sliceArea.push({
902
+ label:'全部',
903
+ value:''
904
+ })
905
+ res.data.forEach(ress=>{
906
+ this.sliceArea.push({
907
+ label:ress.name,
908
+ value:ress.name
909
+ })
910
+ })
911
+
912
+ })
913
+ }
914
+ },
915
+ getAllMeterBook(val){
916
+ ////tag
917
+ ////tag
918
+ this.cbcs=[]
919
+ if (val){
920
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
921
+ items: 'f_book_name,f_book_slice_area,id',
922
+ tablename: 't_meter_book',
923
+ condition: `f_filiale_id in ${val}`,
924
+ orderitem: 'id'
925
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
926
+ res.data.forEach(ress=>{
927
+ this.cbcs.push({
928
+ id:ress.id,
929
+ f_book_name:ress.f_book_name,
930
+ f_book_slice_area:ress.f_book_slice_area
931
+ })
932
+ })
933
+ this.cbc=[]
934
+ this.cbc.push({
935
+ label:'全部',
936
+ value:''
937
+ })
938
+ this.cbcs.forEach(res=>{
939
+ this.cbc.push({
940
+ label:res.f_book_name,
941
+ value:res.id
942
+ })
943
+ })
944
+ })
945
+ }
946
+ },
947
+ change(row) {
948
+ // Vue.$login = {jwt: row.f_checker_id}
949
+ // asyncReady(this).then(() => {
950
+ // ////tag)
951
+ // row.f_upload_state = '已传'
952
+ // this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
953
+ // }).catch(
954
+ // (respanse) => {
955
+ // alert('获取配置文件失败')
956
+ // })
957
+ },
958
+ readConfig() {
959
+ let gen = asyncReady(this)
960
+ return co(gen)
961
+ },
962
+ showChooser() {
963
+ this.showModal = true
964
+ },
965
+ hidden() {
966
+ this.criteriaShow = !this.criteriaShow
967
+ },
968
+ refresh() {
969
+ this.$refs.paged.$refs.criteria.search()
970
+ },
971
+ print(row) {
972
+ this.showcheckmsg = true
973
+ this.checkInfo = row
974
+ },
975
+ sort(field, rule) {
976
+ // 将所有排序方式设为不排序,实现相互排斥
977
+ for (let key in this.orderFields) {
978
+ if (key === field) {
979
+ this.orderFields[key] = rule
980
+ } else {
981
+ this.orderFields[key] = 'no'
982
+ }
983
+ }
984
+ // 如果新规则不排序,还原为默认排序
985
+ if (rule === 'no') {
986
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
987
+ } else {
988
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
989
+ }
990
+ this.search()
991
+ },
992
+ search() {
993
+ this.$refs.paged.$refs.criteria.search()
994
+ },
995
+ selfSearch(args) {
996
+ ////tag
997
+ // args.condition += ` and f_is_repaired = '未处理'`
998
+ this.model.search(args.condition, args.model, args.condValue)
999
+ }
1000
+ },
1001
+
1002
+ ready() {
1003
+ // this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString()
1004
+ this.getDefectOption()
1005
+ this.getEmp()
1006
+ // this.readConfig()
1007
+ ////tag
1008
+ this.function = this.f
1009
+ ////tag
1010
+
1011
+ let gen = select(this)
1012
+ //this.pianqu()
1013
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
1014
+ co(gen)
1015
+ }
1016
+ }
1017
+ </script>