safecheck-client 4.0.1-7 → 4.0.1-71

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 (524) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  34. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +5 -5
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/App.vue +31 -31
  49. package/src/Widget.vue +13 -13
  50. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  51. package/src/android-bootstrap/less/.csscomb.json +304 -304
  52. package/src/android-bootstrap/less/.csslintrc +19 -19
  53. package/src/android-bootstrap/less/alerts.less +73 -73
  54. package/src/android-bootstrap/less/badges.less +66 -66
  55. package/src/android-bootstrap/less/bootstrap.less +56 -56
  56. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  57. package/src/android-bootstrap/less/button-groups.less +247 -247
  58. package/src/android-bootstrap/less/buttons.less +173 -173
  59. package/src/android-bootstrap/less/carousel.less +269 -269
  60. package/src/android-bootstrap/less/close.less +34 -34
  61. package/src/android-bootstrap/less/code.less +69 -69
  62. package/src/android-bootstrap/less/component-animations.less +33 -33
  63. package/src/android-bootstrap/less/grid.less +84 -84
  64. package/src/android-bootstrap/less/input-groups.less +167 -167
  65. package/src/android-bootstrap/less/jumbotron.less +52 -52
  66. package/src/android-bootstrap/less/labels.less +64 -64
  67. package/src/android-bootstrap/less/list-group.less +141 -141
  68. package/src/android-bootstrap/less/media.less +66 -66
  69. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  70. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  71. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  72. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  73. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  74. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  75. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  76. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  77. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  78. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  79. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  80. package/src/android-bootstrap/less/mixins/image.less +33 -33
  81. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  82. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  83. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  84. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  85. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  86. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  87. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  88. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  89. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  90. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  91. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  92. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  93. package/src/android-bootstrap/less/mixins/size.less +10 -10
  94. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  95. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  96. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  97. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  98. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  99. package/src/android-bootstrap/less/mixins.less +40 -40
  100. package/src/android-bootstrap/less/modals.less +151 -151
  101. package/src/android-bootstrap/less/navbar.less +660 -660
  102. package/src/android-bootstrap/less/navs.less +290 -290
  103. package/src/android-bootstrap/less/normalize.less +424 -424
  104. package/src/android-bootstrap/less/pager.less +76 -76
  105. package/src/android-bootstrap/less/pagination.less +89 -89
  106. package/src/android-bootstrap/less/panels.less +274 -274
  107. package/src/android-bootstrap/less/popovers.less +131 -131
  108. package/src/android-bootstrap/less/print.less +101 -101
  109. package/src/android-bootstrap/less/progress-bars.less +87 -87
  110. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  111. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  112. package/src/android-bootstrap/less/scaffolding.less +161 -161
  113. package/src/android-bootstrap/less/tables.less +262 -262
  114. package/src/android-bootstrap/less/theme.less +291 -291
  115. package/src/android-bootstrap/less/thumbnails.less +36 -36
  116. package/src/android-bootstrap/less/tooltip.less +102 -102
  117. package/src/android-bootstrap/less/type.less +303 -303
  118. package/src/android-bootstrap/less/utilities.less +55 -55
  119. package/src/android-bootstrap/less/variables.less +896 -896
  120. package/src/android-bootstrap/less/wells.less +29 -29
  121. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  122. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  123. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  124. package/src/bootstrap/less/.csscomb.json +304 -304
  125. package/src/bootstrap/less/.csslintrc +19 -19
  126. package/src/bootstrap/less/alerts.less +73 -73
  127. package/src/bootstrap/less/badges.less +66 -66
  128. package/src/bootstrap/less/breadcrumbs.less +26 -26
  129. package/src/bootstrap/less/button-groups.less +247 -247
  130. package/src/bootstrap/less/buttons.less +172 -172
  131. package/src/bootstrap/less/carousel.less +269 -269
  132. package/src/bootstrap/less/close.less +34 -34
  133. package/src/bootstrap/less/code.less +69 -69
  134. package/src/bootstrap/less/component-animations.less +33 -33
  135. package/src/bootstrap/less/dropdowns.less +216 -216
  136. package/src/bootstrap/less/grid.less +84 -84
  137. package/src/bootstrap/less/input-groups.less +167 -167
  138. package/src/bootstrap/less/jumbotron.less +52 -52
  139. package/src/bootstrap/less/labels.less +64 -64
  140. package/src/bootstrap/less/list-group.less +141 -141
  141. package/src/bootstrap/less/media.less +66 -66
  142. package/src/bootstrap/less/mixins/alerts.less +14 -14
  143. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  144. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  145. package/src/bootstrap/less/mixins/buttons.less +69 -69
  146. package/src/bootstrap/less/mixins/center-block.less +7 -7
  147. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  148. package/src/bootstrap/less/mixins/forms.less +90 -90
  149. package/src/bootstrap/less/mixins/gradients.less +59 -59
  150. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  151. package/src/bootstrap/less/mixins/grid.less +122 -122
  152. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  153. package/src/bootstrap/less/mixins/image.less +33 -33
  154. package/src/bootstrap/less/mixins/labels.less +12 -12
  155. package/src/bootstrap/less/mixins/list-group.less +30 -30
  156. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  157. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  158. package/src/bootstrap/less/mixins/opacity.less +8 -8
  159. package/src/bootstrap/less/mixins/pagination.less +24 -24
  160. package/src/bootstrap/less/mixins/panels.less +24 -24
  161. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  162. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  163. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  164. package/src/bootstrap/less/mixins/resize.less +6 -6
  165. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  166. package/src/bootstrap/less/mixins/size.less +10 -10
  167. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  168. package/src/bootstrap/less/mixins/table-row.less +44 -44
  169. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  170. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  171. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  172. package/src/bootstrap/less/mixins.less +40 -40
  173. package/src/bootstrap/less/modals.less +151 -151
  174. package/src/bootstrap/less/navbar.less +660 -660
  175. package/src/bootstrap/less/normalize.less +424 -424
  176. package/src/bootstrap/less/pagination.less +89 -89
  177. package/src/bootstrap/less/panels.less +275 -275
  178. package/src/bootstrap/less/popovers.less +131 -131
  179. package/src/bootstrap/less/print.less +101 -101
  180. package/src/bootstrap/less/progress-bars.less +87 -87
  181. package/src/bootstrap/less/responsive-embed.less +35 -35
  182. package/src/bootstrap/less/responsive-utilities.less +194 -194
  183. package/src/bootstrap/less/scaffolding.less +161 -161
  184. package/src/bootstrap/less/theme.less +291 -291
  185. package/src/bootstrap/less/thumbnails.less +36 -36
  186. package/src/bootstrap/less/tooltip.less +102 -102
  187. package/src/bootstrap/less/type.less +303 -303
  188. package/src/bootstrap/less/utilities.less +55 -55
  189. package/src/bootstrap/less/wells.less +29 -29
  190. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  191. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  192. package/src/components/FileUpload.vue +696 -696
  193. package/src/components/Hello.vue +39 -39
  194. package/src/components/LeftTree.vue +27 -27
  195. package/src/components/NewDefectList/DefectListNew.vue +682 -663
  196. package/src/components/android/AddPlanItem.vue +447 -447
  197. package/src/components/android/AddPlanItemYy.vue +451 -451
  198. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  199. package/src/components/android/AndroidDefectDeal.vue +667 -634
  200. package/src/components/android/AndroidDefectDetails.vue +3 -3
  201. package/src/components/android/AppInstallationMaterial.vue +865 -0
  202. package/src/components/android/AttendanceTally.vue +116 -116
  203. package/src/components/android/Blank.vue +10 -10
  204. package/src/components/android/CheckUnplanPage.vue +56 -56
  205. package/src/components/android/Checker.vue +12 -12
  206. package/src/components/android/CheckerAnnual.vue +81 -81
  207. package/src/components/android/CheckerAvarta.vue +82 -82
  208. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  209. package/src/components/android/DailyworkloadQuery.vue +473 -472
  210. package/src/components/android/Devices.vue +327 -327
  211. package/src/components/android/Devicesm.vue +327 -327
  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/MasterMain.vue +77 -77
  216. package/src/components/android/Menu.vue +132 -132
  217. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1369
  218. package/src/components/android/PaperAlarm.vue +85 -85
  219. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  220. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  221. package/src/components/android/PhoneRecordInfo.vue +113 -113
  222. package/src/components/android/PhoneSellInfo.vue +113 -113
  223. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  224. package/src/components/android/PlumberAnnual.vue +83 -83
  225. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  226. package/src/components/android/PlumberMonthly.vue +84 -84
  227. package/src/components/android/PostMap.vue +83 -83
  228. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  229. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  230. package/src/components/android/QueryCheckHistory.vue +122 -122
  231. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  232. package/src/components/android/RepairMain.vue +60 -60
  233. package/src/components/android/Repairman.vue +12 -12
  234. package/src/components/android/SafePlanItem.vue +509 -509
  235. package/src/components/android/StationMaster.vue +12 -12
  236. package/src/components/android/SwitchValve.vue +1 -1
  237. package/src/components/android/examples/SafeListExamples.vue +296 -296
  238. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  239. package/src/components/android/recheck/Recheck.vue +402 -402
  240. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  241. package/src/components/checkplan/CheckDetail.vue +1 -1
  242. package/src/components/checkplan/checkmsg.vue +459 -459
  243. package/src/components/defect/DefectList.vue +507 -507
  244. package/src/components/defect/DefectListWeixiu.vue +484 -484
  245. package/src/components/defects/DefectModal.vue +101 -101
  246. package/src/components/defects/DevicesAndItem.vue +39 -39
  247. package/src/components/filialCircle/CircleList.vue +139 -139
  248. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  249. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  250. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  251. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  252. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  253. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  254. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  255. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  256. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  257. package/src/components/map/PersonTrack.vue +226 -226
  258. package/src/components/map/SecurityCheckCoordinates.vue +361 -0
  259. package/src/components/notice/NoticeForm.vue +100 -100
  260. package/src/components/notice/NoticeIssue.vue +20 -20
  261. package/src/components/paper/PicViewer.vue +18 -18
  262. package/src/components/paper/RegionalList.vue +220 -220
  263. package/src/components/pc/AnnouncementPC.vue +524 -524
  264. package/src/components/pc/CheckBookUser.vue +337 -337
  265. package/src/components/pc/DefectDeal.vue +1 -0
  266. package/src/components/pc/DefectList.vue +742 -742
  267. package/src/components/pc/DefectMaterialLook.vue +98 -0
  268. package/src/components/pc/DeviceChange.vue +1068 -1068
  269. package/src/components/pc/PaperDefectMain.vue +905 -880
  270. package/src/components/pc/SafeVisitInfo.vue +261 -261
  271. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  272. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  273. package/src/components/phonestate/PostMap.vue +82 -82
  274. package/src/components/planmanage/PlanManage.vue +1 -0
  275. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  276. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  277. package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
  278. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  279. package/src/components/report/HiddenSituation.vue +165 -165
  280. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  281. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  282. package/src/components/rongcheng/DefectList.vue +560 -560
  283. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  284. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  285. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  286. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  287. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  288. package/src/components/shaoguan/DefectList.vue +473 -473
  289. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  290. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  291. package/src/components/userfile/MeterFile.vue +145 -145
  292. package/src/components/userfile/MeterModify.vue +46 -46
  293. package/src/components/userfile/SecurityAudit.vue +243 -243
  294. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  295. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  296. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  297. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  298. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  299. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  300. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  301. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  302. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  303. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  304. package/src/filiale/bayan/android/Edit.vue +132 -132
  305. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  306. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  307. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  308. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  309. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  310. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  311. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  312. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  313. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  314. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  315. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  316. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  317. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  318. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  319. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  320. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  321. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  322. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  323. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  324. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  325. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  326. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  327. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  328. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  329. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  330. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  331. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  332. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  333. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  334. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  335. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  336. package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
  337. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  338. package/src/filiale/jinhong/pc/PaperList.vue +850 -844
  339. package/src/filiale/jinhong/pc/PlanManage.vue +927 -925
  340. package/src/filiale/jinhong/pc/checkUserList.vue +30 -6
  341. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  342. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  343. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  344. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  345. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  346. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  347. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  348. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  349. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  350. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  351. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  352. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  353. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  354. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  355. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  356. package/src/filiale/libo/android.js +14 -0
  357. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  358. package/src/filiale/libo/pc.js +12 -0
  359. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  360. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  361. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  362. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  363. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  364. package/src/filiale/meihekou/android/MeterReading.vue +110 -106
  365. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1306
  366. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  367. package/src/filiale/meihekou/android/SafecheckOrderV.vue +324 -311
  368. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  369. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  370. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  371. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  372. package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
  373. package/src/filiale/meihekou/pc.js +2 -0
  374. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  375. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  376. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  377. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  378. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  379. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  380. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  381. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  382. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  383. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  384. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  385. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  386. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  387. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  388. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  389. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  390. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  391. package/src/filiale/qingjian/pc.js +15 -15
  392. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  393. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  394. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  395. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  396. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  397. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  398. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  399. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  400. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  401. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  402. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  403. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  404. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  405. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  406. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  407. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  408. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  409. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  410. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  411. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  412. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  413. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  414. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  415. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  416. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  417. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  418. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  419. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  420. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  421. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  422. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
  423. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
  424. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
  425. package/src/filiale/taiyuan/android.js +13 -0
  426. package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
  427. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  428. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  429. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  430. package/src/filiale/taiyuan/pc.js +15 -0
  431. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  432. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  433. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  434. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  435. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  436. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  437. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  438. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  439. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  440. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  441. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  442. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  443. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  444. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  445. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  446. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  447. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  448. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  449. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  450. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  451. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  452. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  453. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  454. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  455. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  456. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  457. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  458. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  459. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  460. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  461. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  462. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  463. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  464. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  465. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  466. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  467. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  468. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  469. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  470. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  471. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  472. package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
  473. package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
  474. package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
  475. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  476. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  477. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  478. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  479. package/src/filiale/xinkang/pc/NewCheckpaper.vue +20 -44
  480. package/src/filiale/xinkang/pc/PaperList.vue +2 -9
  481. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  482. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  483. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  484. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  485. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  486. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  487. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  488. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  489. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  490. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  491. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  492. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  493. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  494. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  495. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  496. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  497. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  498. package/src/filiale/yunchengminsheng/android.js +15 -15
  499. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  500. package/src/filiale/yunchengminsheng/pc.js +15 -14
  501. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  502. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  503. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  504. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  505. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  506. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  507. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  508. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  509. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  510. package/src/main.js +32 -33
  511. package/src/plugins/LoadData.js +10 -10
  512. package/src/plugins/LoadParams.js +24 -24
  513. package/src/safecheck-android.js +4 -0
  514. package/src/safecheck.js +924 -918
  515. package/src/stores/wxconfig.js +10 -10
  516. package/src/utils/getNowDate.js +33 -33
  517. package/test/e2e/custom-assertions/elementCount.js +26 -26
  518. package/test/e2e/nightwatch.conf.js +40 -40
  519. package/test/e2e/runner.js +30 -30
  520. package/test/e2e/specs/test.js +13 -13
  521. package/test/unit/.eslintrc +5 -5
  522. package/test/unit/TestUtil.js +62 -62
  523. package/test/unit/context.html +20 -20
  524. package/test/unit/index.js +13 -13
