safecheck-client 3.0.34-5 → 3.0.34-50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/FormPrint.md +18 -18
  15. package/docs/GetParams.md +11 -11
  16. package/docs/GridTree.md +47 -47
  17. package/docs/HttpBusy.md +13 -13
  18. package/docs/HttpStore.md +29 -29
  19. package/docs/MessageBox.md +28 -28
  20. package/docs/PagedList.md +29 -29
  21. package/docs/Pager.md +21 -21
  22. package/docs/PrintFile.md +38 -38
  23. package/docs/Project.md +23 -23
  24. package/docs/Route.md +105 -105
  25. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  26. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  27. package/docs/Task.md +46 -46
  28. package/docs/TreeList.md +28 -28
  29. package/docs/TreeMixin.md +18 -18
  30. package/docs/all.md +10 -10
  31. package/docs/list.md +42 -42
  32. package/docs/partial.md +75 -75
  33. package/docs/selector.md +82 -82
  34. package/docs/tree.md +40 -40
  35. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  36. 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
  37. 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
  38. 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
  39. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  40. package/examples/AddressList/App.vue +13 -13
  41. package/examples/AddressList/index.html +11 -11
  42. package/examples/DispatchList/App.vue +10 -10
  43. package/examples/DispatchList/BaseTree.vue +13 -13
  44. package/examples/DispatchList/Init.vue +22 -22
  45. package/examples/DispatchList/Test.vue +20 -20
  46. package/examples/DispatchList/index.html +11 -11
  47. package/examples/DispatchList/main.js +18 -18
  48. package/home.html +16 -16
  49. package/package.json +1 -1
  50. package/publish.bat +7 -7
  51. package/release.bat +5 -5
  52. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  53. package/src/Widget.vue +13 -13
  54. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  55. package/src/android-bootstrap/less/.csscomb.json +304 -304
  56. package/src/android-bootstrap/less/.csslintrc +19 -19
  57. package/src/android-bootstrap/less/alerts.less +73 -73
  58. package/src/android-bootstrap/less/badges.less +66 -66
  59. package/src/android-bootstrap/less/bootstrap.less +56 -56
  60. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  61. package/src/android-bootstrap/less/button-groups.less +247 -247
  62. package/src/android-bootstrap/less/buttons.less +173 -173
  63. package/src/android-bootstrap/less/carousel.less +269 -269
  64. package/src/android-bootstrap/less/close.less +34 -34
  65. package/src/android-bootstrap/less/code.less +69 -69
  66. package/src/android-bootstrap/less/component-animations.less +33 -33
  67. package/src/android-bootstrap/less/grid.less +84 -84
  68. package/src/android-bootstrap/less/input-groups.less +167 -167
  69. package/src/android-bootstrap/less/jumbotron.less +52 -52
  70. package/src/android-bootstrap/less/labels.less +64 -64
  71. package/src/android-bootstrap/less/list-group.less +141 -141
  72. package/src/android-bootstrap/less/media.less +66 -66
  73. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  74. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  75. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  76. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  77. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  78. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  79. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  80. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  81. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  82. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  83. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  84. package/src/android-bootstrap/less/mixins/image.less +33 -33
  85. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  86. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  87. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  88. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  89. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  90. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  91. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  92. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  93. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  94. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  95. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  96. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  97. package/src/android-bootstrap/less/mixins/size.less +10 -10
  98. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  99. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  100. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  101. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  102. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  103. package/src/android-bootstrap/less/mixins.less +40 -40
  104. package/src/android-bootstrap/less/modals.less +151 -151
  105. package/src/android-bootstrap/less/navbar.less +660 -660
  106. package/src/android-bootstrap/less/navs.less +290 -290
  107. package/src/android-bootstrap/less/normalize.less +424 -424
  108. package/src/android-bootstrap/less/pager.less +76 -76
  109. package/src/android-bootstrap/less/pagination.less +89 -89
  110. package/src/android-bootstrap/less/panels.less +274 -274
  111. package/src/android-bootstrap/less/popovers.less +131 -131
  112. package/src/android-bootstrap/less/print.less +101 -101
  113. package/src/android-bootstrap/less/progress-bars.less +87 -87
  114. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  115. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  116. package/src/android-bootstrap/less/scaffolding.less +161 -161
  117. package/src/android-bootstrap/less/tables.less +262 -262
  118. package/src/android-bootstrap/less/theme.less +291 -291
  119. package/src/android-bootstrap/less/thumbnails.less +36 -36
  120. package/src/android-bootstrap/less/tooltip.less +102 -102
  121. package/src/android-bootstrap/less/type.less +303 -303
  122. package/src/android-bootstrap/less/utilities.less +55 -55
  123. package/src/android-bootstrap/less/variables.less +896 -896
  124. package/src/android-bootstrap/less/wells.less +29 -29
  125. package/src/androidTest.js +20 -20
  126. package/src/assets/123.png +0 -0
  127. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  128. package/src/bootstrap/less/.csscomb.json +304 -304
  129. package/src/bootstrap/less/.csslintrc +19 -19
  130. package/src/bootstrap/less/alerts.less +73 -73
  131. package/src/bootstrap/less/badges.less +66 -66
  132. package/src/bootstrap/less/breadcrumbs.less +26 -26
  133. package/src/bootstrap/less/button-groups.less +247 -247
  134. package/src/bootstrap/less/buttons.less +172 -172
  135. package/src/bootstrap/less/carousel.less +269 -269
  136. package/src/bootstrap/less/close.less +34 -34
  137. package/src/bootstrap/less/code.less +69 -69
  138. package/src/bootstrap/less/component-animations.less +33 -33
  139. package/src/bootstrap/less/dropdowns.less +216 -216
  140. package/src/bootstrap/less/forms.less +626 -626
  141. package/src/bootstrap/less/grid.less +84 -84
  142. package/src/bootstrap/less/input-groups.less +167 -167
  143. package/src/bootstrap/less/jumbotron.less +52 -52
  144. package/src/bootstrap/less/labels.less +64 -64
  145. package/src/bootstrap/less/list-group.less +141 -141
  146. package/src/bootstrap/less/media.less +66 -66
  147. package/src/bootstrap/less/mixins/alerts.less +14 -14
  148. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  149. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  150. package/src/bootstrap/less/mixins/buttons.less +69 -69
  151. package/src/bootstrap/less/mixins/center-block.less +7 -7
  152. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  153. package/src/bootstrap/less/mixins/forms.less +90 -90
  154. package/src/bootstrap/less/mixins/gradients.less +59 -59
  155. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  156. package/src/bootstrap/less/mixins/grid.less +122 -122
  157. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  158. package/src/bootstrap/less/mixins/image.less +33 -33
  159. package/src/bootstrap/less/mixins/labels.less +12 -12
  160. package/src/bootstrap/less/mixins/list-group.less +30 -30
  161. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  162. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  163. package/src/bootstrap/less/mixins/opacity.less +8 -8
  164. package/src/bootstrap/less/mixins/pagination.less +24 -24
  165. package/src/bootstrap/less/mixins/panels.less +24 -24
  166. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  167. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  168. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  169. package/src/bootstrap/less/mixins/resize.less +6 -6
  170. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  171. package/src/bootstrap/less/mixins/size.less +10 -10
  172. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  173. package/src/bootstrap/less/mixins/table-row.less +44 -44
  174. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  175. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  176. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  177. package/src/bootstrap/less/mixins.less +40 -40
  178. package/src/bootstrap/less/modals.less +151 -151
  179. package/src/bootstrap/less/navbar.less +660 -660
  180. package/src/bootstrap/less/normalize.less +424 -424
  181. package/src/bootstrap/less/pager.less +76 -76
  182. package/src/bootstrap/less/pagination.less +89 -89
  183. package/src/bootstrap/less/panels.less +275 -275
  184. package/src/bootstrap/less/popovers.less +131 -131
  185. package/src/bootstrap/less/print.less +101 -101
  186. package/src/bootstrap/less/progress-bars.less +87 -87
  187. package/src/bootstrap/less/responsive-embed.less +35 -35
  188. package/src/bootstrap/less/responsive-utilities.less +194 -194
  189. package/src/bootstrap/less/scaffolding.less +161 -161
  190. package/src/bootstrap/less/theme.less +291 -291
  191. package/src/bootstrap/less/thumbnails.less +36 -36
  192. package/src/bootstrap/less/tooltip.less +102 -102
  193. package/src/bootstrap/less/type.less +303 -303
  194. package/src/bootstrap/less/utilities.less +55 -55
  195. package/src/bootstrap/less/wells.less +29 -29
  196. package/src/components/FileUpload.vue +696 -696
  197. package/src/components/Hello.vue +39 -39
  198. package/src/components/LeftTree.vue +27 -27
  199. package/src/components/LoadData.vue +62 -0
  200. package/src/components/android/AddGas.vue +147 -147
  201. package/src/components/android/AddressList.vue +61 -61
  202. package/src/components/android/AndroidDefectDeal.vue +1 -0
  203. package/src/components/android/AreaPlan.vue +566 -572
  204. package/src/components/android/AttendanceTally.vue +116 -116
  205. package/src/components/android/Blank.vue +10 -10
  206. package/src/components/android/CheckPlanSelect.vue +704 -0
  207. package/src/components/android/CheckUnplanPage.vue +56 -56
  208. package/src/components/android/Checker.vue +12 -12
  209. package/src/components/android/CheckerAnnual.vue +81 -81
  210. package/src/components/android/CheckerAvarta.vue +82 -82
  211. package/src/components/android/CheckerMonthly.vue +84 -84
  212. package/src/components/android/EquipmentInspection.vue +348 -348
  213. package/src/components/android/FootprintMap.vue +120 -120
  214. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  215. package/src/components/android/LcheckUnplan.vue +108 -108
  216. package/src/components/android/MasterMain.vue +77 -77
  217. package/src/components/android/Menu.vue +132 -132
  218. package/src/components/android/NavBottom.vue +157 -157
  219. package/src/components/android/PaperAlarm.vue +85 -85
  220. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  221. package/src/components/android/PaperFeedback.vue +1 -1
  222. package/src/components/android/PaperFeedbackTemp.vue +1 -1
  223. package/src/components/android/PlumberAnnual.vue +83 -83
  224. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  225. package/src/components/android/PlumberMonthly.vue +84 -84
  226. package/src/components/android/PostMap.vue +83 -83
  227. package/src/components/android/QRCode/QRCodeBinding.vue +294 -0
  228. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  229. package/src/components/android/QueryCheckHistory.vue +122 -122
  230. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  231. package/src/components/android/RepairMain.vue +60 -60
  232. package/src/components/android/Repairman.vue +12 -12
  233. package/src/components/android/SafecheckDevices.vue +1298 -1298
  234. package/src/components/android/SafecheckDevicesTemp.vue +1 -1
  235. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  236. package/src/components/android/StationMaster.vue +12 -12
  237. package/src/components/android/SwitchValve.vue +323 -323
  238. package/src/components/android/examples/SafeListExamples.vue +96 -0
  239. package/src/components/android/examples/UserExamples.vue +126 -0
  240. package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
  241. package/src/components/checkerphonestate/Checker.vue +32 -32
  242. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  243. package/src/components/defects/AddDefectModal.vue +120 -120
  244. package/src/components/defects/AddDevice.vue +95 -95
  245. package/src/components/defects/DefectModal.vue +101 -101
  246. package/src/components/defects/DevicesAndItem.vue +39 -39
  247. package/src/components/defects/DevicesSeting.vue +106 -106
  248. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  249. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  250. package/src/components/metterfiles/MetterFiles.vue +104 -104
  251. package/src/components/notice/NoticeForm.vue +100 -100
  252. package/src/components/notice/NoticeIssue.vue +20 -20
  253. package/src/components/notice/NoticeQuery.vue +76 -76
  254. package/src/components/paper/PicViewer.vue +18 -18
  255. package/src/components/paper/RepairVerifyForm.vue +76 -76
  256. package/src/components/phonestate/DailyTraffic.vue +57 -57
  257. package/src/components/phonestate/LastKnownState.vue +74 -74
  258. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  259. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  260. package/src/components/phonestate/PostMap.vue +82 -82
  261. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  262. package/src/components/rongcheng/AddPlanItem.vue +4 -0
  263. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  264. package/src/components/rongcheng/CheckSearchUser.vue +40 -14
  265. package/src/components/rongcheng/PaperStatem.vue +6 -1
  266. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  267. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  268. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  269. package/src/components/task/RepairAnnual.vue +79 -79
  270. package/src/components/task/RepairAnnualDetail.vue +49 -49
  271. package/src/components/task/RepairMonthly.vue +91 -91
  272. package/src/components/task/TaskAnnual.vue +77 -77
  273. package/src/components/task/TaskAnnualDetail.vue +47 -47
  274. package/src/components/task/TaskMonthly.vue +89 -89
  275. package/src/components/userfile/MeterFile.vue +145 -145
  276. package/src/components/userfile/MeterModify.vue +46 -46
  277. package/src/components/userfile/UserfileChange.vue +277 -277
  278. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  279. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
  280. package/src/filiale/baiyin/android.js +1 -0
  281. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  282. package/src/filiale/baiyin/pc.js +21 -21
  283. package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
  284. package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
  285. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  286. package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
  287. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  288. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  289. package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
  290. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
  291. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
  292. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  293. package/src/filiale/huaran/android.js +12 -0
  294. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  295. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  296. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  297. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  298. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  299. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  300. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  301. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  302. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  303. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  304. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  305. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  306. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  307. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  308. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  309. package/src/filiale/huaran/pc.js +27 -0
  310. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  311. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  312. package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
  313. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
  314. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  315. package/src/filiale/jiaxian/android.js +4 -0
  316. package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
  317. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  318. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  319. package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
  320. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  321. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
  322. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  323. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  324. package/src/filiale/ruihua/android.js +11 -0
  325. package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
  326. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  327. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
  328. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  329. package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
  330. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  331. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  332. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  333. package/src/filiale/siyang/pc.js +21 -16
  334. package/src/filiale/tongchuan/android/Select.vue +421 -0
  335. package/src/filiale/tongchuan/android.js +1 -0
  336. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  337. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  338. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  339. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  340. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  341. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
  342. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  343. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  344. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  345. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  346. package/src/filiale/weinan/pc/checkUserList.vue +34 -113
  347. package/src/filiale/weinan/pc.js +47 -46
  348. package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
  349. package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
  350. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
  351. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
  352. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
  353. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  354. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  355. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
  356. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
  357. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  358. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
  359. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
  360. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  361. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  362. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
  363. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
  364. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  365. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  366. package/src/plugins/LoadData.js +10 -10
  367. package/src/plugins/LoadParams.js +24 -24
  368. package/src/safecheck-android.js +301 -296
  369. package/src/stores/wxconfig.js +10 -10
  370. package/src/utils/getNowDate.js +33 -33
  371. package/test/e2e/custom-assertions/elementCount.js +26 -26
  372. package/test/e2e/nightwatch.conf.js +40 -40
  373. package/test/e2e/runner.js +30 -30
  374. package/test/e2e/specs/test.js +13 -13
  375. package/test/unit/.eslintrc +5 -5
  376. package/test/unit/TestUtil.js +62 -62
  377. package/test/unit/context.html +20 -20
  378. package/test/unit/index.js +13 -13
