safecheck-client 3.0.33-99 → 3.0.34-1

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 (386) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/build/css-loaders.js +34 -34
  5. package/build/dev-android.js +151 -151
  6. package/build/dev-client.js +8 -8
  7. package/build/release.sh +28 -28
  8. package/build/utils.js +71 -71
  9. package/build/webpack.baseandroid.conf.js +83 -83
  10. package/build/webpack.devandroid.conf.js +33 -33
  11. package/build/webpack.hanwei.conf.js +57 -57
  12. package/build/webpack.hwbase.conf.js +78 -78
  13. package/build/webpack.prodandroid.conf.js +60 -60
  14. package/build/webpack.test.conf.js +31 -31
  15. package/config/dev.env.js +6 -6
  16. package/config/index.js +38 -38
  17. package/config/prod.env.js +3 -3
  18. package/config/test.env.js +6 -6
  19. package/docs/AppBase.md +22 -22
  20. package/docs/Busy.md +14 -14
  21. package/docs/Criteria.md +47 -47
  22. package/docs/CriteriaPaged.md +47 -47
  23. package/docs/DataGrid.md +54 -54
  24. package/docs/DataModel.md +22 -22
  25. package/docs/Dynamic.md +42 -42
  26. package/docs/FormPrint.md +18 -18
  27. package/docs/GetParams.md +11 -11
  28. package/docs/GridTree.md +47 -47
  29. package/docs/HttpBusy.md +13 -13
  30. package/docs/HttpStore.md +29 -29
  31. package/docs/MessageBox.md +28 -28
  32. package/docs/PagedList.md +29 -29
  33. package/docs/Pager.md +21 -21
  34. package/docs/PrintFile.md +38 -38
  35. package/docs/Project.md +23 -23
  36. package/docs/Route.md +105 -105
  37. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  38. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  39. package/docs/Task.md +46 -46
  40. package/docs/TreeList.md +28 -28
  41. package/docs/TreeMixin.md +18 -18
  42. package/docs/all.md +10 -10
  43. package/docs/list.md +42 -42
  44. package/docs/partial.md +75 -75
  45. package/docs/selector.md +82 -82
  46. package/docs/tree.md +40 -40
  47. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  48. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  49. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  50. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  51. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  52. package/examples/AddressList/App.vue +13 -13
  53. package/examples/AddressList/index.html +11 -11
  54. package/examples/DispatchList/App.vue +10 -10
  55. package/examples/DispatchList/BaseTree.vue +13 -13
  56. package/examples/DispatchList/Init.vue +22 -22
  57. package/examples/DispatchList/Test.vue +20 -20
  58. package/examples/DispatchList/index.html +11 -11
  59. package/examples/DispatchList/main.js +18 -18
  60. package/home.html +16 -16
  61. package/package.json +3 -4
  62. package/publish.bat +7 -7
  63. package/release.bat +5 -5
  64. package/src/Widget.vue +13 -13
  65. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  66. package/src/android-bootstrap/less/.csscomb.json +304 -304
  67. package/src/android-bootstrap/less/.csslintrc +19 -19
  68. package/src/android-bootstrap/less/alerts.less +73 -73
  69. package/src/android-bootstrap/less/badges.less +66 -66
  70. package/src/android-bootstrap/less/bootstrap.less +56 -56
  71. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  72. package/src/android-bootstrap/less/button-groups.less +247 -247
  73. package/src/android-bootstrap/less/buttons.less +173 -173
  74. package/src/android-bootstrap/less/carousel.less +269 -269
  75. package/src/android-bootstrap/less/close.less +34 -34
  76. package/src/android-bootstrap/less/code.less +69 -69
  77. package/src/android-bootstrap/less/component-animations.less +33 -33
  78. package/src/android-bootstrap/less/grid.less +84 -84
  79. package/src/android-bootstrap/less/input-groups.less +167 -167
  80. package/src/android-bootstrap/less/jumbotron.less +52 -52
  81. package/src/android-bootstrap/less/labels.less +64 -64
  82. package/src/android-bootstrap/less/list-group.less +141 -141
  83. package/src/android-bootstrap/less/media.less +66 -66
  84. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  85. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  86. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  87. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  88. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  89. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  90. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  91. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  92. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  93. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  94. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  95. package/src/android-bootstrap/less/mixins/image.less +33 -33
  96. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  97. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  98. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  99. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  100. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  101. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  102. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  103. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  104. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  105. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  106. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  107. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  108. package/src/android-bootstrap/less/mixins/size.less +10 -10
  109. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  110. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  111. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  112. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  113. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  114. package/src/android-bootstrap/less/mixins.less +40 -40
  115. package/src/android-bootstrap/less/modals.less +151 -151
  116. package/src/android-bootstrap/less/navbar.less +660 -660
  117. package/src/android-bootstrap/less/navs.less +290 -290
  118. package/src/android-bootstrap/less/normalize.less +424 -424
  119. package/src/android-bootstrap/less/pager.less +76 -76
  120. package/src/android-bootstrap/less/pagination.less +89 -89
  121. package/src/android-bootstrap/less/panels.less +274 -274
  122. package/src/android-bootstrap/less/popovers.less +131 -131
  123. package/src/android-bootstrap/less/print.less +101 -101
  124. package/src/android-bootstrap/less/progress-bars.less +87 -87
  125. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  126. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  127. package/src/android-bootstrap/less/scaffolding.less +161 -161
  128. package/src/android-bootstrap/less/tables.less +262 -262
  129. package/src/android-bootstrap/less/theme.less +291 -291
  130. package/src/android-bootstrap/less/thumbnails.less +36 -36
  131. package/src/android-bootstrap/less/tooltip.less +102 -102
  132. package/src/android-bootstrap/less/type.less +303 -303
  133. package/src/android-bootstrap/less/utilities.less +55 -55
  134. package/src/android-bootstrap/less/variables.less +896 -896
  135. package/src/android-bootstrap/less/wells.less +29 -29
  136. package/src/androidTest.js +20 -20
  137. package/src/bootstrap/less/.csscomb.json +304 -304
  138. package/src/bootstrap/less/.csslintrc +19 -19
  139. package/src/bootstrap/less/alerts.less +73 -73
  140. package/src/bootstrap/less/badges.less +66 -66
  141. package/src/bootstrap/less/breadcrumbs.less +26 -26
  142. package/src/bootstrap/less/button-groups.less +247 -247
  143. package/src/bootstrap/less/buttons.less +172 -172
  144. package/src/bootstrap/less/carousel.less +269 -269
  145. package/src/bootstrap/less/close.less +34 -34
  146. package/src/bootstrap/less/code.less +69 -69
  147. package/src/bootstrap/less/component-animations.less +33 -33
  148. package/src/bootstrap/less/dropdowns.less +216 -216
  149. package/src/bootstrap/less/forms.less +626 -626
  150. package/src/bootstrap/less/grid.less +84 -84
  151. package/src/bootstrap/less/input-groups.less +167 -167
  152. package/src/bootstrap/less/jumbotron.less +52 -52
  153. package/src/bootstrap/less/labels.less +64 -64
  154. package/src/bootstrap/less/list-group.less +141 -141
  155. package/src/bootstrap/less/media.less +66 -66
  156. package/src/bootstrap/less/mixins/alerts.less +14 -14
  157. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  158. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  159. package/src/bootstrap/less/mixins/buttons.less +69 -69
  160. package/src/bootstrap/less/mixins/center-block.less +7 -7
  161. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  162. package/src/bootstrap/less/mixins/forms.less +90 -90
  163. package/src/bootstrap/less/mixins/gradients.less +59 -59
  164. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  165. package/src/bootstrap/less/mixins/grid.less +122 -122
  166. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  167. package/src/bootstrap/less/mixins/image.less +33 -33
  168. package/src/bootstrap/less/mixins/labels.less +12 -12
  169. package/src/bootstrap/less/mixins/list-group.less +30 -30
  170. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  171. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  172. package/src/bootstrap/less/mixins/opacity.less +8 -8
  173. package/src/bootstrap/less/mixins/pagination.less +24 -24
  174. package/src/bootstrap/less/mixins/panels.less +24 -24
  175. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  176. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  177. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  178. package/src/bootstrap/less/mixins/resize.less +6 -6
  179. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  180. package/src/bootstrap/less/mixins/size.less +10 -10
  181. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  182. package/src/bootstrap/less/mixins/table-row.less +44 -44
  183. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  184. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  185. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  186. package/src/bootstrap/less/mixins.less +40 -40
  187. package/src/bootstrap/less/modals.less +151 -151
  188. package/src/bootstrap/less/navbar.less +660 -660
  189. package/src/bootstrap/less/normalize.less +424 -424
  190. package/src/bootstrap/less/pager.less +76 -76
  191. package/src/bootstrap/less/pagination.less +89 -89
  192. package/src/bootstrap/less/panels.less +275 -275
  193. package/src/bootstrap/less/popovers.less +131 -131
  194. package/src/bootstrap/less/print.less +101 -101
  195. package/src/bootstrap/less/progress-bars.less +87 -87
  196. package/src/bootstrap/less/responsive-embed.less +35 -35
  197. package/src/bootstrap/less/responsive-utilities.less +194 -194
  198. package/src/bootstrap/less/scaffolding.less +161 -161
  199. package/src/bootstrap/less/theme.less +291 -291
  200. package/src/bootstrap/less/thumbnails.less +36 -36
  201. package/src/bootstrap/less/tooltip.less +102 -102
  202. package/src/bootstrap/less/type.less +303 -303
  203. package/src/bootstrap/less/utilities.less +55 -55
  204. package/src/bootstrap/less/wells.less +29 -29
  205. package/src/components/FileUpload.vue +696 -696
  206. package/src/components/Hello.vue +39 -39
  207. package/src/components/LeftTree.vue +27 -27
  208. package/src/components/Util/ImgSelfSafePlus.vue +7 -0
  209. package/src/components/Util.js +7 -0
  210. package/src/components/android/AddGas.vue +147 -147
  211. package/src/components/android/AddressList.vue +61 -61
  212. package/src/components/android/AreaPlan.vue +2 -1
  213. package/src/components/android/AttendanceTally.vue +116 -116
  214. package/src/components/android/Blank.vue +10 -10
  215. package/src/components/android/CheckUnplanPage.vue +56 -56
  216. package/src/components/android/Checker.vue +12 -12
  217. package/src/components/android/CheckerAnnual.vue +81 -81
  218. package/src/components/android/CheckerAvarta.vue +82 -82
  219. package/src/components/android/CheckerMonthly.vue +84 -84
  220. package/src/components/android/EquipmentInspection.vue +348 -348
  221. package/src/components/android/FootprintMap.vue +120 -120
  222. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  223. package/src/components/android/ImgSelfAndroid.vue +181 -181
  224. package/src/components/android/LcheckUnplan.vue +108 -108
  225. package/src/components/android/MasterMain.vue +77 -77
  226. package/src/components/android/Menu.vue +132 -132
  227. package/src/components/android/NavBottom.vue +157 -157
  228. package/src/components/android/PaperAlarm.vue +85 -85
  229. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  230. package/src/components/android/PlumberAnnual.vue +83 -83
  231. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  232. package/src/components/android/PlumberMonthly.vue +84 -84
  233. package/src/components/android/PostMap.vue +83 -83
  234. package/src/components/android/QueryCheckHistory.vue +122 -122
  235. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  236. package/src/components/android/RepairMain.vue +60 -60
  237. package/src/components/android/Repairman.vue +12 -12
  238. package/src/components/android/SafePlanItem.vue +14 -2
  239. package/src/components/android/SafecheckDevices.vue +3 -1
  240. package/src/components/android/SafecheckOrderV.vue +18 -12
  241. package/src/components/android/StationMaster.vue +12 -12
  242. package/src/components/android/SwitchValve.vue +1 -1
  243. package/src/components/checkerphonestate/Checker.vue +32 -32
  244. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  245. package/src/components/defects/AddDefectModal.vue +120 -120
  246. package/src/components/defects/AddDevice.vue +95 -95
  247. package/src/components/defects/DefectModal.vue +101 -101
  248. package/src/components/defects/DevicesAndItem.vue +39 -39
  249. package/src/components/defects/DevicesSeting.vue +106 -106
  250. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  251. package/src/components/map/checkScreen.vue +27 -21
  252. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  253. package/src/components/metterfiles/MetterFiles.vue +104 -104
  254. package/src/components/notice/NoticeForm.vue +100 -100
  255. package/src/components/notice/NoticeIssue.vue +20 -20
  256. package/src/components/notice/NoticeQuery.vue +76 -76
  257. package/src/components/paper/PicViewer.vue +18 -18
  258. package/src/components/paper/PlanChooser.vue +167 -167
  259. package/src/components/paper/RepairVerifyForm.vue +76 -76
  260. package/src/components/pc/NewCheckpaper.vue +11 -8
  261. package/src/components/phonestate/DailyTraffic.vue +57 -57
  262. package/src/components/phonestate/LastKnownState.vue +74 -74
  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/planmanage/PlanManage.vue +843 -836
  267. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  268. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +2 -3
  269. package/src/components/rongcheng/PaperListNPSQ.vue +6 -5
  270. package/src/components/rongcheng/PaperListSQ.vue +1 -1
  271. package/src/components/safecheckNew/PaperList.vue +785 -0
  272. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  273. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  274. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  275. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  276. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  277. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -0
  278. package/src/components/task/RepairAnnual.vue +79 -79
  279. package/src/components/task/RepairAnnualDetail.vue +49 -49
  280. package/src/components/task/RepairMonthly.vue +91 -91
  281. package/src/components/task/TaskAnnual.vue +77 -77
  282. package/src/components/task/TaskAnnualDetail.vue +47 -47
  283. package/src/components/task/TaskMonthly.vue +89 -89
  284. package/src/components/userfile/MeterFile.vue +145 -145
  285. package/src/components/userfile/MeterModify.vue +46 -46
  286. package/src/components/userfile/UserFile.vue +118 -118
  287. package/src/components/userfile/UserfileChange.vue +277 -277
  288. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  289. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  290. package/src/filiale/baiyin/android.js +10 -0
  291. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -0
  292. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -0
  293. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -0
  294. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -0
  295. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -0
  296. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  297. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  298. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  299. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  300. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  301. package/src/filiale/baiyin/pc/checkUserList.vue +771 -0
  302. package/src/filiale/baiyin/pc.js +21 -0
  303. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  304. package/src/filiale/bayan/android/SafecheckOrderV.vue +15 -3
  305. package/src/filiale/bayan/android/SafecheckUserInfo.vue +34 -6
  306. package/src/filiale/bayan/android.js +1 -0
  307. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  308. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  309. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  310. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  311. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  312. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  313. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  314. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -0
  315. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  316. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  317. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  318. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  319. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  320. package/src/filiale/bayan/pc.js +7 -0
  321. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  322. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +4 -4
  323. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -0
  324. package/src/filiale/jiaxian/android.js +10 -0
  325. package/src/filiale/jiaxian/pc.js +12 -0
  326. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  327. package/src/filiale/liaoyuan/pc.js +18 -18
  328. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  329. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1268
  330. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  331. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +5 -1
  332. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  333. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  334. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  335. package/src/filiale/siyang/android.js +11 -0
  336. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -0
  337. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  338. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  339. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  340. package/src/filiale/siyang/pc/checkUserList.vue +786 -0
  341. package/src/filiale/siyang/pc.js +16 -0
  342. package/src/filiale/tianke/pc/checkScreen.vue +27 -21
  343. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  344. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  345. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  346. package/src/filiale/weinan/android/SafecheckDevices.vue +2 -2
  347. package/src/filiale/weinan/android/SafecheckOrderV.vue +10 -0
  348. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  349. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  350. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  351. package/src/filiale/weinan/pc.js +1 -0
  352. package/src/filiale/wenxi/android/CurrentCreate.vue +1 -1
  353. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  354. package/src/filiale/wenxi/android/SafecheckOrderV.vue +14 -0
  355. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  356. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  357. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
  358. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  359. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  360. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  361. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  362. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  363. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2843
  364. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -879
  365. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  366. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  367. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  368. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  369. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -0
  370. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -0
  371. package/src/filiale/yuansheng/android.js +2 -0
  372. package/src/main.js +33 -33
  373. package/src/plugins/LoadData.js +10 -10
  374. package/src/plugins/LoadParams.js +24 -24
  375. package/src/safecheck-android.js +6 -0
  376. package/src/safecheck.js +3 -0
  377. package/src/stores/wxconfig.js +10 -10
  378. package/src/utils/getNowDate.js +33 -33
  379. package/test/e2e/custom-assertions/elementCount.js +26 -26
  380. package/test/e2e/nightwatch.conf.js +40 -40
  381. package/test/e2e/runner.js +30 -30
  382. package/test/e2e/specs/test.js +13 -13
  383. package/test/unit/.eslintrc +5 -5
  384. package/test/unit/TestUtil.js +62 -62
  385. package/test/unit/context.html +20 -20
  386. package/test/unit/index.js +13 -13
