safecheck-client 3.0.33-64 → 3.0.33-68

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 (385) 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/index.html +6 -2
  86. package/oa.iml +8 -8
  87. package/package.json +1 -1
  88. package/publish.bat +7 -7
  89. package/release.bat +5 -5
  90. package/src/App.vue +33 -31
  91. package/src/Widget.vue +13 -13
  92. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  93. package/src/android-bootstrap/less/.csscomb.json +304 -304
  94. package/src/android-bootstrap/less/.csslintrc +19 -19
  95. package/src/android-bootstrap/less/alerts.less +73 -73
  96. package/src/android-bootstrap/less/badges.less +66 -66
  97. package/src/android-bootstrap/less/bootstrap.less +56 -56
  98. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  99. package/src/android-bootstrap/less/button-groups.less +247 -247
  100. package/src/android-bootstrap/less/buttons.less +173 -173
  101. package/src/android-bootstrap/less/carousel.less +269 -269
  102. package/src/android-bootstrap/less/close.less +34 -34
  103. package/src/android-bootstrap/less/code.less +69 -69
  104. package/src/android-bootstrap/less/component-animations.less +33 -33
  105. package/src/android-bootstrap/less/dropdowns.less +216 -216
  106. package/src/android-bootstrap/less/forms.less +626 -626
  107. package/src/android-bootstrap/less/glyphicons.less +305 -305
  108. package/src/android-bootstrap/less/grid.less +84 -84
  109. package/src/android-bootstrap/less/input-groups.less +167 -167
  110. package/src/android-bootstrap/less/jumbotron.less +52 -52
  111. package/src/android-bootstrap/less/labels.less +64 -64
  112. package/src/android-bootstrap/less/list-group.less +141 -141
  113. package/src/android-bootstrap/less/media.less +66 -66
  114. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  115. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  116. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  117. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  118. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  119. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  120. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  121. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  122. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  123. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  124. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  125. package/src/android-bootstrap/less/mixins/image.less +33 -33
  126. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  127. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  128. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  129. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  130. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  131. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  132. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  133. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  134. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  135. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  136. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  137. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  138. package/src/android-bootstrap/less/mixins/size.less +10 -10
  139. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  140. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  141. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  142. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  143. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  144. package/src/android-bootstrap/less/mixins.less +40 -40
  145. package/src/android-bootstrap/less/modals.less +151 -151
  146. package/src/android-bootstrap/less/navbar.less +660 -660
  147. package/src/android-bootstrap/less/navs.less +290 -290
  148. package/src/android-bootstrap/less/normalize.less +424 -424
  149. package/src/android-bootstrap/less/pager.less +76 -76
  150. package/src/android-bootstrap/less/pagination.less +89 -89
  151. package/src/android-bootstrap/less/panels.less +274 -274
  152. package/src/android-bootstrap/less/popovers.less +131 -131
  153. package/src/android-bootstrap/less/print.less +101 -101
  154. package/src/android-bootstrap/less/progress-bars.less +87 -87
  155. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  156. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  157. package/src/android-bootstrap/less/scaffolding.less +161 -161
  158. package/src/android-bootstrap/less/tables.less +262 -262
  159. package/src/android-bootstrap/less/theme.less +291 -291
  160. package/src/android-bootstrap/less/thumbnails.less +36 -36
  161. package/src/android-bootstrap/less/tooltip.less +102 -102
  162. package/src/android-bootstrap/less/type.less +303 -303
  163. package/src/android-bootstrap/less/utilities.less +55 -55
  164. package/src/android-bootstrap/less/variables.less +896 -896
  165. package/src/android-bootstrap/less/wells.less +29 -29
  166. package/src/androidBase.js +177 -177
  167. package/src/androidTest.js +20 -20
  168. package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  169. package/src/bootstrap/less/.csscomb.json +304 -304
  170. package/src/bootstrap/less/.csslintrc +19 -19
  171. package/src/bootstrap/less/alerts.less +73 -73
  172. package/src/bootstrap/less/aofeng/animate.min.css +10 -10
  173. package/src/bootstrap/less/aofeng/standard.less +2121 -2121
  174. package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +686 -686
  175. package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -1586
  176. package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +2650 -2650
  177. package/src/bootstrap/less/aofeng/themeOne.less +14 -14
  178. package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -415
  179. package/src/bootstrap/less/aofeng/themeTwo.less +3 -3
  180. package/src/bootstrap/less/badges.less +66 -66
  181. package/src/bootstrap/less/breadcrumbs.less +26 -26
  182. package/src/bootstrap/less/button-groups.less +247 -247
  183. package/src/bootstrap/less/buttons.less +172 -172
  184. package/src/bootstrap/less/carousel.less +269 -269
  185. package/src/bootstrap/less/close.less +34 -34
  186. package/src/bootstrap/less/code.less +69 -69
  187. package/src/bootstrap/less/component-animations.less +33 -33
  188. package/src/bootstrap/less/dropdowns.less +216 -216
  189. package/src/bootstrap/less/forms.less +626 -626
  190. package/src/bootstrap/less/grid.less +84 -84
  191. package/src/bootstrap/less/input-groups.less +167 -167
  192. package/src/bootstrap/less/jumbotron.less +52 -52
  193. package/src/bootstrap/less/labels.less +64 -64
  194. package/src/bootstrap/less/list-group.less +141 -141
  195. package/src/bootstrap/less/manageStyle/manageChile.less +180 -180
  196. package/src/bootstrap/less/manageStyle/manageStyle.less +1102 -1102
  197. package/src/bootstrap/less/manageStyle/safeStyle.less +498 -498
  198. package/src/bootstrap/less/media.less +66 -66
  199. package/src/bootstrap/less/mixins/alerts.less +14 -14
  200. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  201. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  202. package/src/bootstrap/less/mixins/buttons.less +69 -69
  203. package/src/bootstrap/less/mixins/center-block.less +7 -7
  204. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  205. package/src/bootstrap/less/mixins/forms.less +90 -90
  206. package/src/bootstrap/less/mixins/gradients.less +59 -59
  207. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  208. package/src/bootstrap/less/mixins/grid.less +122 -122
  209. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  210. package/src/bootstrap/less/mixins/image.less +33 -33
  211. package/src/bootstrap/less/mixins/labels.less +12 -12
  212. package/src/bootstrap/less/mixins/list-group.less +30 -30
  213. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  214. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  215. package/src/bootstrap/less/mixins/opacity.less +8 -8
  216. package/src/bootstrap/less/mixins/pagination.less +24 -24
  217. package/src/bootstrap/less/mixins/panels.less +24 -24
  218. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  219. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  220. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  221. package/src/bootstrap/less/mixins/resize.less +6 -6
  222. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  223. package/src/bootstrap/less/mixins/size.less +10 -10
  224. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  225. package/src/bootstrap/less/mixins/table-row.less +44 -44
  226. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  227. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  228. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  229. package/src/bootstrap/less/mixins.less +40 -40
  230. package/src/bootstrap/less/modals.less +151 -151
  231. package/src/bootstrap/less/navbar.less +660 -660
  232. package/src/bootstrap/less/navs.less +285 -285
  233. package/src/bootstrap/less/normalize.less +424 -424
  234. package/src/bootstrap/less/pager.less +76 -76
  235. package/src/bootstrap/less/pagination.less +89 -89
  236. package/src/bootstrap/less/panels.less +275 -275
  237. package/src/bootstrap/less/popovers.less +131 -131
  238. package/src/bootstrap/less/print.less +101 -101
  239. package/src/bootstrap/less/progress-bars.less +87 -87
  240. package/src/bootstrap/less/responsive-embed.less +35 -35
  241. package/src/bootstrap/less/responsive-utilities.less +194 -194
  242. package/src/bootstrap/less/scaffolding.less +161 -161
  243. package/src/bootstrap/less/standard.less +503 -503
  244. package/src/bootstrap/less/systemStyle.less +860 -860
  245. package/src/bootstrap/less/tables.less +262 -262
  246. package/src/bootstrap/less/theme.less +291 -291
  247. package/src/bootstrap/less/themeOne.less +36 -36
  248. package/src/bootstrap/less/themeTwo.less +29 -29
  249. package/src/bootstrap/less/thumbnails.less +36 -36
  250. package/src/bootstrap/less/tooltip.less +102 -102
  251. package/src/bootstrap/less/type.less +303 -303
  252. package/src/bootstrap/less/utilities.less +55 -55
  253. package/src/bootstrap/less/wells.less +29 -29
  254. package/src/components/AloneLoadParams.vue +25 -25
  255. package/src/components/FileUpload.vue +696 -696
  256. package/src/components/Hello.vue +39 -39
  257. package/src/components/LeftTree.vue +27 -27
  258. package/src/components/Main.vue +393 -393
  259. package/src/components/android/AddGas.vue +147 -147
  260. package/src/components/android/AddressList.vue +61 -61
  261. package/src/components/android/AdviseCommit.vue +59 -59
  262. package/src/components/android/AndroidCheckResult.vue +181 -181
  263. package/src/components/android/AttendanceTally.vue +116 -116
  264. package/src/components/android/Blank.vue +10 -10
  265. package/src/components/android/CheckUnplanPage.vue +56 -56
  266. package/src/components/android/Checker.vue +12 -12
  267. package/src/components/android/CheckerAnnual.vue +81 -81
  268. package/src/components/android/CheckerAvarta.vue +82 -82
  269. package/src/components/android/CheckerMonthly.vue +84 -84
  270. package/src/components/android/CurrentCreate.vue +1050 -1050
  271. package/src/components/android/DevicesNoncivil.vue +214 -214
  272. package/src/components/android/EquipmentInspection.vue +348 -348
  273. package/src/components/android/FootprintMap.vue +120 -120
  274. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  275. package/src/components/android/LcheckUnplan.vue +108 -108
  276. package/src/components/android/MasterMain.vue +77 -77
  277. package/src/components/android/Menu.vue +132 -132
  278. package/src/components/android/NavBottom.vue +157 -157
  279. package/src/components/android/PaperAlarm.vue +85 -85
  280. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  281. package/src/components/android/PhoneInfoTable.vue +40 -40
  282. package/src/components/android/PlumberAnnual.vue +83 -83
  283. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  284. package/src/components/android/PlumberMonthly.vue +84 -84
  285. package/src/components/android/PostMap.vue +83 -83
  286. package/src/components/android/QueryCheckHistory.vue +122 -122
  287. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  288. package/src/components/android/RepairMain.vue +60 -60
  289. package/src/components/android/Repairman.vue +12 -12
  290. package/src/components/android/SafecheckOrderV.vue +2803 -2803
  291. package/src/components/android/StationMaster.vue +12 -12
  292. package/src/components/android/wasm/comp.js +33 -33
  293. package/src/components/checkerphonestate/Checker.vue +32 -32
  294. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  295. package/src/components/defects/AddDefectModal.vue +120 -120
  296. package/src/components/defects/AddDevice.vue +95 -95
  297. package/src/components/defects/DefectModal.vue +101 -101
  298. package/src/components/defects/DefectSeting.vue +98 -98
  299. package/src/components/defects/DefectsQuery.vue +190 -190
  300. package/src/components/defects/DevicesAndItem.vue +39 -39
  301. package/src/components/defects/DevicesSeting.vue +106 -106
  302. package/src/components/equipment/BoilerUsage.vue +105 -105
  303. package/src/components/equipment/CookerUsage.vue +105 -105
  304. package/src/components/equipment/DeviceUsage.vue +105 -105
  305. package/src/components/equipment/FurnaceUsage.vue +105 -105
  306. package/src/components/equipment/GasMeterUsage.vue +109 -109
  307. package/src/components/equipment/HeaterUsage.vue +105 -105
  308. package/src/components/gasusage/GasUsage.vue +126 -126
  309. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  310. package/src/components/map/PersonTrack.vue +224 -224
  311. package/src/components/map/douglasPeuckerForAMap.js +88 -88
  312. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  313. package/src/components/metterfiles/MetterFiles.vue +104 -104
  314. package/src/components/notice/NoticeForm.vue +100 -100
  315. package/src/components/notice/NoticeIssue.vue +20 -20
  316. package/src/components/notice/NoticeQuery.vue +76 -76
  317. package/src/components/paper/PicViewer.vue +18 -18
  318. package/src/components/paper/RepairVerify.vue +139 -139
  319. package/src/components/paper/RepairVerifyForm.vue +76 -76
  320. package/src/components/paper/VerifyForm.vue +107 -107
  321. package/src/components/phonestate/DailyTraffic.vue +57 -57
  322. package/src/components/phonestate/LastKnownState.vue +74 -74
  323. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  324. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  325. package/src/components/phonestate/PostMap.vue +82 -82
  326. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  327. package/src/components/querycheckpaper/PaperSearch.vue +126 -126
  328. package/src/components/task/RepairAnnual.vue +79 -79
  329. package/src/components/task/RepairAnnualDetail.vue +49 -49
  330. package/src/components/task/RepairMonthly.vue +91 -91
  331. package/src/components/task/TaskAnnual.vue +77 -77
  332. package/src/components/task/TaskAnnualDetail.vue +47 -47
  333. package/src/components/task/TaskMonthly.vue +89 -89
  334. package/src/components/userfile/MeterFile.vue +145 -145
  335. package/src/components/userfile/MeterModify.vue +46 -46
  336. package/src/components/userfile/UserFile.vue +118 -118
  337. package/src/components/userfile/UserfileChange.vue +277 -277
  338. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  339. package/src/components/userfileaudit/UserFileaudit.vue +81 -81
  340. package/src/components/userfileaudit/UserfileChangeaudit.vue +239 -239
  341. package/src/expandcss.less +571 -571
  342. package/src/filiale/fugou/android/SafecheckOrderV.vue +2803 -0
  343. package/src/filiale/fugou/android.js +11 -10
  344. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -63
  345. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -1081
  346. package/src/filiale/fugou/pc/PaperDefectMain.vue +920 -922
  347. package/src/filiale/fugou/pc/PaperList.vue +903 -903
  348. package/src/filiale/fugou/pc/PlanManage.vue +1061 -1061
  349. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1154 -1154
  350. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  351. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +121 -102
  352. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  353. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
  354. package/src/filiale/yongzhou/pc/safeDetail.vue +1 -1
  355. package/src/filiale/yongzhou/pc/safeStatistics.vue +27 -1
  356. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +1 -1
  357. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +1 -1
  358. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  359. package/src/filiale/yongzhou/pc.js +1 -0
  360. package/src/main.js +32 -33
  361. package/src/plugins/GerJsonConfig.js +59 -59
  362. package/src/plugins/LoadData.js +10 -10
  363. package/src/plugins/LoadParams.js +24 -24
  364. package/src/stores/AppData.js +46 -46
  365. package/src/stores/wxconfig.js +10 -10
  366. package/src/utils/getNowDate.js +33 -33
  367. package/test/SearchList.test.js +14 -14
  368. package/test/e2e/custom-assertions/elementCount.js +26 -26
  369. package/test/e2e/nightwatch.conf.js +40 -40
  370. package/test/e2e/runner.js +30 -30
  371. package/test/e2e/specs/test.js +13 -13
  372. package/test/unit/.eslintrc +5 -5
  373. package/test/unit/TestUtil.js +62 -62
  374. package/test/unit/context.html +20 -20
  375. package/test/unit/index.js +13 -13
  376. package/test/unit/init.js +11 -11
  377. package/test/unit/karma.conf.js +53 -53
  378. package/test/unit/specs/Devices.spec.js +18 -18
  379. package/test/unit/specs/getArrobjconfig.spec.js +104 -104
  380. package/test/unit/specs/getobjconfig.spec.js +37 -37
  381. package/test/unit/specs/phonetest/phonesafecheck.spec.js +23 -23
  382. package/test/unit/specs/safePlanItem.spec.js +30 -30
  383. package/test/unit/specs/safecheck-android.spec.js +7 -7
  384. package/test/unit/specs/safecheck.spec.js +127 -127
  385. package/yarn-error.log +140 -140