@@ -1,1026 +1,1026 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">用户编号</label>
9
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
- id="f_userinfo_code"
11
-
12
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">用户姓名</label>
16
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
18
- </div>
19
- <div :class="$parent.$parent.style">
20
- <label class="font_normal_body">小&emsp;&emsp;区</label>
21
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
- id="f_residential_area"
23
- placeholder="小区" condition="f_residential_area like '%{}%'">
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">地&emsp;&emsp;址</label>
27
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
- placeholder="地址" condition="f_address like '%{}%'">
29
- </div>
30
-
31
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
32
- <export-excel :data="$parent.$parent.searchData"
33
- :field="$parent.$parent.excelHeaders"
34
- :choose-col="true"
35
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
36
- template-name='用户安检情况'></export-excel>
37
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
38
- <div style="float: right" class="button_spacing"
39
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
40
- @click="$parent.$parent.hiddenr()"></div>
41
- <div style="float: right" class="button_spacing"
42
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
- @click="$parent.$parent.hidden()">
44
-
45
- </div>
46
- </div>
47
-
48
-
49
- </div>
50
- <!-- 展开条件 -->
51
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
52
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
53
- <label class="font_normal_body" style="color: red;">安检筛选</label>
54
- <v-select
55
- placeholder='安检筛选'
56
- :value-single="true"
57
- class="select select_list"
58
- :value.sync="$parent.$parent.SafeCheckXZ"
59
- :options='$parent.$parent.SafeCheckXZs'
60
- v-model="$parent.$parent.SafeCheckXZ"
61
- close-on-select clear-button></v-select>
62
- </div>
63
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
- <label class="font_normal_body">安检起始</label>
65
- <datepicker
66
- :value.sync="model.f_check_start"
67
- placeholder='最后安检时间起始'
68
- style="width: 60%"
69
- :format="'yyyy-MM-dd 00:00:00'"
70
- :show-rest-button="reset"
71
- condition="f_last_check_date >= '{}'"
72
- v-model="model.f_check_start">
73
- </datepicker>
74
- </div>
75
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
76
- <label class="font_normal_body">安检结束</label>
77
- <datepicker
78
- :value.sync="model.f_check_end"
79
- placeholder='最后安检时间结束'
80
- style="width: 60%"
81
- :format="'yyyy-MM-dd 23:59:59'"
82
- :show-rest-button="reset"
83
- condition="f_last_check_date <= '{}'"
84
- v-model="model.f_check_end">
85
- </datepicker>
86
- </div>
87
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
- <label class="font_normal_body">建档起始</label>
89
- <datepicker
90
- :value.sync="model.f_check_start_file"
91
- placeholder='建档起始时间'
92
- style="width: 60%"
93
- :format="'yyyy-MM-dd 00:00:00'"
94
- :show-rest-button="reset"
95
- condition="f_createfile_date >= '{}'"
96
- v-model="model.f_check_start_file">
97
- </datepicker>
98
- </div>
99
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
100
- <label class="font_normal_body">建档结束</label>
101
- <datepicker
102
- :value.sync="model.f_check_end_file"
103
- placeholder='建档结束时间'
104
- style="width: 60%"
105
- :format="'yyyy-MM-dd 23:59:59'"
106
- :show-rest-button="reset"
107
- condition="f_createfile_date <= '{}'"
108
- v-model="model.f_check_end_file">
109
- </datepicker>
110
- </div>
111
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
112
- <label class="font_normal_body">入户次数</label>
113
- <input style="width: 60%" type="number" class="input_search" v-model="model.rhcon"
114
- id="rhcon"
115
- placeholder="入户次数" condition="rhcon >'{}'">
116
- </div>
117
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
118
- <label class="font_normal_body">安检状态</label>
119
- <v-select id="f_entry"
120
- placeholder='安检状态'
121
- class="select select_list"
122
- :value.sync="model.f_last_check_state"
123
- :value-single="true"
124
- :options='$parent.$parent.checkstatus'
125
- v-model="model.f_last_check_state"
126
- condition="f_last_check_state = '{}'"
127
- close-on-select clear-button></v-select>
128
- </div>-->
129
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
130
- <label class="font_normal_body">隐患情况</label>
131
- <v-select
132
- placeholder='隐患情况'
133
- class="select select_list"
134
- :value-single="true"
135
- v-model='model.f_check_result'
136
- :value.sync="model.f_check_result"
137
- :options='$parent.$parent.f_check_results'
138
- condition="f_defect_content like '%{}%'"
139
- close-on-select clear-button></v-select>
140
- </div>
141
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
142
- <label class="font_normal_body">用户状态</label>
143
- <v-select class="select_list select"
144
- placeholder='用户状态' style="width: 60%"
145
- :value.sync="model.f_user_state" v-model="model.f_user_state"
146
- :options='$parent.$parent.userstates'
147
- close-on-select clear-button
148
- condition="f_user_state = '{}'"
149
- :value-single="true">
150
- </v-select>
151
- </div>
152
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
153
- </div>
154
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
155
-
156
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
157
- <role-selector-safe
158
- role-name="安检员"
159
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
160
- @re-res="$parent.$parent.getRes"
161
- :value.sync="model.f_checker_id"
162
- v-model="model.f_checker_id"
163
- :value-multiple="false"
164
- condition=" f_checker_name = '{}'">
165
- </role-selector-safe>
166
- </div>
167
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
168
- <label class="font_normal_body">片&emsp;&emsp;区</label>
169
- <v-select class="select_list select"
170
- placeholder='片区/管理站' style="width: 60%"
171
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
172
- :options='$parent.$parent.sliceArea'
173
- filer-key="name"
174
- close-on-select clear-button
175
- condition="f_slice_area='{}'"
176
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
177
- :value-single="true">
178
- </v-select>
179
- </div>
180
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
181
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
182
- <v-select class="select_list select"
183
- placeholder='抄表册' style="width: 60%"
184
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
185
- :options='$parent.$parent.cbc'
186
- filer-key="name"
187
- close-on-select clear-button
188
- condition="f_meter_book_num={}"
189
- :value-single="true">
190
- </v-select>
191
- </div>
192
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
193
- <label class="font_normal_body">用户类型</label>
194
- <v-select id="f_usertype"
195
- placeholder='用户类型'
196
- class="select select_list"
197
- :value.sync="model.f_usertype"
198
- :value-single="true"
199
- :options='$parent.$parent.usertypes'
200
- v-model="model.f_usertype"
201
- condition="f_user_type = '{}'"
202
- close-on-select clear-button></v-select>
203
- </div>
204
-
205
- </div>
206
- <!-- 合起条件 -->
207
- <div class="row" v-show="$parent.$parent.$parent.showItem">
208
- <div :class="$parent.$parent.style">
209
- <label class="font_normal_body">用户编号</label>
210
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
211
-
212
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
213
- </div>
214
- <div :class="$parent.$parent.style">
215
- <label class="font_normal_body">用户姓名</label>
216
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
217
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
218
- </div>
219
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
220
- <export-excel :data="$parent.$parent.searchData"
221
- :field="$parent.$parent.excelHeaders"
222
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
223
- template-name='用户安检情况'></export-excel>
224
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
225
- <div style="float: right" class="button_spacing"
226
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
227
- @click="$parent.$parent.hiddenr()"></div>
228
- <div style="float: right" class="button_spacing"
229
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
230
- @click="$parent.$parent.hidden()">
231
-
232
- </div>
233
- </div>
234
-
235
- </div>
236
- <div class="row" v-show="$parent.$parent.$parent.showItem">
237
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
238
- <label class="font_normal_body">小&emsp;&emsp;区</label>
239
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
240
-
241
- placeholder="小区" condition="f_residential_area like '%{}%'">
242
- </div>
243
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
244
- <label class="font_normal_body">地&emsp;&emsp;址</label>
245
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
246
-
247
- placeholder="地址" condition="f_address like '%{}%'">
248
- </div>
249
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
- <label class="font_normal_body">用户类型</label>
251
- <v-select
252
- placeholder='用户类型'
253
- class="select select_list"
254
-
255
- :value.sync="model.f_usertype"
256
- :value-single="true"
257
- :options='$parent.$parent.usertypes'
258
- v-model="model.f_usertype"
259
- condition="f_user_type = '{}'"
260
- close-on-select clear-button></v-select>
261
- </div>
262
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
263
- <label class="font_normal_body">用户状态</label>
264
- <v-select class="select_list select"
265
- placeholder='用户状态' style="width: 60%"
266
- :value.sync="model.f_user_state" v-model="model.f_user_state"
267
- :options='$parent.$parent.userstates'
268
- close-on-select clear-button
269
- condition="f_user_state = '{}'"
270
- :value-single="true">
271
- </v-select>
272
- </div>
273
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
274
-
275
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
276
- <label class="font_normal_body" style="color: red;">安检筛选</label>
277
- <v-select
278
- placeholder='安检筛选'
279
- :value-single="true"
280
- class="select select_list"
281
- :value.sync="$parent.$parent.SafeCheckXZ"
282
- :options='$parent.$parent.SafeCheckXZs'
283
- v-model="$parent.$parent.SafeCheckXZ"
284
- close-on-select clear-button></v-select>
285
- </div>
286
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
287
- <label class="font_normal_body">安检起始</label>
288
- <datepicker
289
- :value.sync="model.f_check_start"
290
- placeholder='最后安检时间起始'
291
- :disabled-days-of-week="[]"
292
- style="width: 60%"
293
- :format="'yyyy-MM-dd'"
294
- :show-rest-button="reset"
295
- v-model="model.f_check_start">
296
- </datepicker>
297
- </div>
298
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
299
- <label class="font_normal_body">安检结束</label>
300
- <datepicker
301
- :value.sync="model.f_check_end"
302
- placeholder='最后安检时间结束'
303
- style="width: 60%"
304
- :disabled-days-of-week="[]"
305
- :format="'yyyy-MM-dd'"
306
- :show-rest-button="reset"
307
- v-model="model.f_check_end">
308
- </datepicker>
309
- </div>
310
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
311
- <label class="font_normal_body">建档起始</label>
312
- <datepicker
313
- :value.sync="model.f_check_start_file"
314
- placeholder='建档起始时间'
315
- :disabled-days-of-week="[]"
316
- style="width: 60%"
317
- :format="'yyyy-MM-dd 00:00:00'"
318
- :show-rest-button="reset"
319
- condition="f_createfile_date > '{}'"
320
- v-model="model.f_check_start_file">
321
- </datepicker>
322
- </div>
323
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
324
- <label class="font_normal_body">建档结束</label>
325
- <datepicker
326
- :value.sync="model.f_check_end_file"
327
- placeholder='建档结束时间'
328
- style="width: 60%"
329
- :disabled-days-of-week="[]"
330
- :format="'yyyy-MM-dd 23:59:59'"
331
- condition="f_createfile_date < '{}'"
332
- :show-rest-button="reset"
333
- v-model="model.f_check_end_file">
334
- </datepicker>
335
- </div>
336
-
337
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
338
- <label class="font_normal_body">安检状态</label>
339
- <v-select
340
- placeholder='安检状态'
341
- class="select select_list"
342
-
343
- :value.sync="model.f_last_check_state"
344
- :value-single="true"
345
- :options='$parent.$parent.checkstatus'
346
- v-model="model.f_last_check_state"
347
- condition="f_last_check_state = '{}'"
348
- close-on-select clear-button></v-select>
349
- </div>-->
350
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
351
- <label class="font_normal_body">隐患情况</label>
352
- <v-select
353
- placeholder='隐患情况'
354
- class="select select_list"
355
-
356
- :value-single="true"
357
- v-model='model.f_check_result'
358
- :value.sync="model.f_check_result"
359
- :options='$parent.$parent.f_check_results'
360
- condition="f_defect_content like '%{}%'"
361
- close-on-select clear-button></v-select>
362
- </div>
363
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
364
- <label class="font_normal_body">入户次数</label>
365
- <input style="width: 60%" type="number" class="input_search" v-model="model.rhcon"
366
- id="rhcon"
367
- placeholder="入户次数" condition="rhcon >'{}'">
368
- </div>
369
- </div>
370
- <div class="row" v-show="$parent.$parent.$parent.showItem">
371
-
372
- </div>
373
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
374
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
375
- <label class="font_normal_body">公&emsp;&emsp;司</label>
376
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
377
- </right-tree>
378
- </div>
379
-
380
- </div>-->
381
- </div>
382
- </criteria>
383
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
384
- <template partial='head'>
385
- <tr>
386
- <th>
387
- <nobr>用户编号</nobr>
388
- </th>
389
- <th>
390
- <nobr>用户名称</nobr>
391
- </th>
392
- <th>
393
- <nobr>用户电话</nobr>
394
- </th>
395
- <th>
396
- <nobr>用户表号</nobr>
397
- </th>
398
- <th>
399
- <nobr>气表品牌</nobr>
400
- </th>
401
- <th>
402
- <nobr>用户类型</nobr>
403
- </th>
404
- <!-- <th>-->
405
- <!-- <nobr>壁挂炉</nobr>-->
406
- <!-- </th>-->
407
- <!-- <th>-->
408
- <!-- <nobr>灶具</nobr>-->
409
- <!-- </th>-->
410
- <th>
411
- <nobr>小区名称</nobr>
412
- </th>
413
- <th style="padding: 0 40px">
414
- <nobr>地址</nobr>
415
- </th>
416
- <th>
417
- <nobr>安检员</nobr>
418
- </th>
419
- <!-- <th>-->
420
- <!-- <nobr>安检员备注</nobr>-->
421
- <!-- </th>-->
422
- <th>
423
- <nobr>安检日期</nobr>
424
- </th>
425
- <th>
426
- <nobr>安检状态</nobr>
427
- </th>
428
- <th>
429
- <nobr>安检结果</nobr>
430
- </th>
431
- <th>
432
- <nobr>安检入户次数</nobr>
433
- </th>
434
- <th>
435
- <nobr>建档日期</nobr>
436
- </th>
437
- </tr>
438
- </template>
439
- <template partial='body'>
440
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
441
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
442
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
443
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
444
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>
445
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
446
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
447
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
448
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
449
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
450
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
451
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
452
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
453
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
454
- {{row.f_last_check_result }}
455
- </td>
456
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.rhcon }}</td>
457
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
458
- </template>
459
- </data-grid>
460
- </criteria-paged>
461
- </div>
462
- </template>
463
-
464
- <script>
465
- import {PagedList} from 'vue-client'
466
- import {HttpResetClass} from 'vue-client'
467
- import co from 'co'
468
- import * as Util from '../../Util'
469
- import Vue from 'vue'
470
- // let select = function * (self,userid) {
471
- // let http = new HttpResetClass()
472
- // let getGasman = yield http.load('POST','/rs/search', {
473
- // source: 'this.getChildByName($安检员$).getUsers()',
474
- // userid: userid
475
- // }, {resolveMsg: null, rejectMsg: null})
476
- // //tag
477
- // getGasman.data.forEach((checker)=>{
478
- // self.checkersid.push({label:checker.name,value:checker.id})
479
- // })
480
- // self.checkersid.push({label:'全部',value:''})
481
- // }
482
-
483
-
484
- export default {
485
- title: '用户安检情况',
486
- data() {
487
- let options = []
488
- let year = (new Date()).getFullYear()
489
- for (let i = year; i <= year + 3; i++)
490
- options.push({label: i + '', value: i + ''})
491
- let moptions = []
492
- for (let i = 1; i <= 12; i++)
493
- moptions.push({label: i + '', value: i + ''})
494
-
495
- return {
496
- searchData: {
497
- condition: '1=1',
498
- orderitem: "f_userinfo_code",
499
- timetype: "dd",
500
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
501
-
502
- },
503
- excelHeaders: {
504
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
505
- 'f_userinfo_code': '用户编号',
506
- 'f_user_name': '用户名称',
507
- 'f_user_phone': '用户电话',
508
- 'f_meternumber': '用户表号',
509
- 'f_meter_brand': '气表品牌',
510
- 'f_user_type': '用户类型',
511
- 'f_checker_name': '安检员',
512
- 'f_residential_area': '小区名称',
513
- 'f_address': '地址',
514
- 'f_last_check_date': '安检日期',
515
- 'f_last_check_state': '安检状态',
516
- 'f_last_check_result': '安检结果',
517
- 'f_createfile_date': '建档日期'
518
- },
519
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
520
- orderitem: "'f_last_check_date'",
521
- timetype: "'dd'",
522
- f_defect_content: 'this.f_defect_content'
523
- }),
524
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
525
- orgstrs: [{label: '全部', value: ''}],
526
- checkersid: [],
527
- SafeCheckXZ: '',
528
- civil: '', //民用安检周期
529
- civilian: '', //非民用安检周期
530
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
531
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
532
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
533
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
534
- IsShare: '否',
535
- checker: {},
536
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
537
- criteriaShow: false,
538
- checkers: [],
539
- chosenOrg: {id: 0},
540
- showModal: false,
541
- checkedAll: false,
542
- checkrows: [],
543
- adjustables: [],
544
- f_plan_year: year + '',
545
- f_plan_month: moptions[new Date().getMonth()].value,
546
- f_effective_start_time: '', //计划有效起始时间
547
- f_effective_end_time: '', //计划有效结束时间
548
- checkboxModel: {},
549
- c_year_list: options,
550
- c_month_list: moptions,
551
- areas: this.areas(),
552
- checkstatus: this.checkstatus(),
553
- usertypes: this.usertypes(),
554
- userstates: this.userstates(),
555
- sqlname: '',
556
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
557
- creatPlanWay: '',
558
- sliceArea: [],
559
- cbcs:[],
560
- cbc:[],
561
- pcds:[]
562
-
563
- }
564
- },
565
- props: {
566
- style: {
567
- type: String,
568
- default: 'col-sm-2 form-group'
569
- },
570
- style2: {
571
- type: String,
572
- default: 'col-sm-4 form-group'
573
- },
574
- checkplan: { // 传入一条安检计划信息
575
- type: Object
576
- },
577
- additemshow: {
578
- type: Boolean,
579
- default: false
580
- }
581
- },
582
- ready() {
583
- // 获取分公司信息
584
- this.model.f_defect_content=this.f_defect_content
585
-
586
- //this.getfengongsi()
587
- this.model.chosenOrg = {id: 0}
588
- this.model.f_filialeids = this.$login.f.f_orgids
589
- this.model.f_filiale = this.$login.f.f_fengongsi
590
- this.model.f_OrgStr = this.$login.f.orgpathstr
591
- this.Mreadibook(`('${this.$login.f.orgid}')`)
592
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
593
- },
594
- methods: {
595
- //获取省市区列表
596
- getPcd(val){
597
- this.pcds = [{label:'全部',value:''}]
598
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
599
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
600
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
601
- pcdlist.data.forEach((result)=>{
602
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
603
- })
604
- })
605
- },
606
- getmeterbook(val){
607
-
608
- //tag
609
- this.cbc=[]
610
- this.cbc.push({
611
- label:'全部',
612
- value:''
613
- })
614
- if (val==''){
615
-
616
- this.cbcs.forEach(res=>{
617
- this.cbc.push({
618
- label:res.f_book_name,
619
- value:res.id
620
- })
621
- })
622
- }else{
623
- this.cbcs.forEach(res=>{
624
- if (res.f_book_slice_area==val){
625
- this.cbc.push({
626
- label:res.f_book_name,
627
- value:res.id
628
- })
629
- }
630
- })
631
- }
632
- },
633
- Mreadibook(val){
634
- ////tag
635
- ////tag
636
- if (val){
637
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
638
- items: 'name',
639
- tablename: 't_zone',
640
- condition: `parentid in ${val}`,
641
- orderitem: 'id'
642
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
643
- this.sliceArea=[]
644
- this.sliceArea.push({
645
- label:'全部',
646
- value:''
647
- })
648
- res.data.forEach(ress=>{
649
- this.sliceArea.push({
650
- label:ress.name,
651
- value:ress.name
652
- })
653
- })
654
-
655
- })
656
- }
657
- },
658
- // 获取县域分公司内容
659
- getfengongsi() {
660
- let val = {
661
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
662
- userid: `${this.$login.f.id}`
663
- }
664
- let http = new HttpResetClass()
665
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
666
- res.data.forEach((item) => {
667
- this.orgstrs.push({label: item.name, value: item.id})
668
- })
669
- //tag
670
- })
671
- },
672
- // 县域分公司发生改变
673
- // orgstrchange(val){
674
- // if(val == undefined || val == ''){
675
- // return
676
- // }else {
677
- // this.checkersid = []
678
- // let gen = select(this,val)
679
- // return co(gen)
680
- // }
681
- // },
682
- getDefect(val) {
683
- if (val) {
684
- try {
685
- var defect = JSON.parse(val)
686
- return defect.result
687
- } catch (e) {
688
- //tag
689
- return '正常'
690
- }
691
- }
692
- return '正常'
693
- },
694
- checkerchange(val) {
695
- this.checkboxModel.f_checker = val.name
696
- this.checkboxModel.f_checker_id = val.id
697
- },
698
- search(args) {
699
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
700
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
701
- return
702
- }
703
- /*if (this.SafeCheckXZ == '未安检') {
704
- args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
705
- } else {
706
- if (args.model.f_check_start) {
707
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
708
- }
709
- if (args.model.f_check_end) {
710
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
711
- }
712
- }*/
713
- args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
714
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
715
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
716
- // con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
717
- // con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
718
- // con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
719
- // con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''
720
- if (this.SafeCheckXZ) {
721
- con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
722
- if (this.SafeCheckXZ == '未安检'){
723
- args.condition += ' and rhcon < 1'
724
- }else{
725
- args.condition += ' and rhcon >= 1'
726
- }
727
- }
728
- con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
729
- // con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
730
- let times=' 1 = 1'
731
- /*if(args.model.f_check_start == '' || args.model.f_check_end == ''){
732
- let date=new Date()
733
- let year=date.getFullYear()
734
- args.model.f_check_start = year + '-01-01 00:00:00'
735
- args.model.f_check_end = year + 1 + '-01-01 00:00:00'
736
- times = " (f_offsite_time >= '" + args.model.f_check_start + "' or f_offsite_time <= '" + args.model.f_check_end + "')"
737
- }else{
738
- times = " (f_offsite_time >= '" + args.model.f_check_start + "' or f_offsite_time <= '" + args.model.f_check_end + "')"
739
- }*/
740
- let condition = {
741
- condition1: args.condition,
742
- condition2: con,
743
- condition3:times
744
- }
745
- //tag
746
- this.searchData.condition = condition
747
- return this.model.search(condition, args.model)
748
- },
749
- checkstatus() {
750
- return this.$appdata.getParam('安检状态') ? [{
751
- label: '全部',
752
- value: ''
753
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
754
- },
755
- usertypes() {
756
- return this.$appdata.getParam('用户类型') ? [{
757
- label: '全部',
758
- value: ''
759
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
760
- },
761
- userstates() {
762
- return this.$appdata.getParam('用户状态') ? [{
763
- label: '全部',
764
- value: ''
765
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
766
- },
767
- hiddenr() {
768
- this.$parent.showItem = !this.$parent.showItem
769
- },
770
- hidden() {
771
- this.criteriaShow = !this.criteriaShow
772
- },
773
- confirm() {
774
- if (!this.checkboxModel.f_plan_name) {
775
- this.$showMessage('请填写安检计划名称!')
776
- return
777
- }
778
- // if(this.f_effective_start_time == ''){
779
- // this.$showMessage('请选择有效起始日期!')
780
- // return
781
- // }
782
- // if(this.f_effective_end_time == ''){
783
- // this.$showMessage('请选择有效结束日期!')
784
- // return
785
- // }
786
- if (this.IsShare == '否') {
787
- if (!this.checkboxModel.f_checker_id) {
788
- this.$showMessage('请选择安检员!')
789
- return
790
- }
791
- }
792
- let gen = saveGen(this)
793
- return co(gen)
794
- },
795
- changeStates() {
796
- if (this.checkedAll) {//实现反选/
797
- this.checkrows = [];
798
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
799
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
800
- }
801
- } else {//实现全选
802
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
803
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
804
- }
805
- let _this = this
806
- let condition = this.$refs.paged.$refs.criteria.condition
807
- let url = this.model.url
808
- this.$resetpost(`${url}?pageSize=9999999`, {
809
- data: {
810
- condition: condition,
811
- groupitem: '',
812
- orderitem: 'f_residential_area',
813
- f_usertype: this.model.f_usertype,
814
- f_filialeids: this.model.f_filialeids,
815
- month: this.model.month,
816
- safeCycle: this.model.safeCycle,
817
- f_checktime_start: this.model.f_checktime_start,
818
- f_checktime_end: this.model.f_checktime_end,
819
- SafeCheckSX: this.model.SafeCheckSX,
820
- f_last_check_state: this.model.f_last_check_state
821
- },
822
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
823
- (respanse) => {
824
- if (respanse.data.length >= 5000) {
825
- this.$showMessage("数据量太大,请重新选择")
826
- } else {
827
- _this.checkrows = []
828
- for (let j = 0; j < respanse.data.length; j++) {
829
- _this.checkrows.push(respanse.data[j])
830
- }
831
- //tag;
832
- }
833
- })
834
- }
835
- },
836
- addChecked(item) {
837
- //tag;
838
- if (!item.checked) {
839
- this.checkrows.push(item);
840
- //tag;
841
- } else {
842
- for (let i = 0; i < this.checkrows.length; i++) {
843
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
844
- this.checkrows.splice(i, 1)
845
- }
846
- }
847
- }
848
- },
849
- ToshowModal() {
850
- this.creatPlanWay = 'single'
851
- if (this.checkrows.length > 0) {
852
- this.showModal = true
853
- } else {
854
- this.$showMessage("请选择需要安检的用户!")
855
- }
856
- },
857
- FiltrationPlan() {
858
- if (this.model.rows.length == 0) {
859
- this.$showMessage("暂无可生成的计划!")
860
- return
861
- }
862
- this.creatPlanWay = 'filtration'
863
- this.showModal = true
864
- },
865
- AllPlan() {
866
- if (this.model.rows.length == 0) {
867
- this.$showMessage("暂无可生成的计划!")
868
- return
869
- }
870
- this.creatPlanWay = 'all'
871
- this.showModal = true
872
- },
873
- cancel() {
874
- this.showModal = false
875
- },
876
- areas() {
877
- let rs = []
878
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
879
- let temp = {
880
- label: this.$login.f.f_allArea[i].label,
881
- value: this.$login.f.f_allArea[i].label
882
- }
883
- rs.push(temp)
884
- }
885
- return [{label: '全部', value: ''}, ...rs]
886
- },
887
- initAdjustables() {
888
- //tag
889
- let arr = []
890
- let filter = this.$login.f.f_orgids
891
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
892
- let temp = {}
893
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
894
- temp.value = `${item.value.id}`
895
- arr.push(temp)
896
- })
897
- this.adjustables = [{label: '全部', value: ''}, ...arr]
898
- },
899
- getAllMeterBook(val){
900
- ////tag
901
- ////tag
902
- this.cbcs=[]
903
- if (val){
904
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
905
- items: 'f_book_name,f_book_slice_area,id',
906
- tablename: 't_meter_book',
907
- condition: `f_filiale_id in ${val}`,
908
- orderitem: 'id'
909
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
910
- res.data.forEach(ress=>{
911
- this.cbcs.push({
912
- id:ress.id,
913
- f_book_name:ress.f_book_name,
914
- f_book_slice_area:ress.f_book_slice_area
915
- })
916
- })
917
- this.cbc=[]
918
- this.cbc.push({
919
- label:'全部',
920
- value:''
921
- })
922
- this.cbcs.forEach(res=>{
923
- this.cbc.push({
924
- label:res.f_book_name,
925
- value:res.id
926
- })
927
- })
928
- })
929
- }
930
- },
931
- getRes(obj) {
932
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
933
- this.Mreadibook(this.model.f_filialeids)
934
- this.getAllMeterBook(this.model.f_filialeids)
935
- this.getPcd(this.model.f_filialeids)
936
- }
937
- },
938
-
939
- watch: {
940
- 'model.f_usertype'(val) {
941
- if (val == '民用') {
942
- this.model.safeCycle = this.civil
943
- } else if (val == '非民用') {
944
- this.model.safeCycle = this.civilian
945
- }
946
- },
947
- 'model.SafeCheckXZ'(val) {
948
- this.model.SafeCheckSC = ''
949
- if (val == '已安检') {
950
- this.model.SafeCheckCQ = ''
951
- this.model.SafeCheckSX = {
952
- f_check_end: '', // 安检时间 查询起始条件
953
- f_check_start: ''// 安检时间 查询终止条件
954
- }
955
- } else {
956
- // 当使用筛选条件时,清空不需要的条件选项
957
- this.model.f_issue_start = ''
958
- this.model.f_issue_end = ''
959
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
960
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
961
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
962
- this.model.month = ''
963
- if (val == '应安检') {
964
- this.model.SafeCheckSC = '否'
965
-
966
- this.model.f_issue_start = Util.toStartDateString()
967
- this.model.f_issue_end = Util.toStandardDateString()
968
- }
969
- // this.model.f_checktime_start = ''
970
- // this.model.f_checktime_end = ''
971
- }
972
- },
973
- 'model.SafeCheckSC'(val) {
974
- if (val == '') {
975
- this.model.f_issue_start = ''
976
- this.model.f_issue_end = ''
977
- }
978
- },
979
- // 'checker'(val){
980
- // //tag
981
- // if(val){
982
- // this.checkboxModel.f_checker = this.checker[0].name
983
- // this.checkboxModel.f_checker_id = this.checker[0].id
984
- // }
985
- // },
986
- 'model.rows'() {
987
- // if (!this.checkedAll) {//实现反选/
988
- // this.checkrows = [];
989
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
990
- var k = false
991
- for (let j = 0; j < this.checkrows.length; j++) {
992
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
993
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
994
- k = true
995
- continue
996
- }
997
- }
998
- if (!k) {
999
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1000
- }
1001
- }
1002
- // } else {//实现全选
1003
- // // this.checkboxModel = {};
1004
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1005
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1006
- // }
1007
- // }
1008
- }
1009
- },
1010
- computed: {
1011
- selected() {
1012
- return this.$refs.paged.$refs.grid.selected
1013
- }
1014
- }
1015
- }
1016
- </script>
1017
- <style scoped>
1018
- .newcolor {
1019
- color: red;
1020
- }
1021
-
1022
- .table th {
1023
- background-color: #f2f6fa;
1024
- color: black;
1025
- }
1026
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">用户编号</label>
9
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ id="f_userinfo_code"
11
+
12
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">用户姓名</label>
16
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
18
+ </div>
19
+ <div :class="$parent.$parent.style">
20
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
21
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
+ id="f_residential_area"
23
+ placeholder="小区" condition="f_residential_area like '%{}%'">
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
27
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
+ placeholder="地址" condition="f_address like '%{}%'">
29
+ </div>
30
+
31
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
32
+ <export-excel :data="$parent.$parent.searchData"
33
+ :field="$parent.$parent.excelHeaders"
34
+ :choose-col="true"
35
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
36
+ template-name='用户安检情况'></export-excel>
37
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
38
+ <div style="float: right" class="button_spacing"
39
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
40
+ @click="$parent.$parent.hiddenr()"></div>
41
+ <div style="float: right" class="button_spacing"
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()">
44
+
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+ <!-- 展开条件 -->
51
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
52
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
53
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
54
+ <v-select
55
+ placeholder='安检筛选'
56
+ :value-single="true"
57
+ class="select select_list"
58
+ :value.sync="$parent.$parent.SafeCheckXZ"
59
+ :options='$parent.$parent.SafeCheckXZs'
60
+ v-model="$parent.$parent.SafeCheckXZ"
61
+ close-on-select clear-button></v-select>
62
+ </div>
63
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
+ <label class="font_normal_body">安检起始</label>
65
+ <datepicker
66
+ :value.sync="model.f_check_start"
67
+ placeholder='最后安检时间起始'
68
+ style="width: 60%"
69
+ :format="'yyyy-MM-dd 00:00:00'"
70
+ :show-rest-button="reset"
71
+ condition="f_last_check_date >= '{}'"
72
+ v-model="model.f_check_start">
73
+ </datepicker>
74
+ </div>
75
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
76
+ <label class="font_normal_body">安检结束</label>
77
+ <datepicker
78
+ :value.sync="model.f_check_end"
79
+ placeholder='最后安检时间结束'
80
+ style="width: 60%"
81
+ :format="'yyyy-MM-dd 23:59:59'"
82
+ :show-rest-button="reset"
83
+ condition="f_last_check_date <= '{}'"
84
+ v-model="model.f_check_end">
85
+ </datepicker>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
+ <label class="font_normal_body">建档起始</label>
89
+ <datepicker
90
+ :value.sync="model.f_check_start_file"
91
+ placeholder='建档起始时间'
92
+ style="width: 60%"
93
+ :format="'yyyy-MM-dd 00:00:00'"
94
+ :show-rest-button="reset"
95
+ condition="f_createfile_date >= '{}'"
96
+ v-model="model.f_check_start_file">
97
+ </datepicker>
98
+ </div>
99
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
100
+ <label class="font_normal_body">建档结束</label>
101
+ <datepicker
102
+ :value.sync="model.f_check_end_file"
103
+ placeholder='建档结束时间'
104
+ style="width: 60%"
105
+ :format="'yyyy-MM-dd 23:59:59'"
106
+ :show-rest-button="reset"
107
+ condition="f_createfile_date <= '{}'"
108
+ v-model="model.f_check_end_file">
109
+ </datepicker>
110
+ </div>
111
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
112
+ <label class="font_normal_body">入户次数</label>
113
+ <input style="width: 60%" type="number" class="input_search" v-model="model.rhcon"
114
+ id="rhcon"
115
+ placeholder="入户次数" condition="rhcon >'{}'">
116
+ </div>
117
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
118
+ <label class="font_normal_body">安检状态</label>
119
+ <v-select id="f_entry"
120
+ placeholder='安检状态'
121
+ class="select select_list"
122
+ :value.sync="model.f_last_check_state"
123
+ :value-single="true"
124
+ :options='$parent.$parent.checkstatus'
125
+ v-model="model.f_last_check_state"
126
+ condition="f_last_check_state = '{}'"
127
+ close-on-select clear-button></v-select>
128
+ </div>-->
129
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
130
+ <label class="font_normal_body">隐患情况</label>
131
+ <v-select
132
+ placeholder='隐患情况'
133
+ class="select select_list"
134
+ :value-single="true"
135
+ v-model='model.f_check_result'
136
+ :value.sync="model.f_check_result"
137
+ :options='$parent.$parent.f_check_results'
138
+ condition="f_defect_content like '%{}%'"
139
+ close-on-select clear-button></v-select>
140
+ </div>
141
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
142
+ <label class="font_normal_body">用户状态</label>
143
+ <v-select class="select_list select"
144
+ placeholder='用户状态' style="width: 60%"
145
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
146
+ :options='$parent.$parent.userstates'
147
+ close-on-select clear-button
148
+ condition="f_user_state = '{}'"
149
+ :value-single="true">
150
+ </v-select>
151
+ </div>
152
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
153
+ </div>
154
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
155
+
156
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
157
+ <role-selector-safe
158
+ role-name="安检员"
159
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
160
+ @re-res="$parent.$parent.getRes"
161
+ :value.sync="model.f_checker_id"
162
+ v-model="model.f_checker_id"
163
+ :value-multiple="false"
164
+ condition=" f_checker_name = '{}'">
165
+ </role-selector-safe>
166
+ </div>
167
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
168
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
169
+ <v-select class="select_list select"
170
+ placeholder='片区/管理站' style="width: 60%"
171
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
172
+ :options='$parent.$parent.sliceArea'
173
+ filer-key="name"
174
+ close-on-select clear-button
175
+ condition="f_slice_area='{}'"
176
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
177
+ :value-single="true">
178
+ </v-select>
179
+ </div>
180
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
181
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
182
+ <v-select class="select_list select"
183
+ placeholder='抄表册' style="width: 60%"
184
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
185
+ :options='$parent.$parent.cbc'
186
+ filer-key="name"
187
+ close-on-select clear-button
188
+ condition="f_meter_book_num={}"
189
+ :value-single="true">
190
+ </v-select>
191
+ </div>
192
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
193
+ <label class="font_normal_body">用户类型</label>
194
+ <v-select id="f_usertype"
195
+ placeholder='用户类型'
196
+ class="select select_list"
197
+ :value.sync="model.f_usertype"
198
+ :value-single="true"
199
+ :options='$parent.$parent.usertypes'
200
+ v-model="model.f_usertype"
201
+ condition="f_user_type = '{}'"
202
+ close-on-select clear-button></v-select>
203
+ </div>
204
+
205
+ </div>
206
+ <!-- 合起条件 -->
207
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
208
+ <div :class="$parent.$parent.style">
209
+ <label class="font_normal_body">用户编号</label>
210
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
211
+
212
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
213
+ </div>
214
+ <div :class="$parent.$parent.style">
215
+ <label class="font_normal_body">用户姓名</label>
216
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
217
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
218
+ </div>
219
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
220
+ <export-excel :data="$parent.$parent.searchData"
221
+ :field="$parent.$parent.excelHeaders"
222
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
223
+ template-name='用户安检情况'></export-excel>
224
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
225
+ <div style="float: right" class="button_spacing"
226
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
227
+ @click="$parent.$parent.hiddenr()"></div>
228
+ <div style="float: right" class="button_spacing"
229
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
230
+ @click="$parent.$parent.hidden()">
231
+
232
+ </div>
233
+ </div>
234
+
235
+ </div>
236
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
237
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
238
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
239
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
240
+
241
+ placeholder="小区" condition="f_residential_area like '%{}%'">
242
+ </div>
243
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
244
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
245
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
246
+
247
+ placeholder="地址" condition="f_address like '%{}%'">
248
+ </div>
249
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
+ <label class="font_normal_body">用户类型</label>
251
+ <v-select
252
+ placeholder='用户类型'
253
+ class="select select_list"
254
+
255
+ :value.sync="model.f_usertype"
256
+ :value-single="true"
257
+ :options='$parent.$parent.usertypes'
258
+ v-model="model.f_usertype"
259
+ condition="f_user_type = '{}'"
260
+ close-on-select clear-button></v-select>
261
+ </div>
262
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
263
+ <label class="font_normal_body">用户状态</label>
264
+ <v-select class="select_list select"
265
+ placeholder='用户状态' style="width: 60%"
266
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
267
+ :options='$parent.$parent.userstates'
268
+ close-on-select clear-button
269
+ condition="f_user_state = '{}'"
270
+ :value-single="true">
271
+ </v-select>
272
+ </div>
273
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
274
+
275
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
276
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
277
+ <v-select
278
+ placeholder='安检筛选'
279
+ :value-single="true"
280
+ class="select select_list"
281
+ :value.sync="$parent.$parent.SafeCheckXZ"
282
+ :options='$parent.$parent.SafeCheckXZs'
283
+ v-model="$parent.$parent.SafeCheckXZ"
284
+ close-on-select clear-button></v-select>
285
+ </div>
286
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
287
+ <label class="font_normal_body">安检起始</label>
288
+ <datepicker
289
+ :value.sync="model.f_check_start"
290
+ placeholder='最后安检时间起始'
291
+ :disabled-days-of-week="[]"
292
+ style="width: 60%"
293
+ :format="'yyyy-MM-dd'"
294
+ :show-rest-button="reset"
295
+ v-model="model.f_check_start">
296
+ </datepicker>
297
+ </div>
298
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
299
+ <label class="font_normal_body">安检结束</label>
300
+ <datepicker
301
+ :value.sync="model.f_check_end"
302
+ placeholder='最后安检时间结束'
303
+ style="width: 60%"
304
+ :disabled-days-of-week="[]"
305
+ :format="'yyyy-MM-dd'"
306
+ :show-rest-button="reset"
307
+ v-model="model.f_check_end">
308
+ </datepicker>
309
+ </div>
310
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
311
+ <label class="font_normal_body">建档起始</label>
312
+ <datepicker
313
+ :value.sync="model.f_check_start_file"
314
+ placeholder='建档起始时间'
315
+ :disabled-days-of-week="[]"
316
+ style="width: 60%"
317
+ :format="'yyyy-MM-dd 00:00:00'"
318
+ :show-rest-button="reset"
319
+ condition="f_createfile_date > '{}'"
320
+ v-model="model.f_check_start_file">
321
+ </datepicker>
322
+ </div>
323
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
324
+ <label class="font_normal_body">建档结束</label>
325
+ <datepicker
326
+ :value.sync="model.f_check_end_file"
327
+ placeholder='建档结束时间'
328
+ style="width: 60%"
329
+ :disabled-days-of-week="[]"
330
+ :format="'yyyy-MM-dd 23:59:59'"
331
+ condition="f_createfile_date < '{}'"
332
+ :show-rest-button="reset"
333
+ v-model="model.f_check_end_file">
334
+ </datepicker>
335
+ </div>
336
+
337
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
338
+ <label class="font_normal_body">安检状态</label>
339
+ <v-select
340
+ placeholder='安检状态'
341
+ class="select select_list"
342
+
343
+ :value.sync="model.f_last_check_state"
344
+ :value-single="true"
345
+ :options='$parent.$parent.checkstatus'
346
+ v-model="model.f_last_check_state"
347
+ condition="f_last_check_state = '{}'"
348
+ close-on-select clear-button></v-select>
349
+ </div>-->
350
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
351
+ <label class="font_normal_body">隐患情况</label>
352
+ <v-select
353
+ placeholder='隐患情况'
354
+ class="select select_list"
355
+
356
+ :value-single="true"
357
+ v-model='model.f_check_result'
358
+ :value.sync="model.f_check_result"
359
+ :options='$parent.$parent.f_check_results'
360
+ condition="f_defect_content like '%{}%'"
361
+ close-on-select clear-button></v-select>
362
+ </div>
363
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
364
+ <label class="font_normal_body">入户次数</label>
365
+ <input style="width: 60%" type="number" class="input_search" v-model="model.rhcon"
366
+ id="rhcon"
367
+ placeholder="入户次数" condition="rhcon >'{}'">
368
+ </div>
369
+ </div>
370
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
371
+
372
+ </div>
373
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
374
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
375
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
376
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
377
+ </right-tree>
378
+ </div>
379
+
380
+ </div>-->
381
+ </div>
382
+ </criteria>
383
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
384
+ <template partial='head'>
385
+ <tr>
386
+ <th>
387
+ <nobr>用户编号</nobr>
388
+ </th>
389
+ <th>
390
+ <nobr>用户名称</nobr>
391
+ </th>
392
+ <th>
393
+ <nobr>用户电话</nobr>
394
+ </th>
395
+ <th>
396
+ <nobr>用户表号</nobr>
397
+ </th>
398
+ <th>
399
+ <nobr>气表品牌</nobr>
400
+ </th>
401
+ <th>
402
+ <nobr>用户类型</nobr>
403
+ </th>
404
+ <!-- <th>-->
405
+ <!-- <nobr>壁挂炉</nobr>-->
406
+ <!-- </th>-->
407
+ <!-- <th>-->
408
+ <!-- <nobr>灶具</nobr>-->
409
+ <!-- </th>-->
410
+ <th>
411
+ <nobr>小区名称</nobr>
412
+ </th>
413
+ <th style="padding: 0 40px">
414
+ <nobr>地址</nobr>
415
+ </th>
416
+ <th>
417
+ <nobr>安检员</nobr>
418
+ </th>
419
+ <!-- <th>-->
420
+ <!-- <nobr>安检员备注</nobr>-->
421
+ <!-- </th>-->
422
+ <th>
423
+ <nobr>安检日期</nobr>
424
+ </th>
425
+ <th>
426
+ <nobr>安检状态</nobr>
427
+ </th>
428
+ <th>
429
+ <nobr>安检结果</nobr>
430
+ </th>
431
+ <th>
432
+ <nobr>安检入户次数</nobr>
433
+ </th>
434
+ <th>
435
+ <nobr>建档日期</nobr>
436
+ </th>
437
+ </tr>
438
+ </template>
439
+ <template partial='body'>
440
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
441
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
442
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
443
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
444
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>
445
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
446
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
447
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
448
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
449
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
450
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
451
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
452
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
453
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
454
+ {{row.f_last_check_result }}
455
+ </td>
456
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.rhcon }}</td>
457
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
458
+ </template>
459
+ </data-grid>
460
+ </criteria-paged>
461
+ </div>
462
+ </template>
463
+
464
+ <script>
465
+ import {PagedList} from 'vue-client'
466
+ import {HttpResetClass} from 'vue-client'
467
+ import co from 'co'
468
+ import * as Util from '../../Util'
469
+ import Vue from 'vue'
470
+ // let select = function * (self,userid) {
471
+ // let http = new HttpResetClass()
472
+ // let getGasman = yield http.load('POST','/rs/search', {
473
+ // source: 'this.getChildByName($安检员$).getUsers()',
474
+ // userid: userid
475
+ // }, {resolveMsg: null, rejectMsg: null})
476
+ // //tag
477
+ // getGasman.data.forEach((checker)=>{
478
+ // self.checkersid.push({label:checker.name,value:checker.id})
479
+ // })
480
+ // self.checkersid.push({label:'全部',value:''})
481
+ // }
482
+
483
+
484
+ export default {
485
+ title: '用户安检情况',
486
+ data() {
487
+ let options = []
488
+ let year = (new Date()).getFullYear()
489
+ for (let i = year; i <= year + 3; i++)
490
+ options.push({label: i + '', value: i + ''})
491
+ let moptions = []
492
+ for (let i = 1; i <= 12; i++)
493
+ moptions.push({label: i + '', value: i + ''})
494
+
495
+ return {
496
+ searchData: {
497
+ condition: '1=1',
498
+ orderitem: "f_userinfo_code",
499
+ timetype: "dd",
500
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
501
+
502
+ },
503
+ excelHeaders: {
504
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
505
+ 'f_userinfo_code': '用户编号',
506
+ 'f_user_name': '用户名称',
507
+ 'f_user_phone': '用户电话',
508
+ 'f_meternumber': '用户表号',
509
+ 'f_meter_brand': '气表品牌',
510
+ 'f_user_type': '用户类型',
511
+ 'f_checker_name': '安检员',
512
+ 'f_residential_area': '小区名称',
513
+ 'f_address': '地址',
514
+ 'f_last_check_date': '安检日期',
515
+ 'f_last_check_state': '安检状态',
516
+ 'f_last_check_result': '安检结果',
517
+ 'f_createfile_date': '建档日期'
518
+ },
519
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
520
+ orderitem: "'f_last_check_date'",
521
+ timetype: "'dd'",
522
+ f_defect_content: 'this.f_defect_content'
523
+ }),
524
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
525
+ orgstrs: [{label: '全部', value: ''}],
526
+ checkersid: [],
527
+ SafeCheckXZ: '',
528
+ civil: '', //民用安检周期
529
+ civilian: '', //非民用安检周期
530
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
531
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
532
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
533
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
534
+ IsShare: '否',
535
+ checker: {},
536
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
537
+ criteriaShow: false,
538
+ checkers: [],
539
+ chosenOrg: {id: 0},
540
+ showModal: false,
541
+ checkedAll: false,
542
+ checkrows: [],
543
+ adjustables: [],
544
+ f_plan_year: year + '',
545
+ f_plan_month: moptions[new Date().getMonth()].value,
546
+ f_effective_start_time: '', //计划有效起始时间
547
+ f_effective_end_time: '', //计划有效结束时间
548
+ checkboxModel: {},
549
+ c_year_list: options,
550
+ c_month_list: moptions,
551
+ // areas: this.areas(),
552
+ checkstatus: this.checkstatus(),
553
+ usertypes: this.usertypes(),
554
+ userstates: this.userstates(),
555
+ sqlname: '',
556
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
557
+ creatPlanWay: '',
558
+ sliceArea: [],
559
+ cbcs:[],
560
+ cbc:[],
561
+ pcds:[]
562
+
563
+ }
564
+ },
565
+ props: {
566
+ style: {
567
+ type: String,
568
+ default: 'col-sm-2 form-group'
569
+ },
570
+ style2: {
571
+ type: String,
572
+ default: 'col-sm-4 form-group'
573
+ },
574
+ checkplan: { // 传入一条安检计划信息
575
+ type: Object
576
+ },
577
+ additemshow: {
578
+ type: Boolean,
579
+ default: false
580
+ }
581
+ },
582
+ ready() {
583
+ // 获取分公司信息
584
+ this.model.f_defect_content=this.f_defect_content
585
+
586
+ //this.getfengongsi()
587
+ this.model.chosenOrg = {id: 0}
588
+ this.model.f_filialeids = this.$login.f.f_orgids
589
+ this.model.f_filiale = this.$login.f.f_fengongsi
590
+ this.model.f_OrgStr = this.$login.f.orgpathstr
591
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
592
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
593
+ },
594
+ methods: {
595
+ //获取省市区列表
596
+ getPcd(val){
597
+ this.pcds = [{label:'全部',value:''}]
598
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
599
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
600
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
601
+ pcdlist.data.forEach((result)=>{
602
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
603
+ })
604
+ })
605
+ },
606
+ getmeterbook(val){
607
+
608
+ //tag
609
+ this.cbc=[]
610
+ this.cbc.push({
611
+ label:'全部',
612
+ value:''
613
+ })
614
+ if (val==''){
615
+
616
+ this.cbcs.forEach(res=>{
617
+ this.cbc.push({
618
+ label:res.f_book_name,
619
+ value:res.id
620
+ })
621
+ })
622
+ }else{
623
+ this.cbcs.forEach(res=>{
624
+ if (res.f_book_slice_area==val){
625
+ this.cbc.push({
626
+ label:res.f_book_name,
627
+ value:res.id
628
+ })
629
+ }
630
+ })
631
+ }
632
+ },
633
+ Mreadibook(val){
634
+ ////tag
635
+ ////tag
636
+ if (val){
637
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
638
+ items: 'name',
639
+ tablename: 't_zone',
640
+ condition: `parentid in ${val}`,
641
+ orderitem: 'id'
642
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
643
+ this.sliceArea=[]
644
+ this.sliceArea.push({
645
+ label:'全部',
646
+ value:''
647
+ })
648
+ res.data.forEach(ress=>{
649
+ this.sliceArea.push({
650
+ label:ress.name,
651
+ value:ress.name
652
+ })
653
+ })
654
+
655
+ })
656
+ }
657
+ },
658
+ // 获取县域分公司内容
659
+ getfengongsi() {
660
+ let val = {
661
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
662
+ userid: `${this.$login.f.id}`
663
+ }
664
+ let http = new HttpResetClass()
665
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
666
+ res.data.forEach((item) => {
667
+ this.orgstrs.push({label: item.name, value: item.id})
668
+ })
669
+ //tag
670
+ })
671
+ },
672
+ // 县域分公司发生改变
673
+ // orgstrchange(val){
674
+ // if(val == undefined || val == ''){
675
+ // return
676
+ // }else {
677
+ // this.checkersid = []
678
+ // let gen = select(this,val)
679
+ // return co(gen)
680
+ // }
681
+ // },
682
+ getDefect(val) {
683
+ if (val) {
684
+ try {
685
+ var defect = JSON.parse(val)
686
+ return defect.result
687
+ } catch (e) {
688
+ //tag
689
+ return '正常'
690
+ }
691
+ }
692
+ return '正常'
693
+ },
694
+ checkerchange(val) {
695
+ this.checkboxModel.f_checker = val.name
696
+ this.checkboxModel.f_checker_id = val.id
697
+ },
698
+ search(args) {
699
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
700
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
701
+ return
702
+ }
703
+ /*if (this.SafeCheckXZ == '未安检') {
704
+ args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
705
+ } else {
706
+ if (args.model.f_check_start) {
707
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
708
+ }
709
+ if (args.model.f_check_end) {
710
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
711
+ }
712
+ }*/
713
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
714
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
715
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
716
+ // con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
717
+ // con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
718
+ // con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
719
+ // con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''
720
+ if (this.SafeCheckXZ) {
721
+ con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
722
+ if (this.SafeCheckXZ == '未安检'){
723
+ args.condition += ' and rhcon < 1'
724
+ }else{
725
+ args.condition += ' and rhcon >= 1'
726
+ }
727
+ }
728
+ con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
729
+ // con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
730
+ let times=' 1 = 1'
731
+ /*if(args.model.f_check_start == '' || args.model.f_check_end == ''){
732
+ let date=new Date()
733
+ let year=date.getFullYear()
734
+ args.model.f_check_start = year + '-01-01 00:00:00'
735
+ args.model.f_check_end = year + 1 + '-01-01 00:00:00'
736
+ times = " (f_offsite_time >= '" + args.model.f_check_start + "' or f_offsite_time <= '" + args.model.f_check_end + "')"
737
+ }else{
738
+ times = " (f_offsite_time >= '" + args.model.f_check_start + "' or f_offsite_time <= '" + args.model.f_check_end + "')"
739
+ }*/
740
+ let condition = {
741
+ condition1: args.condition,
742
+ condition2: con,
743
+ condition3:times
744
+ }
745
+ //tag
746
+ this.searchData.condition = condition
747
+ return this.model.search(condition, args.model)
748
+ },
749
+ checkstatus() {
750
+ return this.$appdata.getParam('安检状态') ? [{
751
+ label: '全部',
752
+ value: ''
753
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
754
+ },
755
+ usertypes() {
756
+ return this.$appdata.getParam('用户类型') ? [{
757
+ label: '全部',
758
+ value: ''
759
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
760
+ },
761
+ userstates() {
762
+ return this.$appdata.getParam('用户状态') ? [{
763
+ label: '全部',
764
+ value: ''
765
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
766
+ },
767
+ hiddenr() {
768
+ this.$parent.showItem = !this.$parent.showItem
769
+ },
770
+ hidden() {
771
+ this.criteriaShow = !this.criteriaShow
772
+ },
773
+ confirm() {
774
+ if (!this.checkboxModel.f_plan_name) {
775
+ this.$showMessage('请填写安检计划名称!')
776
+ return
777
+ }
778
+ // if(this.f_effective_start_time == ''){
779
+ // this.$showMessage('请选择有效起始日期!')
780
+ // return
781
+ // }
782
+ // if(this.f_effective_end_time == ''){
783
+ // this.$showMessage('请选择有效结束日期!')
784
+ // return
785
+ // }
786
+ if (this.IsShare == '否') {
787
+ if (!this.checkboxModel.f_checker_id) {
788
+ this.$showMessage('请选择安检员!')
789
+ return
790
+ }
791
+ }
792
+ let gen = saveGen(this)
793
+ return co(gen)
794
+ },
795
+ changeStates() {
796
+ if (this.checkedAll) {//实现反选/
797
+ this.checkrows = [];
798
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
799
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
800
+ }
801
+ } else {//实现全选
802
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
803
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
804
+ }
805
+ let _this = this
806
+ let condition = this.$refs.paged.$refs.criteria.condition
807
+ let url = this.model.url
808
+ this.$resetpost(`${url}?pageSize=9999999`, {
809
+ data: {
810
+ condition: condition,
811
+ groupitem: '',
812
+ orderitem: 'f_residential_area',
813
+ f_usertype: this.model.f_usertype,
814
+ f_filialeids: this.model.f_filialeids,
815
+ month: this.model.month,
816
+ safeCycle: this.model.safeCycle,
817
+ f_checktime_start: this.model.f_checktime_start,
818
+ f_checktime_end: this.model.f_checktime_end,
819
+ SafeCheckSX: this.model.SafeCheckSX,
820
+ f_last_check_state: this.model.f_last_check_state
821
+ },
822
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
823
+ (respanse) => {
824
+ if (respanse.data.length >= 5000) {
825
+ this.$showMessage("数据量太大,请重新选择")
826
+ } else {
827
+ _this.checkrows = []
828
+ for (let j = 0; j < respanse.data.length; j++) {
829
+ _this.checkrows.push(respanse.data[j])
830
+ }
831
+ //tag;
832
+ }
833
+ })
834
+ }
835
+ },
836
+ addChecked(item) {
837
+ //tag;
838
+ if (!item.checked) {
839
+ this.checkrows.push(item);
840
+ //tag;
841
+ } else {
842
+ for (let i = 0; i < this.checkrows.length; i++) {
843
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
844
+ this.checkrows.splice(i, 1)
845
+ }
846
+ }
847
+ }
848
+ },
849
+ ToshowModal() {
850
+ this.creatPlanWay = 'single'
851
+ if (this.checkrows.length > 0) {
852
+ this.showModal = true
853
+ } else {
854
+ this.$showMessage("请选择需要安检的用户!")
855
+ }
856
+ },
857
+ FiltrationPlan() {
858
+ if (this.model.rows.length == 0) {
859
+ this.$showMessage("暂无可生成的计划!")
860
+ return
861
+ }
862
+ this.creatPlanWay = 'filtration'
863
+ this.showModal = true
864
+ },
865
+ AllPlan() {
866
+ if (this.model.rows.length == 0) {
867
+ this.$showMessage("暂无可生成的计划!")
868
+ return
869
+ }
870
+ this.creatPlanWay = 'all'
871
+ this.showModal = true
872
+ },
873
+ cancel() {
874
+ this.showModal = false
875
+ },
876
+ // areas() {
877
+ // let rs = []
878
+ // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
879
+ // let temp = {
880
+ // label: this.$login.f.f_allArea[i].label,
881
+ // value: this.$login.f.f_allArea[i].label
882
+ // }
883
+ // rs.push(temp)
884
+ // }
885
+ // return [{label: '全部', value: ''}, ...rs]
886
+ // },
887
+ initAdjustables() {
888
+ //tag
889
+ let arr = []
890
+ let filter = this.$login.f.f_orgids
891
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
892
+ let temp = {}
893
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
894
+ temp.value = `${item.value.id}`
895
+ arr.push(temp)
896
+ })
897
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
898
+ },
899
+ getAllMeterBook(val){
900
+ ////tag
901
+ ////tag
902
+ this.cbcs=[]
903
+ if (val){
904
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
905
+ items: 'f_book_name,f_book_slice_area,id',
906
+ tablename: 't_meter_book',
907
+ condition: `f_filiale_id in ${val}`,
908
+ orderitem: 'id'
909
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
910
+ res.data.forEach(ress=>{
911
+ this.cbcs.push({
912
+ id:ress.id,
913
+ f_book_name:ress.f_book_name,
914
+ f_book_slice_area:ress.f_book_slice_area
915
+ })
916
+ })
917
+ this.cbc=[]
918
+ this.cbc.push({
919
+ label:'全部',
920
+ value:''
921
+ })
922
+ this.cbcs.forEach(res=>{
923
+ this.cbc.push({
924
+ label:res.f_book_name,
925
+ value:res.id
926
+ })
927
+ })
928
+ })
929
+ }
930
+ },
931
+ getRes(obj) {
932
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
933
+ this.Mreadibook(this.model.f_filialeids)
934
+ this.getAllMeterBook(this.model.f_filialeids)
935
+ this.getPcd(this.model.f_filialeids)
936
+ }
937
+ },
938
+
939
+ watch: {
940
+ 'model.f_usertype'(val) {
941
+ if (val == '民用') {
942
+ this.model.safeCycle = this.civil
943
+ } else if (val == '非民用') {
944
+ this.model.safeCycle = this.civilian
945
+ }
946
+ },
947
+ 'model.SafeCheckXZ'(val) {
948
+ this.model.SafeCheckSC = ''
949
+ if (val == '已安检') {
950
+ this.model.SafeCheckCQ = ''
951
+ this.model.SafeCheckSX = {
952
+ f_check_end: '', // 安检时间 查询起始条件
953
+ f_check_start: ''// 安检时间 查询终止条件
954
+ }
955
+ } else {
956
+ // 当使用筛选条件时,清空不需要的条件选项
957
+ this.model.f_issue_start = ''
958
+ this.model.f_issue_end = ''
959
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
960
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
961
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
962
+ this.model.month = ''
963
+ if (val == '应安检') {
964
+ this.model.SafeCheckSC = '否'
965
+
966
+ this.model.f_issue_start = Util.toStartDateString()
967
+ this.model.f_issue_end = Util.toStandardDateString()
968
+ }
969
+ // this.model.f_checktime_start = ''
970
+ // this.model.f_checktime_end = ''
971
+ }
972
+ },
973
+ 'model.SafeCheckSC'(val) {
974
+ if (val == '') {
975
+ this.model.f_issue_start = ''
976
+ this.model.f_issue_end = ''
977
+ }
978
+ },
979
+ // 'checker'(val){
980
+ // //tag
981
+ // if(val){
982
+ // this.checkboxModel.f_checker = this.checker[0].name
983
+ // this.checkboxModel.f_checker_id = this.checker[0].id
984
+ // }
985
+ // },
986
+ 'model.rows'() {
987
+ // if (!this.checkedAll) {//实现反选/
988
+ // this.checkrows = [];
989
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
990
+ var k = false
991
+ for (let j = 0; j < this.checkrows.length; j++) {
992
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
993
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
994
+ k = true
995
+ continue
996
+ }
997
+ }
998
+ if (!k) {
999
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1000
+ }
1001
+ }
1002
+ // } else {//实现全选
1003
+ // // this.checkboxModel = {};
1004
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1005
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1006
+ // }
1007
+ // }
1008
+ }
1009
+ },
1010
+ computed: {
1011
+ selected() {
1012
+ return this.$refs.paged.$refs.grid.selected
1013
+ }
1014
+ }
1015
+ }
1016
+ </script>
1017
+ <style scoped>
1018
+ .newcolor {
1019
+ color: red;
1020
+ }
1021
+
1022
+ .table th {
1023
+ background-color: #f2f6fa;
1024
+ color: black;
1025
+ }
1026
+ </style>