safecheck-client 3.0.33-73 → 3.0.33-74

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 (378) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/CHANGELOG.md +27 -27
  4. package/android.html +18 -18
  5. package/build/css-loaders.js +34 -34
  6. package/build/dev-android.js +151 -151
  7. package/build/dev-client.js +8 -8
  8. package/build/release.sh +28 -28
  9. package/build/utils.js +71 -71
  10. package/build/webpack.baseandroid.conf.js +83 -83
  11. package/build/webpack.devandroid.conf.js +33 -33
  12. package/build/webpack.example.conf.js +49 -49
  13. package/build/webpack.hanwei.conf.js +57 -57
  14. package/build/webpack.hwbase.conf.js +78 -78
  15. package/build/webpack.prodandroid.conf.js +60 -60
  16. package/build/webpack.test.conf.js +31 -31
  17. package/build.gradle +14 -14
  18. package/config/dev.env.js +6 -6
  19. package/config/index.js +38 -38
  20. package/config/prod.env.js +3 -3
  21. package/config/test.env.js +6 -6
  22. package/docs/AppBase.md +22 -22
  23. package/docs/Busy.md +14 -14
  24. package/docs/Criteria.md +47 -47
  25. package/docs/CriteriaPaged.md +47 -47
  26. package/docs/DataGrid.md +54 -54
  27. package/docs/DataModel.md +22 -22
  28. package/docs/Dynamic.md +42 -42
  29. package/docs/FormPrint.md +18 -18
  30. package/docs/GetParams.md +11 -11
  31. package/docs/GridTree.md +47 -47
  32. package/docs/HttpBusy.md +13 -13
  33. package/docs/HttpStore.md +29 -29
  34. package/docs/MessageBox.md +28 -28
  35. package/docs/PagedList.md +29 -29
  36. package/docs/Pager.md +21 -21
  37. package/docs/PrintFile.md +38 -38
  38. package/docs/Project.md +23 -23
  39. package/docs/Route.md +105 -105
  40. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  41. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  42. package/docs/Task.md +46 -46
  43. package/docs/TreeList.md +28 -28
  44. package/docs/TreeMixin.md +18 -18
  45. package/docs/all.md +10 -10
  46. package/docs/list.md +42 -42
  47. package/docs/partial.md +75 -75
  48. package/docs/selector.md +82 -82
  49. package/docs/tree.md +40 -40
  50. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  51. 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
  52. 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
  53. 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
  54. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  55. package/examples/AddressList/App.vue +13 -13
  56. package/examples/AddressList/index.html +11 -11
  57. package/examples/AddressList/main.js +13 -13
  58. package/examples/ChangeConfig/index.html +17 -17
  59. package/examples/ChangeConfig/main.js +13 -13
  60. package/examples/CheckAdvise/comp.js +9 -9
  61. package/examples/CheckAdvise/index.html +18 -18
  62. package/examples/CheckAdvise/main.js +13 -13
  63. package/examples/CreatePlan/App.vue +13 -13
  64. package/examples/CreatePlan/index.html +11 -11
  65. package/examples/CreatePlan/main.js +13 -13
  66. package/examples/DispatchList/App.vue +10 -10
  67. package/examples/DispatchList/BaseTree.vue +13 -13
  68. package/examples/DispatchList/Init.vue +22 -22
  69. package/examples/DispatchList/Test.vue +20 -20
  70. package/examples/DispatchList/index.html +11 -11
  71. package/examples/DispatchList/main.js +18 -18
  72. package/examples/PhoneSafePlan/comp.js +33 -33
  73. package/examples/PhoneSafePlan/index.html +17 -17
  74. package/examples/PhoneSafePlan/main.js +13 -13
  75. package/examples/SafePlan/main.js +13 -13
  76. package/examples/SafePlan-aode/main.js +13 -13
  77. package/examples/SafePlanItem/index.html +17 -17
  78. package/examples/SafePlanItem/main.js +15 -15
  79. package/examples/Test/index.html +17 -17
  80. package/examples/Test/main.js +13 -13
  81. package/examples/Test//350/216/267/345/217/226/345/217/230/351/207/217 +2 -2
  82. package/examples/UserFiles/index.html +19 -19
  83. package/examples/UserFiles/main.js +13 -13
  84. package/home.html +16 -16
  85. package/oa.iml +8 -8
  86. package/package.json +1 -1
  87. package/publish.bat +7 -7
  88. package/release.bat +5 -5
  89. package/src/App.vue +33 -31
  90. package/src/Widget.vue +13 -13
  91. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  92. package/src/android-bootstrap/less/.csscomb.json +304 -304
  93. package/src/android-bootstrap/less/.csslintrc +19 -19
  94. package/src/android-bootstrap/less/alerts.less +73 -73
  95. package/src/android-bootstrap/less/badges.less +66 -66
  96. package/src/android-bootstrap/less/bootstrap.less +56 -56
  97. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  98. package/src/android-bootstrap/less/button-groups.less +247 -247
  99. package/src/android-bootstrap/less/buttons.less +173 -173
  100. package/src/android-bootstrap/less/carousel.less +269 -269
  101. package/src/android-bootstrap/less/close.less +34 -34
  102. package/src/android-bootstrap/less/code.less +69 -69
  103. package/src/android-bootstrap/less/component-animations.less +33 -33
  104. package/src/android-bootstrap/less/dropdowns.less +216 -216
  105. package/src/android-bootstrap/less/forms.less +626 -626
  106. package/src/android-bootstrap/less/glyphicons.less +305 -305
  107. package/src/android-bootstrap/less/grid.less +84 -84
  108. package/src/android-bootstrap/less/input-groups.less +167 -167
  109. package/src/android-bootstrap/less/jumbotron.less +52 -52
  110. package/src/android-bootstrap/less/labels.less +64 -64
  111. package/src/android-bootstrap/less/list-group.less +141 -141
  112. package/src/android-bootstrap/less/media.less +66 -66
  113. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  114. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  115. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  116. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  117. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  118. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  119. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  120. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  121. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  122. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  123. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  124. package/src/android-bootstrap/less/mixins/image.less +33 -33
  125. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  126. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  127. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  128. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  129. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  130. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  131. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  132. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  133. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  134. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  135. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  136. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  137. package/src/android-bootstrap/less/mixins/size.less +10 -10
  138. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  139. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  140. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  141. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  142. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  143. package/src/android-bootstrap/less/mixins.less +40 -40
  144. package/src/android-bootstrap/less/modals.less +151 -151
  145. package/src/android-bootstrap/less/navbar.less +660 -660
  146. package/src/android-bootstrap/less/navs.less +290 -290
  147. package/src/android-bootstrap/less/normalize.less +424 -424
  148. package/src/android-bootstrap/less/pager.less +76 -76
  149. package/src/android-bootstrap/less/pagination.less +89 -89
  150. package/src/android-bootstrap/less/panels.less +274 -274
  151. package/src/android-bootstrap/less/popovers.less +131 -131
  152. package/src/android-bootstrap/less/print.less +101 -101
  153. package/src/android-bootstrap/less/progress-bars.less +87 -87
  154. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  155. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  156. package/src/android-bootstrap/less/scaffolding.less +161 -161
  157. package/src/android-bootstrap/less/tables.less +262 -262
  158. package/src/android-bootstrap/less/theme.less +291 -291
  159. package/src/android-bootstrap/less/thumbnails.less +36 -36
  160. package/src/android-bootstrap/less/tooltip.less +102 -102
  161. package/src/android-bootstrap/less/type.less +303 -303
  162. package/src/android-bootstrap/less/utilities.less +55 -55
  163. package/src/android-bootstrap/less/variables.less +896 -896
  164. package/src/android-bootstrap/less/wells.less +29 -29
  165. package/src/androidBase.js +177 -177
  166. package/src/androidTest.js +20 -20
  167. package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  168. package/src/bootstrap/less/.csscomb.json +304 -304
  169. package/src/bootstrap/less/.csslintrc +19 -19
  170. package/src/bootstrap/less/alerts.less +73 -73
  171. package/src/bootstrap/less/aofeng/animate.min.css +10 -10
  172. package/src/bootstrap/less/aofeng/standard.less +2121 -2121
  173. package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +686 -686
  174. package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -1586
  175. package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +2650 -2650
  176. package/src/bootstrap/less/aofeng/themeOne.less +14 -14
  177. package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -415
  178. package/src/bootstrap/less/aofeng/themeTwo.less +3 -3
  179. package/src/bootstrap/less/badges.less +66 -66
  180. package/src/bootstrap/less/breadcrumbs.less +26 -26
  181. package/src/bootstrap/less/button-groups.less +247 -247
  182. package/src/bootstrap/less/buttons.less +172 -172
  183. package/src/bootstrap/less/carousel.less +269 -269
  184. package/src/bootstrap/less/close.less +34 -34
  185. package/src/bootstrap/less/code.less +69 -69
  186. package/src/bootstrap/less/component-animations.less +33 -33
  187. package/src/bootstrap/less/dropdowns.less +216 -216
  188. package/src/bootstrap/less/forms.less +626 -626
  189. package/src/bootstrap/less/grid.less +84 -84
  190. package/src/bootstrap/less/input-groups.less +167 -167
  191. package/src/bootstrap/less/jumbotron.less +52 -52
  192. package/src/bootstrap/less/labels.less +64 -64
  193. package/src/bootstrap/less/list-group.less +141 -141
  194. package/src/bootstrap/less/manageStyle/manageChile.less +180 -180
  195. package/src/bootstrap/less/manageStyle/manageStyle.less +1102 -1102
  196. package/src/bootstrap/less/manageStyle/safeStyle.less +498 -498
  197. package/src/bootstrap/less/media.less +66 -66
  198. package/src/bootstrap/less/mixins/alerts.less +14 -14
  199. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  200. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  201. package/src/bootstrap/less/mixins/buttons.less +69 -69
  202. package/src/bootstrap/less/mixins/center-block.less +7 -7
  203. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  204. package/src/bootstrap/less/mixins/forms.less +90 -90
  205. package/src/bootstrap/less/mixins/gradients.less +59 -59
  206. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  207. package/src/bootstrap/less/mixins/grid.less +122 -122
  208. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  209. package/src/bootstrap/less/mixins/image.less +33 -33
  210. package/src/bootstrap/less/mixins/labels.less +12 -12
  211. package/src/bootstrap/less/mixins/list-group.less +30 -30
  212. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  213. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  214. package/src/bootstrap/less/mixins/opacity.less +8 -8
  215. package/src/bootstrap/less/mixins/pagination.less +24 -24
  216. package/src/bootstrap/less/mixins/panels.less +24 -24
  217. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  218. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  219. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  220. package/src/bootstrap/less/mixins/resize.less +6 -6
  221. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  222. package/src/bootstrap/less/mixins/size.less +10 -10
  223. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  224. package/src/bootstrap/less/mixins/table-row.less +44 -44
  225. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  226. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  227. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  228. package/src/bootstrap/less/mixins.less +40 -40
  229. package/src/bootstrap/less/modals.less +151 -151
  230. package/src/bootstrap/less/navbar.less +660 -660
  231. package/src/bootstrap/less/navs.less +285 -285
  232. package/src/bootstrap/less/normalize.less +424 -424
  233. package/src/bootstrap/less/pager.less +76 -76
  234. package/src/bootstrap/less/pagination.less +89 -89
  235. package/src/bootstrap/less/panels.less +275 -275
  236. package/src/bootstrap/less/popovers.less +131 -131
  237. package/src/bootstrap/less/print.less +101 -101
  238. package/src/bootstrap/less/progress-bars.less +87 -87
  239. package/src/bootstrap/less/responsive-embed.less +35 -35
  240. package/src/bootstrap/less/responsive-utilities.less +194 -194
  241. package/src/bootstrap/less/scaffolding.less +161 -161
  242. package/src/bootstrap/less/standard.less +503 -503
  243. package/src/bootstrap/less/systemStyle.less +860 -860
  244. package/src/bootstrap/less/tables.less +262 -262
  245. package/src/bootstrap/less/theme.less +291 -291
  246. package/src/bootstrap/less/themeOne.less +36 -36
  247. package/src/bootstrap/less/themeTwo.less +29 -29
  248. package/src/bootstrap/less/thumbnails.less +36 -36
  249. package/src/bootstrap/less/tooltip.less +102 -102
  250. package/src/bootstrap/less/type.less +303 -303
  251. package/src/bootstrap/less/utilities.less +55 -55
  252. package/src/bootstrap/less/wells.less +29 -29
  253. package/src/components/AloneLoadParams.vue +25 -25
  254. package/src/components/FileUpload.vue +696 -696
  255. package/src/components/Hello.vue +39 -39
  256. package/src/components/LeftTree.vue +27 -27
  257. package/src/components/Main.vue +393 -393
  258. package/src/components/android/AddGas.vue +147 -147
  259. package/src/components/android/AddressList.vue +61 -61
  260. package/src/components/android/AdviseCommit.vue +59 -59
  261. package/src/components/android/AndroidCheckResult.vue +181 -181
  262. package/src/components/android/AttendanceTally.vue +116 -116
  263. package/src/components/android/Blank.vue +10 -10
  264. package/src/components/android/CheckUnplanPage.vue +56 -56
  265. package/src/components/android/Checker.vue +12 -12
  266. package/src/components/android/CheckerAnnual.vue +81 -81
  267. package/src/components/android/CheckerAvarta.vue +82 -82
  268. package/src/components/android/CheckerMonthly.vue +84 -84
  269. package/src/components/android/CurrentCreate.vue +1050 -1050
  270. package/src/components/android/DevicesNoncivil.vue +214 -214
  271. package/src/components/android/EquipmentInspection.vue +348 -348
  272. package/src/components/android/FootprintMap.vue +120 -120
  273. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  274. package/src/components/android/LcheckUnplan.vue +108 -108
  275. package/src/components/android/MasterMain.vue +77 -77
  276. package/src/components/android/Menu.vue +132 -132
  277. package/src/components/android/NavBottom.vue +157 -157
  278. package/src/components/android/PaperAlarm.vue +85 -85
  279. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  280. package/src/components/android/PhoneInfoTable.vue +40 -40
  281. package/src/components/android/PlumberAnnual.vue +83 -83
  282. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  283. package/src/components/android/PlumberMonthly.vue +84 -84
  284. package/src/components/android/PostMap.vue +83 -83
  285. package/src/components/android/QueryCheckHistory.vue +122 -122
  286. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  287. package/src/components/android/RepairMain.vue +60 -60
  288. package/src/components/android/Repairman.vue +12 -12
  289. package/src/components/android/SafecheckOrderV.vue +2803 -2803
  290. package/src/components/android/StationMaster.vue +12 -12
  291. package/src/components/android/wasm/comp.js +33 -33
  292. package/src/components/checkerphonestate/Checker.vue +32 -32
  293. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  294. package/src/components/defects/AddDefectModal.vue +120 -120
  295. package/src/components/defects/AddDevice.vue +95 -95
  296. package/src/components/defects/DefectModal.vue +101 -101
  297. package/src/components/defects/DefectSeting.vue +98 -98
  298. package/src/components/defects/DefectsQuery.vue +190 -190
  299. package/src/components/defects/DevicesAndItem.vue +39 -39
  300. package/src/components/defects/DevicesSeting.vue +106 -106
  301. package/src/components/equipment/BoilerUsage.vue +105 -105
  302. package/src/components/equipment/CookerUsage.vue +105 -105
  303. package/src/components/equipment/DeviceUsage.vue +105 -105
  304. package/src/components/equipment/FurnaceUsage.vue +105 -105
  305. package/src/components/equipment/GasMeterUsage.vue +109 -109
  306. package/src/components/equipment/HeaterUsage.vue +105 -105
  307. package/src/components/gasusage/GasUsage.vue +126 -126
  308. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  309. package/src/components/map/PersonTrack.vue +224 -224
  310. package/src/components/map/douglasPeuckerForAMap.js +88 -88
  311. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  312. package/src/components/metterfiles/MetterFiles.vue +104 -104
  313. package/src/components/notice/NoticeForm.vue +100 -100
  314. package/src/components/notice/NoticeIssue.vue +20 -20
  315. package/src/components/notice/NoticeQuery.vue +76 -76
  316. package/src/components/paper/PicViewer.vue +18 -18
  317. package/src/components/paper/RepairVerify.vue +139 -139
  318. package/src/components/paper/RepairVerifyForm.vue +76 -76
  319. package/src/components/paper/VerifyForm.vue +107 -107
  320. package/src/components/phonestate/DailyTraffic.vue +57 -57
  321. package/src/components/phonestate/LastKnownState.vue +74 -74
  322. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  323. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  324. package/src/components/phonestate/PostMap.vue +82 -82
  325. package/src/components/planmanage/PlanManage.vue +834 -834
  326. package/src/components/planmanage/checkPlanList.vue +369 -369
  327. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  328. package/src/components/querycheckpaper/PaperSearch.vue +126 -126
  329. package/src/components/report/HiddenSituation.vue +3 -3
  330. package/src/components/task/RepairAnnual.vue +79 -79
  331. package/src/components/task/RepairAnnualDetail.vue +49 -49
  332. package/src/components/task/RepairMonthly.vue +91 -91
  333. package/src/components/task/TaskAnnual.vue +77 -77
  334. package/src/components/task/TaskAnnualDetail.vue +47 -47
  335. package/src/components/task/TaskMonthly.vue +89 -89
  336. package/src/components/userfile/MeterFile.vue +145 -145
  337. package/src/components/userfile/MeterModify.vue +46 -46
  338. package/src/components/userfile/UserFile.vue +118 -118
  339. package/src/components/userfile/UserfileChange.vue +277 -277
  340. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  341. package/src/components/userfileaudit/UserFileaudit.vue +81 -81
  342. package/src/components/userfileaudit/UserfileChangeaudit.vue +239 -239
  343. package/src/expandcss.less +571 -571
  344. package/src/filiale/fugou/android.js +11 -11
  345. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -63
  346. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1081
  347. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -920
  348. package/src/filiale/fugou/pc/PaperList.vue +911 -903
  349. package/src/filiale/fugou/pc/PlanManage.vue +1061 -1061
  350. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1154 -1154
  351. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
  352. package/src/filiale/yangchunboneng/android.js +1 -0
  353. package/src/main.js +32 -33
  354. package/src/plugins/GerJsonConfig.js +59 -59
  355. package/src/plugins/LoadData.js +10 -10
  356. package/src/plugins/LoadParams.js +24 -24
  357. package/src/stores/AppData.js +46 -46
  358. package/src/stores/wxconfig.js +10 -10
  359. package/src/utils/getNowDate.js +33 -33
  360. package/test/SearchList.test.js +14 -14
  361. package/test/e2e/custom-assertions/elementCount.js +26 -26
  362. package/test/e2e/nightwatch.conf.js +40 -40
  363. package/test/e2e/runner.js +30 -30
  364. package/test/e2e/specs/test.js +13 -13
  365. package/test/unit/.eslintrc +5 -5
  366. package/test/unit/TestUtil.js +62 -62
  367. package/test/unit/context.html +20 -20
  368. package/test/unit/index.js +13 -13
  369. package/test/unit/init.js +11 -11
  370. package/test/unit/karma.conf.js +53 -53
  371. package/test/unit/specs/Devices.spec.js +18 -18
  372. package/test/unit/specs/getArrobjconfig.spec.js +104 -104
  373. package/test/unit/specs/getobjconfig.spec.js +37 -37
  374. package/test/unit/specs/phonetest/phonesafecheck.spec.js +23 -23
  375. package/test/unit/specs/safePlanItem.spec.js +30 -30
  376. package/test/unit/specs/safecheck-android.spec.js +7 -7
  377. package/test/unit/specs/safecheck.spec.js +127 -127
  378. package/yarn-error.log +140 -140