@@ -1,1050 +1,1050 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
- .app-row {
8
- background-color: white;
9
- padding: 10px 10px 0 10px;
10
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
- }
12
- .search_input {
13
- border: 0;
14
- outline: none;
15
- }
16
- .font{
17
- font: 15px PingFang-SC-Medium;
18
- color: #666666;
19
- }
20
- .input-font{
21
- font: 15px PingFang-SC-Medium;
22
- color: #333333;
23
- }
24
- .btn-font{
25
- font:600 16px PingFang-SC-Bold;
26
- color: #499EDF;
27
- }
28
- .btn-color{
29
- background-color: #FFFFFF;
30
- border-radius: 10px ;
31
- border: 1px solid #499EDF;
32
- }
33
- .app-text {
34
- font-size: 12px;
35
- }
36
- .panel-self{
37
- border-radius: 10px;
38
- border:1px solid #499EDF;
39
- background-color: #F8F8F8;
40
- }
41
- .yybtn-color{
42
- background-color:#499edf;
43
- border-radius: 4px ;
44
- border: 1px solid #499EDF;
45
- color: #FFFFFF;
46
- font: 14px PingFang-SC-Bold;
47
- }
48
- .qxbtn-color{
49
- background-color: #FFFFFF;
50
- border-radius: 4px ;
51
- color: #499edf;
52
- font: 14px PingFang-SC-Bold;
53
- border: 1px solid #499EDF;
54
- }
55
-
56
- .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
57
- .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
58
- .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
59
- .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
60
- </style>
61
- <style>
62
- .clear-select-with .dropdown-menu{
63
- left: 0px !important;
64
- width: 200% !important;
65
- }
66
- </style>
67
- <template>
68
- <div style="height: auto;width: 100%">
69
- <criteria-paged :model="model" v-ref:paged>
70
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
71
- <div partial>
72
- <form>
73
- <div class="row app-row">
74
- <!--小区名称-->
75
- <v-select :value.sync="model.f_residential_area"
76
- class="input-font clear-select-with"
77
- :options='$parent.$parent.residentialAreaOptions'
78
- placeholder='小区名称'
79
- :width="'32.5%'"
80
- v-model="model.f_residential_area"
81
- condition="ti.f_residential_area = '{}'"
82
- @change="$parent.$parent.getbuilds"
83
- close-on-select clear-button>
84
- </v-select>
85
- <!--楼栋-->
86
- <v-select :value.sync="model.f_building"
87
- class="input-font"
88
- :options='$parent.$parent.buildOptions'
89
- placeholder='楼栋'
90
- :width="'32.5%'"
91
- v-model="model.f_building"
92
- condition="ti.f_building = '{}'"
93
- @change="$parent.$parent.getUnits"
94
- close-on-select clear-button>
95
- </v-select>
96
- <!--单元-->
97
- <v-select :value.sync="model.f_unit"
98
- class="input-font"
99
- :options='$parent.$parent.unitOptions'
100
- placeholder='单元'
101
- :width="'32.5%'"
102
- v-model="model.f_unit"
103
- condition="ti.f_unit = '{}'"
104
- close-on-select clear-button>
105
- </v-select>
106
- </div>
107
- <div class="row app-row">
108
- <div class="col-xs-4">
109
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
110
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
111
- </div>
112
- <div class="col-xs-8" >
113
- <input id="f_userinfo_code" class="search_input input-font"
114
- v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
115
- </div>
116
- </div>
117
- <div class="row app-row">
118
- <div class="col-xs-4">
119
- <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
120
- <label class="font text-left">用户姓名:</label>
121
- </div>
122
- <div class="col-xs-8" >
123
- <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
124
- </div>
125
- </div>
126
-
127
- <div class="row app-row">
128
- <div class="col-xs-4">
129
- <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
130
- <label class="font text-left">用户证号:</label>
131
- </div>
132
- <div class="col-xs-8" >
133
- <input class="search_input input-font" v-model=model.f_enter_number condition="f_enter_number like '%{}%'" />
134
- </div>
135
- </div>
136
-
137
- <div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
138
- <div class="col-xs-4">
139
- <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
140
- <label for="f_plan_name" class="font text-left">计划名称:</label>
141
- </div>
142
- <v-select
143
- id="f_plan_name"
144
- :value.sync="model.f_plan_name"
145
- class="input-font"
146
- :options='$parent.$parent.planNameOptions'
147
- placeholder='计划名称'
148
- :width="'60%'"
149
- v-model="model.f_plan_name"
150
- condition="f_plan_name like '%{}%'"
151
- close-on-select clear-button>
152
- </v-select>
153
- </div>
154
-
155
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
156
- <div class="col-xs-4">
157
- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
158
- <label for="f_state" class="font text-left">是否已检:</label>
159
- </div>
160
- <v-select id="f_state"
161
- :value.sync="model.f_state"
162
- class="input-font"
163
- :options='$parent.$parent.check_states'
164
- placeholder='是否已检'
165
- :width="'60%'"
166
- v-model="model.f_state"
167
- condition="f_state='{}'"
168
- close-on-select clear-button>
169
- </v-select>
170
- </div>
171
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
172
- <div class="col-xs-4">
173
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
174
- <label class="font text-left">表&emsp;&emsp;号:</label>
175
- </div>
176
- <div class="col-xs-5" >
177
- <input class="search_input input-font"
178
- v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
179
- </div>
180
- <div class="col-xs-3">
181
- <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
182
- </div>
183
- </div>
184
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
185
- <div class="col-xs-4">
186
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
187
- <label class="font text-left">客户电话:</label>
188
- </div>
189
- <div class="col-xs-8" >
190
- <input class="search_input input-font"
191
- v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
192
- </div>
193
- </div>
194
-
195
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
196
- <div class="col-xs-4">
197
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
198
- <label class="font text-left">用户地址:</label>
199
- </div>
200
- <div class="col-xs-8" >
201
- <input class="search_input input-font"
202
- v-model=model.f_keyword condition="f_address like '%{}%'" />
203
- </div>
204
- </div>
205
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
206
- <div class="col-xs-4">
207
- <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
208
- <label for="f_user_type" class="font text-left">用户类型:</label>
209
- </div>
210
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
211
- :width="'60%'"
212
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
213
- v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
214
- </div>
215
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
216
- <div class="col-xs-6">
217
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
218
- <label class="font text-left">到访不遇:</label>
219
- </div>
220
- <div class="col-xs-8" >
221
- <input class="search_input input-font" type="number"
222
- v-model=model.f_check_version condition="f_check_version <= '{}'" />
223
- </div>
224
- </div>
225
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
226
- <div class="col-xs-6" style="text-align: center">
227
- <span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
228
- </div>
229
- <div class="col-xs-6" style="text-align: center">
230
- <span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
231
- </div>
232
- <div class="col-xs-6" style="text-align: center">
233
- <span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
234
- </div>
235
- <div class="col-xs-6" style="text-align: center">
236
- <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
237
- </div>
238
- </div>
239
-
240
- <div class="row text-center" style="margin-top: 20px;">
241
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
242
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
243
- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
244
- <img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
245
- </div>
246
- <div class="col-sm-12">
247
-
248
- </div>
249
- <!--<div class="row app-btn">-->
250
- <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
251
- <!--</div>-->
252
- <div style="height:30px;"></div>
253
- </form>
254
- </div>
255
- </criteria>
256
- <list :model="model" partial='list'>
257
- <div partial>
258
- <div class="auto app-text" style="margin-top: 5px;">
259
- <div class="panel" style="padding: 10px 10px 5px 10px;">
260
- <div class="panel-body panel-self">
261
-
262
- <div class="col-xs-12">
263
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
264
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
265
- <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
266
- <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
267
- </p>
268
- </div>
269
- <div class="col-xs-12">
270
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
271
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
272
- </div>
273
- <div class="col-xs-6">
274
- <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
275
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
276
- </p>
277
- </div>
278
- <div class="col-xs-6">
279
- <p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
280
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
281
- </div>
282
- <!-- <div class="col-xs-6">-->
283
- <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
284
- <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
285
- <!-- </div>-->
286
- <div class="col-xs-12">
287
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
288
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
289
- <img src="../../assets/phone.png" style="width: 6%"
290
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
291
- </p>
292
- </div>
293
- <div class="col-xs-12">
294
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
295
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
296
- <img v-if="row.f_rent_phone" src="../../assets/phone.png" style="width: 6%"
297
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
298
- </p>
299
- </div>
300
- <div class="col-xs-12">
301
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
302
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
303
- <img v-if="row.f_zuhu_phone" src="../../assets/phone.png" style="width: 6%"
304
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
305
- </p>
306
- </div>
307
-
308
- <div class="col-xs-12">
309
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
310
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
311
- </div>
312
-
313
- <!-- <div class="row">-->
314
- <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
315
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
316
- <!-- </div>-->
317
- <!-- <div class="row">-->
318
- <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
319
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
320
- <!-- </div>-->
321
- <!-- <div class="row">-->
322
- <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
323
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
324
- <!-- </div>-->
325
- <!--<div class="row">-->
326
- <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
327
- <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
328
- <!--</div>-->
329
- <div class="col-xs-6">
330
- <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
331
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_state == '已检'?'临时保存':row.f_state }}</p>
332
- </div>
333
- <div class="col-xs-6">
334
- <p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
335
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
336
- </div>
337
- <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
338
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
339
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
340
- </div>
341
- <div class="col-xs-6">
342
- <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
343
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
344
- </div>
345
- <div class="col-xs-12">
346
- <p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
347
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
348
- </div>
349
- <!--<div class="col-xs-12">-->
350
- <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
351
- <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
352
- <!--</div>-->
353
- <div class="col-xs-12">
354
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
355
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
356
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
357
- </div>
358
- <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
359
- <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
360
- <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
361
- <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
362
- <!-- </div>-->
363
- </div>
364
- </div>
365
- </div>
366
- </div>
367
- </list>
368
- </criteria-paged>
369
- <modal :show.sync="showModal">
370
- <div slot="modal-header" class="modal-header">
371
- <h4 class="modal-title">
372
- 选择预约时间
373
- </h4>
374
- </div>
375
- <div slot="modal-body" class="modal-body">
376
- <input type="datetime-local" v-model="f_preset_dt">
377
- </div>
378
- <div slot="modal-footer" class="modal-footer">
379
- <button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
380
- </div>
381
- </modal>
382
- <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
383
- <modal :show.sync="showModal2" v-ref:modal>
384
- <div slot="modal-header" class="modal-header">
385
- <h4 class="modal-title">
386
- 选择计划
387
- </h4>
388
- </div>
389
- <div slot="modal-body" class="modal-body">
390
- <div class="col-xs-12">
391
-
392
- <div class="col-xs-4">
393
- <v-select :value.sync="check" v-model='check'
394
- :value-single="true"
395
- class="select_list select"
396
- :options='checkers' placeholder='安检员'
397
- close-on-select width="100%"></v-select>
398
- </div>
399
-
400
- <div class="col-xs-1">
401
- <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
402
- </div>
403
- <div class="col-xs-4" style="padding-left: 2px">
404
- <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
405
- </div>
406
- <div class="col-xs-1" >
407
- <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
408
- </div>
409
- <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
410
- <div class="col-xs-2" style="float: right">
411
- <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
412
- </div>
413
- </div>
414
- <table class="table table_sy">
415
- <thead>
416
- <tr>
417
- <th style="width: 30px"></th>
418
- <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
419
- </tr>
420
- </thead>
421
- <tbody>
422
- <tr v-for="row in planoption">
423
- <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
424
- <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
425
-
426
-
427
- </tr>
428
- </tbody>
429
- </table>
430
- </div>
431
- <div slot="modal-footer" class="modal-footer">
432
- <button class="btn btn-default" @click="isok()">确认</button>
433
- <button class="btn btn-default" @click="iscancel()">取消</button>
434
- </div>
435
- </modal>
436
- <modal :show.sync="showModal3" v-ref:modal>
437
- <div slot="modal-header" class="modal-header">
438
- <h4 class="modal-title">
439
- 选择计划
440
- </h4>
441
- </div>
442
- <div slot="modal-body" class="modal-body">
443
- <div class="col-xs-12">
444
-
445
- <div class="col-xs-4">
446
- <v-select :value.sync="check" v-model='check'
447
- :value-single="true"
448
- class="select_list select"
449
- :options='checkers' placeholder='安检员'
450
- close-on-select width="100%"></v-select>
451
- </div>
452
-
453
- <div class="col-xs-1">
454
- <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
455
- </div>
456
- <div class="col-xs-4" style="padding-left: 2px">
457
- <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
458
- </div>
459
- <div class="col-xs-1" >
460
- <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
461
- </div>
462
- <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
463
- <div class="col-xs-2" style="float: right">
464
- <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
465
- </div>
466
- </div>
467
- <table class="table table_sy">
468
- <thead>
469
- <tr>
470
- <th style="width: 30px"></th>
471
- <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
472
- </tr>
473
- </thead>
474
- <tbody>
475
- <tr v-for="row in planoption">
476
- <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
477
- <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
478
-
479
-
480
- </tr>
481
- </tbody>
482
- </table>
483
- </div>
484
- <div slot="modal-footer" class="modal-footer">
485
- <button class="btn btn-default" @click="manyisok()">确认</button>
486
- <button class="btn btn-default" @click="iscancel()">取消</button>
487
- </div>
488
- </modal>
489
- </div>
490
-
491
- </template>
492
-
493
- <script>
494
- import LocalPagedList from '../../plugins/LocalPagedList'
495
- import Vue from 'vue'
496
- import { PagedList,HttpResetClass } from 'vue-client'
497
- import * as Util from '../Util'
498
- import co from 'co'
499
- let select = function * (self) {
500
- let http = new HttpResetClass()
501
- http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
502
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
503
- userid: Vue.user.id
504
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
505
- //tag
506
- self.checkers.push({label:'全部',value:''})
507
- res.data.forEach((checker)=>{
508
- self.checkers.push({label:checker.name,value:checker.id})
509
- })
510
- })
511
- }
512
- export default {
513
- title: '无计划安检查询',
514
- props: ['planName'],
515
- data() {
516
- return {
517
- f_filialeids:'('+Vue.user.orgid+')',
518
- //f_filialeids:'(305)',
519
- planparam:[],
520
- check:'',
521
- plan:'',
522
- planid:'',
523
- model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/rs/sql/androidGetuserinfo',20,{condition:'this.condition'}),
524
- showModal: false,
525
- showModal2:false,
526
- showModal3:false,
527
- needid:'',
528
- criteriaShow: false,
529
- planoption:[],
530
- condition:'',
531
- checkers:[],
532
- param: null,
533
- f_preset_dt : Util.to3339TimeString(),
534
- flow_direction:[
535
- {label: '请选择挂表方式', value: ''},
536
- {label: '左表', value: '左表'},
537
- {label: '右表', value: '右表'}
538
- ],
539
- check_states: [
540
- {label: '请选择安检状态', value: ''},
541
- {label: '未检', value: '未检'},
542
- {label: '临时保存', value: '已检'},
543
- ],
544
- last_check_states: [
545
- {label: '请选择上次安检状态', value: ''},
546
- {label: '入户', value: '入户'},
547
- {label: '拒检', value: '拒检'},
548
- {label: '到访不遇', value: '到访不遇'},
549
- {label: '未使用天然气', value: '未使用天然气'}
550
- ],
551
- upload_states: [
552
- {label: '请选择上传状态', value: ''},
553
- {label: '未传', value: '未传'},
554
- {label: '已传', value: '已传'}
555
- ],
556
- user_types: [
557
- {label: '请选择用户类型', value: ''},
558
- {label: '民用', value: '民用'},
559
- {label: '非民用', value: '非民用'},
560
- ],
561
- verify_state: [
562
- {label: '请选择审核状态', value: ''},
563
- {label: '未审核', value: '未审核'},
564
- {label: '打回', value: '打回'}
565
- ],
566
- residentialAreaOptions: [],
567
- buildOptions: [],
568
- unitOptions: [],
569
- planNameOptions: [],
570
- upcomingCount: 0,
571
- doneCount: 0,
572
- tempSaveCount: 0,
573
- allPlanCount: 0
574
- }
575
- },
576
- ready(){
577
- this.getAllArea()
578
- this.getAllPlanName()
579
- this.selfSearch()
580
- let gen = select(this)
581
- co(gen)
582
- },
583
- mounted(){
584
- //tag
585
- if (window.history && window.history.pushState) {
586
- history.pushState(null, null, document.URL);
587
- window.addEventListener('popstate', this.fun, false);//false阻止默认事件
588
- }
589
- },
590
- destroyed(){
591
- //tag
592
- window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
593
- },
594
- methods: {
595
- scan(){
596
- HostApp.__this__=this,
597
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
598
- },
599
- getCode(){
600
- const datapa = HostApp.getCode().data;
601
- //tag
602
- this.$refs.paged.$refs.cri.model.f_meter_no = datapa
603
-
604
- },
605
- fun () {
606
- //tag
607
- //tag
608
- },
609
- iscancel(){
610
- this.showModal2=false
611
- this.showModal3=false
612
- this.planoption=[]
613
- },
614
- timeSet(val){
615
- return val
616
- },
617
- async isok(){
618
- if(this.planoption.length==0){
619
- this.$showMessage("请选择计划")
620
- return false
621
- }
622
- for (let i = 0; i <this.planoption.length ; i++) {
623
- if (this.planoption[i]["selected"]==true){
624
- this.planid=this.planoption[i].value
625
- break
626
- }
627
- }
628
- if(this.planid==''){
629
- this.$showMessage("请选择计划")
630
- return false
631
- }
632
- await this.okput()
633
- },
634
- async manyisok(){
635
- if(this.planoption.length==0){
636
- this.$showMessage("请选择计划")
637
- return false
638
- }
639
- for (let i = 0; i <this.planoption.length ; i++) {
640
- if (this.planoption[i]["selected"]==true){
641
- this.planid=this.planoption[i].value
642
- break
643
- }
644
- }
645
- if(this.planid==''){
646
- this.$showMessage("请选择计划")
647
- return false
648
- }
649
- await this.manyokput()
650
- },
651
- changenull(){
652
- this.showModal2=false
653
- this.showModal3=false
654
- this.planoption=[]
655
- this.plan=''
656
- this.check=''
657
- },
658
- async okput(){
659
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
660
- condition:`i.id='`+this.needid+`'`,
661
- f_plan_id:this.planid,
662
- switchCheckAll:false,
663
- checkAll:false,
664
- f_operator:Vue.user.name
665
- }
666
- })
667
- this.$showMessage("上传成功,请等待审核")
668
- await this.changenull()
669
- await this.getNewOrder()
670
- },
671
- async manyokput(){
672
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
673
- columnName:"i.id",
674
- condition:"1=1",
675
- f_plan_id:this.planid,
676
- switchCheckAll:true,
677
- param:this.planparam,
678
- checkAll:false,
679
- f_operator:Vue.user.name
680
- }
681
- })
682
- await this.changenull()
683
- await this.getNewOrder()
684
- },
685
- async plansearch(){
686
- this.planoption=[]
687
- let condition= ` f_plan_year=${new Date().getFullYear()}`
688
- if(this.check){
689
- condition += ` and f_checker_id= '${this.check}'`
690
- }
691
- if(this.plan){
692
- condition += ` and f_plan_name like '%${this.plan}%'`
693
- }
694
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/预约计划下发`, {data:{
695
- condition:condition,
696
- f_filialeids:this.f_filialeids,
697
- groupitem:'',
698
- orderitem:'id'
699
- }})
700
- let resoult=res.data
701
- for (let i = 0; i < resoult.length; i++) {
702
- this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
703
- }
704
- },
705
-
706
- select(row, idx) {
707
- this.$set('planoption[' + idx + '].selected', true)
708
- for (let i = 0; i <this.planoption.length ; i++) {
709
- if (i!=idx){
710
- this.planoption[i]["selected"]=false
711
- }
712
- }
713
- },
714
- planclose(){
715
- this.showModal2=false
716
- this.showModal3=false
717
- },
718
- queryplan(val){
719
- this.needid=val
720
- this.showModal2 = true
721
- },
722
- queryplanmany(){
723
-
724
- this.showModal3 = true
725
- },
726
- reload(){
727
- // this.getAllArea()
728
- // this.getAllPlanName()
729
- this.selfSearch()
730
- },
731
- cancelReserve (idx, id) {
732
- if(Vue.android){
733
- let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
734
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
735
- if (res.code == 200) {
736
- this.$showMessage("取消预约成功")
737
- }
738
- }else {
739
- this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
740
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
741
- if (repanse.data.code == 200) {
742
- alert("取消预约成功!")
743
- }
744
- })
745
- }},
746
- genuineReserve () {
747
- if(Vue.android){
748
- if (!this.f_preset_dt) {
749
- this.$showMessage('请选择一个日期')
750
- return
751
- }
752
- let pdt = this.f_preset_dt.replace('T', ' ')
753
- let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
754
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
755
- if(respanse.code == 200) {
756
- this.$showMessage("预约成功!")
757
- }
758
- this.showModal = false
759
- }else {
760
- if (!this.f_preset_dt) {
761
- alert('请选择一个日期')
762
- return
763
- }
764
- let pdt = this.f_preset_dt.replace('T', ' ')
765
- this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
766
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
767
- if(res.data.code == 200) {
768
- alert("预约成功!")
769
- }
770
- this.showModal = false
771
- })
772
- }
773
- },
774
- inspect(row) {
775
- var _this = this
776
- let http = new HttpResetClass()
777
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
778
- items: 'id',
779
- tablename: 't_check_plan_item',
780
- condition: `id = '${row.id}'`,
781
- orderitem: ' id '
782
- }}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
783
- console.log('getcheckplan=', JSON.stringify(getcheckplan))
784
- this.getcheckplandata = getcheckplan.data[0]
785
- if(this.getcheckplandata){
786
- if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检' ) ) {
787
- _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
788
- row['f_plan_meters'] = response.data
789
- var pardate = {
790
- _this:_this,
791
- title:'安全检查',
792
- safe:true
793
- }
794
- _this.$dispatch('gotoson',pardate)
795
- //tag
796
- _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
797
- }).catch ((msg)=>{
798
- this.$showMessage("网络异常,请检查网络后再试!")
799
- })
800
- }else{
801
- this.$showMessage("该安检单已被上传!")
802
- }
803
- }else {
804
- this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
805
- }
806
- })
807
- },
808
- makeAPhoneCall(phoneNumber) {
809
- this.$androidUtil.makeAPhoneCall(phoneNumber)
810
- },
811
- reserve (idx) {
812
- this.param = idx
813
- this.showModal = true
814
- },
815
- search(args) {
816
- this.model.rows = []
817
- this.model.search(args.condition, args.model)
818
- },
819
- selfSearch () {
820
- this.getPlanCount()
821
- let condition = ""
822
- if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
823
- condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
824
- }else if(this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area){
825
- condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
826
- }
827
- if(this.$refs.paged.$refs.cri.model.f_building)
828
- condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
829
- if(this.$refs.paged.$refs.cri.model.f_unit)
830
- condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
831
- if (this.planName){
832
- condition += " and f_plan_name like '%"+this.planName +"%'"
833
- }else {
834
- if(this.$refs.paged.$refs.cri.model.f_plan_name)
835
- condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
836
- }
837
- // if(this.$refs.paged.$refs.cri.model.f_plan_year)
838
- // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
839
- // if(this.$refs.paged.$refs.cri.model.f_plan_month)
840
- // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
841
- if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
842
- condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
843
- if(this.$refs.paged.$refs.cri.model.f_keyword)
844
- condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
845
- if(this.$refs.paged.$refs.cri.model.f_user_name)
846
- condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
847
- if(this.$refs.paged.$refs.cri.model.f_state[0])
848
- condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
849
- // if(this.$refs.paged.$refs.cri.model.f_last_state[0])
850
- // condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
851
- if(this.$refs.paged.$refs.cri.model.f_user_type[0])
852
- condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
853
- if(this.$refs.paged.$refs.cri.model.f_meter_no)
854
- condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
855
- // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
856
- // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
857
- if(this.$refs.paged.$refs.cri.model.f_user_phone){
858
- condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
859
- }
860
- if(this.$refs.paged.$refs.cri.model.f_enter_number)
861
- condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
862
- if(this.$refs.paged.$refs.cri.model.f_check_version)
863
- condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
864
- //tag
865
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检')) and ti.f_no_checkplan = '有计划安检'" + condition)
866
- },
867
- getNewOrder(){
868
- HostApp.__this__ = this
869
- HostApp.logicWithHint({
870
- // logic别名,key必须为logic
871
- 'logic': 'SafeCheckServiceTimeOut',
872
- // 回调执行方法名,key必须为callback
873
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
874
- // logic执行需要的业务参数
875
- 'data': {params: ''},
876
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
877
- // 执行回调方法传入key为backresult
878
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
879
- 'backresult': 1
880
- })
881
- HostApp.logicWithHint({
882
- // logic别名,key必须为logic
883
- 'logic': 'FreshPlanItem',
884
- // 回调执行方法名,key必须为callback
885
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
886
- // logic执行需要的业务参数
887
- 'data': {params: ''},
888
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
889
- // 执行回调方法传入key为backresult
890
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
891
- 'backresult': 1
892
- })
893
- },
894
- getNewOrderCallBack() {
895
- this.selfSearch()
896
- this.getAllArea()
897
- this.getAllPlanName()
898
- },
899
- hidden() {
900
- this.criteriaShow = !this.criteriaShow
901
- },
902
- getAllArea(){
903
- this.residentialAreaOptions = []
904
- this.buildOptions = []
905
- this.unitOptions = []
906
- this.$refs.paged.$refs.cri.model.f_residential_area = ''
907
- this.$refs.paged.$refs.cri.model.f_building = ''
908
- this.$refs.paged.$refs.cri.model.f_unit = ''
909
- let criteria = {
910
- items: 'f_residential_area',
911
- tablename: 't_check_plan_item',
912
- condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
913
- groupitem: 'f_residential_area'
914
- }
915
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
916
- //tag)
917
- if(result.code == 200){
918
- result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
919
- }
920
- //tag)
921
- },
922
- getbuilds(f_residential_area){
923
- //tag)
924
- this.buildOptions = []
925
- this.unitOptions = []
926
- this.$refs.paged.$refs.cri.model.f_building = ''
927
- this.$refs.paged.$refs.cri.model.f_unit = ''
928
- if(!f_residential_area){
929
- return
930
- }
931
- let criteria = {
932
- items: 'f_building',
933
- tablename: 't_check_plan_item',
934
- condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
935
- groupitem: 'f_building order by f_building+0'
936
- }
937
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
938
- if(result.code == 200){
939
- result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
940
- }
941
- this.buildOptions.sort((a,b)=>{
942
- return Number(a.label)- Number(b.label)
943
- })
944
- //tag)
945
- },
946
- getUnits(f_building){
947
- f_building = f_building[0]
948
- //tag)
949
- this.unitOptions = []
950
- this.$refs.paged.$refs.cri.model.f_unit = ''
951
- if(!f_building){
952
- return
953
- }
954
- let criteria = {
955
- items: 'f_unit',
956
- tablename: 't_check_plan_item',
957
- condition: `f_unit IS NOT NULL AND f_unit != '' AND f_state <> '已检' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
958
- groupitem: 'f_unit'
959
- }
960
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
961
- if(result.code == 200){
962
- result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
963
- }
964
- this.unitOptions.sort((a,b)=>{
965
- return Number(a.label)- Number(b.label)
966
- })
967
- },
968
- getPlanCount(){
969
- this.upcomingCount = 0
970
- this.tempSaveCount = 0
971
- this.doneCount = 0
972
- this.allPlanCount = 0
973
- let criteria = {
974
- items: 'count(id) count',
975
- tablename: 't_check_plan_item',
976
- condition: `f_state = '未检'`,
977
- groupitem: 'f_state'
978
- }
979
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
980
- if(result.code && result.code == 200){
981
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
982
- this.upcomingCount = result.data.rows[0].count
983
- }
984
- }
985
- criteria = {
986
- items: 'count(id) count',
987
- tablename: 't_check_plan_item',
988
- condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
989
- groupitem: 'f_state'
990
- }
991
- result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
992
- if(result.code && result.code == 200){
993
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
994
- this.tempSaveCount = result.data.rows[0].count
995
- }
996
- }
997
- criteria = {
998
- items: 'count(id) count',
999
- tablename: 't_check_plan_item',
1000
- condition: `f_complete = '已完成' AND f_state = '已检'`,
1001
- groupitem: 'f_state'
1002
- }
1003
- result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1004
- if(result.code && result.code == 200){
1005
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1006
- this.doneCount = result.data.rows[0].count
1007
- }
1008
- }
1009
- this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
1010
-
1011
- //tag
1012
- //tag
1013
- //tag
1014
- //tag
1015
- },
1016
- getAllPlanName(){
1017
- this.planNameOptions = []
1018
- this.$refs.paged.$refs.cri.model.f_plan_name = ''
1019
- let criteria = {
1020
- items: 'f_plan_name',
1021
- tablename: 't_check_plan',
1022
- condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
1023
- groupitem: 'f_plan_name'
1024
- }
1025
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1026
- //tag)
1027
- if(result.code == 200){
1028
- result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
1029
- }
1030
- //tag)
1031
- },
1032
- setPlanParam(detailsType, event) {
1033
- if (event.srcElement.checked) {
1034
- this.planparam.push(detailsType)
1035
- //tag
1036
- } else {
1037
- if(this.planparam.length>0){
1038
- let planid= this.planparam.findIndex((value) => {
1039
- return value === detailsType
1040
- })
1041
- this.planparam.splice(planid, 1)
1042
- //tag
1043
-
1044
- }
1045
-
1046
- }
1047
- }
1048
- }
1049
- }
1050
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+ .app-row {
8
+ background-color: white;
9
+ padding: 10px 10px 0 10px;
10
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
+ }
12
+ .search_input {
13
+ border: 0;
14
+ outline: none;
15
+ }
16
+ .font{
17
+ font: 15px PingFang-SC-Medium;
18
+ color: #666666;
19
+ }
20
+ .input-font{
21
+ font: 15px PingFang-SC-Medium;
22
+ color: #333333;
23
+ }
24
+ .btn-font{
25
+ font:600 16px PingFang-SC-Bold;
26
+ color: #499EDF;
27
+ }
28
+ .btn-color{
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px ;
31
+ border: 1px solid #499EDF;
32
+ }
33
+ .app-text {
34
+ font-size: 12px;
35
+ }
36
+ .panel-self{
37
+ border-radius: 10px;
38
+ border:1px solid #499EDF;
39
+ background-color: #F8F8F8;
40
+ }
41
+ .yybtn-color{
42
+ background-color:#499edf;
43
+ border-radius: 4px ;
44
+ border: 1px solid #499EDF;
45
+ color: #FFFFFF;
46
+ font: 14px PingFang-SC-Bold;
47
+ }
48
+ .qxbtn-color{
49
+ background-color: #FFFFFF;
50
+ border-radius: 4px ;
51
+ color: #499edf;
52
+ font: 14px PingFang-SC-Bold;
53
+ border: 1px solid #499EDF;
54
+ }
55
+
56
+ .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
57
+ .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
58
+ .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
59
+ .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
60
+ </style>
61
+ <style>
62
+ .clear-select-with .dropdown-menu{
63
+ left: 0px !important;
64
+ width: 200% !important;
65
+ }
66
+ </style>
67
+ <template>
68
+ <div style="height: auto;width: 100%">
69
+ <criteria-paged :model="model" v-ref:paged>
70
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
71
+ <div partial>
72
+ <form>
73
+ <div class="row app-row">
74
+ <!--小区名称-->
75
+ <v-select :value.sync="model.f_residential_area"
76
+ class="input-font clear-select-with"
77
+ :options='$parent.$parent.residentialAreaOptions'
78
+ placeholder='小区名称'
79
+ :width="'32.5%'"
80
+ v-model="model.f_residential_area"
81
+ condition="ti.f_residential_area = '{}'"
82
+ @change="$parent.$parent.getbuilds"
83
+ close-on-select clear-button>
84
+ </v-select>
85
+ <!--楼栋-->
86
+ <v-select :value.sync="model.f_building"
87
+ class="input-font"
88
+ :options='$parent.$parent.buildOptions'
89
+ placeholder='楼栋'
90
+ :width="'32.5%'"
91
+ v-model="model.f_building"
92
+ condition="ti.f_building = '{}'"
93
+ @change="$parent.$parent.getUnits"
94
+ close-on-select clear-button>
95
+ </v-select>
96
+ <!--单元-->
97
+ <v-select :value.sync="model.f_unit"
98
+ class="input-font"
99
+ :options='$parent.$parent.unitOptions'
100
+ placeholder='单元'
101
+ :width="'32.5%'"
102
+ v-model="model.f_unit"
103
+ condition="ti.f_unit = '{}'"
104
+ close-on-select clear-button>
105
+ </v-select>
106
+ </div>
107
+ <div class="row app-row">
108
+ <div class="col-xs-4">
109
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
110
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
111
+ </div>
112
+ <div class="col-xs-8" >
113
+ <input id="f_userinfo_code" class="search_input input-font"
114
+ v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
115
+ </div>
116
+ </div>
117
+ <div class="row app-row">
118
+ <div class="col-xs-4">
119
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
120
+ <label class="font text-left">用户姓名:</label>
121
+ </div>
122
+ <div class="col-xs-8" >
123
+ <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
124
+ </div>
125
+ </div>
126
+
127
+ <div class="row app-row">
128
+ <div class="col-xs-4">
129
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
130
+ <label class="font text-left">用户证号:</label>
131
+ </div>
132
+ <div class="col-xs-8" >
133
+ <input class="search_input input-font" v-model=model.f_enter_number condition="f_enter_number like '%{}%'" />
134
+ </div>
135
+ </div>
136
+
137
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
138
+ <div class="col-xs-4">
139
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
140
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
141
+ </div>
142
+ <v-select
143
+ id="f_plan_name"
144
+ :value.sync="model.f_plan_name"
145
+ class="input-font"
146
+ :options='$parent.$parent.planNameOptions'
147
+ placeholder='计划名称'
148
+ :width="'60%'"
149
+ v-model="model.f_plan_name"
150
+ condition="f_plan_name like '%{}%'"
151
+ close-on-select clear-button>
152
+ </v-select>
153
+ </div>
154
+
155
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
156
+ <div class="col-xs-4">
157
+ <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
158
+ <label for="f_state" class="font text-left">是否已检:</label>
159
+ </div>
160
+ <v-select id="f_state"
161
+ :value.sync="model.f_state"
162
+ class="input-font"
163
+ :options='$parent.$parent.check_states'
164
+ placeholder='是否已检'
165
+ :width="'60%'"
166
+ v-model="model.f_state"
167
+ condition="f_state='{}'"
168
+ close-on-select clear-button>
169
+ </v-select>
170
+ </div>
171
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
172
+ <div class="col-xs-4">
173
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
174
+ <label class="font text-left">表&emsp;&emsp;号:</label>
175
+ </div>
176
+ <div class="col-xs-5" >
177
+ <input class="search_input input-font"
178
+ v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
179
+ </div>
180
+ <div class="col-xs-3">
181
+ <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
182
+ </div>
183
+ </div>
184
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
185
+ <div class="col-xs-4">
186
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
187
+ <label class="font text-left">客户电话:</label>
188
+ </div>
189
+ <div class="col-xs-8" >
190
+ <input class="search_input input-font"
191
+ v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
192
+ </div>
193
+ </div>
194
+
195
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
196
+ <div class="col-xs-4">
197
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
198
+ <label class="font text-left">用户地址:</label>
199
+ </div>
200
+ <div class="col-xs-8" >
201
+ <input class="search_input input-font"
202
+ v-model=model.f_keyword condition="f_address like '%{}%'" />
203
+ </div>
204
+ </div>
205
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
206
+ <div class="col-xs-4">
207
+ <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
208
+ <label for="f_user_type" class="font text-left">用户类型:</label>
209
+ </div>
210
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
211
+ :width="'60%'"
212
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
213
+ v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
214
+ </div>
215
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
216
+ <div class="col-xs-6">
217
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
218
+ <label class="font text-left">到访不遇:</label>
219
+ </div>
220
+ <div class="col-xs-8" >
221
+ <input class="search_input input-font" type="number"
222
+ v-model=model.f_check_version condition="f_check_version <= '{}'" />
223
+ </div>
224
+ </div>
225
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
226
+ <div class="col-xs-6" style="text-align: center">
227
+ <span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
228
+ </div>
229
+ <div class="col-xs-6" style="text-align: center">
230
+ <span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
231
+ </div>
232
+ <div class="col-xs-6" style="text-align: center">
233
+ <span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
234
+ </div>
235
+ <div class="col-xs-6" style="text-align: center">
236
+ <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
237
+ </div>
238
+ </div>
239
+
240
+ <div class="row text-center" style="margin-top: 20px;">
241
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
242
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
243
+ <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
244
+ <img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
245
+ </div>
246
+ <div class="col-sm-12">
247
+
248
+ </div>
249
+ <!--<div class="row app-btn">-->
250
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
251
+ <!--</div>-->
252
+ <div style="height:30px;"></div>
253
+ </form>
254
+ </div>
255
+ </criteria>
256
+ <list :model="model" partial='list'>
257
+ <div partial>
258
+ <div class="auto app-text" style="margin-top: 5px;">
259
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
260
+ <div class="panel-body panel-self">
261
+
262
+ <div class="col-xs-12">
263
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
264
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
265
+ <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
266
+ <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
267
+ </p>
268
+ </div>
269
+ <div class="col-xs-12">
270
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
271
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
272
+ </div>
273
+ <div class="col-xs-6">
274
+ <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
275
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
276
+ </p>
277
+ </div>
278
+ <div class="col-xs-6">
279
+ <p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
280
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
281
+ </div>
282
+ <!-- <div class="col-xs-6">-->
283
+ <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
284
+ <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
285
+ <!-- </div>-->
286
+ <div class="col-xs-12">
287
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
288
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
289
+ <img src="../../assets/phone.png" style="width: 6%"
290
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
291
+ </p>
292
+ </div>
293
+ <div class="col-xs-12">
294
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
295
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
296
+ <img v-if="row.f_rent_phone" src="../../assets/phone.png" style="width: 6%"
297
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
298
+ </p>
299
+ </div>
300
+ <div class="col-xs-12">
301
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
302
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
303
+ <img v-if="row.f_zuhu_phone" src="../../assets/phone.png" style="width: 6%"
304
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
305
+ </p>
306
+ </div>
307
+
308
+ <div class="col-xs-12">
309
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
310
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
311
+ </div>
312
+
313
+ <!-- <div class="row">-->
314
+ <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
315
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
316
+ <!-- </div>-->
317
+ <!-- <div class="row">-->
318
+ <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
319
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
320
+ <!-- </div>-->
321
+ <!-- <div class="row">-->
322
+ <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
323
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
324
+ <!-- </div>-->
325
+ <!--<div class="row">-->
326
+ <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
327
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
328
+ <!--</div>-->
329
+ <div class="col-xs-6">
330
+ <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
331
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_state == '已检'?'临时保存':row.f_state }}</p>
332
+ </div>
333
+ <div class="col-xs-6">
334
+ <p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
335
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
336
+ </div>
337
+ <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
338
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
339
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
340
+ </div>
341
+ <div class="col-xs-6">
342
+ <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
343
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
344
+ </div>
345
+ <div class="col-xs-12">
346
+ <p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
347
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
348
+ </div>
349
+ <!--<div class="col-xs-12">-->
350
+ <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
351
+ <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
352
+ <!--</div>-->
353
+ <div class="col-xs-12">
354
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
355
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
356
+ <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
357
+ </div>
358
+ <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
359
+ <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
360
+ <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
361
+ <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
362
+ <!-- </div>-->
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </list>
368
+ </criteria-paged>
369
+ <modal :show.sync="showModal">
370
+ <div slot="modal-header" class="modal-header">
371
+ <h4 class="modal-title">
372
+ 选择预约时间
373
+ </h4>
374
+ </div>
375
+ <div slot="modal-body" class="modal-body">
376
+ <input type="datetime-local" v-model="f_preset_dt">
377
+ </div>
378
+ <div slot="modal-footer" class="modal-footer">
379
+ <button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
380
+ </div>
381
+ </modal>
382
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
383
+ <modal :show.sync="showModal2" v-ref:modal>
384
+ <div slot="modal-header" class="modal-header">
385
+ <h4 class="modal-title">
386
+ 选择计划
387
+ </h4>
388
+ </div>
389
+ <div slot="modal-body" class="modal-body">
390
+ <div class="col-xs-12">
391
+
392
+ <div class="col-xs-4">
393
+ <v-select :value.sync="check" v-model='check'
394
+ :value-single="true"
395
+ class="select_list select"
396
+ :options='checkers' placeholder='安检员'
397
+ close-on-select width="100%"></v-select>
398
+ </div>
399
+
400
+ <div class="col-xs-1">
401
+ <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
402
+ </div>
403
+ <div class="col-xs-4" style="padding-left: 2px">
404
+ <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
405
+ </div>
406
+ <div class="col-xs-1" >
407
+ <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
408
+ </div>
409
+ <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
410
+ <div class="col-xs-2" style="float: right">
411
+ <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
412
+ </div>
413
+ </div>
414
+ <table class="table table_sy">
415
+ <thead>
416
+ <tr>
417
+ <th style="width: 30px"></th>
418
+ <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
419
+ </tr>
420
+ </thead>
421
+ <tbody>
422
+ <tr v-for="row in planoption">
423
+ <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
424
+ <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
425
+
426
+
427
+ </tr>
428
+ </tbody>
429
+ </table>
430
+ </div>
431
+ <div slot="modal-footer" class="modal-footer">
432
+ <button class="btn btn-default" @click="isok()">确认</button>
433
+ <button class="btn btn-default" @click="iscancel()">取消</button>
434
+ </div>
435
+ </modal>
436
+ <modal :show.sync="showModal3" v-ref:modal>
437
+ <div slot="modal-header" class="modal-header">
438
+ <h4 class="modal-title">
439
+ 选择计划
440
+ </h4>
441
+ </div>
442
+ <div slot="modal-body" class="modal-body">
443
+ <div class="col-xs-12">
444
+
445
+ <div class="col-xs-4">
446
+ <v-select :value.sync="check" v-model='check'
447
+ :value-single="true"
448
+ class="select_list select"
449
+ :options='checkers' placeholder='安检员'
450
+ close-on-select width="100%"></v-select>
451
+ </div>
452
+
453
+ <div class="col-xs-1">
454
+ <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
455
+ </div>
456
+ <div class="col-xs-4" style="padding-left: 2px">
457
+ <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
458
+ </div>
459
+ <div class="col-xs-1" >
460
+ <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
461
+ </div>
462
+ <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
463
+ <div class="col-xs-2" style="float: right">
464
+ <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
465
+ </div>
466
+ </div>
467
+ <table class="table table_sy">
468
+ <thead>
469
+ <tr>
470
+ <th style="width: 30px"></th>
471
+ <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
472
+ </tr>
473
+ </thead>
474
+ <tbody>
475
+ <tr v-for="row in planoption">
476
+ <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
477
+ <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
478
+
479
+
480
+ </tr>
481
+ </tbody>
482
+ </table>
483
+ </div>
484
+ <div slot="modal-footer" class="modal-footer">
485
+ <button class="btn btn-default" @click="manyisok()">确认</button>
486
+ <button class="btn btn-default" @click="iscancel()">取消</button>
487
+ </div>
488
+ </modal>
489
+ </div>
490
+
491
+ </template>
492
+
493
+ <script>
494
+ import LocalPagedList from '../../plugins/LocalPagedList'
495
+ import Vue from 'vue'
496
+ import { PagedList,HttpResetClass } from 'vue-client'
497
+ import * as Util from '../Util'
498
+ import co from 'co'
499
+ let select = function * (self) {
500
+ let http = new HttpResetClass()
501
+ http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
502
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
503
+ userid: Vue.user.id
504
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
505
+ //tag
506
+ self.checkers.push({label:'全部',value:''})
507
+ res.data.forEach((checker)=>{
508
+ self.checkers.push({label:checker.name,value:checker.id})
509
+ })
510
+ })
511
+ }
512
+ export default {
513
+ title: '无计划安检查询',
514
+ props: ['planName'],
515
+ data() {
516
+ return {
517
+ f_filialeids:'('+Vue.user.orgid+')',
518
+ //f_filialeids:'(305)',
519
+ planparam:[],
520
+ check:'',
521
+ plan:'',
522
+ planid:'',
523
+ model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/rs/sql/androidGetuserinfo',20,{condition:'this.condition'}),
524
+ showModal: false,
525
+ showModal2:false,
526
+ showModal3:false,
527
+ needid:'',
528
+ criteriaShow: false,
529
+ planoption:[],
530
+ condition:'',
531
+ checkers:[],
532
+ param: null,
533
+ f_preset_dt : Util.to3339TimeString(),
534
+ flow_direction:[
535
+ {label: '请选择挂表方式', value: ''},
536
+ {label: '左表', value: '左表'},
537
+ {label: '右表', value: '右表'}
538
+ ],
539
+ check_states: [
540
+ {label: '请选择安检状态', value: ''},
541
+ {label: '未检', value: '未检'},
542
+ {label: '临时保存', value: '已检'},
543
+ ],
544
+ last_check_states: [
545
+ {label: '请选择上次安检状态', value: ''},
546
+ {label: '入户', value: '入户'},
547
+ {label: '拒检', value: '拒检'},
548
+ {label: '到访不遇', value: '到访不遇'},
549
+ {label: '未使用天然气', value: '未使用天然气'}
550
+ ],
551
+ upload_states: [
552
+ {label: '请选择上传状态', value: ''},
553
+ {label: '未传', value: '未传'},
554
+ {label: '已传', value: '已传'}
555
+ ],
556
+ user_types: [
557
+ {label: '请选择用户类型', value: ''},
558
+ {label: '民用', value: '民用'},
559
+ {label: '非民用', value: '非民用'},
560
+ ],
561
+ verify_state: [
562
+ {label: '请选择审核状态', value: ''},
563
+ {label: '未审核', value: '未审核'},
564
+ {label: '打回', value: '打回'}
565
+ ],
566
+ residentialAreaOptions: [],
567
+ buildOptions: [],
568
+ unitOptions: [],
569
+ planNameOptions: [],
570
+ upcomingCount: 0,
571
+ doneCount: 0,
572
+ tempSaveCount: 0,
573
+ allPlanCount: 0
574
+ }
575
+ },
576
+ ready(){
577
+ this.getAllArea()
578
+ this.getAllPlanName()
579
+ this.selfSearch()
580
+ let gen = select(this)
581
+ co(gen)
582
+ },
583
+ mounted(){
584
+ //tag
585
+ if (window.history && window.history.pushState) {
586
+ history.pushState(null, null, document.URL);
587
+ window.addEventListener('popstate', this.fun, false);//false阻止默认事件
588
+ }
589
+ },
590
+ destroyed(){
591
+ //tag
592
+ window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
593
+ },
594
+ methods: {
595
+ scan(){
596
+ HostApp.__this__=this,
597
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
598
+ },
599
+ getCode(){
600
+ const datapa = HostApp.getCode().data;
601
+ //tag
602
+ this.$refs.paged.$refs.cri.model.f_meter_no = datapa
603
+
604
+ },
605
+ fun () {
606
+ //tag
607
+ //tag
608
+ },
609
+ iscancel(){
610
+ this.showModal2=false
611
+ this.showModal3=false
612
+ this.planoption=[]
613
+ },
614
+ timeSet(val){
615
+ return val
616
+ },
617
+ async isok(){
618
+ if(this.planoption.length==0){
619
+ this.$showMessage("请选择计划")
620
+ return false
621
+ }
622
+ for (let i = 0; i <this.planoption.length ; i++) {
623
+ if (this.planoption[i]["selected"]==true){
624
+ this.planid=this.planoption[i].value
625
+ break
626
+ }
627
+ }
628
+ if(this.planid==''){
629
+ this.$showMessage("请选择计划")
630
+ return false
631
+ }
632
+ await this.okput()
633
+ },
634
+ async manyisok(){
635
+ if(this.planoption.length==0){
636
+ this.$showMessage("请选择计划")
637
+ return false
638
+ }
639
+ for (let i = 0; i <this.planoption.length ; i++) {
640
+ if (this.planoption[i]["selected"]==true){
641
+ this.planid=this.planoption[i].value
642
+ break
643
+ }
644
+ }
645
+ if(this.planid==''){
646
+ this.$showMessage("请选择计划")
647
+ return false
648
+ }
649
+ await this.manyokput()
650
+ },
651
+ changenull(){
652
+ this.showModal2=false
653
+ this.showModal3=false
654
+ this.planoption=[]
655
+ this.plan=''
656
+ this.check=''
657
+ },
658
+ async okput(){
659
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
660
+ condition:`i.id='`+this.needid+`'`,
661
+ f_plan_id:this.planid,
662
+ switchCheckAll:false,
663
+ checkAll:false,
664
+ f_operator:Vue.user.name
665
+ }
666
+ })
667
+ this.$showMessage("上传成功,请等待审核")
668
+ await this.changenull()
669
+ await this.getNewOrder()
670
+ },
671
+ async manyokput(){
672
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
673
+ columnName:"i.id",
674
+ condition:"1=1",
675
+ f_plan_id:this.planid,
676
+ switchCheckAll:true,
677
+ param:this.planparam,
678
+ checkAll:false,
679
+ f_operator:Vue.user.name
680
+ }
681
+ })
682
+ await this.changenull()
683
+ await this.getNewOrder()
684
+ },
685
+ async plansearch(){
686
+ this.planoption=[]
687
+ let condition= ` f_plan_year=${new Date().getFullYear()}`
688
+ if(this.check){
689
+ condition += ` and f_checker_id= '${this.check}'`
690
+ }
691
+ if(this.plan){
692
+ condition += ` and f_plan_name like '%${this.plan}%'`
693
+ }
694
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/预约计划下发`, {data:{
695
+ condition:condition,
696
+ f_filialeids:this.f_filialeids,
697
+ groupitem:'',
698
+ orderitem:'id'
699
+ }})
700
+ let resoult=res.data
701
+ for (let i = 0; i < resoult.length; i++) {
702
+ this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
703
+ }
704
+ },
705
+
706
+ select(row, idx) {
707
+ this.$set('planoption[' + idx + '].selected', true)
708
+ for (let i = 0; i <this.planoption.length ; i++) {
709
+ if (i!=idx){
710
+ this.planoption[i]["selected"]=false
711
+ }
712
+ }
713
+ },
714
+ planclose(){
715
+ this.showModal2=false
716
+ this.showModal3=false
717
+ },
718
+ queryplan(val){
719
+ this.needid=val
720
+ this.showModal2 = true
721
+ },
722
+ queryplanmany(){
723
+
724
+ this.showModal3 = true
725
+ },
726
+ reload(){
727
+ // this.getAllArea()
728
+ // this.getAllPlanName()
729
+ this.selfSearch()
730
+ },
731
+ cancelReserve (idx, id) {
732
+ if(Vue.android){
733
+ let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
734
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
735
+ if (res.code == 200) {
736
+ this.$showMessage("取消预约成功")
737
+ }
738
+ }else {
739
+ this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
740
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
741
+ if (repanse.data.code == 200) {
742
+ alert("取消预约成功!")
743
+ }
744
+ })
745
+ }},
746
+ genuineReserve () {
747
+ if(Vue.android){
748
+ if (!this.f_preset_dt) {
749
+ this.$showMessage('请选择一个日期')
750
+ return
751
+ }
752
+ let pdt = this.f_preset_dt.replace('T', ' ')
753
+ let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
754
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
755
+ if(respanse.code == 200) {
756
+ this.$showMessage("预约成功!")
757
+ }
758
+ this.showModal = false
759
+ }else {
760
+ if (!this.f_preset_dt) {
761
+ alert('请选择一个日期')
762
+ return
763
+ }
764
+ let pdt = this.f_preset_dt.replace('T', ' ')
765
+ this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
766
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
767
+ if(res.data.code == 200) {
768
+ alert("预约成功!")
769
+ }
770
+ this.showModal = false
771
+ })
772
+ }
773
+ },
774
+ inspect(row) {
775
+ var _this = this
776
+ let http = new HttpResetClass()
777
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
778
+ items: 'id',
779
+ tablename: 't_check_plan_item',
780
+ condition: `id = '${row.id}'`,
781
+ orderitem: ' id '
782
+ }}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
783
+ console.log('getcheckplan=', JSON.stringify(getcheckplan))
784
+ this.getcheckplandata = getcheckplan.data[0]
785
+ if(this.getcheckplandata){
786
+ if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检' ) ) {
787
+ _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
788
+ row['f_plan_meters'] = response.data
789
+ var pardate = {
790
+ _this:_this,
791
+ title:'安全检查',
792
+ safe:true
793
+ }
794
+ _this.$dispatch('gotoson',pardate)
795
+ //tag
796
+ _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
797
+ }).catch ((msg)=>{
798
+ this.$showMessage("网络异常,请检查网络后再试!")
799
+ })
800
+ }else{
801
+ this.$showMessage("该安检单已被上传!")
802
+ }
803
+ }else {
804
+ this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
805
+ }
806
+ })
807
+ },
808
+ makeAPhoneCall(phoneNumber) {
809
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
810
+ },
811
+ reserve (idx) {
812
+ this.param = idx
813
+ this.showModal = true
814
+ },
815
+ search(args) {
816
+ this.model.rows = []
817
+ this.model.search(args.condition, args.model)
818
+ },
819
+ selfSearch () {
820
+ this.getPlanCount()
821
+ let condition = ""
822
+ if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
823
+ condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
824
+ }else if(this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area){
825
+ condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
826
+ }
827
+ if(this.$refs.paged.$refs.cri.model.f_building)
828
+ condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
829
+ if(this.$refs.paged.$refs.cri.model.f_unit)
830
+ condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
831
+ if (this.planName){
832
+ condition += " and f_plan_name like '%"+this.planName +"%'"
833
+ }else {
834
+ if(this.$refs.paged.$refs.cri.model.f_plan_name)
835
+ condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
836
+ }
837
+ // if(this.$refs.paged.$refs.cri.model.f_plan_year)
838
+ // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
839
+ // if(this.$refs.paged.$refs.cri.model.f_plan_month)
840
+ // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
841
+ if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
842
+ condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
843
+ if(this.$refs.paged.$refs.cri.model.f_keyword)
844
+ condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
845
+ if(this.$refs.paged.$refs.cri.model.f_user_name)
846
+ condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
847
+ if(this.$refs.paged.$refs.cri.model.f_state[0])
848
+ condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
849
+ // if(this.$refs.paged.$refs.cri.model.f_last_state[0])
850
+ // condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
851
+ if(this.$refs.paged.$refs.cri.model.f_user_type[0])
852
+ condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
853
+ if(this.$refs.paged.$refs.cri.model.f_meter_no)
854
+ condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
855
+ // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
856
+ // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
857
+ if(this.$refs.paged.$refs.cri.model.f_user_phone){
858
+ condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
859
+ }
860
+ if(this.$refs.paged.$refs.cri.model.f_enter_number)
861
+ condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
862
+ if(this.$refs.paged.$refs.cri.model.f_check_version)
863
+ condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
864
+ //tag
865
+ this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检')) and ti.f_no_checkplan = '有计划安检'" + condition)
866
+ },
867
+ getNewOrder(){
868
+ HostApp.__this__ = this
869
+ HostApp.logicWithHint({
870
+ // logic别名,key必须为logic
871
+ 'logic': 'SafeCheckServiceTimeOut',
872
+ // 回调执行方法名,key必须为callback
873
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
874
+ // logic执行需要的业务参数
875
+ 'data': {params: ''},
876
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
877
+ // 执行回调方法传入key为backresult
878
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
879
+ 'backresult': 1
880
+ })
881
+ HostApp.logicWithHint({
882
+ // logic别名,key必须为logic
883
+ 'logic': 'FreshPlanItem',
884
+ // 回调执行方法名,key必须为callback
885
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
886
+ // logic执行需要的业务参数
887
+ 'data': {params: ''},
888
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
889
+ // 执行回调方法传入key为backresult
890
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
891
+ 'backresult': 1
892
+ })
893
+ },
894
+ getNewOrderCallBack() {
895
+ this.selfSearch()
896
+ this.getAllArea()
897
+ this.getAllPlanName()
898
+ },
899
+ hidden() {
900
+ this.criteriaShow = !this.criteriaShow
901
+ },
902
+ getAllArea(){
903
+ this.residentialAreaOptions = []
904
+ this.buildOptions = []
905
+ this.unitOptions = []
906
+ this.$refs.paged.$refs.cri.model.f_residential_area = ''
907
+ this.$refs.paged.$refs.cri.model.f_building = ''
908
+ this.$refs.paged.$refs.cri.model.f_unit = ''
909
+ let criteria = {
910
+ items: 'f_residential_area',
911
+ tablename: 't_check_plan_item',
912
+ condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
913
+ groupitem: 'f_residential_area'
914
+ }
915
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
916
+ //tag)
917
+ if(result.code == 200){
918
+ result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
919
+ }
920
+ //tag)
921
+ },
922
+ getbuilds(f_residential_area){
923
+ //tag)
924
+ this.buildOptions = []
925
+ this.unitOptions = []
926
+ this.$refs.paged.$refs.cri.model.f_building = ''
927
+ this.$refs.paged.$refs.cri.model.f_unit = ''
928
+ if(!f_residential_area){
929
+ return
930
+ }
931
+ let criteria = {
932
+ items: 'f_building',
933
+ tablename: 't_check_plan_item',
934
+ condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
935
+ groupitem: 'f_building order by f_building+0'
936
+ }
937
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
938
+ if(result.code == 200){
939
+ result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
940
+ }
941
+ this.buildOptions.sort((a,b)=>{
942
+ return Number(a.label)- Number(b.label)
943
+ })
944
+ //tag)
945
+ },
946
+ getUnits(f_building){
947
+ f_building = f_building[0]
948
+ //tag)
949
+ this.unitOptions = []
950
+ this.$refs.paged.$refs.cri.model.f_unit = ''
951
+ if(!f_building){
952
+ return
953
+ }
954
+ let criteria = {
955
+ items: 'f_unit',
956
+ tablename: 't_check_plan_item',
957
+ condition: `f_unit IS NOT NULL AND f_unit != '' AND f_state <> '已检' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
958
+ groupitem: 'f_unit'
959
+ }
960
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
961
+ if(result.code == 200){
962
+ result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
963
+ }
964
+ this.unitOptions.sort((a,b)=>{
965
+ return Number(a.label)- Number(b.label)
966
+ })
967
+ },
968
+ getPlanCount(){
969
+ this.upcomingCount = 0
970
+ this.tempSaveCount = 0
971
+ this.doneCount = 0
972
+ this.allPlanCount = 0
973
+ let criteria = {
974
+ items: 'count(id) count',
975
+ tablename: 't_check_plan_item',
976
+ condition: `f_state = '未检'`,
977
+ groupitem: 'f_state'
978
+ }
979
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
980
+ if(result.code && result.code == 200){
981
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
982
+ this.upcomingCount = result.data.rows[0].count
983
+ }
984
+ }
985
+ criteria = {
986
+ items: 'count(id) count',
987
+ tablename: 't_check_plan_item',
988
+ condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
989
+ groupitem: 'f_state'
990
+ }
991
+ result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
992
+ if(result.code && result.code == 200){
993
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
994
+ this.tempSaveCount = result.data.rows[0].count
995
+ }
996
+ }
997
+ criteria = {
998
+ items: 'count(id) count',
999
+ tablename: 't_check_plan_item',
1000
+ condition: `f_complete = '已完成' AND f_state = '已检'`,
1001
+ groupitem: 'f_state'
1002
+ }
1003
+ result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1004
+ if(result.code && result.code == 200){
1005
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1006
+ this.doneCount = result.data.rows[0].count
1007
+ }
1008
+ }
1009
+ this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
1010
+
1011
+ //tag
1012
+ //tag
1013
+ //tag
1014
+ //tag
1015
+ },
1016
+ getAllPlanName(){
1017
+ this.planNameOptions = []
1018
+ this.$refs.paged.$refs.cri.model.f_plan_name = ''
1019
+ let criteria = {
1020
+ items: 'f_plan_name',
1021
+ tablename: 't_check_plan',
1022
+ condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
1023
+ groupitem: 'f_plan_name'
1024
+ }
1025
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1026
+ //tag)
1027
+ if(result.code == 200){
1028
+ result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
1029
+ }
1030
+ //tag)
1031
+ },
1032
+ setPlanParam(detailsType, event) {
1033
+ if (event.srcElement.checked) {
1034
+ this.planparam.push(detailsType)
1035
+ //tag
1036
+ } else {
1037
+ if(this.planparam.length>0){
1038
+ let planid= this.planparam.findIndex((value) => {
1039
+ return value === detailsType
1040
+ })
1041
+ this.planparam.splice(planid, 1)
1042
+ //tag
1043
+
1044
+ }
1045
+
1046
+ }
1047
+ }
1048
+ }
1049
+ }
1050
+ </script>