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