@@ -1,1081 +1,1085 @@
1
- <template>
2
- <div class="flex">
3
- <work-busy :is-busy="isbusy"></work-busy>
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
- <div :class="$parent.$parent.style">
9
- <label class="font_normal_body">安检计划</label>
10
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
- @click="$parent.$parent.showChooser"
12
- style="width: 60%" placeholder="安检计划" readonly="readonly">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">存在隐患</label>
16
- <v-select style="width:60% "
17
- class="select select_list"
18
- :value.sync="model.f_has_defect"
19
- v-model="model.f_has_defect"
20
- :options='$parent.$parent.hasDefectOptions'
21
- :placeholder='model.f_has_defect'
22
- condition="f_has_defect = '{}'"
23
- close-on-select>
24
- </v-select>
25
- </div>
26
- <div :class="$parent.$parent.style">
27
- <label class="font_normal_body">用户编号</label>
28
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
29
- condition="f_userinfo_code = '{}'"
30
- style="width: 60%" placeholder="用户编号">
31
- </div>
32
- <div :class="$parent.$parent.style">
33
- <label class="font_normal_body">用户表号</label>
34
- <input type="text" class="input_search" v-model="model.f_meternumber"
35
- condition="f_meternumber = '{}'"
36
- style="width: 60%" placeholder="用户表号">
37
- </div>
38
- <div :class="$parent.$parent.style">
39
- <label class="font_normal_body">结果查询</label>
40
- <v-select
41
- placeholder='维修结果查询'
42
- :value-single="true"
43
- class="select select_list" style="width: 60%"
44
- v-model='model.f_is_repair'
45
- :value.sync="model.f_is_repair"
46
- :options='$parent.$parent.repaired'
47
- condition="f_is_repair = '{}'"
48
- close-on-select clear-button> </v-select>
49
- </div>
50
- <div class=" col-sm-4 form-group button-range" >
51
- <div class="span" style="float: right;margin-top: 8px">
52
- <div style="float: right" class="button_spacing"
53
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
54
- @click="$parent.$parent.hiddenr()"></div>
55
- <div style="float: right" class="button_spacing"
56
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
57
- @click="$parent.$parent.hidden()"></div>
58
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
59
- <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
60
- <div style="float: right">
61
- <export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
62
- :field="$parent.$parent.getfield"
63
- progress="safeGetExportProgress"
64
- sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
65
- </div>
66
- </div>
67
- </div>
68
- </div>
69
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
70
- <div :class="$parent.$parent.style">
71
- <label class="font_normal_body">片&emsp;&emsp;区</label>
72
- <v-select class="select_list select"
73
- placeholder='片区/管理站' style="width: 60%"
74
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
75
- :options='$parent.$parent.sliceArea'
76
- filer-key="name"
77
- close-on-select clear-button
78
- condition="f_slice_area='{}'"
79
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
80
- :value-single="true">
81
- </v-select>
82
- </div>
83
- <div :class="$parent.$parent.style2" style="margin: 0">
84
- <role-selector-safe
85
- role-name="安检员"
86
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
87
- :resobjprop.sync="$parent.$parent.resids"
88
- @re-res="$parent.$parent.getRes"
89
- :value.sync="model.f_checker_id"
90
- v-model="model.f_checker_id"
91
- condition="f_checker_name = '{}'">
92
- </role-selector-safe>
93
- </div>
94
-
95
- <div :class="$parent.$parent.style">
96
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
97
- <v-select class="select_list select"
98
- placeholder='抄表册' style="width: 60%"
99
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
100
- :options='$parent.$parent.cbc'
101
- filer-key="name"
102
- close-on-select clear-button
103
- condition="f_meter_book_num={}"
104
- :value-single="true">
105
- </v-select>
106
- </div>
107
- <div :class="$parent.$parent.style">
108
- <label class="font_normal_body">起始时间</label>
109
- <datepicker
110
- placeholder='起始时间' style="width:60%"
111
- :disabled-days-of-week="[]"
112
- :format="'yyyy-MM-dd'"
113
- :show-rest-button="reset"
114
- :value.sync="model.f_start_time"
115
- v-model="model.f_start_time"
116
- condition="f_offsite_time >= '{} 00:00:00'">
117
- </datepicker>
118
- </div>
119
- <div :class="$parent.$parent.style">
120
- <label class="font_normal_body">结束时间</label>
121
- <datepicker
122
- placeholder='结束时间' style="width:60%"
123
- :disabled-days-of-week="[]"
124
- :format="'yyyy-MM-dd'"
125
- :show-rest-button="reset"
126
- :value.sync="model.f_end_time"
127
- v-model="model.f_end_time"
128
- condition="f_offsite_time <= '{} 23:59:59'">
129
- </datepicker>
130
- </div>
131
- </div>
132
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
133
-
134
- <div :class="$parent.$parent.style">
135
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
136
- <input type="text" class="input_search" v-model="model.f_repairman"
137
- condition="f_repairman = '{}'"
138
- style="width: 60%" placeholder="维修员">
139
- </div>
140
- <div :class="$parent.$parent.style">
141
- <label class="font_normal_body">处理查询</label>
142
- <v-select
143
- placeholder='处理结果查询'
144
- :value-single="true"
145
- class="select select_list" style="width: 60%"
146
- v-model='model.f_is_deal'
147
- :value.sync="model.f_is_deal"
148
- :options='$parent.$parent.deals'
149
- condition="f_is_deal = '{}'"
150
- close-on-select clear-button> </v-select>
151
- </div>
152
- <div :class="$parent.$parent.style">
153
- <label class="font_normal_body">是否维修</label>
154
- <v-select
155
- placeholder='是否维修'
156
- :value-single="true"
157
- class="select select_list" style="width: 60%"
158
- v-model='model.f_repaired'
159
- :value.sync="model.f_repaired"
160
- :options='$parent.$parent.repairedOptions'
161
- condition="f_repaired = '{}'"
162
- close-on-select clear-button> </v-select>
163
- </div>
164
- <div :class="$parent.$parent.style">
165
- <label class="font_normal_body">地&ensp;&ensp;&ensp;&ensp;址</label>
166
- <input type="text" class="input_search" v-model="model.f_address"
167
- condition="f_address like '%{}%'"
168
- style="width: 60%" placeholder="地址">
169
- </div>
170
- <div :class="$parent.$parent.style">
171
- <label class="font_normal_body">开户时间</label>
172
- <datepicker
173
- placeholder='起始时间' style="width:60%"
174
- :disabled-days-of-week="[]"
175
- :format="'yyyy-MM-dd'"
176
- :show-rest-button="reset"
177
- :value.sync="model.f_start_gastime"
178
- v-model="model.f_start_gastime"
179
- condition="f_gas_date >= '{} 00:00:00'">
180
- </datepicker>
181
- </div>
182
- <div :class="$parent.$parent.style">
183
- <label class="font_normal_body">开户时间</label>
184
- <datepicker
185
- placeholder='结束时间' style="width:60%"
186
- :disabled-days-of-week="[]"
187
- :format="'yyyy-MM-dd'"
188
- :show-rest-button="reset"
189
- :value.sync="model.f_end_gastime"
190
- v-model="model.f_end_gastime"
191
- condition="f_gas_date <= '{} 23:59:59'">
192
- </datepicker>
193
- </div>
194
- <div :class="$parent.$parent.style">
195
- <label class="font_normal_body">用户标签</label>
196
- <v-select class="select_list select"
197
- placeholder='请选择' style="width: 60%"
198
- :value.sync="model.f_user_tags"
199
- v-model="model.f_user_tags"
200
- :options='$parent.$parent.userTags'
201
- filer-key="name"
202
- :multiple="true"
203
- condition="f_user_tags in {}"
204
- >
205
- </v-select>
206
- </div>
207
- <div :class="$parent.$parent.style">
208
- <label class="font_normal_body">用气类型</label>
209
- <v-select class="select_list select"
210
- placeholder='请选择' style="width: 60%"
211
- :value.sync="model.f_user_gas_type"
212
- v-model="model.f_user_gas_type"
213
- :options='$parent.$parent.userGasType'
214
- filer-key="name"
215
- :multiple="true"
216
- condition="f_user_gas_type in {}"
217
- >
218
- </v-select>
219
- </div>
220
- </div>
221
-
222
- <div class="row" v-show="$parent.$parent.$parent.showItem">
223
- <div :class="$parent.$parent.style">
224
- <label class="font_normal_body">安检计划</label>
225
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
226
- @click="$parent.$parent.showChooser"
227
- style="width: 60%" placeholder="安检计划" readonly="readonly">
228
- </div>
229
- <div :class="$parent.$parent.style">
230
- <label class="font_normal_body">存在隐患</label>
231
- <v-select style="width:60% "
232
- class="select select_list"
233
- :value.sync="model.f_has_defect"
234
- v-model="model.f_has_defect"
235
- :options='$parent.$parent.hasDefectOptions'
236
- :placeholder='model.f_has_defect'
237
- condition="f_has_defect = '{}'"
238
- close-on-select>
239
- </v-select>
240
- </div>
241
-
242
- <div class=" col-sm-4 form-group button-range">
243
- <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
244
- <div style="float: right" class="button_spacing"
245
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
246
- @click="$parent.$parent.hiddenr()"></div>
247
- <div style="float: right" class="button_spacing"
248
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
249
- @click="$parent.$parent.hidden()"></div>
250
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
251
- <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
252
- <div style="float: right">
253
- <export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
254
- :field="$parent.$parent.getfield"
255
- progress="safeGetExportProgress"
256
- sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检计划明细' :choose-col="true"></export-excel-safe>
257
- </div>
258
- </div>
259
- </div>
260
-
261
-
262
-
263
- </div>
264
- <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
265
- <div :class="$parent.$parent.style">
266
- <label class="font_normal_body">用户编号</label>
267
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
268
- condition="f_userinfo_code = '{}'"
269
- style="width: 60%" placeholder="用户编号">
270
- </div>
271
- <div :class="$parent.$parent.style">
272
- <label class="font_normal_body">用户表号</label>
273
- <input type="text" class="input_search" v-model="model.f_meternumber"
274
- condition="f_meternumber = '{}'"
275
- style="width: 60%" placeholder="用户表号">
276
- </div>
277
- <div :class="$parent.$parent.style">
278
- <label class="font_normal_body">结果查询</label>
279
- <v-select
280
- placeholder='处理结果查询'
281
- :value-single="true"
282
- class="select select_list" style="width: 60%"
283
- v-model='model.f_repaired'
284
- :value.sync="model.f_repaired"
285
- :options='$parent.$parent.repaired'
286
- condition="f_repaired = '{}'"
287
- close-on-select clear-button> </v-select>
288
- </div>
289
-
290
- <div :class="$parent.$parent.style2" style="margin: 0">
291
- <role-selector-safe
292
- role-name="安检员"
293
- :resobjprop.sync="$parent.$parent.resids"
294
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
295
- @re-res="$parent.$parent.getRes"
296
- :value.sync="model.f_checker_id"
297
- v-model="model.f_checker_id"
298
- condition="f_checker_name = '{}'">
299
- </role-selector-safe>
300
- </div>
301
- </div>
302
- <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
303
- <div :class="$parent.$parent.style">
304
- <label class="font_normal_body">片&emsp;&emsp;区</label>
305
- <v-select class="select_list select"
306
- placeholder='片区/管理站' style="width: 60%"
307
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
308
- :options='$parent.$parent.sliceArea'
309
- filer-key="name"
310
- close-on-select clear-button
311
- condition="f_slice_area='{}'"
312
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
313
- :value-single="true">
314
- </v-select>
315
- </div>
316
- <div :class="$parent.$parent.style">
317
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
318
- <v-select class="select_list select"
319
- placeholder='抄表册' style="width: 60%"
320
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
321
- :options='$parent.$parent.cbc'
322
- filer-key="name"
323
- close-on-select clear-button
324
- condition="f_meter_book_num={}"
325
- :value-single="true">
326
- </v-select>
327
- </div>
328
- <div :class="$parent.$parent.style">
329
- <label class="font_normal_body">起始时间</label>
330
- <datepicker
331
- placeholder='起始时间' style="width:60%"
332
- :disabled-days-of-week="[]"
333
- :format="'yyyy-MM-dd'"
334
- :show-rest-button="reset"
335
- :value.sync="model.f_start_time"
336
- v-model="model.f_start_time"
337
- condition="f_offsite_time >= '{} 00:00:00'">
338
- </datepicker>
339
- </div>
340
- <div :class="$parent.$parent.style">
341
- <label class="font_normal_body">结束时间</label>
342
- <datepicker
343
- placeholder='结束时间' style="width:60%"
344
- :disabled-days-of-week="[]"
345
- :format="'yyyy-MM-dd'"
346
- :show-rest-button="reset"
347
- :value.sync="model.f_end_time"
348
- v-model="model.f_end_time"
349
- condition="f_offsite_time <= '{} 23:59:59'">
350
- </datepicker>
351
- </div>
352
- </div>
353
- <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
354
-
355
- <div :class="$parent.$parent.style">
356
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
357
- <input type="text" class="input_search" v-model="model.f_repairman"
358
- condition="f_repairman = '{}'"
359
- style="width: 60%" placeholder="维修员">
360
- </div>
361
- <div :class="$parent.$parent.style">
362
- <label class="font_normal_body">处理查询</label>
363
- <v-select
364
- placeholder='处理结果查询'
365
- :value-single="true"
366
- class="select select_list" style="width: 60%"
367
- v-model='model.f_is_deal'
368
- :value.sync="model.f_is_deal"
369
- :options='$parent.$parent.deals'
370
- condition="f_is_deal = '{}'"
371
- close-on-select clear-button> </v-select>
372
- </div>
373
- <div :class="$parent.$parent.style">
374
- <label class="font_normal_body">地&ensp;&ensp;&ensp;&ensp;址</label>
375
- <input type="text" class="input_search" v-model="model.f_address"
376
- condition="f_address like '%{}%'"
377
- style="width: 60%" placeholder="地址">
378
- </div>
379
- <div :class="$parent.$parent.style">
380
- <label class="font_normal_body">开户时间</label>
381
- <datepicker
382
- placeholder='起始时间' style="width:60%"
383
- :disabled-days-of-week="[]"
384
- :format="'yyyy-MM-dd'"
385
- :show-rest-button="reset"
386
- :value.sync="model.f_start_gastime"
387
- v-model="model.f_start_gastime"
388
- condition="f_gas_date >= '{} 00:00:00'">
389
- </datepicker>
390
- </div>
391
- <div :class="$parent.$parent.style">
392
- <label class="font_normal_body">开户时间</label>
393
- <datepicker
394
- placeholder='结束时间' style="width:60%"
395
- :disabled-days-of-week="[]"
396
- :format="'yyyy-MM-dd'"
397
- :show-rest-button="reset"
398
- :value.sync="model.f_end_gastime"
399
- v-model="model.f_end_gastime"
400
- condition="f_gas_date <= '{} 23:59:59'">
401
- </datepicker>
402
- </div>
403
- </div>
404
- </div>
405
- </criteria>
406
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
407
- <template partial='head'>
408
- <tr>
409
- <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
410
- <th><nobr>入户状态</nobr></th>
411
- <th><nobr>用户编号</nobr></th>
412
- <th><nobr>用户名</nobr></th>
413
- <th><nobr>用户表号</nobr></th>
414
- <th><nobr>用户电话</nobr></th>
415
- <th><nobr>用户小区</nobr></th>
416
- <th><nobr>用户地址</nobr></th>
417
- <th><nobr>开户时间</nobr></th>
418
- <th><nobr>安检时间</nobr></th>
419
- <th><nobr>安检员</nobr></th>
420
- <th><nobr>计划名</nobr></th>
421
- <th><nobr>是否有隐患</nobr></th>
422
- <th><nobr>隐患数</nobr></th>
423
- <th><nobr>处理数</nobr></th>
424
- <th><nobr>处理情况</nobr></th>
425
- <th><nobr>维修员</nobr></th>
426
- <th><nobr>隐患明细</nobr></th>
427
- <!-- <th><nobr>备注</nobr></th>-->
428
- </tr>
429
- </template>
430
- <template partial='body'>
431
- <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
432
- <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
433
- <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
434
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
435
- <td style="text-align: center;white-space:nowrap;">{{row.f_meternumber}}</td>
436
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
437
- <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
438
- <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
439
- <td style="text-align: center;white-space:nowrap;">{{row.f_gas_date}}</td>
440
- <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
441
- <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
442
- <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
443
- <td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
444
- <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
445
- <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>
446
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>
447
- <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
448
- <td style="text-align: center;white-space:nowrap;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</td>
449
- <!-- <td style="text-align: center;white-space:nowrap;">{{ row.f_deal_remark}}</td>-->
450
- </template>
451
- </data-grid>
452
- </criteria-paged>
453
- <modal :show.sync="showModal" v-ref:modal backdrop="false">
454
- <div slot="modal-header" class="modal-header">
455
- <h4 class="modal-title">
456
- 选择计划
457
- </h4>
458
- </div>
459
- <div slot="modal-body" class="modal-body">
460
- <plan-chooser :f.sync="$login.f" v-ref:chooser></plan-chooser>
461
- </div>
462
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
463
- <button class="button_search" @click="ok">确认</button>
464
- <button class="button_search" @click="cancel">取消</button>
465
- </div>
466
- </modal>
467
- <modal :show.sync="showModal2" :backdrop="false">
468
- <div slot="modal-header" class="modal-header">
469
- <h4 class="modal-title">
470
- 转维修
471
- </h4>
472
- </div>
473
- <div slot="modal-body" class="modal-body">
474
- <div v-if="true">
475
- <div class="row" style="margin-top: 10px">
476
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
477
- <div class="col-xs-8 col-md-8">
478
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
479
- :options='dispatchTypeOptions' placeholder='派发类型'
480
- close-on-select>
481
- </v-select>
482
- </div>
483
- </div>
484
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
485
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
486
- <div class="col-xs-8 col-md-8">
487
- <v-select
488
- :value.sync="selectData.f_repairman"
489
- :value-single="true"
490
- :options='repairers'
491
- placeholder='请选择维修员'
492
- close-on-select></v-select>
493
- </div>
494
- </div>
495
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
496
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
497
- <div class="col-xs-8 col-md-8">
498
- <right-tree
499
- islist
500
- :userid="userid"
501
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
502
- @re-res="getSiteRes"></right-tree>
503
- </div>
504
- </div>
505
- <div class="row" style="margin-top: 10px">
506
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
507
- <div class="col-xs-8 col-md-8">
508
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
509
- class="select select_list"
510
- :value-single="true"
511
- :options='repairTypeOptions'
512
- close-on-select>
513
- </v-select>
514
- </div>
515
- </div>
516
- <div class="row" style="margin-top: 10px">
517
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
518
- <div class="col-xs-8 col-md-8">
519
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
520
- </div>
521
- </div>
522
- </div>
523
- </div>
524
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
525
- <!-- <button class="button_search" @click="rectification">转维修</button>-->
526
- <button class="button_search" @click="cancel1">取消</button>
527
- </div>
528
- </modal>
529
- <modal :show.sync="showModal3">
530
- <div slot="modal-header" class="modal-header">
531
- <h4 class="modal-title">
532
- 转维修进度{{ progressbarWidth }}%
533
- </h4>
534
- </div>
535
- <div slot="modal-body" class="modal-body">
536
- <div class="progress">
537
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
538
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
539
- <!-- <span class="sr-only">40% 完成</span>-->
540
- </div>
541
- </div>
542
- </div>
543
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
544
- </modal>
545
- </div>
546
- </template>
547
- <script>
548
- import {PagedList} from 'vue-client'
549
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
550
- import co from 'co'
551
- import Vue from 'vue'
552
- import * as Util from '../../Util'
553
-
554
- let select = function* (self) {
555
- let http = new HttpResetClass()
556
- let getGasman = yield http.load('POST', '/rs/search', {
557
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
558
- userid: self.$login.f.id
559
- }, {resolveMsg: null, rejectMsg: null})
560
- //tag
561
- self.checkersid.push({label: '全部', value: ''})
562
- getGasman.data.forEach((checker) => {
563
- self.checkersid.push({label: checker.name, value: checker.name})
564
- })
565
- }
566
- export default {
567
- title: '隐患查询',
568
- data() {
569
- let model = new PagedList('rs/sql/GetCheckPaperByDefectNew2', 20, {
570
- f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
571
- })
572
- model.f_filialeids = '(' + this.$login.f.orgid + ')'
573
- model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
574
- return {
575
- repaired:[{label: '全部', value: ''},{label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
576
- deals:[{label: '全部', value: ''},{label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'},{label: '处理中', value: '处理中'}],
577
- hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
578
- f: this.$login.f,
579
- model: model,
580
- userTags:[{label: '全部', value: ''},...this.$appdata.getParam('用户标签')],
581
- userGasType:[{label: '全部', value: ''},...this.$appdata.getParam('用气类型')],
582
- criteriaShow: false,
583
- checkAll:false,
584
- timercount:0,
585
- showModal2:false,
586
- repairTypeOptions:this.$appdata.getParam('转维修类型'),
587
- dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
588
- checkes:[],
589
- showModal: false,
590
- f_check_plan: {f_plan_name: '', id: ''},
591
- sumsmodel: {},
592
- resids:{},
593
- all: false,
594
- fields: {},
595
-
596
- selectData:{
597
- dispatchType:'',
598
- f_repairman:'',
599
- f_remarks:'',
600
- f_repairtype:''
601
- },
602
- progressbarWidth:'0',
603
- modelval: [],
604
- isbusy:false,
605
- checkersid: [],
606
- showModal3:false,
607
- toRepairCount:0,
608
- sliceArea: [],
609
- callSends:[],
610
- cbc:[],
611
- repairedOptions:[{label: '全部', value: ''},{label: '已修', value: '已修'}, {label: '未修', value: '未修'}],
612
- repairers:[],
613
- cbcs:[],
614
- thead: '',
615
- headData: ['入户状态','用户编号','用户表号','用户名','用户电话','用户小区','用户地址','开户时间','安检时间','安检员','计划名','是否有隐患','隐患数','隐患明细','处理情况'],
616
- bodyData: ['f_entry_status','f_userinfo_code','f_meternumber','f_user_name','f_user_phone','f_residential_area','f_address','f_gas_date','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','defecttext','f_is_deal'],
617
- }
618
- },
619
- props:{
620
- style: {
621
- type: String,
622
- default: 'col-sm-2 form-group'
623
- },
624
- style2: {
625
- type: String,
626
- default: 'col-sm-4 form-group'
627
- }
628
-
629
- },
630
-
631
- methods: {
632
- trouble(val) {
633
- // return val.replaceAll("'",'')
634
- // .replaceAll("\"",'')
635
- // .replaceAll("{",'')
636
- // .replaceAll("}",'')
637
- // .replaceAll("]",'')
638
- // .replaceAll("[",'')
639
- // .replaceAll("result:",'')
640
- // .replaceAll("data:",'')
641
- // .replaceAll("有隐患",'')
642
- // .replaceAll(",",'')
643
-
644
-
645
- const defect_content = JSON.parse(val)
646
- let result = ''
647
- if (defect_content.data) {
648
- const jsonData = defect_content.data
649
- for (const itemdata of jsonData) {
650
- const keys = Object.keys(itemdata)
651
- for (const itm of keys) {
652
- const value = itemdata[itm]
653
- result += itm + ':' + value
654
- }
655
- }
656
- }
657
- return result
658
- },
659
- getEmp() {
660
- 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}`}
661
- let http = new HttpResetClass()
662
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
663
- let str=''
664
- res.data.forEach((item,idx,arr) => {
665
- //tag
666
- if(idx+1==arr.length){
667
- str += item.id
668
- }else{
669
- str += item.id+','
670
- }
671
-
672
- })
673
- let http1 = new HttpResetClass()
674
- http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
675
- data: {
676
- items: 'id,f_user_telephone',
677
- tablename: 't_user',
678
- condition: `id in (${str})`,
679
- orderitem: 'id'
680
- }
681
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
682
-
683
- res.data.forEach((user)=>{
684
- try {
685
- ress.data.forEach((tel,tidx,arr)=>{
686
- //tag
687
- if(user.id==tel.id){
688
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
689
- ress.data.splice(tidx,1)
690
- //tag
691
- throw new Error("跳出循环");
692
- }
693
- })
694
- }catch (e) {
695
- //tag
696
- }
697
- })
698
- })
699
-
700
- })
701
- },
702
- toRepair(){
703
- //tag
704
- this.showModal2=true
705
- },
706
- async rectification(){
707
- this.isbusy =true
708
- // if (this.checkAll){
709
- let data={
710
- f_filialeids: this.model.params.f_filialeids,
711
- f_defect_content: this.model.params.f_defect_content,
712
- condition:this.model.params.condition
713
- }
714
- let res1= await new HttpResetClass().load('post','rs/sql/GetCheckPaperByDefectNew2',{data: data })
715
- for (let i = 0; i < res1.data.length; i++) {
716
- let data1={
717
- f_paper_id: res1.data[i].id,
718
- condition:`f_repaire_type != '无隐患'`
719
- }
720
- let res2 = await new HttpResetClass().load('POST' , 'rs/sql/GetDefectByPaperIdNew2' , {data: data1 } )
721
- //tag
722
- const uploadData = {
723
- model: {
724
- serviceacitivity: [{
725
- f_service_acitivity_type: '派单'
726
- }],
727
- f_repairitems: {},
728
- failure: '',
729
- f_source: '安检',
730
- f_service_id: '',
731
- f_contact_phone: '',
732
- f_meetunit: '',
733
- f_phone: '',
734
- f_user_name: '',
735
- f_address: '',
736
- f_repair_date: '',
737
- f_reciever: '',
738
- f_remarks: '',
739
- f_user_type: '',
740
- f_area: '',
741
- f_unit_name: '',
742
- f_street: '',
743
- f_residential_area: '',
744
- f_building: '',
745
- f_unit: '',
746
- f_floor: '',
747
- f_room: '',
748
- aState: '',
749
- f_repairtype: '',
750
- f_userinfo_id: '',
751
- f_userinfo_code: '',
752
- f_orgstr: '',
753
- f_outlets: '',
754
- f_attendant: this.$login.f.name
755
- },
756
- loginUser: {
757
- name: this.$login.f.name,
758
- ename: this.$login.f.ename
759
- },
760
- user: {
761
- f_userinfo_id: ''
762
- },
763
- callObj: null
764
- }
765
-
766
- uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
767
- // uploadData.model.f_meetunit = self.$login.f.orgpathnames
768
- // uploadData.model.f_orgstr = self.$login.f.orgpathstr
769
- // uploadData.model.f_outlets = self.$login.f.f_parentname
770
- uploadData.model.f_meetunit = this.$login.f.deps
771
- uploadData.model.f_orgid = this.$login.f.orgid
772
- uploadData.model.f_filiale = this.$login.f.org
773
- uploadData.model.f_outlets = this.$login.f.deps
774
- uploadData.model.f_filiale_id = this.$login.f.orgid
775
- uploadData.toRepair = '一级派单'
776
- let res3 = await new HttpResetClass().load('post','/rs/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
777
- uploadData.model = Object.assign(uploadData.model, res3.data[0])
778
- uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
779
- uploadData.model.f_repair_date = Util.getNowDate()
780
- uploadData.model.f_repairtype = res3.data[0].f_repairtype
781
- uploadData.model.f_remarks = res3.data[0].f_remarks
782
- let failure = []
783
- res2.data.forEach(row => {
784
- if (row.f_repaire_type == '隐患未处理') {
785
- console.log('row.f_item_value',row.f_item_value)
786
- failure.push({
787
- f_failure_type: row.f_item_name,
788
- failurecase: row.f_item_value?row.f_item_value.split(','):''
789
- })
790
- }
791
- })
792
- uploadData.model.failure = failure
793
- // 拼接repairitems
794
- let rows = JSON.parse(JSON.stringify(res2.data))
795
- let repairitems = {
796
- data: []
797
- }
798
- let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
799
- // 取隐患未处理的
800
- rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
801
- //tag)
802
- // 开始拼接
803
- rows.forEach(row => {
804
- let existIndex = -1
805
- // 判断该设备是否已经存在
806
- for (let i = 0; i < repairitems.data.length; i++) {
807
- if (repairitems.data[i].f_type == row.f_device_type) {
808
- existIndex = i
809
- break
810
- }
811
- }
812
- if (existIndex == -1) {
813
- // 不存在则新建
814
- let newItem = {
815
- f_type: row.f_device_type,
816
- details: [{
817
- f_defect_id: row.id,
818
- f_project: `${row.f_item_name}:${row.f_item_value}`,
819
- type: 'selector',
820
- options: safecheckOptions
821
- }]
822
- }
823
- repairitems.data.push(newItem)
824
- } else {
825
- // 存在则追加
826
- repairitems.data[existIndex].details.push({
827
- f_defect_id: row.id,
828
- f_project: `${row.f_item_name}:${row.f_item_value}`,
829
- type: 'selector',
830
- options: safecheckOptions
831
- })
832
- }
833
- })
834
- uploadData.model.f_repairitems = repairitems
835
- uploadData.rows=rows
836
- //tag)
837
- //tag
838
- if (uploadData.model.f_repairitems.data.length>0){
839
- this.callSends.push(uploadData)
840
- }else{
841
- //tag
842
- }
843
- }
844
- //tag)
845
- let timer = setInterval(async ()=>{
846
- this.showModal3=true
847
- this.isbusy=false
848
- if (this.timercount<this.callSends.length){
849
- //tag)
850
- let rows=this.callSends[this.timercount].rows
851
- //tag)
852
- let result = await this.$resetpost('/rs/logic/callerSend', this.callSends[this.timercount])
853
- //tag)
854
- if (result.data.f_service_id) {
855
- const data = {
856
- f_paper_id: rows[0].f_paper_id,
857
- f_service_id: result.data.f_service_id,
858
- itemsId: this.$login.convertToIn(rows.map(row => row.id))
859
- }
860
- //tag
861
- let updateRes = await this.$resetpost('/rs/logic/updateDefectStateNew', data)
862
- }
863
- this.toRepairCount++
864
- //tag
865
- this.timercount++
866
- }else{
867
- clearInterval(timer)
868
- //tag
869
- this.callSends=[]
870
- this.timercount=0
871
- this.showModal3=false
872
- this.cancel1()
873
- this.$showMessage('本次转维修成功'+this.toRepairCount+'单')
874
- this.toRepairCount=0
875
- }
876
- }, 3000)
877
- },
878
- cancel1(){
879
- this.showModal2=false
880
- this.selectData={
881
- dispatchType:'',
882
- f_repairman:'',
883
- f_remarks:'',
884
- f_repairtype:''
885
- }
886
- },
887
- sleep(d){
888
- //tag)
889
- var t = Date.now()
890
- while(Date.now - t <= d){
891
-
892
- }
893
- //tag)
894
- },
895
- isChecked(v) {
896
- // 如果全选,不在的按选中算,否则,在的按选中算
897
- if (this.checkAll) {
898
- return this.checkes.indexOf(v) == -1
899
- } else {
900
- return this.checkes.indexOf(v) != -1
901
- }
902
- },
903
- setCheckAll() {
904
- this.checkAll=this.checkAll?false:true;
905
- // 全选改变后,清空选中数据
906
- this.checkes = []
907
- },
908
- setCheckes(id) {
909
- let index=this.checkes.indexOf(id)
910
- if(index<0){
911
- this.checkes.push(id)
912
- }else{
913
- this.checkes.splice(index,1)
914
- }
915
- },
916
-
917
- getmeterbook(val){
918
- this.cbc=[]
919
- this.cbc.push({
920
- label:'全部',
921
- value:''
922
- })
923
- if (val==''){
924
-
925
- this.cbcs.forEach(res=>{
926
- this.cbc.push({
927
- label:res.f_book_name,
928
- value:res.id
929
- })
930
- })
931
- }else{
932
- this.cbcs.forEach(res=>{
933
- if (res.f_book_slice_area==val){
934
- this.cbc.push({
935
- label:res.f_book_name,
936
- value:res.id
937
- })
938
- }
939
- })
940
- }
941
- },
942
-
943
- Mreadibook(val){
944
- //tag
945
- //tag
946
- this.sliceArea=[]
947
- if (val){
948
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
949
- items: 'name',
950
- tablename: 't_zone',
951
- condition: `parentid in ${val}`,
952
- orderitem: 'id'
953
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
954
- this.sliceArea.push({
955
- label:'全部',
956
- value:''
957
- })
958
- res.data.forEach(ress=>{
959
- this.sliceArea.push({
960
- label:ress.name,
961
- value:ress.name
962
- })
963
- })
964
-
965
- })
966
- }
967
- },
968
- getAllMeterBook(val){
969
- //tag
970
- //tag
971
- this.cbcs=[]
972
- if (val){
973
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
974
- items: 'f_book_name,f_book_slice_area,id',
975
- tablename: 't_meter_book',
976
- condition: `f_filiale_id in ${val}`,
977
- orderitem: 'id'
978
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
979
- res.data.forEach(ress=>{
980
- this.cbcs.push({
981
- id:ress.id,
982
- f_book_name:ress.f_book_name,
983
- f_book_slice_area:ress.f_book_slice_area
984
- })
985
- })
986
- this.cbc=[]
987
- this.cbc.push({
988
- label:'全部',
989
- value:''
990
- })
991
- this.cbcs.forEach(res=>{
992
- this.cbc.push({
993
- label:res.f_book_name,
994
- value:res.id
995
- })
996
- })
997
- })
998
- }
999
- },
1000
- hiddenr() {
1001
- this.$parent.showItem = !this.$parent.showItem
1002
- },
1003
- hidden() {
1004
- this.criteriaShow = !this.criteriaShow
1005
- },
1006
- search(args) {
1007
- //tag
1008
- if (this.f_check_plan.f_plan_name) {
1009
- args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
1010
- }
1011
- this.checkes = []
1012
- this.checkAll=false
1013
- this.model.search(args.condition, args.model)
1014
- },
1015
- getRes(obj) {
1016
- //tag
1017
- this.resids = {res:obj.res[0], resids:obj.resids[0]}
1018
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1019
- this.Mreadibook(this.model.f_filialeids)
1020
- this.getAllMeterBook(this.model.f_filialeids)
1021
- },
1022
- showChooser() {
1023
- this.showModal = true
1024
- },
1025
- ok() {
1026
- this.showModal = false
1027
- if (this.$refs.modal.$children[0].selectedRow.id) {
1028
- this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1029
- }
1030
- },
1031
- cancel() {
1032
- this.showModal = false
1033
- this.f_check_plan = {f_plan_name: '', id: ''}
1034
- }
1035
- },
1036
- ready() {
1037
- //tag
1038
-
1039
- this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
1040
- this.getEmp()
1041
- let gen = select(this)
1042
- // this.Mreadibook(`('${this.$login.f.orgid}')`)
1043
- co(gen)
1044
- },
1045
- watch:{
1046
- 'timercount'(){
1047
- if (this.timercount===0){
1048
- this.progressbarWidth = '0'
1049
- }else {
1050
- //tag
1051
- //tag
1052
- this.progressbarWidth=parseInt(this.timercount*100/(this.callSends.length+1))
1053
- }
1054
-
1055
- }
1056
- },
1057
- computed: {
1058
- selected() {
1059
- return this.$refs.paged.$refs.grid.selected
1060
- },
1061
- getfield () {
1062
- //tag
1063
- let data = {}
1064
- this.bodyData.forEach((value, index) => {
1065
- data[this.bodyData[index]] = this.headData[index]
1066
- })
1067
- //合计字段打印
1068
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1069
- if (this.sumsmodel) {
1070
- Object.keys(this.sumsmodel).forEach((key) => {
1071
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1072
- })
1073
- } else {
1074
- this.tfoot += '暂无'
1075
- }
1076
- this.tfoot += '</th></tr>'
1077
- return data
1078
- }
1079
- }
1080
- }
1081
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <work-busy :is-busy="isbusy"></work-busy>
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
+ <div :class="$parent.$parent.style">
9
+ <label class="font_normal_body">安检计划</label>
10
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
+ @click="$parent.$parent.showChooser"
12
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">存在隐患</label>
16
+ <v-select style="width:60% "
17
+ class="select select_list"
18
+ :value.sync="model.f_has_defect"
19
+ v-model="model.f_has_defect"
20
+ :options='$parent.$parent.hasDefectOptions'
21
+ :placeholder='model.f_has_defect'
22
+ condition="f_has_defect = '{}'"
23
+ close-on-select>
24
+ </v-select>
25
+ </div>
26
+ <div :class="$parent.$parent.style">
27
+ <label class="font_normal_body">用户编号</label>
28
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
29
+ condition="f_userinfo_code = '{}'"
30
+ style="width: 60%" placeholder="用户编号">
31
+ </div>
32
+ <div :class="$parent.$parent.style">
33
+ <label class="font_normal_body">用户表号</label>
34
+ <input type="text" class="input_search" v-model="model.f_meternumber"
35
+ condition="f_meternumber = '{}'"
36
+ style="width: 60%" placeholder="用户表号">
37
+ </div>
38
+ <div :class="$parent.$parent.style">
39
+ <label class="font_normal_body">结果查询</label>
40
+ <v-select
41
+ placeholder='维修结果查询'
42
+ :value-single="true"
43
+ class="select select_list" style="width: 60%"
44
+ v-model='model.f_is_repair'
45
+ :value.sync="model.f_is_repair"
46
+ :options='$parent.$parent.repaired'
47
+ condition="f_is_repair = '{}'"
48
+ close-on-select clear-button> </v-select>
49
+ </div>
50
+ <div class=" col-sm-4 form-group button-range" >
51
+ <div class="span" style="float: right;margin-top: 8px">
52
+ <div style="float: right" class="button_spacing"
53
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
54
+ @click="$parent.$parent.hiddenr()"></div>
55
+ <div style="float: right" class="button_spacing"
56
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
57
+ @click="$parent.$parent.hidden()"></div>
58
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
59
+ <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
60
+ <div style="float: right">
61
+ <export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
62
+ :field="$parent.$parent.getfield"
63
+ progress="safeGetExportProgress"
64
+ sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
70
+ <div :class="$parent.$parent.style">
71
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
72
+ <v-select class="select_list select"
73
+ placeholder='片区/管理站' style="width: 60%"
74
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
75
+ :options='$parent.$parent.sliceArea'
76
+ filer-key="name"
77
+ close-on-select clear-button
78
+ condition="f_slice_area='{}'"
79
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
80
+ :value-single="true">
81
+ </v-select>
82
+ </div>
83
+ <div :class="$parent.$parent.style2" style="margin: 0">
84
+ <role-selector-safe
85
+ role-name="安检员"
86
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
87
+ :resobjprop.sync="$parent.$parent.resids"
88
+ @re-res="$parent.$parent.getRes"
89
+ :value.sync="model.f_checker_id"
90
+ v-model="model.f_checker_id"
91
+ condition="f_checker_name = '{}'">
92
+ </role-selector-safe>
93
+ </div>
94
+
95
+ <div :class="$parent.$parent.style">
96
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
97
+ <v-select class="select_list select"
98
+ placeholder='抄表册' style="width: 60%"
99
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
100
+ :options='$parent.$parent.cbc'
101
+ filer-key="name"
102
+ close-on-select clear-button
103
+ condition="f_meter_book_num={}"
104
+ :value-single="true">
105
+ </v-select>
106
+ </div>
107
+ <div :class="$parent.$parent.style">
108
+ <label class="font_normal_body">起始时间</label>
109
+ <datepicker
110
+ placeholder='起始时间' style="width:60%"
111
+ :disabled-days-of-week="[]"
112
+ :format="'yyyy-MM-dd'"
113
+ :show-rest-button="reset"
114
+ :value.sync="model.f_start_time"
115
+ v-model="model.f_start_time"
116
+ condition="f_offsite_time >= '{} 00:00:00'">
117
+ </datepicker>
118
+ </div>
119
+ <div :class="$parent.$parent.style">
120
+ <label class="font_normal_body">结束时间</label>
121
+ <datepicker
122
+ placeholder='结束时间' style="width:60%"
123
+ :disabled-days-of-week="[]"
124
+ :format="'yyyy-MM-dd'"
125
+ :show-rest-button="reset"
126
+ :value.sync="model.f_end_time"
127
+ v-model="model.f_end_time"
128
+ condition="f_offsite_time <= '{} 23:59:59'">
129
+ </datepicker>
130
+ </div>
131
+ </div>
132
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
133
+
134
+ <div :class="$parent.$parent.style">
135
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
136
+ <input type="text" class="input_search" v-model="model.f_repairman"
137
+ condition="f_repairman = '{}'"
138
+ style="width: 60%" placeholder="维修员">
139
+ </div>
140
+ <div :class="$parent.$parent.style">
141
+ <label class="font_normal_body">处理查询</label>
142
+ <v-select
143
+ placeholder='处理结果查询'
144
+ :value-single="true"
145
+ class="select select_list" style="width: 60%"
146
+ v-model='model.f_is_deal'
147
+ :value.sync="model.f_is_deal"
148
+ :options='$parent.$parent.deals'
149
+ condition="f_is_deal = '{}'"
150
+ close-on-select clear-button> </v-select>
151
+ </div>
152
+ <div :class="$parent.$parent.style">
153
+ <label class="font_normal_body">是否维修</label>
154
+ <v-select
155
+ placeholder='是否维修'
156
+ :value-single="true"
157
+ class="select select_list" style="width: 60%"
158
+ v-model='model.f_repaired'
159
+ :value.sync="model.f_repaired"
160
+ :options='$parent.$parent.repairedOptions'
161
+ condition="f_repaired = '{}'"
162
+ close-on-select clear-button> </v-select>
163
+ </div>
164
+ <div :class="$parent.$parent.style">
165
+ <label class="font_normal_body">地&ensp;&ensp;&ensp;&ensp;址</label>
166
+ <input type="text" class="input_search" v-model="model.f_address"
167
+ condition="f_address like '%{}%'"
168
+ style="width: 60%" placeholder="地址">
169
+ </div>
170
+ <div :class="$parent.$parent.style">
171
+ <label class="font_normal_body">开户时间</label>
172
+ <datepicker
173
+ placeholder='起始时间' style="width:60%"
174
+ :disabled-days-of-week="[]"
175
+ :format="'yyyy-MM-dd'"
176
+ :show-rest-button="reset"
177
+ :value.sync="model.f_start_gastime"
178
+ v-model="model.f_start_gastime"
179
+ condition="f_gas_date >= '{} 00:00:00'">
180
+ </datepicker>
181
+ </div>
182
+ <div :class="$parent.$parent.style">
183
+ <label class="font_normal_body">开户时间</label>
184
+ <datepicker
185
+ placeholder='结束时间' style="width:60%"
186
+ :disabled-days-of-week="[]"
187
+ :format="'yyyy-MM-dd'"
188
+ :show-rest-button="reset"
189
+ :value.sync="model.f_end_gastime"
190
+ v-model="model.f_end_gastime"
191
+ condition="f_gas_date <= '{} 23:59:59'">
192
+ </datepicker>
193
+ </div>
194
+ <div :class="$parent.$parent.style">
195
+ <label class="font_normal_body">用户标签</label>
196
+ <v-select class="select_list select"
197
+ placeholder='请选择' style="width: 60%"
198
+ :value.sync="model.f_user_tags"
199
+ v-model="model.f_user_tags"
200
+ :options='$parent.$parent.userTags'
201
+ filer-key="name"
202
+ :multiple="true"
203
+ condition="f_user_tags in {}"
204
+ >
205
+ </v-select>
206
+ </div>
207
+ <div :class="$parent.$parent.style">
208
+ <label class="font_normal_body">用气类型</label>
209
+ <v-select class="select_list select"
210
+ placeholder='请选择' style="width: 60%"
211
+ :value.sync="model.f_user_gas_type"
212
+ v-model="model.f_user_gas_type"
213
+ :options='$parent.$parent.userGasType'
214
+ filer-key="name"
215
+ :multiple="true"
216
+ condition="f_user_gas_type in {}"
217
+ >
218
+ </v-select>
219
+ </div>
220
+ </div>
221
+
222
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
223
+ <div :class="$parent.$parent.style">
224
+ <label class="font_normal_body">安检计划</label>
225
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
226
+ @click="$parent.$parent.showChooser"
227
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
228
+ </div>
229
+ <div :class="$parent.$parent.style">
230
+ <label class="font_normal_body">存在隐患</label>
231
+ <v-select style="width:60% "
232
+ class="select select_list"
233
+ :value.sync="model.f_has_defect"
234
+ v-model="model.f_has_defect"
235
+ :options='$parent.$parent.hasDefectOptions'
236
+ :placeholder='model.f_has_defect'
237
+ condition="f_has_defect = '{}'"
238
+ close-on-select>
239
+ </v-select>
240
+ </div>
241
+
242
+ <div class=" col-sm-4 form-group button-range">
243
+ <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
244
+ <div style="float: right" class="button_spacing"
245
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
246
+ @click="$parent.$parent.hiddenr()"></div>
247
+ <div style="float: right" class="button_spacing"
248
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
249
+ @click="$parent.$parent.hidden()"></div>
250
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
251
+ <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
252
+ <div style="float: right">
253
+ <export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
254
+ :field="$parent.$parent.getfield"
255
+ progress="safeGetExportProgress"
256
+ sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检计划明细' :choose-col="true"></export-excel-safe>
257
+ </div>
258
+ </div>
259
+ </div>
260
+
261
+
262
+
263
+ </div>
264
+ <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
265
+ <div :class="$parent.$parent.style">
266
+ <label class="font_normal_body">用户编号</label>
267
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
268
+ condition="f_userinfo_code = '{}'"
269
+ style="width: 60%" placeholder="用户编号">
270
+ </div>
271
+ <div :class="$parent.$parent.style">
272
+ <label class="font_normal_body">用户表号</label>
273
+ <input type="text" class="input_search" v-model="model.f_meternumber"
274
+ condition="f_meternumber = '{}'"
275
+ style="width: 60%" placeholder="用户表号">
276
+ </div>
277
+ <div :class="$parent.$parent.style">
278
+ <label class="font_normal_body">结果查询</label>
279
+ <v-select
280
+ placeholder='处理结果查询'
281
+ :value-single="true"
282
+ class="select select_list" style="width: 60%"
283
+ v-model='model.f_repaired'
284
+ :value.sync="model.f_repaired"
285
+ :options='$parent.$parent.repaired'
286
+ condition="f_repaired = '{}'"
287
+ close-on-select clear-button> </v-select>
288
+ </div>
289
+
290
+ <div :class="$parent.$parent.style2" style="margin: 0">
291
+ <role-selector-safe
292
+ role-name="安检员"
293
+ :resobjprop.sync="$parent.$parent.resids"
294
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
295
+ @re-res="$parent.$parent.getRes"
296
+ :value.sync="model.f_checker_id"
297
+ v-model="model.f_checker_id"
298
+ condition="f_checker_name = '{}'">
299
+ </role-selector-safe>
300
+ </div>
301
+ </div>
302
+ <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
303
+ <div :class="$parent.$parent.style">
304
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
305
+ <v-select class="select_list select"
306
+ placeholder='片区/管理站' style="width: 60%"
307
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
308
+ :options='$parent.$parent.sliceArea'
309
+ filer-key="name"
310
+ close-on-select clear-button
311
+ condition="f_slice_area='{}'"
312
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
313
+ :value-single="true">
314
+ </v-select>
315
+ </div>
316
+ <div :class="$parent.$parent.style">
317
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
318
+ <v-select class="select_list select"
319
+ placeholder='抄表册' style="width: 60%"
320
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
321
+ :options='$parent.$parent.cbc'
322
+ filer-key="name"
323
+ close-on-select clear-button
324
+ condition="f_meter_book_num={}"
325
+ :value-single="true">
326
+ </v-select>
327
+ </div>
328
+ <div :class="$parent.$parent.style">
329
+ <label class="font_normal_body">起始时间</label>
330
+ <datepicker
331
+ placeholder='起始时间' style="width:60%"
332
+ :disabled-days-of-week="[]"
333
+ :format="'yyyy-MM-dd'"
334
+ :show-rest-button="reset"
335
+ :value.sync="model.f_start_time"
336
+ v-model="model.f_start_time"
337
+ condition="f_offsite_time >= '{} 00:00:00'">
338
+ </datepicker>
339
+ </div>
340
+ <div :class="$parent.$parent.style">
341
+ <label class="font_normal_body">结束时间</label>
342
+ <datepicker
343
+ placeholder='结束时间' style="width:60%"
344
+ :disabled-days-of-week="[]"
345
+ :format="'yyyy-MM-dd'"
346
+ :show-rest-button="reset"
347
+ :value.sync="model.f_end_time"
348
+ v-model="model.f_end_time"
349
+ condition="f_offsite_time <= '{} 23:59:59'">
350
+ </datepicker>
351
+ </div>
352
+ </div>
353
+ <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
354
+
355
+ <div :class="$parent.$parent.style">
356
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
357
+ <input type="text" class="input_search" v-model="model.f_repairman"
358
+ condition="f_repairman = '{}'"
359
+ style="width: 60%" placeholder="维修员">
360
+ </div>
361
+ <div :class="$parent.$parent.style">
362
+ <label class="font_normal_body">处理查询</label>
363
+ <v-select
364
+ placeholder='处理结果查询'
365
+ :value-single="true"
366
+ class="select select_list" style="width: 60%"
367
+ v-model='model.f_is_deal'
368
+ :value.sync="model.f_is_deal"
369
+ :options='$parent.$parent.deals'
370
+ condition="f_is_deal = '{}'"
371
+ close-on-select clear-button> </v-select>
372
+ </div>
373
+ <div :class="$parent.$parent.style">
374
+ <label class="font_normal_body">地&ensp;&ensp;&ensp;&ensp;址</label>
375
+ <input type="text" class="input_search" v-model="model.f_address"
376
+ condition="f_address like '%{}%'"
377
+ style="width: 60%" placeholder="地址">
378
+ </div>
379
+ <div :class="$parent.$parent.style">
380
+ <label class="font_normal_body">开户时间</label>
381
+ <datepicker
382
+ placeholder='起始时间' style="width:60%"
383
+ :disabled-days-of-week="[]"
384
+ :format="'yyyy-MM-dd'"
385
+ :show-rest-button="reset"
386
+ :value.sync="model.f_start_gastime"
387
+ v-model="model.f_start_gastime"
388
+ condition="f_gas_date >= '{} 00:00:00'">
389
+ </datepicker>
390
+ </div>
391
+ <div :class="$parent.$parent.style">
392
+ <label class="font_normal_body">开户时间</label>
393
+ <datepicker
394
+ placeholder='结束时间' style="width:60%"
395
+ :disabled-days-of-week="[]"
396
+ :format="'yyyy-MM-dd'"
397
+ :show-rest-button="reset"
398
+ :value.sync="model.f_end_gastime"
399
+ v-model="model.f_end_gastime"
400
+ condition="f_gas_date <= '{} 23:59:59'">
401
+ </datepicker>
402
+ </div>
403
+ </div>
404
+ </div>
405
+ </criteria>
406
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
407
+ <template partial='head'>
408
+ <tr>
409
+ <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
410
+ <th><nobr>入户状态</nobr></th>
411
+ <th><nobr>用户编号</nobr></th>
412
+ <th><nobr>用户名</nobr></th>
413
+ <th><nobr>用户表号</nobr></th>
414
+ <th><nobr>用户电话</nobr></th>
415
+ <th><nobr>用户小区</nobr></th>
416
+ <th><nobr>用户地址</nobr></th>
417
+ <th><nobr>用户标签</nobr></th>
418
+ <th><nobr>用气类型</nobr></th>
419
+ <th><nobr>开户时间</nobr></th>
420
+ <th><nobr>安检时间</nobr></th>
421
+ <th><nobr>安检员</nobr></th>
422
+ <th><nobr>计划名</nobr></th>
423
+ <th><nobr>是否有隐患</nobr></th>
424
+ <th><nobr>隐患数</nobr></th>
425
+ <th><nobr>处理数</nobr></th>
426
+ <th><nobr>处理情况</nobr></th>
427
+ <th><nobr>维修员</nobr></th>
428
+ <th><nobr>隐患明细</nobr></th>
429
+ <!-- <th><nobr>备注</nobr></th>-->
430
+ </tr>
431
+ </template>
432
+ <template partial='body'>
433
+ <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
434
+ <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
435
+ <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
436
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
437
+ <td style="text-align: center;white-space:nowrap;">{{row.f_meternumber}}</td>
438
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
439
+ <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
440
+ <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
441
+ <td style="text-align: center">{{ row.f_user_tags }}</td>
442
+ <td style="text-align: center">{{ row.f_user_gas_type }}</td>
443
+ <td style="text-align: center;white-space:nowrap;">{{row.f_gas_date}}</td>
444
+ <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
445
+ <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
446
+ <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
447
+ <td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
448
+ <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
449
+ <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>
450
+ <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>
451
+ <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
452
+ <td style="text-align: center;white-space:nowrap;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</td>
453
+ <!-- <td style="text-align: center;white-space:nowrap;">{{ row.f_deal_remark}}</td>-->
454
+ </template>
455
+ </data-grid>
456
+ </criteria-paged>
457
+ <modal :show.sync="showModal" v-ref:modal backdrop="false">
458
+ <div slot="modal-header" class="modal-header">
459
+ <h4 class="modal-title">
460
+ 选择计划
461
+ </h4>
462
+ </div>
463
+ <div slot="modal-body" class="modal-body">
464
+ <plan-chooser :f.sync="$login.f" v-ref:chooser></plan-chooser>
465
+ </div>
466
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
467
+ <button class="button_search" @click="ok">确认</button>
468
+ <button class="button_search" @click="cancel">取消</button>
469
+ </div>
470
+ </modal>
471
+ <modal :show.sync="showModal2" :backdrop="false">
472
+ <div slot="modal-header" class="modal-header">
473
+ <h4 class="modal-title">
474
+ 转维修
475
+ </h4>
476
+ </div>
477
+ <div slot="modal-body" class="modal-body">
478
+ <div v-if="true">
479
+ <div class="row" style="margin-top: 10px">
480
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
481
+ <div class="col-xs-8 col-md-8">
482
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
483
+ :options='dispatchTypeOptions' placeholder='派发类型'
484
+ close-on-select>
485
+ </v-select>
486
+ </div>
487
+ </div>
488
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
489
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
490
+ <div class="col-xs-8 col-md-8">
491
+ <v-select
492
+ :value.sync="selectData.f_repairman"
493
+ :value-single="true"
494
+ :options='repairers'
495
+ placeholder='请选择维修员'
496
+ close-on-select></v-select>
497
+ </div>
498
+ </div>
499
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
500
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
501
+ <div class="col-xs-8 col-md-8">
502
+ <right-tree
503
+ islist
504
+ :userid="userid"
505
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
506
+ @re-res="getSiteRes"></right-tree>
507
+ </div>
508
+ </div>
509
+ <div class="row" style="margin-top: 10px">
510
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
511
+ <div class="col-xs-8 col-md-8">
512
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
513
+ class="select select_list"
514
+ :value-single="true"
515
+ :options='repairTypeOptions'
516
+ close-on-select>
517
+ </v-select>
518
+ </div>
519
+ </div>
520
+ <div class="row" style="margin-top: 10px">
521
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
522
+ <div class="col-xs-8 col-md-8">
523
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
524
+ </div>
525
+ </div>
526
+ </div>
527
+ </div>
528
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
529
+ <!-- <button class="button_search" @click="rectification">转维修</button>-->
530
+ <button class="button_search" @click="cancel1">取消</button>
531
+ </div>
532
+ </modal>
533
+ <modal :show.sync="showModal3">
534
+ <div slot="modal-header" class="modal-header">
535
+ <h4 class="modal-title">
536
+ 转维修进度{{ progressbarWidth }}%
537
+ </h4>
538
+ </div>
539
+ <div slot="modal-body" class="modal-body">
540
+ <div class="progress">
541
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
542
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
543
+ <!-- <span class="sr-only">40% 完成</span>-->
544
+ </div>
545
+ </div>
546
+ </div>
547
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
548
+ </modal>
549
+ </div>
550
+ </template>
551
+ <script>
552
+ import {PagedList} from 'vue-client'
553
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
554
+ import co from 'co'
555
+ import Vue from 'vue'
556
+ import * as Util from '../../Util'
557
+
558
+ let select = function* (self) {
559
+ let http = new HttpResetClass()
560
+ let getGasman = yield http.load('POST', '/rs/search', {
561
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
562
+ userid: self.$login.f.id
563
+ }, {resolveMsg: null, rejectMsg: null})
564
+ //tag
565
+ self.checkersid.push({label: '全部', value: ''})
566
+ getGasman.data.forEach((checker) => {
567
+ self.checkersid.push({label: checker.name, value: checker.name})
568
+ })
569
+ }
570
+ export default {
571
+ title: '隐患查询',
572
+ data() {
573
+ let model = new PagedList('rs/sql/GetCheckPaperByDefectNew2', 20, {
574
+ f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
575
+ })
576
+ model.f_filialeids = '(' + this.$login.f.orgid + ')'
577
+ model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
578
+ return {
579
+ repaired:[{label: '全部', value: ''},{label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
580
+ deals:[{label: '全部', value: ''},{label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'},{label: '处理中', value: '处理中'}],
581
+ hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
582
+ f: this.$login.f,
583
+ model: model,
584
+ userTags:[{label: '全部', value: ''},...this.$appdata.getParam('用户标签')],
585
+ userGasType:[{label: '全部', value: ''},...this.$appdata.getParam('用气类型')],
586
+ criteriaShow: false,
587
+ checkAll:false,
588
+ timercount:0,
589
+ showModal2:false,
590
+ repairTypeOptions:this.$appdata.getParam('转维修类型'),
591
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
592
+ checkes:[],
593
+ showModal: false,
594
+ f_check_plan: {f_plan_name: '', id: ''},
595
+ sumsmodel: {},
596
+ resids:{},
597
+ all: false,
598
+ fields: {},
599
+
600
+ selectData:{
601
+ dispatchType:'',
602
+ f_repairman:'',
603
+ f_remarks:'',
604
+ f_repairtype:''
605
+ },
606
+ progressbarWidth:'0',
607
+ modelval: [],
608
+ isbusy:false,
609
+ checkersid: [],
610
+ showModal3:false,
611
+ toRepairCount:0,
612
+ sliceArea: [],
613
+ callSends:[],
614
+ cbc:[],
615
+ repairedOptions:[{label: '全部', value: ''},{label: '已修', value: '已修'}, {label: '未修', value: '未修'}],
616
+ repairers:[],
617
+ cbcs:[],
618
+ thead: '',
619
+ headData: ['入户状态','用户编号','用户表号','用户名','用户电话','用户小区','用户地址','开户时间','安检时间','安检员','计划名','是否有隐患','隐患数','隐患明细','处理情况'],
620
+ bodyData: ['f_entry_status','f_userinfo_code','f_meternumber','f_user_name','f_user_phone','f_residential_area','f_address','f_gas_date','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','defecttext','f_is_deal'],
621
+ }
622
+ },
623
+ props:{
624
+ style: {
625
+ type: String,
626
+ default: 'col-sm-2 form-group'
627
+ },
628
+ style2: {
629
+ type: String,
630
+ default: 'col-sm-4 form-group'
631
+ }
632
+
633
+ },
634
+
635
+ methods: {
636
+ trouble(val) {
637
+ // return val.replaceAll("'",'')
638
+ // .replaceAll("\"",'')
639
+ // .replaceAll("{",'')
640
+ // .replaceAll("}",'')
641
+ // .replaceAll("]",'')
642
+ // .replaceAll("[",'')
643
+ // .replaceAll("result:",'')
644
+ // .replaceAll("data:",'')
645
+ // .replaceAll("有隐患",'')
646
+ // .replaceAll(",",'')
647
+
648
+
649
+ const defect_content = JSON.parse(val)
650
+ let result = ''
651
+ if (defect_content.data) {
652
+ const jsonData = defect_content.data
653
+ for (const itemdata of jsonData) {
654
+ const keys = Object.keys(itemdata)
655
+ for (const itm of keys) {
656
+ const value = itemdata[itm]
657
+ result += itm + ':' + value
658
+ }
659
+ }
660
+ }
661
+ return result
662
+ },
663
+ getEmp() {
664
+ 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}`}
665
+ let http = new HttpResetClass()
666
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
667
+ let str=''
668
+ res.data.forEach((item,idx,arr) => {
669
+ //tag
670
+ if(idx+1==arr.length){
671
+ str += item.id
672
+ }else{
673
+ str += item.id+','
674
+ }
675
+
676
+ })
677
+ let http1 = new HttpResetClass()
678
+ http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
679
+ data: {
680
+ items: 'id,f_user_telephone',
681
+ tablename: 't_user',
682
+ condition: `id in (${str})`,
683
+ orderitem: 'id'
684
+ }
685
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
686
+
687
+ res.data.forEach((user)=>{
688
+ try {
689
+ ress.data.forEach((tel,tidx,arr)=>{
690
+ //tag
691
+ if(user.id==tel.id){
692
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
693
+ ress.data.splice(tidx,1)
694
+ //tag
695
+ throw new Error("跳出循环");
696
+ }
697
+ })
698
+ }catch (e) {
699
+ //tag
700
+ }
701
+ })
702
+ })
703
+
704
+ })
705
+ },
706
+ toRepair(){
707
+ //tag
708
+ this.showModal2=true
709
+ },
710
+ async rectification(){
711
+ this.isbusy =true
712
+ // if (this.checkAll){
713
+ let data={
714
+ f_filialeids: this.model.params.f_filialeids,
715
+ f_defect_content: this.model.params.f_defect_content,
716
+ condition:this.model.params.condition
717
+ }
718
+ let res1= await new HttpResetClass().load('post','rs/sql/GetCheckPaperByDefectNew2',{data: data })
719
+ for (let i = 0; i < res1.data.length; i++) {
720
+ let data1={
721
+ f_paper_id: res1.data[i].id,
722
+ condition:`f_repaire_type != '无隐患'`
723
+ }
724
+ let res2 = await new HttpResetClass().load('POST' , 'rs/sql/GetDefectByPaperIdNew2' , {data: data1 } )
725
+ //tag
726
+ const uploadData = {
727
+ model: {
728
+ serviceacitivity: [{
729
+ f_service_acitivity_type: '派单'
730
+ }],
731
+ f_repairitems: {},
732
+ failure: '',
733
+ f_source: '安检',
734
+ f_service_id: '',
735
+ f_contact_phone: '',
736
+ f_meetunit: '',
737
+ f_phone: '',
738
+ f_user_name: '',
739
+ f_address: '',
740
+ f_repair_date: '',
741
+ f_reciever: '',
742
+ f_remarks: '',
743
+ f_user_type: '',
744
+ f_area: '',
745
+ f_unit_name: '',
746
+ f_street: '',
747
+ f_residential_area: '',
748
+ f_building: '',
749
+ f_unit: '',
750
+ f_floor: '',
751
+ f_room: '',
752
+ aState: '',
753
+ f_repairtype: '',
754
+ f_userinfo_id: '',
755
+ f_userinfo_code: '',
756
+ f_orgstr: '',
757
+ f_outlets: '',
758
+ f_attendant: this.$login.f.name
759
+ },
760
+ loginUser: {
761
+ name: this.$login.f.name,
762
+ ename: this.$login.f.ename
763
+ },
764
+ user: {
765
+ f_userinfo_id: ''
766
+ },
767
+ callObj: null
768
+ }
769
+
770
+ uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
771
+ // uploadData.model.f_meetunit = self.$login.f.orgpathnames
772
+ // uploadData.model.f_orgstr = self.$login.f.orgpathstr
773
+ // uploadData.model.f_outlets = self.$login.f.f_parentname
774
+ uploadData.model.f_meetunit = this.$login.f.deps
775
+ uploadData.model.f_orgid = this.$login.f.orgid
776
+ uploadData.model.f_filiale = this.$login.f.org
777
+ uploadData.model.f_outlets = this.$login.f.deps
778
+ uploadData.model.f_filiale_id = this.$login.f.orgid
779
+ uploadData.toRepair = '一级派单'
780
+ let res3 = await new HttpResetClass().load('post','/rs/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
781
+ uploadData.model = Object.assign(uploadData.model, res3.data[0])
782
+ uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
783
+ uploadData.model.f_repair_date = Util.getNowDate()
784
+ uploadData.model.f_repairtype = res3.data[0].f_repairtype
785
+ uploadData.model.f_remarks = res3.data[0].f_remarks
786
+ let failure = []
787
+ res2.data.forEach(row => {
788
+ if (row.f_repaire_type == '隐患未处理') {
789
+ console.log('row.f_item_value',row.f_item_value)
790
+ failure.push({
791
+ f_failure_type: row.f_item_name,
792
+ failurecase: row.f_item_value?row.f_item_value.split(','):''
793
+ })
794
+ }
795
+ })
796
+ uploadData.model.failure = failure
797
+ // 拼接repairitems
798
+ let rows = JSON.parse(JSON.stringify(res2.data))
799
+ let repairitems = {
800
+ data: []
801
+ }
802
+ let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
803
+ // 取隐患未处理的
804
+ rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
805
+ //tag)
806
+ // 开始拼接
807
+ rows.forEach(row => {
808
+ let existIndex = -1
809
+ // 判断该设备是否已经存在
810
+ for (let i = 0; i < repairitems.data.length; i++) {
811
+ if (repairitems.data[i].f_type == row.f_device_type) {
812
+ existIndex = i
813
+ break
814
+ }
815
+ }
816
+ if (existIndex == -1) {
817
+ // 不存在则新建
818
+ let newItem = {
819
+ f_type: row.f_device_type,
820
+ details: [{
821
+ f_defect_id: row.id,
822
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
823
+ type: 'selector',
824
+ options: safecheckOptions
825
+ }]
826
+ }
827
+ repairitems.data.push(newItem)
828
+ } else {
829
+ // 存在则追加
830
+ repairitems.data[existIndex].details.push({
831
+ f_defect_id: row.id,
832
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
833
+ type: 'selector',
834
+ options: safecheckOptions
835
+ })
836
+ }
837
+ })
838
+ uploadData.model.f_repairitems = repairitems
839
+ uploadData.rows=rows
840
+ //tag)
841
+ //tag
842
+ if (uploadData.model.f_repairitems.data.length>0){
843
+ this.callSends.push(uploadData)
844
+ }else{
845
+ //tag
846
+ }
847
+ }
848
+ //tag)
849
+ let timer = setInterval(async ()=>{
850
+ this.showModal3=true
851
+ this.isbusy=false
852
+ if (this.timercount<this.callSends.length){
853
+ //tag)
854
+ let rows=this.callSends[this.timercount].rows
855
+ //tag)
856
+ let result = await this.$resetpost('/rs/logic/callerSend', this.callSends[this.timercount])
857
+ //tag)
858
+ if (result.data.f_service_id) {
859
+ const data = {
860
+ f_paper_id: rows[0].f_paper_id,
861
+ f_service_id: result.data.f_service_id,
862
+ itemsId: this.$login.convertToIn(rows.map(row => row.id))
863
+ }
864
+ //tag
865
+ let updateRes = await this.$resetpost('/rs/logic/updateDefectStateNew', data)
866
+ }
867
+ this.toRepairCount++
868
+ //tag
869
+ this.timercount++
870
+ }else{
871
+ clearInterval(timer)
872
+ //tag
873
+ this.callSends=[]
874
+ this.timercount=0
875
+ this.showModal3=false
876
+ this.cancel1()
877
+ this.$showMessage('本次转维修成功'+this.toRepairCount+'单')
878
+ this.toRepairCount=0
879
+ }
880
+ }, 3000)
881
+ },
882
+ cancel1(){
883
+ this.showModal2=false
884
+ this.selectData={
885
+ dispatchType:'',
886
+ f_repairman:'',
887
+ f_remarks:'',
888
+ f_repairtype:''
889
+ }
890
+ },
891
+ sleep(d){
892
+ //tag)
893
+ var t = Date.now()
894
+ while(Date.now - t <= d){
895
+
896
+ }
897
+ //tag)
898
+ },
899
+ isChecked(v) {
900
+ // 如果全选,不在的按选中算,否则,在的按选中算
901
+ if (this.checkAll) {
902
+ return this.checkes.indexOf(v) == -1
903
+ } else {
904
+ return this.checkes.indexOf(v) != -1
905
+ }
906
+ },
907
+ setCheckAll() {
908
+ this.checkAll=this.checkAll?false:true;
909
+ // 全选改变后,清空选中数据
910
+ this.checkes = []
911
+ },
912
+ setCheckes(id) {
913
+ let index=this.checkes.indexOf(id)
914
+ if(index<0){
915
+ this.checkes.push(id)
916
+ }else{
917
+ this.checkes.splice(index,1)
918
+ }
919
+ },
920
+
921
+ getmeterbook(val){
922
+ this.cbc=[]
923
+ this.cbc.push({
924
+ label:'全部',
925
+ value:''
926
+ })
927
+ if (val==''){
928
+
929
+ this.cbcs.forEach(res=>{
930
+ this.cbc.push({
931
+ label:res.f_book_name,
932
+ value:res.id
933
+ })
934
+ })
935
+ }else{
936
+ this.cbcs.forEach(res=>{
937
+ if (res.f_book_slice_area==val){
938
+ this.cbc.push({
939
+ label:res.f_book_name,
940
+ value:res.id
941
+ })
942
+ }
943
+ })
944
+ }
945
+ },
946
+
947
+ Mreadibook(val){
948
+ //tag
949
+ //tag
950
+ this.sliceArea=[]
951
+ if (val){
952
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
953
+ items: 'name',
954
+ tablename: 't_zone',
955
+ condition: `parentid in ${val}`,
956
+ orderitem: 'id'
957
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
958
+ this.sliceArea.push({
959
+ label:'全部',
960
+ value:''
961
+ })
962
+ res.data.forEach(ress=>{
963
+ this.sliceArea.push({
964
+ label:ress.name,
965
+ value:ress.name
966
+ })
967
+ })
968
+
969
+ })
970
+ }
971
+ },
972
+ getAllMeterBook(val){
973
+ //tag
974
+ //tag
975
+ this.cbcs=[]
976
+ if (val){
977
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
978
+ items: 'f_book_name,f_book_slice_area,id',
979
+ tablename: 't_meter_book',
980
+ condition: `f_filiale_id in ${val}`,
981
+ orderitem: 'id'
982
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
983
+ res.data.forEach(ress=>{
984
+ this.cbcs.push({
985
+ id:ress.id,
986
+ f_book_name:ress.f_book_name,
987
+ f_book_slice_area:ress.f_book_slice_area
988
+ })
989
+ })
990
+ this.cbc=[]
991
+ this.cbc.push({
992
+ label:'全部',
993
+ value:''
994
+ })
995
+ this.cbcs.forEach(res=>{
996
+ this.cbc.push({
997
+ label:res.f_book_name,
998
+ value:res.id
999
+ })
1000
+ })
1001
+ })
1002
+ }
1003
+ },
1004
+ hiddenr() {
1005
+ this.$parent.showItem = !this.$parent.showItem
1006
+ },
1007
+ hidden() {
1008
+ this.criteriaShow = !this.criteriaShow
1009
+ },
1010
+ search(args) {
1011
+ //tag
1012
+ if (this.f_check_plan.f_plan_name) {
1013
+ args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
1014
+ }
1015
+ this.checkes = []
1016
+ this.checkAll=false
1017
+ this.model.search(args.condition, args.model)
1018
+ },
1019
+ getRes(obj) {
1020
+ //tag
1021
+ this.resids = {res:obj.res[0], resids:obj.resids[0]}
1022
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1023
+ this.Mreadibook(this.model.f_filialeids)
1024
+ this.getAllMeterBook(this.model.f_filialeids)
1025
+ },
1026
+ showChooser() {
1027
+ this.showModal = true
1028
+ },
1029
+ ok() {
1030
+ this.showModal = false
1031
+ if (this.$refs.modal.$children[0].selectedRow.id) {
1032
+ this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1033
+ }
1034
+ },
1035
+ cancel() {
1036
+ this.showModal = false
1037
+ this.f_check_plan = {f_plan_name: '', id: ''}
1038
+ }
1039
+ },
1040
+ ready() {
1041
+ //tag
1042
+
1043
+ this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
1044
+ this.getEmp()
1045
+ let gen = select(this)
1046
+ // this.Mreadibook(`('${this.$login.f.orgid}')`)
1047
+ co(gen)
1048
+ },
1049
+ watch:{
1050
+ 'timercount'(){
1051
+ if (this.timercount===0){
1052
+ this.progressbarWidth = '0'
1053
+ }else {
1054
+ //tag
1055
+ //tag
1056
+ this.progressbarWidth=parseInt(this.timercount*100/(this.callSends.length+1))
1057
+ }
1058
+
1059
+ }
1060
+ },
1061
+ computed: {
1062
+ selected() {
1063
+ return this.$refs.paged.$refs.grid.selected
1064
+ },
1065
+ getfield () {
1066
+ //tag
1067
+ let data = {}
1068
+ this.bodyData.forEach((value, index) => {
1069
+ data[this.bodyData[index]] = this.headData[index]
1070
+ })
1071
+ //合计字段打印
1072
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1073
+ if (this.sumsmodel) {
1074
+ Object.keys(this.sumsmodel).forEach((key) => {
1075
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1076
+ })
1077
+ } else {
1078
+ this.tfoot += '暂无'
1079
+ }
1080
+ this.tfoot += '</th></tr>'
1081
+ return data
1082
+ }
1083
+ }
1084
+ }
1085
+ </script>