@@ -1,849 +1,944 @@
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"
11
- style="width: 60%" placeholder="编号 名称 电话 地址"
12
- condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
13
- </div>
14
- <div class="form-group col-sm-2" >
15
- <label class="font_normal_body">客户编号</label>
16
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
18
- </div>
19
- <div class="form-group col-sm-2" >
20
- <label class="font_normal_body">客户名称</label>
21
- <input type="text" class="input_search" v-model="model.f_user_name"
22
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-2" >
25
- <label class="font_normal_body">客户电话</label>
26
- <input type="text" class="input_search" v-model="model.f_user_phone"
27
- style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
28
- </div>
29
- <div class="form-group col-sm-4" style="display: flex; gap: 15px">
30
- <export-excel-safe :data="$parent.$parent.searchData"
31
- :field="$parent.$parent.excelHeaders"
32
- progress="safeGetExportProgress"
33
- sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细'></export-excel-safe>
34
- <button class="button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
35
- <button class="button_search" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
36
- <button class="button_search" @click="search()">查询</button>
37
- <div class="button_spacing"
38
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
- @click="$parent.$parent.hidden()"></div>
40
- </div>
41
-
42
- </div>
43
- <div class="row">
44
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
45
- <role-selector-safe
46
- role-name="安检员"
47
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
48
- @re-res="$parent.$parent.getRes"
49
- :value.sync="model.f_checker_id"
50
- v-model="model.f_checker_id"
51
- :value-multiple="true"
52
- :value-close="false"
53
- condition="f_checker_name in {}">
54
- </role-selector-safe>
55
- </div>
56
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
57
- <label class="font_normal_body">小&emsp;&emsp;区</label>
58
- <input type="text" class="input_search" v-model="model.f_residential_area"
59
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
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
- class="select_list select"
67
- :options='$parent.$parent.device_types'
68
- placeholder='检查项'
69
- :multiple="true"
70
- condition="f_device_type in {}"></v-select>
71
- <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
72
- <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
73
- </div>
74
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
75
- <label class="font_normal_body">隐患名称</label>
76
- <v-select :value.sync="model.f_item_name"
77
- v-model='model.f_item_name'
78
- style="width: 60%"
79
- class="select_list select"
80
- :options='$parent.$parent.DefectConfigs'
81
- placeholder='隐患名称'
82
- :multiple="true"
83
- condition="f_item_name in {}"></v-select>
84
- </div>
85
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
86
- <label class="font_normal_body">安检起始</label>
87
- <datepicker
88
- class="select_list select"
89
- :value.sync="model.f_check_start"
90
- placeholder='安检起始时间' style="width: 60%"
91
- :disabled-days-of-week="[]"
92
- :format="'yyyy-MM-dd'"
93
- :show-rest-button="reset"
94
- v-model="model.f_check_start"
95
- condition="f_offsite_time > ='{} 00:00:00'">
96
- </datepicker>
97
- </div>
98
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
99
- <label class="font_normal_body">安检结束</label>
100
- <datepicker
101
- class="select_list select"
102
- :value.sync="model.f_check_end"
103
- placeholder='安检结束时间' style="width: 60%"
104
- :disabled-days-of-week="[]"
105
- :format="'yyyy-MM-dd'"
106
- :show-rest-button="reset"
107
- v-model="model.f_check_end"
108
- condition="f_offsite_time <= '{} 23:59:59'">
109
- </datepicker>
110
- </div>
111
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
112
- <label class="font_normal_body">用户类型</label>
113
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
114
- :value-single="true" style="width: 60%"
115
- class="select_list select"
116
- :options='$parent.$parent.f_check_type' placeholder='请选择'
117
- close-on-select
118
- condition="f_check_type = '{}'"></v-select>
119
- </div>
120
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
121
- <label class="font_normal_body">处理方式</label>
122
- <v-select :value.sync="model.f_deal_dispose"
123
- v-model='model.f_deal_dispose'
124
- style="width: 60%"
125
- class="select_list select"
126
- :options='$parent.$parent.deal_dispose' placeholder='请选择'
127
- :multiple="true"
128
- condition="f_deal_dispose in {}"></v-select>
129
- </div>
130
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
131
- <label class="font_normal_body">详细地址</label>
132
- <input type="text" class="input_search" v-model="model.f_address"
133
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
134
- </div>
135
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
136
- <label class="font_normal_body">隐患状态</label>
137
- <v-select :value.sync="model.f_is_repaired"
138
- v-model='model.f_is_repaired'
139
- style="width: 60%"
140
- class="select_list select"
141
- :options='$parent.$parent.repairStateOptions' placeholder='请选择'
142
- :multiple="true"
143
- condition="f_is_repaired in {}"></v-select>
144
- </div>
145
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
146
- <label class="font_normal_body">处理人</label>
147
- <input type="text" class="input_search" v-model="model.f_repairman"
148
- style="width: 60%" placeholder="处理人" condition="f_repairman = '{}'">
149
- </div>
150
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
151
- <label for="startDate" class="font_normal_body">处理时间:</label>
152
- <datepicker id="startDate" placeholder="处理开始日期"
153
- style="width: 60%!important;"
154
- v-model="model.sq_startDate"
155
- :value.sync="model.sq_startDate"
156
- :format="'yyyy-MM-dd 00:00:00'"
157
- :show-reset-button="true"
158
- condition="f_repair_date >= '{}'">
159
- </datepicker>
160
- </div>
161
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
- <label for="endDate" class="font_normal_body">处理时间:</label>
163
- <datepicker id="endDate" placeholder="处理结束日期"
164
- style="width: 60%!important;"
165
- v-model="model.sq_endDate"
166
- :value.sync="model.sq_endDate"
167
- :format="'yyyy-MM-dd 23:59:59'"
168
- :show-reset-button="true"
169
- condition="f_repair_date<= '{}'">
170
- </datepicker>
171
- </div>
172
- </div>
173
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
174
- <div slot="modal-header" class="modal-header">
175
- <h4 class="modal-title">
176
- 选择计划
177
- </h4>
178
- </div>
179
- <div slot="modal-body" class="modal-body">
180
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
181
- </div>
182
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
183
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
184
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
185
- </div>
186
- </modal>
187
- </div>
188
- </criteria>
189
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
190
- <template partial='head'>
191
- <tr>
192
- <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
193
- <th>
194
- <nobr>检查项</nobr>
195
- </th>
196
- <th>
197
- <nobr>隐患原因</nobr>
198
- </th>
199
- <th>
200
- <nobr>隐患级别</nobr>
201
- </th>
202
- <th>
203
- <nobr>客户编号</nobr>
204
- </th>
205
- <th>
206
- <nobr>客户名称</nobr>
207
- </th>
208
- <th>
209
- <nobr>客户电话</nobr>
210
- </th>
211
- <th>
212
- <nobr>客户小区</nobr>
213
- </th>
214
- <th>
215
- <data-order field="f_address" name="客户地址"></data-order>
216
- </th>
217
-
218
- <th>
219
- <data-order field="f_offsite_time" name="安检时间"></data-order>
220
- </th>
221
- <th>
222
- <nobr>安检员</nobr>
223
- </th>
224
- <th>
225
- <nobr>隐患状态</nobr>
226
- </th>
227
- <th>
228
- <nobr>处理人</nobr>
229
- </th>
230
- <th>
231
- <nobr>处理方式</nobr>
232
- </th>
233
- <th>
234
- <nobr>处理时间</nobr>
235
- </th>
236
- <th>
237
- <nobr>工单编号</nobr>
238
- </th>
239
- <th>
240
- <nobr>转单类型</nobr>
241
- </th>
242
- <th>
243
- <nobr>接收人</nobr>
244
- </th>
245
- </tr>
246
- </template>
247
- <template partial='body'>
248
- <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>
249
- <td style="text-align: center">{{row.f_device_type}}</td>
250
- <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
251
- <td style="text-align: center">{{row.f_defect_level}}</td>
252
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
253
- <td style="text-align: center">{{row.f_user_name}}</td>
254
- <td style="text-align: center">{{row.f_user_phone}}</td>
255
- <td style="text-align: center">{{row.f_residential_area}}</td>
256
- <td style="text-align: center">{{row.f_address}}</td>
257
- <td style="text-align: center">{{row.f_offsite_time}}</td>
258
- <td style="text-align: center">{{row.f_checker_name}}</td>
259
- <td style="text-align: center">{{row.f_is_repaired}}</td>
260
- <td style="text-align: center">{{row.f_repairman}}</td>
261
- <td style="text-align: center">{{row.f_deal_dispose}}</td>
262
- <td style="text-align: center">{{row.f_repair_date}}</td>
263
- <td style="text-align: center">{{row.f_service_id}}</td>
264
- <td style="text-align: center">{{row.f_handlingtype}}</td>
265
- <td style="text-align: center">{{row.f_order_man}}</td>
266
- </template>
267
- </data-grid>
268
- </criteria-paged>
269
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
270
- <modal :show.sync="showModal2" :backdrop="false">
271
- <div slot="modal-header" class="modal-header">
272
- <h4 class="modal-title">
273
- 转维修
274
- </h4>
275
- </div>
276
- <div slot="modal-body" class="modal-body">
277
- <div v-if="true">
278
- <div>
279
-
280
- </div>
281
- <!-- <div v-for="(index, item) in dangerGroup">-->
282
-
283
- <!-- </div>-->
284
- <div class="row" style="margin-top: 10px">
285
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
286
- <div class="col-xs-8 col-md-8">
287
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
288
- :options='dispatchTypeOptions' placeholder='派发类型'
289
- close-on-select>
290
- </v-select>
291
- </div>
292
- </div>
293
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
294
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
295
- <div class="col-xs-8 col-md-8">
296
- <v-select
297
- :value.sync="selectData.f_repairman"
298
- :value-single="true"
299
- :options='repairers'
300
- placeholder='请选择维修员'
301
- close-on-select></v-select>
302
- </div>
303
- </div>
304
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
305
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
306
- <div class="col-xs-8 col-md-8">
307
- <right-tree
308
- islist
309
- :userid="userid"
310
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
311
- @re-res="getSiteRes"></right-tree>
312
- </div>
313
- </div>
314
- <div class="row" style="margin-top: 10px">
315
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
316
- <div class="col-xs-8 col-md-8">
317
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
318
- class="select select_list"
319
- :value-single="true"
320
- :options='repairTypeOptions'
321
- close-on-select>
322
- </v-select>
323
- </div>
324
- </div>
325
- <div class="row" style="margin-top: 10px">
326
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
327
- <div class="col-xs-8 col-md-8">
328
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
329
- </div>
330
- </div>
331
- </div>
332
- </div>
333
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
334
- <button class="button_search" @click="rectification">转维修</button>
335
- <button class="button_search" @click="cancel1">取消</button>
336
- </div>
337
- </modal>
338
- <modal :show.sync="showModal3">
339
- <div slot="modal-header" class="modal-header">
340
- <h4 class="modal-title">
341
- 转维修进度{{ progressbarWidth }}%
342
- </h4>
343
- </div>
344
- <div slot="modal-body" class="modal-body">
345
- <div class="progress">
346
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
347
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
348
- </div>
349
- </div>
350
- </div>
351
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
352
- </modal>
353
- </div>
354
- </div>
355
- </template>
356
-
357
- <script>
358
- import {PagedList} from 'vue-client'
359
- import Vue from 'vue'
360
- import co from 'co'
361
- import AppData from '../../../stores/AppData'
362
- import * as Util from '../../Util'
363
- import getNowDate from "../../../utils/getNowDate";
364
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
365
- import BenzAMRRecorder from 'benz-amr-recorder'
366
-
367
- //获取json配置文件
368
- let asyncReady = async function (self) {
369
- // 获取配置信息
370
- try {
371
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
372
- Vue.config = res.data
373
- self.getDefectInfoConfig(res.data)
374
- } catch (error) {
375
- // 忽略704,文件找不到异常R
376
- if (error.status !== 704) {
377
- throw error
378
- }
379
- }
380
- }
381
-
382
- let select = function* (self) {
383
- let http = new HttpResetClass()
384
- let getGasman = yield http.load('POST', '/rs/search', {
385
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
386
- userid: self.$login.f.id
387
- }, {resolveMsg: null, rejectMsg: null})
388
- ////tag
389
- self.checkersid.push({label: '全部', value: ''})
390
- getGasman.data.forEach((checker) => {
391
- self.checkersid.push({label: checker.name, value: checker.id})
392
- })
393
- }
394
-
395
- export default {
396
- title: '隐患明细查看',
397
- data() {
398
- let model = new PagedList('rs/sql/defectDetails', 20,{
399
- f_filialeid: 'this.f_filialeid'
400
- })
401
- model.f_plan_id = ''
402
- model.f_approved = ''
403
- model.f_entry = ''
404
- model.f_no_checkplan = ''
405
- model.f_check_type=''
406
- model.f_filialeid = `('${this.$login.f.orgid}')`
407
- return {
408
- audioshow:false,
409
-
410
- model: model,
411
- deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
412
- repairStateOptions: this.getSafeParam('隐患状态'),
413
- //searchData:searchData,
414
- excelHeaders: {
415
- 'f_device_type': '检查项',
416
- 'f_item_name': '隐患名称',
417
- 'f_userinfo_code': '客户编号',
418
- 'f_user_name': '客户姓名',
419
- 'f_user_phone': '客户电话',
420
- 'f_residential_area': '小区',
421
- 'f_address': '客户地址',
422
- 'f_offsite_time': '安检时间',
423
- 'f_checker_name': '安检员',
424
- 'f_deal_dispose': '处理方式',
425
- 'f_is_repaired': '隐患状态',
426
- 'f_repairman':'处理人',
427
- 'f_repair_date':'处理时间'
428
- },
429
- fun: this.$login.f,
430
- checkersid: [],
431
- safetype: this.getSafeParam('安检类型'),
432
- criteriaShow: false,
433
- showModal: false,
434
- f_approval_states: this.getSafeParam('安检单审核状态'),
435
- f_entry_status:this.getSafeParam('安检状态'),
436
- f_checkplans: this.getSafeParam('有无计划'),
437
- showcheckmsg: false,
438
- checkInfo: {},
439
- orderDefault: "'f_offsite_time'",
440
- orderFields: {
441
- f_offsite_time: 'no'
442
- },
443
- sliceArea: [],
444
- cbc:[],
445
- DefectConfig:'' ,
446
- DefectConfigs:[{label:'全部',value:''},{label: '金额异常差值', value: '金额异常差值'},{label: '气量异常差值', value: '气量异常差值'}],
447
- device_types:[{label:'全部',value:''}],
448
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
449
- showModal2: false,
450
- selectData:{
451
- dispatchType:'',
452
- f_repairman:'',
453
- f_remarks:'',
454
- f_repairtype:''
455
- },
456
- repairers: [],
457
- repairTypeOptions:this.$appdata.getParam('报修类型'),
458
- dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
459
- dangerGroups: [],
460
- showModal3: false,
461
- progressbarWidth:'0',
462
- canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
463
- checkes: []
464
- }
465
- },
466
- computed :{
467
- searchData() {
468
- return {condition: this.model.condition}
469
- }
470
- },
471
- methods: {
472
- isChecked(row) {
473
- return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
474
- },
475
- setCheckes(row) {
476
- let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
477
- if(index<0){
478
- this.checkes.push(row)
479
- }else{
480
- this.checkes.splice(index,1)
481
- }
482
- console.log('this.checkes=', JSON.stringify(this.checkes))
483
- },
484
- toRepair(){
485
- console.log('this.checkes=', JSON.stringify(this.checkes))
486
- if(this.checkes.length==0){
487
- return this.$showMessage('请先选择需要转维修的隐患!')
488
- }
489
-
490
- const dangerGroups = []
491
- for (const danger of this.checkes) {
492
- let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_code === danger.f_userinfo_code)
493
- if (i == -1){
494
- dangerGroups.push({
495
- f_userinfo_code: danger.f_userinfo_code,
496
- dangers: []
497
- })
498
- i = dangerGroups.length - 1
499
- }
500
- dangerGroups[i].dangers.push(danger)
501
- }
502
- this.dangerGroups = dangerGroups
503
- console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
504
- this.showModal2=true
505
- },
506
- getEmp() {
507
- 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}`}
508
- let http = new HttpResetClass()
509
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
510
- let str=''
511
- res.data.forEach((item,idx,arr) => {
512
- //tag
513
- if(idx+1==arr.length){
514
- str += item.id
515
- }else{
516
- str += item.id+','
517
- }
518
-
519
- })
520
- let http1 = new HttpResetClass()
521
- http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
522
- data: {
523
- items: 'id,f_user_telephone',
524
- tablename: 't_user',
525
- condition: `id in (${str})`,
526
- orderitem: 'id'
527
- }
528
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
529
-
530
- res.data.forEach((user)=>{
531
- try {
532
- ress.data.forEach((tel,tidx,arr)=>{
533
- //tag
534
- if(user.id==tel.id){
535
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
536
- ress.data.splice(tidx,1)
537
- //tag
538
- throw new Error("跳出循环");
539
- }
540
- })
541
- }catch (e) {
542
- //tag
543
- }
544
- })
545
- })
546
-
547
- })
548
- },
549
- getSiteRes(obj) {
550
- console.log('siteRes ---> ')
551
- console.log(obj)
552
- if(obj.resids[0]){
553
- this.selectData.f_meetunit = obj.res.join('.')
554
- this.selectData.f_reciever = obj.resids.join('.')
555
- this.selectData.f_outlets = obj.res[obj.res.length - 1]
556
- }else {
557
- this.selectData.f_meetunit = ''
558
- this.selectData.f_reciever = ''
559
- this.selectData.f_outlets = ''
560
- }
561
- },
562
- cancel1(){
563
- this.showModal2=false
564
- this.selectData={
565
- dispatchType:'',
566
- f_repairman:'',
567
- f_remarks:'',
568
- f_repairtype:''
569
- }
570
- },
571
- async rectification(){
572
- if(this.selectData.dispatchType){
573
- if(this.selectData.dispatchType=='派发给站点'){
574
- if(!this.selectData.f_reciever){
575
- this.$showMessage('请选择部门!')
576
- return
577
- }
578
- }else{
579
- if(!this.selectData.f_repairman){
580
- this.$showMessage('请选择维修员!')
581
- return
582
- }
583
- }
584
- }else {
585
- this.$showMessage('请选择派发类型!')
586
- return
587
- }
588
-
589
- if(!this.selectData.f_repairtype){
590
- this.$showMessage('请选择报修类型!')
591
- return
592
- }
593
- this.showModal3=true
594
- let act={}
595
- let toRepair=''
596
- let successCount=0
597
- if(this.selectData.dispatchType=='派发给站点'){
598
- act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
599
- toRepair=null
600
- }else{
601
- console.log('派发给维修员---------'+this.selectData.f_repairman)
602
- act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
603
- toRepair='一级派单'
604
- }
605
- let rep={
606
- loginUser: {
607
- name: this.$login.f.name,
608
- ename: this.$login.f.ename
609
- },
610
- f_meetunit: this.$login.f.deps,
611
- f_attendant: this.$login.f.name,
612
- f_outlets: this.$login.f.deps,
613
- f_remarks: this.selectData.f_remarks,
614
- f_repairtype: this.selectData.f_repairtype,
615
- toRepair: toRepair,
616
- activity:act
617
- }
618
- for(let i=0; i<this.dangerGroups.length; i++){
619
- let defectIdStr = ''
620
- const defectIds = []
621
- for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
622
- defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
623
- }
624
- defectIdStr = `(${defectIds.join(',')})`
625
- const data = {
626
- id:this.dangerGroups[i].dangers[0].f_paper_id,
627
- repData:rep,
628
- source:'pc',
629
- defectIdStr: defectIdStr
630
- }
631
- console.log('data=', JSON.stringify(data))
632
- try {
633
- let result =await new HttpResetClass().load('post','/rs/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
634
- if (result.data.code==200) {
635
- successCount += result.data.successcon
636
- this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
637
- }
638
- }catch (e) {
639
- this.showModal3=false
640
- this.$showMessage('网络异常,请稍后再试!')
641
- return
642
- }
643
- }
644
- this.showModal3=false
645
- this.cancel1()
646
- this.$showMessage('本次转维修成功'+successCount+'单')
647
- },
648
- getDefectInfoConfig(val){
649
- try {
650
- if (val.safecheck.DevicesSetConfig != undefined) {
651
- this.DefectConfig = val.safecheck.DevicesConfig
652
- // 获取到配置项,进行遍历,获取每个隐患项
653
- for (var Key1 in this.DefectConfig){
654
- this.device_types.push({label:Key1,value:Key1})
655
- for(var Key2 in this.DefectConfig[Key1].items){
656
- this.DefectConfigs.push({label:Key2,value:Key2})
657
- }
658
- }
659
- // 非民用或其他配置项加入,在进行遍历
660
- }
661
- }catch (e) {
662
- //tag
663
- }
664
- },
665
- showaudio(){
666
- //tag
667
- this.audioshow=!this.audioshow
668
- //tag
669
- },
670
- getmeterbook(val){
671
- this.cbc=[]
672
- this.cbc.push({
673
- label:'全部',
674
- value:''
675
- })
676
- if (val==''){
677
-
678
- this.cbcs.forEach(res=>{
679
- this.cbc.push({
680
- label:res.f_book_name,
681
- value:res.id
682
- })
683
- })
684
- }else{
685
- this.cbcs.forEach(res=>{
686
- if (res.f_book_slice_area==val){
687
- this.cbc.push({
688
- label:res.f_book_name,
689
- value:res.id
690
- })
691
- }
692
- })
693
- }
694
- },
695
- getSafeParam(val){
696
- if(this.$appdata.getParam(val)){
697
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
698
- }else{
699
- return [{label: '全部', value: ''}]
700
- }
701
-
702
- },
703
- Mreadibook(val){
704
- ////tag
705
- ////tag
706
- this.sliceArea=[]
707
- if (val){
708
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
709
- items: 'name',
710
- tablename: 't_zone',
711
- condition: `parentid in ${val}`,
712
- orderitem: 'id'
713
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
714
- this.sliceArea.push({
715
- label:'全部',
716
- value:''
717
- })
718
- res.data.forEach(ress=>{
719
- this.sliceArea.push({
720
- label:ress.name,
721
- value:ress.name
722
- })
723
- })
724
-
725
- })
726
- }
727
- },
728
- getAllMeterBook(val){
729
- ////tag
730
- ////tag
731
- this.cbcs=[]
732
- if (val){
733
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
734
- items: 'f_book_name,f_book_slice_area,id',
735
- tablename: 't_meter_book',
736
- condition: `f_filiale_id in ${val}`,
737
- orderitem: 'id'
738
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
739
- res.data.forEach(ress=>{
740
- this.cbcs.push({
741
- id:ress.id,
742
- f_book_name:ress.f_book_name,
743
- f_book_slice_area:ress.f_book_slice_area
744
- })
745
- })
746
- this.cbc=[]
747
- this.cbc.push({
748
- label:'全部',
749
- value:''
750
- })
751
- this.cbcs.forEach(res=>{
752
- this.cbc.push({
753
- label:res.f_book_name,
754
- value:res.id
755
- })
756
- })
757
- })
758
- }
759
- },
760
- getRes(obj) {
761
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
762
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
763
- this.Mreadibook(this.model.f_filialeid)
764
- this.getAllMeterBook(this.model.f_filialeid)
765
- //this.$refs.paged.$refs.criteria.search()
766
- },
767
-
768
- change(row) {
769
- // Vue.$login = {jwt: row.f_checker_id}
770
- asyncReady(this).then(() => {
771
- ////tag)
772
- row.f_upload_state = '已传'
773
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
774
- }).catch(
775
- (respanse) => {
776
- alert('获取配置文件失败')
777
- })
778
- },
779
- readConfig() {
780
- let gen = asyncReady(this)
781
- return co(gen)
782
- },
783
- showChooser() {
784
- this.showModal = true
785
- },
786
- hidden() {
787
- this.criteriaShow = !this.criteriaShow
788
- },
789
- refresh() {
790
- this.$refs.paged.$refs.criteria.search()
791
- },
792
- ok() {
793
- this.showModal = false
794
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
795
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
796
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
797
- }
798
- },
799
- cancel() {
800
- this.showModal = false
801
- this.model.f_check_plan = {f_plan_name: '', id: ''}
802
- this.model.f_plan_id=''
803
- },
804
- print(row) {
805
- this.showcheckmsg = true
806
- this.checkInfo = row
807
- },
808
-
809
- sort(field, rule) {
810
- // 将所有排序方式设为不排序,实现相互排斥
811
- for (let key in this.orderFields) {
812
- if (key === field) {
813
- this.orderFields[key] = rule
814
- } else {
815
- this.orderFields[key] = 'no'
816
- }
817
- }
818
- // 如果新规则不排序,还原为默认排序
819
- if (rule === 'no') {
820
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
821
- } else {
822
- this.model.paramSource.orderitem = `'${field} ${rule}'`
823
- }
824
- this.search()
825
- },
826
- search() {
827
- this.$refs.paged.$refs.criteria.search()
828
- },
829
- selfSearch(args) {
830
- ////tag
831
- args.condition += ` and f_filialeid in ${this.model.f_filialeid}`
832
- this.model.search(args.condition, args.model, args.condValue)
833
- }
834
- },
835
-
836
- ready() {
837
- this.getEmp()
838
- this.readConfig()
839
- ////tag
840
- this.function = this.f
841
- ////tag
842
-
843
- let gen = select(this)
844
- //this.pianqu()
845
- this.Mreadibook(`('${this.$login.f.orgid}')`)
846
- co(gen)
847
- }
848
- }
849
- </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"
11
+ style="width: 60%" placeholder="编号 名称 电话 地址"
12
+ condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
13
+ </div>
14
+ <div class="form-group col-sm-2" >
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
18
+ </div>
19
+ <div class="form-group col-sm-2" >
20
+ <label class="font_normal_body">客户名称</label>
21
+ <input type="text" class="input_search" v-model="model.f_user_name"
22
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2" >
25
+ <label class="font_normal_body">客户电话</label>
26
+ <input type="text" class="input_search" v-model="model.f_user_phone"
27
+ style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
28
+ </div>
29
+ <div class="form-group col-sm-4" style="display: flex; gap: 15px">
30
+ <export-excel-safe :data="$parent.$parent.searchData"
31
+ :field="$parent.$parent.excelHeaders"
32
+ progress="safeGetExportProgress"
33
+ sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细'></export-excel-safe>
34
+ <button class="button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
35
+ <button class="button_search" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
36
+ <button class="button_search" @click="search()">查询</button>
37
+ <div class="button_spacing"
38
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
+ @click="$parent.$parent.hidden()"></div>
40
+ </div>
41
+
42
+ </div>
43
+ <div class="row">
44
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
45
+ <role-selector-safe
46
+ role-name="安检员"
47
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
48
+ @re-res="$parent.$parent.getRes"
49
+ :value.sync="model.f_checker_id"
50
+ v-model="model.f_checker_id"
51
+ :value-multiple="true"
52
+ :value-close="false"
53
+ condition="f_checker_name in {}">
54
+ </role-selector-safe>
55
+ </div>
56
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
57
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
58
+ <input type="text" class="input_search" v-model="model.f_residential_area"
59
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
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
+ class="select_list select"
67
+ :options='$parent.$parent.device_types'
68
+ placeholder='检查项'
69
+ :multiple="true"
70
+ condition="f_device_type in {}"></v-select>
71
+ <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
72
+ <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
73
+ </div>
74
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
75
+ <label class="font_normal_body">隐患名称</label>
76
+ <v-select :value.sync="model.f_item_name"
77
+ v-model='model.f_item_name'
78
+ style="width: 60%"
79
+ class="select_list select"
80
+ :options='$parent.$parent.DefectConfigs'
81
+ placeholder='隐患名称'
82
+ :multiple="true"
83
+ condition="f_item_name in {}"></v-select>
84
+ </div>
85
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
86
+ <label class="font_normal_body">安检起始</label>
87
+ <datepicker
88
+ class="select_list select"
89
+ :value.sync="model.f_check_start"
90
+ placeholder='安检起始时间' style="width: 60%"
91
+ :disabled-days-of-week="[]"
92
+ :format="'yyyy-MM-dd'"
93
+ :show-rest-button="reset"
94
+ v-model="model.f_check_start"
95
+ condition="f_offsite_time > ='{} 00:00:00'">
96
+ </datepicker>
97
+ </div>
98
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
99
+ <label class="font_normal_body">安检结束</label>
100
+ <datepicker
101
+ class="select_list select"
102
+ :value.sync="model.f_check_end"
103
+ placeholder='安检结束时间' style="width: 60%"
104
+ :disabled-days-of-week="[]"
105
+ :format="'yyyy-MM-dd'"
106
+ :show-rest-button="reset"
107
+ v-model="model.f_check_end"
108
+ condition="f_offsite_time <= '{} 23:59:59'">
109
+ </datepicker>
110
+ </div>
111
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
112
+ <label class="font_normal_body">用户类型</label>
113
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
114
+ :value-single="true" style="width: 60%"
115
+ class="select_list select"
116
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
117
+ close-on-select
118
+ condition="f_check_type = '{}'"></v-select>
119
+ </div>
120
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
121
+ <label class="font_normal_body">处理方式</label>
122
+ <v-select :value.sync="model.f_deal_dispose"
123
+ v-model='model.f_deal_dispose'
124
+ style="width: 60%"
125
+ class="select_list select"
126
+ :options='$parent.$parent.deal_dispose' placeholder='请选择'
127
+ :multiple="true"
128
+ condition="f_deal_dispose in {}"></v-select>
129
+ </div>
130
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
131
+ <label class="font_normal_body">详细地址</label>
132
+ <input type="text" class="input_search" v-model="model.f_address"
133
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
134
+ </div>
135
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
136
+ <label class="font_normal_body">隐患状态</label>
137
+ <v-select :value.sync="model.f_is_repaired"
138
+ v-model='model.f_is_repaired'
139
+ style="width: 60%"
140
+ class="select_list select"
141
+ :options='$parent.$parent.repairStateOptions' placeholder='请选择'
142
+ :multiple="true"
143
+ condition="f_is_repaired in {}"></v-select>
144
+ </div>
145
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
146
+ <label class="font_normal_body">处理人</label>
147
+ <input type="text" class="input_search" v-model="model.f_repairman"
148
+ style="width: 60%" placeholder="处理人" condition="f_repairman = '{}'">
149
+ </div>
150
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
151
+ <label for="startDate" class="font_normal_body">处理时间:</label>
152
+ <datepicker id="startDate" placeholder="处理开始日期"
153
+ style="width: 60%!important;"
154
+ v-model="model.sq_startDate"
155
+ :value.sync="model.sq_startDate"
156
+ :format="'yyyy-MM-dd 00:00:00'"
157
+ :show-reset-button="true"
158
+ condition="f_repair_date >= '{}'">
159
+ </datepicker>
160
+ </div>
161
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
+ <label for="endDate" class="font_normal_body">处理时间:</label>
163
+ <datepicker id="endDate" placeholder="处理结束日期"
164
+ style="width: 60%!important;"
165
+ v-model="model.sq_endDate"
166
+ :value.sync="model.sq_endDate"
167
+ :format="'yyyy-MM-dd 23:59:59'"
168
+ :show-reset-button="true"
169
+ condition="f_repair_date<= '{}'">
170
+ </datepicker>
171
+ </div>
172
+ </div>
173
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
174
+ <div slot="modal-header" class="modal-header">
175
+ <h4 class="modal-title">
176
+ 选择计划
177
+ </h4>
178
+ </div>
179
+ <div slot="modal-body" class="modal-body">
180
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
181
+ </div>
182
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
183
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
184
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
185
+ </div>
186
+ </modal>
187
+ </div>
188
+ </criteria>
189
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
190
+ <template partial='head'>
191
+ <tr>
192
+ <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
193
+ <th>
194
+ <nobr>检查项</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>隐患原因</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>隐患级别</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>客户编号</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>客户名称</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>客户电话</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>客户小区</nobr>
213
+ </th>
214
+ <th>
215
+ <data-order field="f_address" name="客户地址"></data-order>
216
+ </th>
217
+
218
+ <th>
219
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
220
+ </th>
221
+ <th>
222
+ <nobr>安检员</nobr>
223
+ </th>
224
+ <th>
225
+ <nobr>隐患状态</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>处理人</nobr>
229
+ </th>
230
+ <th>
231
+ <nobr>处理方式</nobr>
232
+ </th>
233
+ <th>
234
+ <nobr>处理时间</nobr>
235
+ </th>
236
+ <th>
237
+ <nobr>工单编号</nobr>
238
+ </th>
239
+ <th>
240
+ <nobr>转单类型</nobr>
241
+ </th>
242
+ <th>
243
+ <nobr>接收人</nobr>
244
+ </th>
245
+ </tr>
246
+ </template>
247
+ <template partial='body'>
248
+ <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>
249
+ <td style="text-align: center">{{row.f_device_type}}</td>
250
+ <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
251
+ <td style="text-align: center">{{row.f_defect_level}}</td>
252
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
253
+ <td style="text-align: center">{{row.f_user_name}}</td>
254
+ <td style="text-align: center">{{row.f_user_phone}}</td>
255
+ <td style="text-align: center">{{row.f_residential_area}}</td>
256
+ <td style="text-align: center">{{row.f_address}}</td>
257
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
258
+ <td style="text-align: center">{{row.f_checker_name}}</td>
259
+ <td style="text-align: center" v-if="row.f_is_repaired == '隐患未处理' && $parent.$parent.$parent.inrole()" @click="$parent.$parent.$parent.showSolve(row)"><a>{{row.f_is_repaired}}</a></td>
260
+ <td style="text-align: center" v-else>{{row.f_is_repaired}}</td>
261
+ <td style="text-align: center">{{row.f_repairman}}</td>
262
+ <td style="text-align: center">{{row.f_deal_dispose}}</td>
263
+ <td style="text-align: center">{{row.f_repair_date}}</td>
264
+ <td style="text-align: center">{{row.f_service_id}}</td>
265
+ <td style="text-align: center">{{row.f_handlingtype}}</td>
266
+ <td style="text-align: center">{{row.f_order_man}}</td>
267
+ </template>
268
+ </data-grid>
269
+ </criteria-paged>
270
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
271
+ <modal :show.sync="showModal2" :backdrop="false">
272
+ <div slot="modal-header" class="modal-header">
273
+ <h4 class="modal-title">
274
+ 转维修
275
+ </h4>
276
+ </div>
277
+ <div slot="modal-body" class="modal-body">
278
+ <div v-if="true">
279
+ <div>
280
+
281
+ </div>
282
+ <!-- <div v-for="(index, item) in dangerGroup">-->
283
+
284
+ <!-- </div>-->
285
+ <div class="row" style="margin-top: 10px">
286
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
287
+ <div class="col-xs-8 col-md-8">
288
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
289
+ :options='dispatchTypeOptions' placeholder='派发类型'
290
+ close-on-select>
291
+ </v-select>
292
+ </div>
293
+ </div>
294
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
295
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
296
+ <div class="col-xs-8 col-md-8">
297
+ <v-select
298
+ :value.sync="selectData.f_repairman"
299
+ :value-single="true"
300
+ :options='repairers'
301
+ placeholder='请选择维修员'
302
+ close-on-select></v-select>
303
+ </div>
304
+ </div>
305
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
306
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
307
+ <div class="col-xs-8 col-md-8">
308
+ <right-tree
309
+ islist
310
+ :userid="userid"
311
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
312
+ @re-res="getSiteRes"></right-tree>
313
+ </div>
314
+ </div>
315
+ <div class="row" style="margin-top: 10px">
316
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
317
+ <div class="col-xs-8 col-md-8">
318
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
319
+ class="select select_list"
320
+ :value-single="true"
321
+ :options='repairTypeOptions'
322
+ close-on-select>
323
+ </v-select>
324
+ </div>
325
+ </div>
326
+ <div class="row" style="margin-top: 10px">
327
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
328
+ <div class="col-xs-8 col-md-8">
329
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
330
+ </div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
335
+ <button class="button_search" @click="rectification">转维修</button>
336
+ <button class="button_search" @click="cancel1">取消</button>
337
+ </div>
338
+ </modal>
339
+ <modal :show.sync="showModal3">
340
+ <div slot="modal-header" class="modal-header">
341
+ <h4 class="modal-title">
342
+ 转维修进度{{ progressbarWidth }}%
343
+ </h4>
344
+ </div>
345
+ <div slot="modal-body" class="modal-body">
346
+ <div class="progress">
347
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
348
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
349
+ </div>
350
+ </div>
351
+ </div>
352
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
353
+ </modal>
354
+ <modal :show.sync="showSolveModal" v-ref:solveModal>
355
+ <div slot="modal-header" class="modal-header">
356
+ <h4 class="modal-title">
357
+ 处理隐患
358
+ </h4>
359
+ </div>
360
+ <div slot="modal-body" class="modal-body">
361
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
362
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
363
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
364
+ </div>
365
+
366
+ <div class="col-sm-6" style="margin-top: 10px">
367
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
368
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_checker_name" placeholder="安检员">
369
+ </div>
370
+ <div class="col-sm-6" style="margin-top: 10px">
371
+ <label class="font_normal_body">安检时间</label>
372
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_offsite_time" placeholder="安检时间">
373
+ </div>
374
+ <div class="col-sm-12" style="margin-bottom: 10px" v-if="solve.model.defectImg">
375
+ <label class="font_normal_body">隐患图片</label>
376
+ <img-self :width="200" :height="200" :src="solve.model.defectImg"></img-self>
377
+ </div>
378
+ <div class="col-sm-12" style="margin-bottom: 10px">
379
+ <label class="font_normal_body">处理后图片</label>
380
+ <avatar-upload :width="200" :height="200" :img-src.sync="solve.imgSrc" :filename.sync="solve.filename" v-ref:imginfo></avatar-upload>
381
+ </div>
382
+ </div>
383
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
384
+ <button class="button_search" @click="okDefect">确认</button>
385
+ <button class="button_search" @click="cancelsolveDefect">取消</button>
386
+ </div>
387
+ </modal>
388
+ </div>
389
+ </div>
390
+ </template>
391
+
392
+ <script>
393
+ import {PagedList} from 'vue-client'
394
+ import Vue from 'vue'
395
+ import co from 'co'
396
+ import AppData from '../../../stores/AppData'
397
+ import * as Util from '../../Util'
398
+ import getNowDate from "../../../utils/getNowDate";
399
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
400
+ import BenzAMRRecorder from 'benz-amr-recorder'
401
+ const upSolveDefect = function * (self) {
402
+ self.solve.f_deal_dispose = self.solve.f_deal_dispose || '已处理'
403
+ self.$resetpost('/rs/logic/pcRepairDefectNew', self.solve, {resolveMsg: null, rejectMsg: null})
404
+ .then(res => {
405
+ if (res.data.code === 200) {
406
+ self.$showMessage('隐患已处理。')
407
+ self.showSolveModal = false
408
+ self.search()
409
+ self.solve={
410
+ model:{},
411
+ id: '',
412
+ f_repairman: self.$login.f.name,
413
+ f_repair_date: Util.getNowDate().substr(0, 10),
414
+ f_repair_path: '',
415
+ imgSrc: '',
416
+ filename: '',
417
+ f_defect_remark:''
418
+ }
419
+ }
420
+ })
421
+ }
422
+ //获取json配置文件
423
+ let asyncReady = async function (self) {
424
+ // 获取配置信息
425
+ try {
426
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
427
+ Vue.config = res.data
428
+ self.getDefectInfoConfig(res.data)
429
+ } catch (error) {
430
+ // 忽略704,文件找不到异常R
431
+ if (error.status !== 704) {
432
+ throw error
433
+ }
434
+ }
435
+ }
436
+
437
+ let select = function* (self) {
438
+ let http = new HttpResetClass()
439
+ let getGasman = yield http.load('POST', '/rs/search', {
440
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
441
+ userid: self.$login.f.id
442
+ }, {resolveMsg: null, rejectMsg: null})
443
+ ////tag
444
+ self.checkersid.push({label: '全部', value: ''})
445
+ getGasman.data.forEach((checker) => {
446
+ self.checkersid.push({label: checker.name, value: checker.id})
447
+ })
448
+ }
449
+
450
+ export default {
451
+ title: '隐患明细查看',
452
+ data() {
453
+ let model = new PagedList('rs/sql/defectDetails', 20,{
454
+ f_filialeid: 'this.f_filialeid'
455
+ })
456
+ model.f_plan_id = ''
457
+ model.f_approved = ''
458
+ model.f_entry = ''
459
+ model.f_no_checkplan = ''
460
+ model.f_check_type=''
461
+ model.f_filialeid = `('${this.$login.f.orgid}')`
462
+ return {
463
+ audioshow:false,
464
+
465
+ model: model,
466
+ deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
467
+ repairStateOptions: this.getSafeParam('隐患状态'),
468
+ //searchData:searchData,
469
+ excelHeaders: {
470
+ 'f_device_type': '检查项',
471
+ 'f_item_name': '隐患名称',
472
+ 'f_userinfo_code': '客户编号',
473
+ 'f_user_name': '客户姓名',
474
+ 'f_user_phone': '客户电话',
475
+ 'f_residential_area': '小区',
476
+ 'f_address': '客户地址',
477
+ 'f_offsite_time': '安检时间',
478
+ 'f_checker_name': '安检员',
479
+ 'f_deal_dispose': '处理方式',
480
+ 'f_is_repaired': '隐患状态',
481
+ 'f_repairman':'处理人',
482
+ 'f_repair_date':'处理时间'
483
+ },
484
+ fun: this.$login.f,
485
+ checkersid: [],
486
+ safetype: this.getSafeParam('安检类型'),
487
+ criteriaShow: false,
488
+ showModal: false,
489
+ f_approval_states: this.getSafeParam('安检单审核状态'),
490
+ f_entry_status:this.getSafeParam('安检状态'),
491
+ f_checkplans: this.getSafeParam('有无计划'),
492
+ showcheckmsg: false,
493
+ checkInfo: {},
494
+ orderDefault: "'f_offsite_time'",
495
+ orderFields: {
496
+ f_offsite_time: 'no'
497
+ },
498
+ sliceArea: [],
499
+ cbc:[],
500
+ DefectConfig:'' ,
501
+ DefectConfigs:[{label:'全部',value:''},{label: '金额异常差值', value: '金额异常差值'},{label: '气量异常差值', value: '气量异常差值'}],
502
+ device_types:[{label:'全部',value:''}],
503
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
504
+ showModal2: false,
505
+ selectData:{
506
+ dispatchType:'',
507
+ f_repairman:'',
508
+ f_remarks:'',
509
+ f_repairtype:''
510
+ },
511
+ repairers: [],
512
+ repairTypeOptions:this.$appdata.getParam('报修类型'),
513
+ dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
514
+ dangerGroups: [],
515
+ showModal3: false,
516
+ progressbarWidth:'0',
517
+ canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
518
+ checkes: [],
519
+ solve:{
520
+ model:{},
521
+ id: '',
522
+ f_repairman: this.$login.f.name,
523
+ f_repair_date: Util.getNowDate().substr(0, 10),
524
+ f_repair_path: '',
525
+ imgSrc: '',
526
+ filename: '',
527
+ f_defect_remark:''
528
+ },
529
+ showSolveModal:false
530
+ }
531
+ },
532
+ computed :{
533
+ searchData() {
534
+ return {condition: this.model.condition}
535
+ }
536
+ },
537
+ methods: {
538
+ isChecked(row) {
539
+ return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
540
+ },
541
+ setCheckes(row) {
542
+ let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
543
+ if(index<0){
544
+ this.checkes.push(row)
545
+ }else{
546
+ this.checkes.splice(index,1)
547
+ }
548
+ console.log('this.checkes=', JSON.stringify(this.checkes))
549
+ },
550
+ toRepair(){
551
+ console.log('this.checkes=', JSON.stringify(this.checkes))
552
+ if(this.checkes.length==0){
553
+ return this.$showMessage('请先选择需要转维修的隐患!')
554
+ }
555
+
556
+ const dangerGroups = []
557
+ for (const danger of this.checkes) {
558
+ let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_code === danger.f_userinfo_code)
559
+ if (i == -1){
560
+ dangerGroups.push({
561
+ f_userinfo_code: danger.f_userinfo_code,
562
+ dangers: []
563
+ })
564
+ i = dangerGroups.length - 1
565
+ }
566
+ dangerGroups[i].dangers.push(danger)
567
+ }
568
+ this.dangerGroups = dangerGroups
569
+ console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
570
+ this.showModal2=true
571
+ },
572
+ getEmp() {
573
+ 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}`}
574
+ let http = new HttpResetClass()
575
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
576
+ let str=''
577
+ res.data.forEach((item,idx,arr) => {
578
+ //tag
579
+ if(idx+1==arr.length){
580
+ str += item.id
581
+ }else{
582
+ str += item.id+','
583
+ }
584
+
585
+ })
586
+ let http1 = new HttpResetClass()
587
+ http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
588
+ data: {
589
+ items: 'id,f_user_telephone',
590
+ tablename: 't_user',
591
+ condition: `id in (${str})`,
592
+ orderitem: 'id'
593
+ }
594
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
595
+
596
+ res.data.forEach((user)=>{
597
+ try {
598
+ ress.data.forEach((tel,tidx,arr)=>{
599
+ //tag
600
+ if(user.id==tel.id){
601
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
602
+ ress.data.splice(tidx,1)
603
+ //tag
604
+ throw new Error("跳出循环");
605
+ }
606
+ })
607
+ }catch (e) {
608
+ //tag
609
+ }
610
+ })
611
+ })
612
+
613
+ })
614
+ },
615
+ getSiteRes(obj) {
616
+ console.log('siteRes ---> ')
617
+ console.log(obj)
618
+ if(obj.resids[0]){
619
+ this.selectData.f_meetunit = obj.res.join('.')
620
+ this.selectData.f_reciever = obj.resids.join('.')
621
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
622
+ }else {
623
+ this.selectData.f_meetunit = ''
624
+ this.selectData.f_reciever = ''
625
+ this.selectData.f_outlets = ''
626
+ }
627
+ },
628
+ cancel1(){
629
+ this.showModal2=false
630
+ this.selectData={
631
+ dispatchType:'',
632
+ f_repairman:'',
633
+ f_remarks:'',
634
+ f_repairtype:''
635
+ }
636
+ },
637
+ async rectification(){
638
+ if(this.selectData.dispatchType){
639
+ if(this.selectData.dispatchType=='派发给站点'){
640
+ if(!this.selectData.f_reciever){
641
+ this.$showMessage('请选择部门!')
642
+ return
643
+ }
644
+ }else{
645
+ if(!this.selectData.f_repairman){
646
+ this.$showMessage('请选择维修员!')
647
+ return
648
+ }
649
+ }
650
+ }else {
651
+ this.$showMessage('请选择派发类型!')
652
+ return
653
+ }
654
+
655
+ if(!this.selectData.f_repairtype){
656
+ this.$showMessage('请选择报修类型!')
657
+ return
658
+ }
659
+ this.showModal3=true
660
+ let act={}
661
+ let toRepair=''
662
+ let successCount=0
663
+ if(this.selectData.dispatchType=='派发给站点'){
664
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
665
+ toRepair=null
666
+ }else{
667
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
668
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
669
+ toRepair='一级派单'
670
+ }
671
+ let rep={
672
+ loginUser: {
673
+ name: this.$login.f.name,
674
+ ename: this.$login.f.ename
675
+ },
676
+ f_meetunit: this.$login.f.deps,
677
+ f_attendant: this.$login.f.name,
678
+ f_outlets: this.$login.f.deps,
679
+ f_remarks: this.selectData.f_remarks,
680
+ f_repairtype: this.selectData.f_repairtype,
681
+ toRepair: toRepair,
682
+ activity:act
683
+ }
684
+ for(let i=0; i<this.dangerGroups.length; i++){
685
+ let defectIdStr = ''
686
+ const defectIds = []
687
+ for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
688
+ defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
689
+ }
690
+ defectIdStr = `(${defectIds.join(',')})`
691
+ const data = {
692
+ id:this.dangerGroups[i].dangers[0].f_paper_id,
693
+ repData:rep,
694
+ source:'pc',
695
+ defectIdStr: defectIdStr
696
+ }
697
+ console.log('data=', JSON.stringify(data))
698
+ try {
699
+ let result =await new HttpResetClass().load('post','/rs/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
700
+ if (result.data.code==200) {
701
+ successCount += result.data.successcon
702
+ this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
703
+ }
704
+ }catch (e) {
705
+ this.showModal3=false
706
+ this.$showMessage('网络异常,请稍后再试!')
707
+ return
708
+ }
709
+ }
710
+ this.showModal3=false
711
+ this.cancel1()
712
+ this.$showMessage('本次转维修成功'+successCount+'单')
713
+ },
714
+ getDefectInfoConfig(val){
715
+ try {
716
+ if (val.safecheck.DevicesSetConfig != undefined) {
717
+ this.DefectConfig = val.safecheck.DevicesConfig
718
+ // 获取到配置项,进行遍历,获取每个隐患项
719
+ for (var Key1 in this.DefectConfig){
720
+ this.device_types.push({label:Key1,value:Key1})
721
+ for(var Key2 in this.DefectConfig[Key1].items){
722
+ this.DefectConfigs.push({label:Key2,value:Key2})
723
+ }
724
+ }
725
+ // 非民用或其他配置项加入,在进行遍历
726
+ }
727
+ }catch (e) {
728
+ //tag
729
+ }
730
+ },
731
+ showaudio(){
732
+ //tag
733
+ this.audioshow=!this.audioshow
734
+ //tag
735
+ },
736
+ getmeterbook(val){
737
+ this.cbc=[]
738
+ this.cbc.push({
739
+ label:'全部',
740
+ value:''
741
+ })
742
+ if (val==''){
743
+
744
+ this.cbcs.forEach(res=>{
745
+ this.cbc.push({
746
+ label:res.f_book_name,
747
+ value:res.id
748
+ })
749
+ })
750
+ }else{
751
+ this.cbcs.forEach(res=>{
752
+ if (res.f_book_slice_area==val){
753
+ this.cbc.push({
754
+ label:res.f_book_name,
755
+ value:res.id
756
+ })
757
+ }
758
+ })
759
+ }
760
+ },
761
+ getSafeParam(val){
762
+ if(this.$appdata.getParam(val)){
763
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
764
+ }else{
765
+ return [{label: '全部', value: ''}]
766
+ }
767
+
768
+ },
769
+ Mreadibook(val){
770
+ ////tag
771
+ ////tag
772
+ this.sliceArea=[]
773
+ if (val){
774
+ new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
775
+ items: 'name',
776
+ tablename: 't_zone',
777
+ condition: `parentid in ${val}`,
778
+ orderitem: 'id'
779
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
780
+ this.sliceArea.push({
781
+ label:'全部',
782
+ value:''
783
+ })
784
+ res.data.forEach(ress=>{
785
+ this.sliceArea.push({
786
+ label:ress.name,
787
+ value:ress.name
788
+ })
789
+ })
790
+
791
+ })
792
+ }
793
+ },
794
+ getAllMeterBook(val){
795
+ ////tag
796
+ ////tag
797
+ this.cbcs=[]
798
+ if (val){
799
+ new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
800
+ items: 'f_book_name,f_book_slice_area,id',
801
+ tablename: 't_meter_book',
802
+ condition: `f_filiale_id in ${val}`,
803
+ orderitem: 'id'
804
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
805
+ res.data.forEach(ress=>{
806
+ this.cbcs.push({
807
+ id:ress.id,
808
+ f_book_name:ress.f_book_name,
809
+ f_book_slice_area:ress.f_book_slice_area
810
+ })
811
+ })
812
+ this.cbc=[]
813
+ this.cbc.push({
814
+ label:'全部',
815
+ value:''
816
+ })
817
+ this.cbcs.forEach(res=>{
818
+ this.cbc.push({
819
+ label:res.f_book_name,
820
+ value:res.id
821
+ })
822
+ })
823
+ })
824
+ }
825
+ },
826
+ getRes(obj) {
827
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
828
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
829
+ this.Mreadibook(this.model.f_filialeid)
830
+ this.getAllMeterBook(this.model.f_filialeid)
831
+ //this.$refs.paged.$refs.criteria.search()
832
+ },
833
+
834
+ change(row) {
835
+ // Vue.$login = {jwt: row.f_checker_id}
836
+ asyncReady(this).then(() => {
837
+ ////tag)
838
+ row.f_upload_state = '已传'
839
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
840
+ }).catch(
841
+ (respanse) => {
842
+ alert('获取配置文件失败')
843
+ })
844
+ },
845
+ readConfig() {
846
+ let gen = asyncReady(this)
847
+ return co(gen)
848
+ },
849
+ showChooser() {
850
+ this.showModal = true
851
+ },
852
+ hidden() {
853
+ this.criteriaShow = !this.criteriaShow
854
+ },
855
+ refresh() {
856
+ this.$refs.paged.$refs.criteria.search()
857
+ },
858
+ ok() {
859
+ this.showModal = false
860
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
861
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
862
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
863
+ }
864
+ },
865
+ cancel() {
866
+ this.showModal = false
867
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
868
+ this.model.f_plan_id=''
869
+ },
870
+ print(row) {
871
+ this.showcheckmsg = true
872
+ this.checkInfo = row
873
+ },
874
+
875
+ sort(field, rule) {
876
+ // 将所有排序方式设为不排序,实现相互排斥
877
+ for (let key in this.orderFields) {
878
+ if (key === field) {
879
+ this.orderFields[key] = rule
880
+ } else {
881
+ this.orderFields[key] = 'no'
882
+ }
883
+ }
884
+ // 如果新规则不排序,还原为默认排序
885
+ if (rule === 'no') {
886
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
887
+ } else {
888
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
889
+ }
890
+ this.search()
891
+ },
892
+ search() {
893
+ this.$refs.paged.$refs.criteria.search()
894
+ },
895
+ selfSearch(args) {
896
+ ////tag
897
+ args.condition += ` and f_filialeid in ${this.model.f_filialeid}`
898
+ this.model.search(args.condition, args.model, args.condValue)
899
+ },
900
+ cancelsolveDefect() {
901
+ this.showSolveModal = false
902
+ this.solve = {
903
+ model:{},
904
+ id: '',
905
+ f_repairman: this.$login.f.name,
906
+ f_repair_date: Util.getNowDate().substr(0, 10),
907
+ f_repair_path: '',
908
+ imgSrc: '',
909
+ filename: '',
910
+ f_defect_remark:''
911
+ }
912
+ },
913
+ okDefect(){
914
+ if (!(this.solve.filename && this.solve.filename.length > 0)) {
915
+ this.$showMessage('请录入处理后照片')
916
+ return
917
+ }
918
+ co(upSolveDefect(this))
919
+ },
920
+ showSolve(row){
921
+ this.showSolveModal = true
922
+ this.solve.model = row
923
+ this.solve.model.defectImg = row.f_path?'/rs/image/file/' + row.f_path:null
924
+ this.solve.id = row.f_defect_id
925
+ },
926
+ inrole(){
927
+ return this.$login.f.rolestr.indexOf('安检隐患处理') != -1
928
+ }
929
+ },
930
+
931
+ ready() {
932
+ this.getEmp()
933
+ this.readConfig()
934
+ ////tag
935
+ this.function = this.f
936
+ ////tag
937
+
938
+ let gen = select(this)
939
+ //this.pianqu()
940
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
941
+ co(gen)
942
+ }
943
+ }
944
+ </script>