@@ -0,0 +1,11 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ // 手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
7
+ 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
8
+ }
9
+
10
+ exports.specialComp = specialComp
11
+
@@ -439,7 +439,6 @@
439
439
  if (this.role == 'androidview') {
440
440
  return
441
441
  }
442
- const obj = HostApp.getGpsDetailAddress()
443
442
  HostApp.__callback__ = this.cameraCallBack
444
443
  HostApp.__this__ = this
445
444
  //tag
@@ -459,6 +458,7 @@
459
458
  }
460
459
  let jingweidu = ''
461
460
  if (this.$parent.$parent.is_has_jingweidu == 'true'){
461
+ const obj = HostApp.getGpsDetailAddress()
462
462
  jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
463
463
  }
464
464
  //tag
@@ -425,7 +425,6 @@ export default {
425
425
  HostApp.__this__ = null
426
426
  },
427
427
  takePic(type, prop, title) {
428
- const obj = HostApp.getGpsDetailAddress()
429
428
  HostApp.__callback__ = this.cameraCallBack
430
429
  HostApp.__this__ = this
431
430
  //tag
@@ -451,6 +450,7 @@ export default {
451
450
  }
452
451
  let jingweidu = ''
453
452
  if (this.$parent.$parent.is_has_jingweidu == 'true') {
453
+ const obj = HostApp.getGpsDetailAddress()
454
454
  jingweidu = '\t经度:' + obj.longitude + '\t纬度:' + obj.latitude
455
455
  }
456
456
  let page = 'com.aofeng.hybrid.android.peripheral.CameraActivity'
@@ -0,0 +1,645 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+
9
+ <div class="col-sm-3 form-group" style="margin-bottom: 0px">
10
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
11
+ <right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="ta.f_orgid in {}"></right-tree-safe>
12
+ </div>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body">小区名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_residential_area"
16
+ style="width: 60%" placeholder="小区名称" condition="f_residential_area like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">街&emsp;&emsp;道</label>
20
+ <v-select :value.sync="model.f_street" v-model='model.f_street'
21
+ :value-single="true" style="width: 60%"
22
+ class="select_list select"
23
+ :options='$parent.$parent.streetList' placeholder='街道'
24
+ close-on-select
25
+ condition="f_street = '{}''"></v-select>
26
+ </div>
27
+ <div class="form-group col-sm-3">
28
+ <label class="font_normal_body">站&emsp;&emsp;点</label>
29
+ <v-select :value.sync="model.f_slice_area" v-model='model.f_slice_area'
30
+ :value-single="true" style="width: 60%"
31
+ class="select_list select"
32
+ :options='$parent.$parent.sliceAreaList' placeholder='站点'
33
+ close-on-select
34
+ condition="f_slice_area = '{}''"></v-select>
35
+ </div>
36
+ <div class="form-group col-sm-3">
37
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
38
+ <v-select :value.sync="model.f_area_address" v-model='model.f_area_address'
39
+ :value-single="true" style="width: 60%"
40
+ class="select_list select"
41
+ :options='$parent.$parent.areaAddressList' placeholder='地址'
42
+ close-on-select
43
+ condition="f_area_address = '{}''"></v-select>
44
+ </div>
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">是否在册</label>
47
+ <v-select :value.sync="model.f_is_checkbook" v-model='model.f_is_checkbook'
48
+ :value-single="true" style="width: 60%"
49
+ class="select_list select"
50
+ @change="$parent.$parent.changeState"
51
+ :options='$parent.$parent.isCheckBook' placeholder='有无所属片区'
52
+ close-on-select
53
+ condition="{}"></v-select>
54
+ </div>
55
+ <div class="form-group col-sm-3">
56
+ <button class="button_spacing button_search" @click="search()">查询</button>
57
+ <!-- <div style="float: right" class="button_spacing"
58
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
59
+ @click="$parent.$parent.hidden()"></div>-->
60
+ </div>
61
+
62
+
63
+
64
+
65
+ </div>
66
+ </div>
67
+ </criteria>
68
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
69
+ <template partial='head'>
70
+ <tr @dblclick.stop="">
71
+ <th>
72
+ <nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>省/市/区</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>街道</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>片区/管理站</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>小区(单位)名称</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>小区(单位)地址</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>所属片区</nobr>
91
+ </th>
92
+ </tr>
93
+ </template>
94
+ <template partial='body'>
95
+ <td style="text-align: center">
96
+ <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
97
+ @change="$parent.$parent.$parent.checkChange(row, $event)"></input>
98
+ </nobr>
99
+ </td>
100
+ <td style="text-align: center">{{ row.f_pcd }}</td>
101
+ <td style="text-align: center">{{ row.f_street }}</td>
102
+ <td style="text-align: center">{{ row.f_slice_area }}</td>
103
+ <td style="text-align: center">{{ row.f_residential_area }}</td>
104
+ <td style="text-align: center">{{ row.f_area_address }}</td>
105
+ <td style="text-align: center">{{ row.f_check_book_name }}</td>
106
+ </template>
107
+ </data-grid>
108
+ </criteria-paged>
109
+ </div>
110
+ <modal :show.sync="showModal" :backdrop="false">
111
+ <div slot="modal-header" class="modal-header">
112
+ <h4 class="modal-title">
113
+ 创建片区
114
+ </h4>
115
+ </div>
116
+ <div slot="modal-body" class="modal-body">
117
+ <div v-if="true">
118
+ <div class="row" style="margin-top: 10px">
119
+
120
+ <div class="col-sm-12 form-group" style="margin: 0">
121
+ <role-selector-safe
122
+ @re-res="getRes"
123
+ role-name="安检员"
124
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
125
+ :value.sync="checkBook.f_checker_name"
126
+ v-model="checkBook.f_checker_name">
127
+ </role-selector-safe>
128
+ </div>
129
+ <div class="form-group col-sm-6" style="margin-top: 20px">
130
+ <label class="font_normal_body">片区名</label>
131
+ <input type="text" class="input_search" v-model="checkBook.f_check_book_name"
132
+ style="width: 60%" >
133
+ </div>
134
+ <div class="form-group col-sm-6" style="margin-top: 20px">
135
+ <label class="font_normal_body">执行日期</label>
136
+ <datepicker
137
+ :value.sync="checkBook.f_run_date"
138
+ style="width: 60%"
139
+ :format="'yyyy-MM-dd'"
140
+ v-model="checkBook.f_run_date"
141
+ >
142
+ </datepicker>
143
+ </div>
144
+ <div class="form-group col-sm-6" style="margin-top: 20px">
145
+ <label class="font_normal_body">执行周期</label>
146
+ <input type="number" class="input_search" v-model="checkBook.f_around_time"
147
+ style="width: 60%" >
148
+ </div>
149
+ <div class="form-group col-sm-6" style="margin-top: 20px">
150
+ <label class="font_normal_body">周期单位</label>
151
+ <v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
152
+ :value-single="true" style="width: 60%"
153
+ class="select_list select"
154
+ :options='aroundUnit' placeholder=''
155
+ close-on-select></v-select>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
161
+ <button class="button_search" style="margin-right: 20px" @click="ok">确认</button>
162
+ <button class="button_search" @click="cancel">取消</button>
163
+ </div>
164
+ </modal>
165
+ <modal :show.sync="showModal2" :backdrop="false">
166
+ <div slot="modal-header" class="modal-header">
167
+ <h4 class="modal-title">
168
+ 添加用户
169
+ </h4>
170
+ </div>
171
+ <div slot="modal-body" class="modal-body">
172
+ <div v-if="true">
173
+ <div class="row" style="margin-top: 10px">
174
+ <div class="form-group col-sm-12" style="margin-top: 20px">
175
+ <label class="font_normal_body">安&ensp;检&ensp;册</label>
176
+ <v-select :value.sync="selectBook" v-model='selectBook'
177
+ :value-single="true" style="width: 80%"
178
+ class="select_list select"
179
+ :options='checkBooks' placeholder=''
180
+ close-on-select></v-select>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
186
+ <button class="button_search" style="margin-right: 20px" @click="ok2">确认</button>
187
+ <button class="button_search" @click="cancel2">取消</button>
188
+ </div>
189
+ </modal>
190
+ <modal :show.sync="showModal3" :backdrop="false">
191
+ <div slot="modal-header" class="modal-header">
192
+ <h4 class="modal-title">
193
+ 调整用户
194
+ </h4>
195
+ </div>
196
+ <div slot="modal-body" class="modal-body">
197
+ <div v-if="true">
198
+ <div class="row" style="margin-top: 10px;text-align: center">
199
+ <div class="form-group col-sm-12" style="margin-top: 20px">
200
+ <label class="font_normal_body">安&ensp;检&ensp;册</label>
201
+ <v-select :value.sync="selectBook" v-model='selectBook'
202
+ :value-single="true" style="width: 80%"
203
+ class="select_list select"
204
+ :options='checkBooks' placeholder=''
205
+ close-on-select></v-select>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
211
+ <button class="button_search" style="margin-right: 20px" @click="ok3">确认</button>
212
+ <button class="button_search" @click="cancel3">取消</button>
213
+ </div>
214
+ </modal>
215
+
216
+ </div>
217
+ </template>
218
+
219
+ <script>
220
+ import {PagedList, HttpResetClass} from 'vue-client'
221
+ import * as Util from '../../../components/Util'
222
+ import bus from "../../../bus";
223
+
224
+ export default {
225
+ title: '片区管理',
226
+ data () {
227
+ let model = new PagedList('rs/sql/safe_singleTable_OrderBy', 20,{
228
+ items: "'ta.*,tcb.f_check_book_name'",
229
+ tablename: "'t_area ta left join t_check_book tcb on ta.f_check_book_id=tcb.id'",
230
+ orderitem: "'ta.id desc'"
231
+ })
232
+ return {
233
+ streetList:[{label: '全部', value: ''}],
234
+ sliceAreaList:[{label: '全部', value: ''}],
235
+ areaAddressList:[{label: '全部', value: ''}],
236
+ model: model,
237
+ criteriaShow: false,
238
+ excelHeaders: {},
239
+ checkBooks: [],
240
+ f_orgid: '',
241
+ bookAll: false,
242
+ bookList: [],
243
+ selectBook:'',
244
+ // init:false,
245
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '月'}],
246
+ isCheckBook: [{label: '全部', value: ''}, {label: '是', value: 'ta.f_check_book_id is not null'}, {label: '否', value: 'ta.f_check_book_id is null'}],
247
+ isSearch: false,
248
+ checkBook: {
249
+ f_check_book_name: '',
250
+ f_run_date: '',
251
+ f_around_time: '',
252
+ f_around_unit: '',
253
+ f_create_date: Util.toStandardDateString(),
254
+ f_create_person: this.$login.f.name,
255
+ f_orgid: '',
256
+ f_checker_name: ''
257
+ },
258
+ showModal: false,
259
+ showModal2: false,
260
+ showModal3: false
261
+ }
262
+ },
263
+ beforeDestroy() {
264
+ //tag
265
+ bus.$off('fresh-area')
266
+ },
267
+ computed: {
268
+ searchData () {
269
+ return {condition: this.model.condition}
270
+ },
271
+ bookCondition () {
272
+ return this.model.condition
273
+ },
274
+ isCreateBook () {
275
+ return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is null'
276
+ },
277
+ isChangeBook () {
278
+ return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is not null'
279
+ }
280
+ },
281
+ watch:{
282
+ 'bookList'(){
283
+ this.$emit('book-list',this.bookList)
284
+ },
285
+ 'bookAll'(val){
286
+ if(!val){
287
+ this.bookList=[]
288
+ }
289
+ this.$emit('book-all',this.bookAll)
290
+ }
291
+ },
292
+ methods: {
293
+ async initAreaAddressList(){
294
+ let res = await new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
295
+ data: {
296
+ items: 'f_area_address',
297
+ tablename: 't_area',
298
+ condition: `1=1`,
299
+ groupitem: 'f_area_address'
300
+ }
301
+ }, {resolveMsg: null, rejectMsg: null})
302
+ res.data.forEach(item => {
303
+ this.areaAddressList.push({
304
+ label: item.f_area_address,
305
+ value: item.f_area_address
306
+ })
307
+ })
308
+ },
309
+ async initStreetList(){
310
+ let res = await new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
311
+ data: {
312
+ items: 'f_street',
313
+ tablename: 't_area',
314
+ condition: `1=1`,
315
+ groupitem: 'f_street'
316
+ }
317
+ }, {resolveMsg: null, rejectMsg: null})
318
+ res.data.forEach(item => {
319
+ this.streetList.push({
320
+ label: item.f_street,
321
+ value: item.f_street
322
+ })
323
+ })
324
+ },
325
+ async initSliceAreaList(){
326
+ let res = await new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
327
+ data: {
328
+ items: 'f_slice_area',
329
+ tablename: 't_area',
330
+ condition: `1=1`,
331
+ groupitem: 'f_slice_area'
332
+ }
333
+ }, {resolveMsg: null, rejectMsg: null})
334
+ res.data.forEach(item => {
335
+ this.sliceAreaList.push({
336
+ label: item.f_slice_area,
337
+ value: item.f_slice_area
338
+ })
339
+ })
340
+ },
341
+ async ok2() {
342
+ if (!this.selectBook) {
343
+ this.$showMessage('请选择片区')
344
+ return
345
+ }
346
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
347
+ let userCondition = ''
348
+ if (this.bookList.length < 1) {
349
+ //tag
350
+ userCondition = this.bookCondition
351
+ } else {
352
+ //tag)
353
+
354
+ userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
355
+ userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
356
+ //tag
357
+ }
358
+ let addUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
359
+ FROM
360
+ t_userinfo tui
361
+ LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
362
+ LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
363
+ LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
364
+ WHERE
365
+ tui.f_user_state = '正常'
366
+ AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
367
+ AND ${userCondition}`
368
+ await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: addUser}},
369
+ {resolveMsg: null, rejectMsg: '添加用户失败'})
370
+ this.$showMessage('添加用户成功')
371
+ this.selectBook = ''
372
+ this.bookAll = false
373
+ this.bookList = []
374
+ this.showModal2 = false
375
+ this.$refs.paged.$refs.criteria.search()
376
+ }
377
+ },
378
+ async ok3() {
379
+ if (!this.selectBook) {
380
+ this.$showMessage('请选择片区')
381
+ return
382
+ }
383
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
384
+ let userCondition = ''
385
+ if (this.bookList.length < 1) {
386
+ //tag
387
+ userCondition = this.bookCondition
388
+ } else {
389
+ //tag)
390
+
391
+ userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
392
+ userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
393
+ //tag
394
+ }
395
+ let upUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
396
+ FROM
397
+ t_userinfo tui
398
+ LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
399
+ LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
400
+ LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
401
+ WHERE
402
+ tui.f_user_state = '正常'
403
+ AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
404
+ AND ${userCondition}`
405
+ await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: upUser}},
406
+ {resolveMsg: null, rejectMsg: '调整用户失败'})
407
+ this.$showMessage('调整用户成功')
408
+ this.selectBook = ''
409
+ this.bookAll = false
410
+ this.bookList = []
411
+ this.showModal3 = false
412
+ this.$refs.paged.$refs.criteria.search()
413
+ }
414
+ },
415
+ cancel2(){
416
+ this.selectBook = ''
417
+ this.bookAll = false
418
+ this.bookList = []
419
+ this.showModal2 = false
420
+ this.$refs.paged.$refs.criteria.search()
421
+ },
422
+ cancel3(){
423
+ this.selectBook = ''
424
+ this.bookAll = false
425
+ this.bookList = []
426
+ this.showModal3 = false
427
+ this.$refs.paged.$refs.criteria.search()
428
+ },
429
+ addUser () {
430
+ if (!this.isCreateBook) {
431
+ this.$showMessage('请选择查询未划分片区的用户')
432
+ return
433
+ }
434
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
435
+ this.showModal2 = true
436
+ this.freshCheckBook()
437
+ return
438
+ }
439
+ this.$showMessage('请选择用户')
440
+ },
441
+ upUser () {
442
+ if (!this.isChangeBook) {
443
+ this.$showMessage('请选择查询已划分片区的用户')
444
+ return
445
+ }
446
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
447
+ this.showModal3 = true
448
+ this.freshCheckBook()
449
+ return
450
+ }
451
+ this.$showMessage('请选择用户')
452
+ },
453
+ async delUser () {
454
+ if (!this.isChangeBook) {
455
+ this.$showMessage('请选择查询已划分片区的用户')
456
+ return
457
+ }
458
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
459
+ let userCondition= ''
460
+ if (this.bookList.length < 1) {
461
+ //tag
462
+ userCondition = this.bookCondition
463
+ } else {
464
+ //tag)
465
+
466
+ userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
467
+ userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
468
+ //tag
469
+ }
470
+ let delUser= `update t_user_address set f_check_book_id =null
471
+ FROM
472
+ t_userinfo tui
473
+ LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
474
+ LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
475
+ LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
476
+ WHERE
477
+ tui.f_user_state = '正常'
478
+ AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
479
+ AND ${userCondition}`
480
+ await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: delUser}},
481
+ {resolveMsg: null, rejectMsg: '删除片区失败'})
482
+ this.$showMessage('从片区删除所选用户成功')
483
+ this.selectBook = ''
484
+ this.bookAll = false
485
+ this.bookList = []
486
+ this.showModal3 = false
487
+ this.$refs.paged.$refs.criteria.search()
488
+ return
489
+ }
490
+ this.$showMessage('请选择用户')
491
+ },
492
+ beforeCreateBook () {
493
+ if (!this.isCreateBook) {
494
+ this.$showMessage('请选择查询未划分片区的用户')
495
+ return
496
+ }
497
+ if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
498
+ this.showModal = true
499
+ return
500
+ }
501
+ this.$showMessage('请选择用户')
502
+ },
503
+ ok () {
504
+ //tag)
505
+ let condition = ''
506
+ if (!this.checkBook.f_check_book_name) {
507
+ return this.$showMessage('请填写册名')
508
+ }
509
+ if (!this.checkBook.f_checker_name) {
510
+ return this.$showMessage('请选择安检员')
511
+ }
512
+ if (!this.checkBook.f_around_time || !this.checkBook.f_around_unit) {
513
+ return this.$showMessage('请选填写周期信息')
514
+ }
515
+ if (!this.checkBook.f_run_date) {
516
+ return this.$showMessage('执行日期')
517
+ }
518
+ if (this.bookList.length < 1) {
519
+ //tag
520
+ condition = this.bookCondition
521
+ } else {
522
+ //tag)
523
+
524
+ condition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
525
+ condition = 'tui.f_userinfo_id in (' + condition + ')'
526
+ //tag
527
+ }
528
+ let data = {
529
+ checkBook: this.checkBook,
530
+ sqlStr: condition
531
+ }
532
+ new HttpResetClass().load('post', 'rs/logic/AddCheckBook', {data}).then(res => {
533
+ //tag)
534
+ if (res.data.id) {
535
+ this.$showMessage('创建成功')
536
+ this.showModal = false
537
+ this.isSearch = false
538
+ this.bookList = []
539
+ this.bookAll = false
540
+ this.freshCheckBook()
541
+ this.$refs.paged.$refs.criteria.search()
542
+ }
543
+ })
544
+ },
545
+ changeState (val) {
546
+ //tag
547
+ //tag
548
+ this.bookAll = false
549
+ this.bookList = []
550
+ if (this.$refs.paged.$refs.criteria.model.f_orgid){
551
+ this.$refs.paged.$refs.criteria.search()
552
+ }
553
+ },
554
+ cancel () {
555
+ this.bookAll = false
556
+ this.bookList = []
557
+ this.showModal = false
558
+ this.$refs.paged.$refs.criteria.search()
559
+ },
560
+ checkModel (row) {
561
+ if (this.bookAll) {
562
+ //tag)
563
+ return true
564
+ } else {
565
+ if (this.bookList.findIndex(res => res === row.id) !== -1) {
566
+ return true
567
+ } else {
568
+ return false
569
+ }
570
+ }
571
+ },
572
+ checkChange (row, e) {
573
+ //tag
574
+ if (e.target.checked) {
575
+ this.bookList.push(row.id)
576
+ } else {
577
+ this.bookList.splice(this.bookList.findIndex(res => res === row.id), 1)
578
+ }
579
+ // //tag)
580
+ },
581
+ getRes (obj) {
582
+ this.checkBook.f_orgid = obj.resids[0]
583
+ },
584
+ getResm (obj) {
585
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.$login.convertToIn(obj.resids)
586
+ },
587
+ hidden () {
588
+ this.criteriaShow = !this.criteriaShow
589
+ },
590
+ selfSearch (args) {
591
+ this.isSearch = true
592
+ this.bookAll = false
593
+ this.bookList = []
594
+
595
+ console.log("查询66666666666666666")
596
+ this.$emit('book-condition',args.condition)
597
+ // if (this.$refs.paged.$refs.criteria.model.f_orgid){
598
+ // args.condition += `f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`
599
+ // }
600
+ this.model.search(args.condition, args.model)
601
+ },
602
+ freshCheckBook () {
603
+ this.checkBooks = []
604
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
605
+ data: {
606
+ items: 'id,f_check_book_name',
607
+ tablename: 't_check_book',
608
+ condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`:'1=1',
609
+ orderitem: 'id desc'
610
+ }
611
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
612
+ this.checkBooks.push({label: '全部', value: ''})
613
+ res.data.forEach(ress => {
614
+ this.checkBooks.push({
615
+ label: ress.f_check_book_name,
616
+ value: ress.id
617
+ })
618
+ })
619
+ })
620
+ }
621
+ },
622
+
623
+ async ready () {
624
+ await this.initStreetList()
625
+ await this.initSliceAreaList()
626
+ await this.initAreaAddressList()
627
+ bus.$on('fresh-area',()=>{
628
+ console.log("进入方法",this.bookAll,this.bookList)
629
+ this.bookAll = false
630
+ this.bookList = []
631
+ this.$refs.paged.$refs.criteria.search()
632
+ })
633
+ this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'ta.f_check_book_id is null'
634
+ //tag
635
+ // this.init=true
636
+ this.freshCheckBook()
637
+ }
638
+ }
639
+ </script>
640
+ <style scoped>
641
+ /*.btn-group > .btn:first-child {*/
642
+ /* margin-left: 0;*/
643
+ /* width: 100%;*/
644
+ /*}*/
645
+ </style>