safecheck-client 4.0.2-15 → 4.0.2-17

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