safecheck-client 3.0.33-99 → 3.0.34-1

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 (386) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/build/css-loaders.js +34 -34
  5. package/build/dev-android.js +151 -151
  6. package/build/dev-client.js +8 -8
  7. package/build/release.sh +28 -28
  8. package/build/utils.js +71 -71
  9. package/build/webpack.baseandroid.conf.js +83 -83
  10. package/build/webpack.devandroid.conf.js +33 -33
  11. package/build/webpack.hanwei.conf.js +57 -57
  12. package/build/webpack.hwbase.conf.js +78 -78
  13. package/build/webpack.prodandroid.conf.js +60 -60
  14. package/build/webpack.test.conf.js +31 -31
  15. package/config/dev.env.js +6 -6
  16. package/config/index.js +38 -38
  17. package/config/prod.env.js +3 -3
  18. package/config/test.env.js +6 -6
  19. package/docs/AppBase.md +22 -22
  20. package/docs/Busy.md +14 -14
  21. package/docs/Criteria.md +47 -47
  22. package/docs/CriteriaPaged.md +47 -47
  23. package/docs/DataGrid.md +54 -54
  24. package/docs/DataModel.md +22 -22
  25. package/docs/Dynamic.md +42 -42
  26. package/docs/FormPrint.md +18 -18
  27. package/docs/GetParams.md +11 -11
  28. package/docs/GridTree.md +47 -47
  29. package/docs/HttpBusy.md +13 -13
  30. package/docs/HttpStore.md +29 -29
  31. package/docs/MessageBox.md +28 -28
  32. package/docs/PagedList.md +29 -29
  33. package/docs/Pager.md +21 -21
  34. package/docs/PrintFile.md +38 -38
  35. package/docs/Project.md +23 -23
  36. package/docs/Route.md +105 -105
  37. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  38. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  39. package/docs/Task.md +46 -46
  40. package/docs/TreeList.md +28 -28
  41. package/docs/TreeMixin.md +18 -18
  42. package/docs/all.md +10 -10
  43. package/docs/list.md +42 -42
  44. package/docs/partial.md +75 -75
  45. package/docs/selector.md +82 -82
  46. package/docs/tree.md +40 -40
  47. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  48. 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
  49. 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
  50. 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
  51. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  52. package/examples/AddressList/App.vue +13 -13
  53. package/examples/AddressList/index.html +11 -11
  54. package/examples/DispatchList/App.vue +10 -10
  55. package/examples/DispatchList/BaseTree.vue +13 -13
  56. package/examples/DispatchList/Init.vue +22 -22
  57. package/examples/DispatchList/Test.vue +20 -20
  58. package/examples/DispatchList/index.html +11 -11
  59. package/examples/DispatchList/main.js +18 -18
  60. package/home.html +16 -16
  61. package/package.json +3 -4
  62. package/publish.bat +7 -7
  63. package/release.bat +5 -5
  64. package/src/Widget.vue +13 -13
  65. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  66. package/src/android-bootstrap/less/.csscomb.json +304 -304
  67. package/src/android-bootstrap/less/.csslintrc +19 -19
  68. package/src/android-bootstrap/less/alerts.less +73 -73
  69. package/src/android-bootstrap/less/badges.less +66 -66
  70. package/src/android-bootstrap/less/bootstrap.less +56 -56
  71. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  72. package/src/android-bootstrap/less/button-groups.less +247 -247
  73. package/src/android-bootstrap/less/buttons.less +173 -173
  74. package/src/android-bootstrap/less/carousel.less +269 -269
  75. package/src/android-bootstrap/less/close.less +34 -34
  76. package/src/android-bootstrap/less/code.less +69 -69
  77. package/src/android-bootstrap/less/component-animations.less +33 -33
  78. package/src/android-bootstrap/less/grid.less +84 -84
  79. package/src/android-bootstrap/less/input-groups.less +167 -167
  80. package/src/android-bootstrap/less/jumbotron.less +52 -52
  81. package/src/android-bootstrap/less/labels.less +64 -64
  82. package/src/android-bootstrap/less/list-group.less +141 -141
  83. package/src/android-bootstrap/less/media.less +66 -66
  84. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  85. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  86. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  87. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  88. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  89. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  90. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  91. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  92. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  93. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  94. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  95. package/src/android-bootstrap/less/mixins/image.less +33 -33
  96. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  97. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  98. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  99. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  100. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  101. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  102. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  103. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  104. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  105. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  106. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  107. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  108. package/src/android-bootstrap/less/mixins/size.less +10 -10
  109. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  110. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  111. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  112. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  113. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  114. package/src/android-bootstrap/less/mixins.less +40 -40
  115. package/src/android-bootstrap/less/modals.less +151 -151
  116. package/src/android-bootstrap/less/navbar.less +660 -660
  117. package/src/android-bootstrap/less/navs.less +290 -290
  118. package/src/android-bootstrap/less/normalize.less +424 -424
  119. package/src/android-bootstrap/less/pager.less +76 -76
  120. package/src/android-bootstrap/less/pagination.less +89 -89
  121. package/src/android-bootstrap/less/panels.less +274 -274
  122. package/src/android-bootstrap/less/popovers.less +131 -131
  123. package/src/android-bootstrap/less/print.less +101 -101
  124. package/src/android-bootstrap/less/progress-bars.less +87 -87
  125. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  126. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  127. package/src/android-bootstrap/less/scaffolding.less +161 -161
  128. package/src/android-bootstrap/less/tables.less +262 -262
  129. package/src/android-bootstrap/less/theme.less +291 -291
  130. package/src/android-bootstrap/less/thumbnails.less +36 -36
  131. package/src/android-bootstrap/less/tooltip.less +102 -102
  132. package/src/android-bootstrap/less/type.less +303 -303
  133. package/src/android-bootstrap/less/utilities.less +55 -55
  134. package/src/android-bootstrap/less/variables.less +896 -896
  135. package/src/android-bootstrap/less/wells.less +29 -29
  136. package/src/androidTest.js +20 -20
  137. package/src/bootstrap/less/.csscomb.json +304 -304
  138. package/src/bootstrap/less/.csslintrc +19 -19
  139. package/src/bootstrap/less/alerts.less +73 -73
  140. package/src/bootstrap/less/badges.less +66 -66
  141. package/src/bootstrap/less/breadcrumbs.less +26 -26
  142. package/src/bootstrap/less/button-groups.less +247 -247
  143. package/src/bootstrap/less/buttons.less +172 -172
  144. package/src/bootstrap/less/carousel.less +269 -269
  145. package/src/bootstrap/less/close.less +34 -34
  146. package/src/bootstrap/less/code.less +69 -69
  147. package/src/bootstrap/less/component-animations.less +33 -33
  148. package/src/bootstrap/less/dropdowns.less +216 -216
  149. package/src/bootstrap/less/forms.less +626 -626
  150. package/src/bootstrap/less/grid.less +84 -84
  151. package/src/bootstrap/less/input-groups.less +167 -167
  152. package/src/bootstrap/less/jumbotron.less +52 -52
  153. package/src/bootstrap/less/labels.less +64 -64
  154. package/src/bootstrap/less/list-group.less +141 -141
  155. package/src/bootstrap/less/media.less +66 -66
  156. package/src/bootstrap/less/mixins/alerts.less +14 -14
  157. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  158. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  159. package/src/bootstrap/less/mixins/buttons.less +69 -69
  160. package/src/bootstrap/less/mixins/center-block.less +7 -7
  161. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  162. package/src/bootstrap/less/mixins/forms.less +90 -90
  163. package/src/bootstrap/less/mixins/gradients.less +59 -59
  164. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  165. package/src/bootstrap/less/mixins/grid.less +122 -122
  166. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  167. package/src/bootstrap/less/mixins/image.less +33 -33
  168. package/src/bootstrap/less/mixins/labels.less +12 -12
  169. package/src/bootstrap/less/mixins/list-group.less +30 -30
  170. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  171. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  172. package/src/bootstrap/less/mixins/opacity.less +8 -8
  173. package/src/bootstrap/less/mixins/pagination.less +24 -24
  174. package/src/bootstrap/less/mixins/panels.less +24 -24
  175. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  176. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  177. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  178. package/src/bootstrap/less/mixins/resize.less +6 -6
  179. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  180. package/src/bootstrap/less/mixins/size.less +10 -10
  181. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  182. package/src/bootstrap/less/mixins/table-row.less +44 -44
  183. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  184. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  185. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  186. package/src/bootstrap/less/mixins.less +40 -40
  187. package/src/bootstrap/less/modals.less +151 -151
  188. package/src/bootstrap/less/navbar.less +660 -660
  189. package/src/bootstrap/less/normalize.less +424 -424
  190. package/src/bootstrap/less/pager.less +76 -76
  191. package/src/bootstrap/less/pagination.less +89 -89
  192. package/src/bootstrap/less/panels.less +275 -275
  193. package/src/bootstrap/less/popovers.less +131 -131
  194. package/src/bootstrap/less/print.less +101 -101
  195. package/src/bootstrap/less/progress-bars.less +87 -87
  196. package/src/bootstrap/less/responsive-embed.less +35 -35
  197. package/src/bootstrap/less/responsive-utilities.less +194 -194
  198. package/src/bootstrap/less/scaffolding.less +161 -161
  199. package/src/bootstrap/less/theme.less +291 -291
  200. package/src/bootstrap/less/thumbnails.less +36 -36
  201. package/src/bootstrap/less/tooltip.less +102 -102
  202. package/src/bootstrap/less/type.less +303 -303
  203. package/src/bootstrap/less/utilities.less +55 -55
  204. package/src/bootstrap/less/wells.less +29 -29
  205. package/src/components/FileUpload.vue +696 -696
  206. package/src/components/Hello.vue +39 -39
  207. package/src/components/LeftTree.vue +27 -27
  208. package/src/components/Util/ImgSelfSafePlus.vue +7 -0
  209. package/src/components/Util.js +7 -0
  210. package/src/components/android/AddGas.vue +147 -147
  211. package/src/components/android/AddressList.vue +61 -61
  212. package/src/components/android/AreaPlan.vue +2 -1
  213. package/src/components/android/AttendanceTally.vue +116 -116
  214. package/src/components/android/Blank.vue +10 -10
  215. package/src/components/android/CheckUnplanPage.vue +56 -56
  216. package/src/components/android/Checker.vue +12 -12
  217. package/src/components/android/CheckerAnnual.vue +81 -81
  218. package/src/components/android/CheckerAvarta.vue +82 -82
  219. package/src/components/android/CheckerMonthly.vue +84 -84
  220. package/src/components/android/EquipmentInspection.vue +348 -348
  221. package/src/components/android/FootprintMap.vue +120 -120
  222. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  223. package/src/components/android/ImgSelfAndroid.vue +181 -181
  224. package/src/components/android/LcheckUnplan.vue +108 -108
  225. package/src/components/android/MasterMain.vue +77 -77
  226. package/src/components/android/Menu.vue +132 -132
  227. package/src/components/android/NavBottom.vue +157 -157
  228. package/src/components/android/PaperAlarm.vue +85 -85
  229. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  230. package/src/components/android/PlumberAnnual.vue +83 -83
  231. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  232. package/src/components/android/PlumberMonthly.vue +84 -84
  233. package/src/components/android/PostMap.vue +83 -83
  234. package/src/components/android/QueryCheckHistory.vue +122 -122
  235. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  236. package/src/components/android/RepairMain.vue +60 -60
  237. package/src/components/android/Repairman.vue +12 -12
  238. package/src/components/android/SafePlanItem.vue +14 -2
  239. package/src/components/android/SafecheckDevices.vue +3 -1
  240. package/src/components/android/SafecheckOrderV.vue +18 -12
  241. package/src/components/android/StationMaster.vue +12 -12
  242. package/src/components/android/SwitchValve.vue +1 -1
  243. package/src/components/checkerphonestate/Checker.vue +32 -32
  244. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  245. package/src/components/defects/AddDefectModal.vue +120 -120
  246. package/src/components/defects/AddDevice.vue +95 -95
  247. package/src/components/defects/DefectModal.vue +101 -101
  248. package/src/components/defects/DevicesAndItem.vue +39 -39
  249. package/src/components/defects/DevicesSeting.vue +106 -106
  250. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  251. package/src/components/map/checkScreen.vue +27 -21
  252. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  253. package/src/components/metterfiles/MetterFiles.vue +104 -104
  254. package/src/components/notice/NoticeForm.vue +100 -100
  255. package/src/components/notice/NoticeIssue.vue +20 -20
  256. package/src/components/notice/NoticeQuery.vue +76 -76
  257. package/src/components/paper/PicViewer.vue +18 -18
  258. package/src/components/paper/PlanChooser.vue +167 -167
  259. package/src/components/paper/RepairVerifyForm.vue +76 -76
  260. package/src/components/pc/NewCheckpaper.vue +11 -8
  261. package/src/components/phonestate/DailyTraffic.vue +57 -57
  262. package/src/components/phonestate/LastKnownState.vue +74 -74
  263. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  264. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  265. package/src/components/phonestate/PostMap.vue +82 -82
  266. package/src/components/planmanage/PlanManage.vue +843 -836
  267. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  268. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +2 -3
  269. package/src/components/rongcheng/PaperListNPSQ.vue +6 -5
  270. package/src/components/rongcheng/PaperListSQ.vue +1 -1
  271. package/src/components/safecheckNew/PaperList.vue +785 -0
  272. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  273. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  274. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  275. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  276. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  277. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -0
  278. package/src/components/task/RepairAnnual.vue +79 -79
  279. package/src/components/task/RepairAnnualDetail.vue +49 -49
  280. package/src/components/task/RepairMonthly.vue +91 -91
  281. package/src/components/task/TaskAnnual.vue +77 -77
  282. package/src/components/task/TaskAnnualDetail.vue +47 -47
  283. package/src/components/task/TaskMonthly.vue +89 -89
  284. package/src/components/userfile/MeterFile.vue +145 -145
  285. package/src/components/userfile/MeterModify.vue +46 -46
  286. package/src/components/userfile/UserFile.vue +118 -118
  287. package/src/components/userfile/UserfileChange.vue +277 -277
  288. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  289. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  290. package/src/filiale/baiyin/android.js +10 -0
  291. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -0
  292. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -0
  293. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -0
  294. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -0
  295. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -0
  296. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  297. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  298. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  299. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  300. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  301. package/src/filiale/baiyin/pc/checkUserList.vue +771 -0
  302. package/src/filiale/baiyin/pc.js +21 -0
  303. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  304. package/src/filiale/bayan/android/SafecheckOrderV.vue +15 -3
  305. package/src/filiale/bayan/android/SafecheckUserInfo.vue +34 -6
  306. package/src/filiale/bayan/android.js +1 -0
  307. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  308. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  309. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  310. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  311. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  312. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  313. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  314. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -0
  315. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  316. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  317. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  318. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  319. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  320. package/src/filiale/bayan/pc.js +7 -0
  321. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  322. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +4 -4
  323. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -0
  324. package/src/filiale/jiaxian/android.js +10 -0
  325. package/src/filiale/jiaxian/pc.js +12 -0
  326. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  327. package/src/filiale/liaoyuan/pc.js +18 -18
  328. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  329. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1268
  330. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  331. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +5 -1
  332. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  333. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  334. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  335. package/src/filiale/siyang/android.js +11 -0
  336. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -0
  337. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  338. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  339. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  340. package/src/filiale/siyang/pc/checkUserList.vue +786 -0
  341. package/src/filiale/siyang/pc.js +16 -0
  342. package/src/filiale/tianke/pc/checkScreen.vue +27 -21
  343. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  344. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  345. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  346. package/src/filiale/weinan/android/SafecheckDevices.vue +2 -2
  347. package/src/filiale/weinan/android/SafecheckOrderV.vue +10 -0
  348. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  349. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  350. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  351. package/src/filiale/weinan/pc.js +1 -0
  352. package/src/filiale/wenxi/android/CurrentCreate.vue +1 -1
  353. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  354. package/src/filiale/wenxi/android/SafecheckOrderV.vue +14 -0
  355. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  356. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  357. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
  358. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  359. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  360. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  361. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  362. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  363. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2843
  364. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -879
  365. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  366. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  367. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  368. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  369. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -0
  370. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -0
  371. package/src/filiale/yuansheng/android.js +2 -0
  372. package/src/main.js +33 -33
  373. package/src/plugins/LoadData.js +10 -10
  374. package/src/plugins/LoadParams.js +24 -24
  375. package/src/safecheck-android.js +6 -0
  376. package/src/safecheck.js +3 -0
  377. package/src/stores/wxconfig.js +10 -10
  378. package/src/utils/getNowDate.js +33 -33
  379. package/test/e2e/custom-assertions/elementCount.js +26 -26
  380. package/test/e2e/nightwatch.conf.js +40 -40
  381. package/test/e2e/runner.js +30 -30
  382. package/test/e2e/specs/test.js +13 -13
  383. package/test/unit/.eslintrc +5 -5
  384. package/test/unit/TestUtil.js +62 -62
  385. package/test/unit/context.html +20 -20
  386. package/test/unit/index.js +13 -13
@@ -1,1192 +1,1192 @@
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"
10
- id="f_userinfo"
11
- placeholder="编号 名称 电话 表号 地址"
12
- condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%')">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">用户编号</label>
16
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
17
- id="f_userinfo_code"
18
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
19
- </div>
20
- <div :class="$parent.$parent.style">
21
- <label class="font_normal_body">用户姓名</label>
22
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
23
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">小&emsp;&emsp;区</label>
27
- <v-select id="f_residential_area"
28
- placeholder='小区'
29
- class="select select_list"
30
- :value.sync="model.f_residential_area"
31
- :value-single="true"
32
- :options='$parent.$parent.residentialareas'
33
- v-model="model.f_residential_area"
34
- condition="f_residential_area = '{}'"
35
- close-on-select clear-button></v-select>
36
- </div>
37
- <div :class="$parent.$parent.style">
38
- <label class="font_normal_body">地&emsp;&emsp;址</label>
39
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
40
- placeholder="地址" condition="f_address like '%{}%'">
41
- </div>
42
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
43
- <export-excel-safe :data="$parent.$parent.searchData"
44
- :field="$parent.$parent.excelHeaders"
45
- :choose-col="true"
46
- sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
47
- template-name='用户安检情况'></export-excel-safe>
48
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
- <div style="float: right" class="button_spacing"
50
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
51
- @click="$parent.$parent.hiddenr()"></div>
52
- <div style="float: right" class="button_spacing"
53
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
- @click="$parent.$parent.hidden()">
55
-
56
- </div>
57
- </div>
58
-
59
-
60
- </div>
61
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
62
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
63
- <label class="font_normal_body">用户类型</label>
64
- <v-select id="f_usertype"
65
- placeholder='用户类型'
66
- class="select select_list"
67
- :value.sync="model.f_usertype"
68
- :value-single="true"
69
- :options='$parent.$parent.usertypes'
70
- v-model="model.f_usertype"
71
- condition="f_user_type = '{}'"
72
- close-on-select clear-button></v-select>
73
- </div>
74
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
75
-
76
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
- <label class="font_normal_body" style="color: red;">安检筛选</label>
78
- <v-select
79
- placeholder='安检筛选'
80
- :value-single="true"
81
- class="select select_list"
82
- :value.sync="$parent.$parent.SafeCheckXZ"
83
- :options='$parent.$parent.SafeCheckXZs'
84
- v-model="$parent.$parent.SafeCheckXZ"
85
- close-on-select clear-button></v-select>
86
- </div>
87
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
- <label class="font_normal_body">安检起始</label>
89
- <datepicker
90
- :value.sync="model.f_check_start"
91
- placeholder='最后安检时间起始'
92
- style="width: 60%"
93
- :format="'yyyy-MM-dd 00:00:00'"
94
- :show-rest-button="reset"
95
- v-model="model.f_check_start">
96
- </datepicker>
97
- </div>
98
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
99
- <label class="font_normal_body">安检结束</label>
100
- <datepicker
101
- :value.sync="model.f_check_end"
102
- placeholder='最后安检时间结束'
103
- style="width: 60%"
104
- :format="'yyyy-MM-dd 23:59:59'"
105
- :show-rest-button="reset"
106
- v-model="model.f_check_end">
107
- </datepicker>
108
- </div>
109
-
110
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
- <label class="font_normal_body">安检状态</label>
112
- <v-select id="f_entry"
113
- placeholder='安检状态'
114
- :multiple="true"
115
- class="select select_list"
116
- :value.sync="$parent.$parent.checkStates"
117
- :options='$parent.$parent.checkstatus'
118
- ></v-select>
119
- </div>
120
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
121
- <label class="font_normal_body">隐患情况</label>
122
- <v-select
123
- placeholder='隐患情况'
124
- class="select select_list"
125
- :value-single="true"
126
- v-model='model.f_check_result'
127
- :value.sync="model.f_check_result"
128
- :options='$parent.$parent.f_check_results'
129
- condition="f_defect_content like '%{}%'"
130
- close-on-select clear-button></v-select>
131
- </div>
132
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
133
- </div>
134
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
135
-
136
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
137
- <role-selector-safe
138
- role-name="安检员"
139
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
140
- @re-res="$parent.$parent.getRes"
141
- :value.sync="model.f_checker_id"
142
- v-model="model.f_checker_id"
143
- :value-multiple="true"
144
- condition=" f_checker_name in {}">
145
- </role-selector-safe>
146
- </div>
147
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
148
- <label class="font_normal_body">片&emsp;&emsp;区</label>
149
- <v-select class="select_list select"
150
- placeholder='片区/管理站' style="width: 60%"
151
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
152
- :options='$parent.$parent.sliceArea'
153
- filer-key="name"
154
- close-on-select clear-button
155
- condition="f_slice_area='{}'"
156
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
157
- :value-single="true">
158
- </v-select>
159
- </div>
160
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
161
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
162
- <v-select class="select_list select"
163
- placeholder='抄表册' style="width: 60%"
164
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
165
- :options='$parent.$parent.cbc'
166
- filer-key="name"
167
- close-on-select clear-button
168
- condition="f_meter_book_num={}"
169
- :value-single="true">
170
- </v-select>
171
- </div>
172
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
173
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
174
- <v-select class="select_list select"
175
- placeholder='请选择' style="width: 60%"
176
- :value.sync="model.f_pcd" v-model="model.f_pcd"
177
- :options='$parent.$parent.pcds'
178
- filer-key="name"
179
- close-on-select clear-button
180
- condition="f_pcd='{}'"
181
- :value-single="true">
182
- </v-select>
183
- </div>
184
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
185
- <label class="font_normal_body">用户状态</label>
186
- <v-select class="select_list select"
187
- placeholder='用户状态' style="width: 60%"
188
- :value.sync="model.f_user_state" v-model="model.f_user_state"
189
- :options='$parent.$parent.userstates'
190
- close-on-select clear-button
191
- condition="f_user_state = '{}'"
192
- :value-single="true">
193
- </v-select>
194
- </div>
195
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
196
- <label class="font_normal_body">通气起始</label>
197
- <datepicker
198
- :value.sync="model.f_gas_start"
199
- placeholder='通气时间起始'
200
- :disabled-days-of-week="[]"
201
- style="width: 60%"
202
- :format="'yyyy-MM-dd'"
203
- :show-rest-button="reset"
204
- v-model="model.f_gas_start"
205
- condition="f_gas_date >= '{}'"
206
- >
207
- </datepicker>
208
- </div>
209
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
210
- <label class="font_normal_body">通气结束</label>
211
- <datepicker
212
- :value.sync="model.f_gas_end"
213
- placeholder='通气时间结束'
214
- style="width: 60%"
215
- :disabled-days-of-week="[]"
216
- :format="'yyyy-MM-dd'"
217
- :show-rest-button="reset"
218
- condition="f_gas_date <= '{}'"
219
- v-model="model.f_gas_end">
220
- </datepicker>
221
- </div>
222
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
223
- <label class="font_normal_body">建档起始</label>
224
- <datepicker
225
- :value.sync="model.f_createfile_start"
226
- placeholder='建档时间起始'
227
- :disabled-days-of-week="[]"
228
- style="width: 60%"
229
- :format="'yyyy-MM-dd'"
230
- :show-rest-button="reset"
231
- v-model="model.f_createfile_start"
232
- condition="f_createfile_date >= '{}'"
233
- >
234
- </datepicker>
235
- </div>
236
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
- <label class="font_normal_body">建档结束</label>
238
- <datepicker
239
- :value.sync="model.f_createfile_end"
240
- placeholder='建档时间结束'
241
- style="width: 60%"
242
- :disabled-days-of-week="[]"
243
- :format="'yyyy-MM-dd'"
244
- :show-rest-button="reset"
245
- condition="f_createfile_date <= '{}'"
246
- v-model="model.f_createfile_end">
247
- </datepicker>
248
- </div>
249
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
- <label class="font_normal_body">通气开始</label>
251
- <datepicker
252
- :value.sync="model.f_gas_start"
253
- placeholder='开始时间' style="width: 60%"
254
- :disabled-days-of-week="[]"
255
- :format="'yyyy-MM-dd'"
256
- :show-rest-button="reset"
257
- v-model="model.f_gas_start"
258
- condition="f_gas_date > ='{} 00:00:00'">
259
- </datepicker>
260
- </div>
261
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
262
- <label class="font_normal_body">通气结束</label>
263
- <datepicker
264
- :value.sync="model.f_gas_end"
265
- placeholder='结束时间' style="width: 60%"
266
- :disabled-days-of-week="[]"
267
- :format="'yyyy-MM-dd'"
268
- :show-rest-button="reset"
269
- v-model="model.f_gas_end"
270
- condition="f_gas_date <= '{} 23:59:59'">
271
- </datepicker>
272
- </div>
273
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
274
- <label class="font_normal_body">安检册</label>
275
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_check_book_name" id="f_check_book_name"
276
- placeholder="安检册" condition="f_check_book_name like '%{}%'">
277
- </div>
278
- </div>
279
-
280
- <div class="row" v-show="$parent.$parent.$parent.showItem">
281
- <div :class="$parent.$parent.style">
282
- <label class="font_normal_body">用户编号</label>
283
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
284
-
285
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
286
- </div>
287
- <div :class="$parent.$parent.style">
288
- <label class="font_normal_body">用户姓名</label>
289
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
290
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
291
- </div>
292
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
293
- <export-excel-safe :data="$parent.$parent.searchData"
294
- :field="$parent.$parent.excelHeaders"
295
- sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
296
- template-name='用户安检情况'></export-excel-safe>
297
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
298
- <div style="float: right" class="button_spacing"
299
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
300
- @click="$parent.$parent.hiddenr()"></div>
301
- <div style="float: right" class="button_spacing"
302
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
303
- @click="$parent.$parent.hidden()">
304
-
305
- </div>
306
- </div>
307
-
308
- </div>
309
- <div class="row" v-show="$parent.$parent.$parent.showItem">
310
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
311
- <label class="font_normal_body">小&emsp;&emsp;区</label>
312
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
313
-
314
- placeholder="小区" condition="f_residential_area like '%{}%'">
315
- </div>
316
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
317
- <label class="font_normal_body">地&emsp;&emsp;址</label>
318
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
319
-
320
- placeholder="地址" condition="f_address like '%{}%'">
321
- </div>
322
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
323
- <label class="font_normal_body">用户类型</label>
324
- <v-select
325
- placeholder='用户类型'
326
- class="select select_list"
327
-
328
- :value.sync="model.f_usertype"
329
- :value-single="true"
330
- :options='$parent.$parent.usertypes'
331
- v-model="model.f_usertype"
332
- condition="f_user_type = '{}'"
333
- close-on-select clear-button></v-select>
334
- </div>
335
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
336
-
337
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
338
- <label class="font_normal_body" style="color: red;">安检筛选</label>
339
- <v-select
340
- placeholder='安检筛选'
341
- :value-single="true"
342
-
343
- class="select select_list"
344
- :value.sync="$parent.$parent.SafeCheckXZ"
345
- :options='$parent.$parent.SafeCheckXZs'
346
- v-model="$parent.$parent.SafeCheckXZ"
347
- close-on-select clear-button></v-select>
348
- </div>
349
-
350
- </div>
351
- <div class="row" v-show="$parent.$parent.$parent.showItem">
352
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
353
- <label class="font_normal_body">安检起始</label>
354
- <datepicker
355
- :value.sync="model.f_check_start"
356
- placeholder='最后安检时间起始'
357
- :disabled-days-of-week="[]"
358
- style="width: 60%"
359
- :format="'yyyy-MM-dd'"
360
- :show-rest-button="reset"
361
- v-model="model.f_check_start">
362
- </datepicker>
363
- </div>
364
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
365
- <label class="font_normal_body">安检结束</label>
366
- <datepicker
367
- :value.sync="model.f_check_end"
368
- placeholder='最后安检时间结束'
369
- style="width: 60%"
370
- :disabled-days-of-week="[]"
371
- :format="'yyyy-MM-dd'"
372
- :show-rest-button="reset"
373
- v-model="model.f_check_end">
374
- </datepicker>
375
- </div>
376
-
377
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
378
- <label class="font_normal_body">安检状态</label>
379
- <v-select
380
- placeholder='安检状态'
381
- class="select select_list"
382
- :value.sync="$parent.$parent.checkStates"
383
- :options='$parent.$parent.checkstatus'
384
- :multiple="true"
385
- close-on-select clear-button></v-select>
386
- </div>
387
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
388
- <label class="font_normal_body">隐患情况</label>
389
- <v-select
390
- placeholder='隐患情况'
391
- class="select select_list"
392
- :value-single="true"
393
- v-model='model.f_check_result'
394
- :value.sync="model.f_check_result"
395
- :options='$parent.$parent.f_check_results'
396
- condition="f_defect_content like '%{}%'"
397
- close-on-select clear-button></v-select>
398
- </div>
399
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
400
- <label class="font_normal_body">通气起始</label>
401
- <datepicker
402
- :value.sync="model.f_gas_start"
403
- placeholder='通气时间起始'
404
- :disabled-days-of-week="[]"
405
- style="width: 60%"
406
- :format="'yyyy-MM-dd'"
407
- :show-rest-button="reset"
408
- v-model="model.f_gas_start"
409
- condition="f_defect_content >= '{}'"
410
- >
411
- </datepicker>
412
- </div>
413
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
414
- <label class="font_normal_body">通气结束</label>
415
- <datepicker
416
- :value.sync="model.f_gas_end"
417
- placeholder='通气时间结束'
418
- style="width: 60%"
419
- :disabled-days-of-week="[]"
420
- :format="'yyyy-MM-dd'"
421
- :show-rest-button="reset"
422
- condition="f_gas_date <= '{}'"
423
- v-model="model.f_gas_end">
424
- </datepicker>
425
- </div>
426
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
427
- <label class="font_normal_body">建档起始</label>
428
- <datepicker
429
- :value.sync="model.f_createfile_start"
430
- placeholder='建档时间起始'
431
- :disabled-days-of-week="[]"
432
- style="width: 60%"
433
- :format="'yyyy-MM-dd'"
434
- :show-rest-button="reset"
435
- v-model="model.f_createfile_start"
436
- condition="f_createfile_date >= '{}'"
437
- >
438
- </datepicker>
439
- </div>
440
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
441
- <label class="font_normal_body">建档结束</label>
442
- <datepicker
443
- :value.sync="model.f_createfile_end"
444
- placeholder='建档时间结束'
445
- style="width: 60%"
446
- :disabled-days-of-week="[]"
447
- :format="'yyyy-MM-dd'"
448
- :show-rest-button="reset"
449
- condition="f_createfile_date <= '{}'"
450
- v-model="model.f_createfile_end">
451
- </datepicker>
452
- </div>
453
- </div>
454
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
455
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
456
- <label class="font_normal_body">公&emsp;&emsp;司</label>
457
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
458
- </right-tree>
459
- </div>
460
-
461
- </div>-->
462
- </div>
463
- </criteria>
464
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
465
- <template partial='head'>
466
- <tr>
467
- <th>
468
- <nobr>用户编号</nobr>
469
- </th>
470
- <th>
471
- <nobr>用户名称</nobr>
472
- </th>
473
- <th>
474
- <nobr>用户电话</nobr>
475
- </th>
476
- <th>
477
- <nobr>用户表号</nobr>
478
- </th>
479
- <!-- <th>-->
480
- <!-- <nobr>气表品牌</nobr>-->
481
- <!-- </th>-->
482
- <th>
483
- <nobr>用户类型</nobr>
484
- </th>
485
- <!-- <th>-->
486
- <!-- <nobr>壁挂炉</nobr>-->
487
- <!-- </th>-->
488
- <!-- <th>-->
489
- <!-- <nobr>灶具</nobr>-->
490
- <!-- </th>-->
491
- <th>
492
- <nobr>片区</nobr>
493
- </th>
494
- <th>
495
- <nobr>小区名称</nobr>
496
- </th>
497
- <th style="padding: 0 40px">
498
- <nobr>地址</nobr>
499
- </th>
500
- <th>
501
- <nobr>安检册</nobr>
502
- </th>
503
- <th>
504
- <nobr>安检员</nobr>
505
- </th>
506
- <!-- <th>-->
507
- <!-- <nobr>安检员备注</nobr>-->
508
- <!-- </th>-->
509
- <th>
510
- <nobr>安检日期</nobr>
511
- </th>
512
- <th>
513
- <nobr>安检状态</nobr>
514
- </th>
515
- <th>
516
- <nobr>安检结果</nobr>
517
- </th>
518
- <th>
519
- <nobr>建档日期</nobr>
520
- </th>
521
- <th>
522
- <nobr>通气日期</nobr>
523
- </th>
524
- <th v-show="$parent.$parent.$parent.showcode">
525
- <nobr>二维码</nobr>
526
- </th>
527
- </tr>
528
- </template>
529
- <template partial='body'>
530
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
531
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
532
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
533
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
534
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
535
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
536
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
537
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
538
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_slice_area }}</td>
539
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
540
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
541
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_check_book_name }}</td>
542
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
543
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
544
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
545
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
546
- {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
547
- </td>
548
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
549
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_gas_date }}</td>
550
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
551
- <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
552
- </td>
553
- </template>
554
- </data-grid>
555
- </criteria-paged>
556
- <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
557
- <div slot="modal-header" class="modal-header">
558
- <h4 class="modal-title">
559
- 二维码
560
- </h4>
561
- </div>
562
- <div slot="modal-body" class="modal-body" >
563
- <div id="dd" ></div>
564
- </div>
565
- <div slot="modal-footer" class="modal-footer">
566
- <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>
567
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
568
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
569
- </div>
570
- </modal>
571
- </div>
572
-
573
- </template>
574
-
575
- <script>
576
- import {PagedList} from 'vue-client'
577
- import {HttpResetClass} from 'vue-client'
578
- import co from 'co'
579
- import * as Util from '.././../Util'
580
- import Vue from 'vue'
581
-
582
- // let select = function * (self,userid) {
583
- // let http = new HttpResetClass()
584
- // let getGasman = yield http.load('POST','/rs/search', {
585
- // source: 'this.getChildByName($安检员$).getUsers()',
586
- // userid: userid
587
- // }, {resolveMsg: null, rejectMsg: null})
588
- // //tag
589
- // getGasman.data.forEach((checker)=>{
590
- // self.checkersid.push({label:checker.name,value:checker.id})
591
- // })
592
- // self.checkersid.push({label:'全部',value:''})
593
- // }
594
-
595
-
596
- export default {
597
- title: '用户安检情况',
598
- data() {
599
- let options = []
600
- let year = (new Date()).getFullYear()
601
- for (let i = year; i <= year + 3; i++)
602
- options.push({label: i + '', value: i + ''})
603
- let moptions = []
604
- for (let i = 1; i <= 12; i++)
605
- moptions.push({label: i + '', value: i + ''})
606
-
607
- return {
608
- dialogVisible: false,
609
- searchData: {
610
- condition: '1=1',
611
- orderitem: "f_last_check_date",
612
- timetype: "dd",
613
- 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"
614
- },
615
- excelHeaders: {
616
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
617
-
618
- 'f_userinfo_code': '用户编号',
619
- 'f_user_name': '用户名称',
620
- 'f_user_phone': '用户电话',
621
- 'f_meternumber': '用户表号',
622
- 'f_user_type': '用户类型',
623
- 'f_checker_name': '安检员',
624
- 'f_slice_area': '片区',
625
- 'f_residential_area': '小区名称',
626
- 'f_address': '地址',
627
- 'f_last_check_date': '安检日期',
628
- 'f_last_check_state': '安检状态',
629
- 'f_last_check_result': '安检结果',
630
- 'f_createfile_date': '建档日期',
631
- 'f_gas_date': '通气日期'
632
- },
633
- model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
634
- orderitem: "'f_last_check_date'",
635
- timetype: "'dd'",
636
- f_defect_content: 'this.f_defect_content'
637
- }),
638
- 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",
639
- orgstrs: [{label: '全部', value: ''}],
640
- checkersid: [],
641
- checkStates:[],
642
- SafeCheckXZ: '',
643
- civil: '', //民用安检周期
644
- civilian: '', //非民用安检周期
645
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
646
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
647
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
648
- IsShares: [{label: '', value: '是'}, {label: '否', value: '否'}],
649
- IsShare: '',
650
- checker: {},
651
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
652
- criteriaShow: false,
653
- checkers: [],
654
- showcode:false,
655
- chosenOrg: {id: 0},
656
- showModal: false,
657
- checkedAll: false,
658
- checkrows: [],
659
- adjustables: [],
660
- f_plan_year: year + '',
661
- f_plan_month: moptions[new Date().getMonth()].value,
662
- f_effective_start_time: '', //计划有效起始时间
663
- f_effective_end_time: '', //计划有效结束时间
664
- checkboxModel: {},
665
- c_year_list: options,
666
- c_month_list: moptions,
667
- // areas: this.areas(),
668
- checkstatus: this.checkstatus(),
669
- usertypes: this.usertypes(),
670
- userstates: this.userstates(),
671
- sqlname: '',
672
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
673
- creatPlanWay: '',
674
- sliceArea: [],
675
- residentialareas: [],
676
- cbcs:[],
677
- cbc:[],
678
- pcds:[]
679
- }
680
- },
681
- props: {
682
- style: {
683
- type: String,
684
- default: 'col-sm-2 form-group'
685
- },
686
- style2: {
687
- type: String,
688
- default: 'col-sm-4 form-group'
689
- },
690
- checkplan: { // 传入一条安检计划信息
691
- type: Object
692
- },
693
- additemshow: {
694
- type: Boolean,
695
- default: false
696
- }
697
- },
698
- ready() {
699
- // 获取分公司信息
700
- this.model.f_defect_content=this.f_defect_content
701
- this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
702
- //this.getfengongsi()
703
- this.model.chosenOrg = {id: 0}
704
- this.model.f_filialeids = this.$login.f.f_orgids
705
- this.model.f_filiale = this.$login.f.f_fengongsi
706
- this.model.f_OrgStr = this.$login.f.orgpathstr
707
- this.Mreadibook(`('${this.$login.f.orgid}')`)
708
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
709
- this.getresidentialarea()
710
- },
711
- methods: {
712
- //查询二维码
713
- searchInfo(val){
714
- this.dialogVisible = true
715
- //tag
716
- new HttpResetClass().load('POST','rs/logic/QrcodeUtil', {
717
- data: {
718
- id:val
719
- }
720
- },{resolveMsg: null, rejectMsg: null}).then(res=>{
721
- //tag
722
- //tag
723
- let imageer=new Image()
724
- imageer.src="data:image/jpg;base64,"+res.data.result
725
- document.getElementById("dd").appendChild(imageer);
726
- //tag
727
- })
728
-
729
- },
730
- //获取省市区列表
731
- getPcd(val){
732
- this.pcds = [{label:'全部',value:''}]
733
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
734
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
735
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
736
- pcdlist.data.forEach((result)=>{
737
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
738
- })
739
- })
740
- },
741
- getmeterbook(val){
742
-
743
- //tag
744
- this.cbc=[]
745
- this.cbc.push({
746
- label:'全部',
747
- value:''
748
- })
749
- if (val==''){
750
-
751
- this.cbcs.forEach(res=>{
752
- this.cbc.push({
753
- label:res.f_book_name,
754
- value:res.id
755
- })
756
- })
757
- }else{
758
- this.cbcs.forEach(res=>{
759
- if (res.f_book_slice_area==val){
760
- this.cbc.push({
761
- label:res.f_book_name,
762
- value:res.id
763
- })
764
- }
765
- })
766
- }
767
- },
768
- Mreadibook(val){
769
- ////tag
770
- ////tag
771
- if (val){
772
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
773
- items: 'name',
774
- tablename: 't_zone',
775
- condition: `parentid in ${val}`,
776
- orderitem: 'id'
777
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
778
- this.sliceArea=[]
779
- this.sliceArea.push({
780
- label:'全部',
781
- value:''
782
- })
783
- res.data.forEach(ress=>{
784
- this.sliceArea.push({
785
- label:ress.name,
786
- value:ress.name
787
- })
788
- })
789
-
790
- })
791
- }
792
- },
793
- getresidentialarea(){
794
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_GroupBy`, {data: {
795
- items: 'f_residential_area',
796
- tablename: 't_user_address',
797
- condition: `f_residential_area is not null and f_orgid = '${this.$login.f.orgid}'`,
798
- groupitem: 'f_residential_area',
799
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
800
- this.residentialareas=[]
801
- this.residentialareas.push({
802
- label:'全部',
803
- value:''
804
- })
805
- res.data.forEach(ress=>{
806
- this.residentialareas.push({
807
- label:ress.f_residential_area,
808
- value:ress.f_residential_area
809
- })
810
- })
811
-
812
- })
813
- },
814
- // 获取县域分公司内容
815
- getfengongsi() {
816
- let val = {
817
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
818
- userid: `${this.$login.f.id}`
819
- }
820
- let http = new HttpResetClass()
821
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
822
- res.data.forEach((item) => {
823
- this.orgstrs.push({label: item.name, value: item.id})
824
- })
825
- //tag
826
- })
827
- },
828
- // 县域分公司发生改变
829
- // orgstrchange(val){
830
- // if(val == undefined || val == ''){
831
- // return
832
- // }else {
833
- // this.checkersid = []
834
- // let gen = select(this,val)
835
- // return co(gen)
836
- // }
837
- // },
838
- getDefect(val) {
839
- if (val) {
840
- try {
841
- var defect = JSON.parse(val)
842
- return defect.result
843
- } catch (e) {
844
- //tag
845
- return '正常'
846
- }
847
- }
848
- return '正常'
849
- },
850
- checkerchange(val) {
851
- this.checkboxModel.f_checker = val.name
852
- this.checkboxModel.f_checker_id = val.id
853
- },
854
- search(args) {
855
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
856
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
857
- return
858
- }
859
- if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
860
- this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
861
- return
862
- }
863
- /*if (this.SafeCheckXZ == '未安检') {
864
- 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)"
865
- } else {
866
- if (args.model.f_check_start) {
867
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
868
- }
869
- if (args.model.f_check_end) {
870
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
871
- }
872
- }*/
873
- args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
874
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
875
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
876
- /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
877
- con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
878
- con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
879
- con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
880
- if (this.SafeCheckXZ) {
881
- con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
882
- if (this.SafeCheckXZ == '未安检'){
883
- args.condition += ' and ruhuid is null'
884
- }else{
885
- args.condition += ' and ruhuid is not null'
886
- }
887
- }
888
- let states = ` (`
889
- if (this.checkStates.length > 0 ){
890
- for (let i = 0; i < this.checkStates.length; i++) {
891
- if (this.checkStates[i]){
892
- states += `'${this.checkStates[i]}',`
893
- }else {
894
- states = ''
895
- break
896
- }
897
- }
898
- if (states){
899
- states=states.substring(0,states.length-1)
900
- states += `) `
901
- args.condition += ` and f_last_check_state in ${states}`
902
- }
903
- }else {
904
- states = ''
905
- }
906
- con += states ? ` and f_entry_status in ${states}` : ''
907
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
908
- let condition = {
909
- condition1: args.condition,
910
- condition2: con
911
- }
912
- this.searchData.condition = condition
913
- return this.model.search(condition, args.model)
914
- },
915
- checkstatus() {
916
- return this.$appdata.getParam('安检状态') ? [{
917
- label: '全部',
918
- value: ''
919
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
920
- },
921
- usertypes() {
922
- return this.$appdata.getParam('用户类型') ? [{
923
- label: '全部',
924
- value: ''
925
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
926
- },
927
- userstates() {
928
- return this.$appdata.getParam('用户状态') ? [{
929
- label: '全部',
930
- value: ''
931
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
932
- },
933
- hiddenr() {
934
- this.$parent.showItem = !this.$parent.showItem
935
- },
936
- hidden() {
937
- this.criteriaShow = !this.criteriaShow
938
- },
939
- confirm() {
940
- if (!this.checkboxModel.f_plan_name) {
941
- this.$showMessage('请填写安检计划名称!')
942
- return
943
- }
944
- // if(this.f_effective_start_time == ''){
945
- // this.$showMessage('请选择有效起始日期!')
946
- // return
947
- // }
948
- // if(this.f_effective_end_time == ''){
949
- // this.$showMessage('请选择有效结束日期!')
950
- // return
951
- // }
952
- if (this.IsShare == '否') {
953
- if (!this.checkboxModel.f_checker_id) {
954
- this.$showMessage('请选择安检员!')
955
- return
956
- }
957
- }
958
- let gen = saveGen(this)
959
- return co(gen)
960
- },
961
- changeStates() {
962
- if (this.checkedAll) {//实现反选/
963
- this.checkrows = [];
964
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
965
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
966
- }
967
- } else {//实现全选
968
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
969
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
970
- }
971
- let _this = this
972
- let condition = this.$refs.paged.$refs.criteria.condition
973
- let url = this.model.url
974
- this.$resetpost(`${url}?pageSize=9999999`, {
975
- data: {
976
- condition: condition,
977
- groupitem: '',
978
- orderitem: 'f_residential_area',
979
- f_usertype: this.model.f_usertype,
980
- f_filialeids: this.model.f_filialeids,
981
- month: this.model.month,
982
- safeCycle: this.model.safeCycle,
983
- f_checktime_start: this.model.f_checktime_start,
984
- f_checktime_end: this.model.f_checktime_end,
985
- SafeCheckSX: this.model.SafeCheckSX,
986
- f_last_check_state: this.model.f_last_check_state
987
- },
988
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
989
- (respanse) => {
990
- if (respanse.data.length >= 5000) {
991
- this.$showMessage("数据量太大,请重新选择")
992
- } else {
993
- _this.checkrows = []
994
- for (let j = 0; j < respanse.data.length; j++) {
995
- _this.checkrows.push(respanse.data[j])
996
- }
997
- //tag;
998
- }
999
- })
1000
- }
1001
- },
1002
- addChecked(item) {
1003
- //tag;
1004
- if (!item.checked) {
1005
- this.checkrows.push(item);
1006
- //tag;
1007
- } else {
1008
- for (let i = 0; i < this.checkrows.length; i++) {
1009
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
1010
- this.checkrows.splice(i, 1)
1011
- }
1012
- }
1013
- }
1014
- },
1015
- ToshowModal() {
1016
- this.creatPlanWay = 'single'
1017
- if (this.checkrows.length > 0) {
1018
- this.showModal = true
1019
- } else {
1020
- this.$showMessage("请选择需要安检的用户!")
1021
- }
1022
- },
1023
- FiltrationPlan() {
1024
- if (this.model.rows.length == 0) {
1025
- this.$showMessage("暂无可生成的计划!")
1026
- return
1027
- }
1028
- this.creatPlanWay = 'filtration'
1029
- this.showModal = true
1030
- },
1031
- AllPlan() {
1032
- if (this.model.rows.length == 0) {
1033
- this.$showMessage("暂无可生成的计划!")
1034
- return
1035
- }
1036
- this.creatPlanWay = 'all'
1037
- this.showModal = true
1038
- },
1039
- cancel() {
1040
- this.showModal = false
1041
- },
1042
- /*areas() {
1043
- let rs = []
1044
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1045
- let temp = {
1046
- label: this.$login.f.f_allArea[i].label,
1047
- value: this.$login.f.f_allArea[i].label
1048
- }
1049
- rs.push(temp)
1050
- }
1051
- return [{label: '全部', value: ''}, ...rs]
1052
- },*/
1053
- initAdjustables() {
1054
- //tag
1055
- let arr = []
1056
- let filter = this.$login.f.f_orgids
1057
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1058
- let temp = {}
1059
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1060
- temp.value = `${item.value.id}`
1061
- arr.push(temp)
1062
- })
1063
- this.adjustables = [{label: '全部', value: ''}, ...arr]
1064
- },
1065
- getAllMeterBook(val){
1066
- ////tag
1067
- ////tag
1068
- this.cbcs=[]
1069
- if (val){
1070
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
1071
- items: 'f_book_name,f_book_slice_area,id',
1072
- tablename: 't_meter_book',
1073
- condition: `f_filiale_id in ${val}`,
1074
- orderitem: 'id'
1075
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1076
- res.data.forEach(ress=>{
1077
- this.cbcs.push({
1078
- id:ress.id,
1079
- f_book_name:ress.f_book_name,
1080
- f_book_slice_area:ress.f_book_slice_area
1081
- })
1082
- })
1083
- this.cbc=[]
1084
- this.cbc.push({
1085
- label:'全部',
1086
- value:''
1087
- })
1088
- this.cbcs.forEach(res=>{
1089
- this.cbc.push({
1090
- label:res.f_book_name,
1091
- value:res.id
1092
- })
1093
- })
1094
- })
1095
- }
1096
- },
1097
- getRes(obj) {
1098
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1099
- this.Mreadibook(this.model.f_filialeids)
1100
- this.getAllMeterBook(this.model.f_filialeids)
1101
- this.getPcd(this.model.f_filialeids)
1102
- }
1103
- },
1104
-
1105
- watch: {
1106
- 'model.f_usertype'(val) {
1107
- if (val == '民用') {
1108
- this.model.safeCycle = this.civil
1109
- } else if (val == '非民用') {
1110
- this.model.safeCycle = this.civilian
1111
- }
1112
- },
1113
- 'model.SafeCheckXZ'(val) {
1114
- this.model.SafeCheckSC = ''
1115
- if (val == '已安检') {
1116
- this.model.SafeCheckCQ = ''
1117
- this.model.SafeCheckSX = {
1118
- f_check_end: '', // 安检时间 查询起始条件
1119
- f_check_start: ''// 安检时间 查询终止条件
1120
- }
1121
- } else {
1122
- // 当使用筛选条件时,清空不需要的条件选项
1123
- this.model.f_issue_start = ''
1124
- this.model.f_issue_end = ''
1125
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
1126
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
1127
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1128
- this.model.month = ''
1129
- if (val == '应安检') {
1130
- this.model.SafeCheckSC = '否'
1131
-
1132
- this.model.f_issue_start = Util.toStartDateString()
1133
- this.model.f_issue_end = Util.toStandardDateString()
1134
- }
1135
- // this.model.f_checktime_start = ''
1136
- // this.model.f_checktime_end = ''
1137
- }
1138
- },
1139
- 'model.SafeCheckSC'(val) {
1140
- if (val == '') {
1141
- this.model.f_issue_start = ''
1142
- this.model.f_issue_end = ''
1143
- }
1144
- },
1145
- // 'checker'(val){
1146
- // //tag
1147
- // if(val){
1148
- // this.checkboxModel.f_checker = this.checker[0].name
1149
- // this.checkboxModel.f_checker_id = this.checker[0].id
1150
- // }
1151
- // },
1152
- 'model.rows'() {
1153
- // if (!this.checkedAll) {//实现反选/
1154
- // this.checkrows = [];
1155
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1156
- var k = false
1157
- for (let j = 0; j < this.checkrows.length; j++) {
1158
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1159
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1160
- k = true
1161
- continue
1162
- }
1163
- }
1164
- if (!k) {
1165
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1166
- }
1167
- }
1168
- // } else {//实现全选
1169
- // // this.checkboxModel = {};
1170
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1171
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1172
- // }
1173
- // }
1174
- }
1175
- },
1176
- computed: {
1177
- selected() {
1178
- return this.$refs.paged.$refs.grid.selected
1179
- }
1180
- }
1181
- }
1182
- </script>
1183
- <style scoped>
1184
- .newcolor {
1185
- color: red;
1186
- }
1187
-
1188
- .table th {
1189
- background-color: #f2f6fa;
1190
- color: black;
1191
- }
1192
- </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"
10
+ id="f_userinfo"
11
+ placeholder="编号 名称 电话 表号 地址"
12
+ condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">用户编号</label>
16
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
17
+ id="f_userinfo_code"
18
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
19
+ </div>
20
+ <div :class="$parent.$parent.style">
21
+ <label class="font_normal_body">用户姓名</label>
22
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
23
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
27
+ <v-select id="f_residential_area"
28
+ placeholder='小区'
29
+ class="select select_list"
30
+ :value.sync="model.f_residential_area"
31
+ :options='$parent.$parent.residentialareas'
32
+ :multiple='true'
33
+ v-model="model.f_residential_area"
34
+ condition="f_residential_area in {}"
35
+ ></v-select>
36
+ </div>
37
+ <div :class="$parent.$parent.style">
38
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
39
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
40
+ placeholder="地址" condition="f_address like '%{}%'">
41
+ </div>
42
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
43
+ <export-excel-safe :data="$parent.$parent.searchData"
44
+ :field="$parent.$parent.excelHeaders"
45
+ :choose-col="true"
46
+ sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
47
+ template-name='用户安检情况'></export-excel-safe>
48
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
+ <div style="float: right" class="button_spacing"
50
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
51
+ @click="$parent.$parent.hiddenr()"></div>
52
+ <div style="float: right" class="button_spacing"
53
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
+ @click="$parent.$parent.hidden()">
55
+
56
+ </div>
57
+ </div>
58
+
59
+
60
+ </div>
61
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
62
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
63
+ <label class="font_normal_body">用户类型</label>
64
+ <v-select id="f_usertype"
65
+ placeholder='用户类型'
66
+ class="select select_list"
67
+ :value.sync="model.f_usertype"
68
+ :value-single="true"
69
+ :options='$parent.$parent.usertypes'
70
+ v-model="model.f_usertype"
71
+ condition="f_user_type = '{}'"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
75
+
76
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
78
+ <v-select
79
+ placeholder='安检筛选'
80
+ :value-single="true"
81
+ class="select select_list"
82
+ :value.sync="$parent.$parent.SafeCheckXZ"
83
+ :options='$parent.$parent.SafeCheckXZs'
84
+ v-model="$parent.$parent.SafeCheckXZ"
85
+ close-on-select clear-button></v-select>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
+ <label class="font_normal_body">安检起始</label>
89
+ <datepicker
90
+ :value.sync="model.f_check_start"
91
+ placeholder='最后安检时间起始'
92
+ style="width: 60%"
93
+ :format="'yyyy-MM-dd 00:00:00'"
94
+ :show-rest-button="reset"
95
+ v-model="model.f_check_start">
96
+ </datepicker>
97
+ </div>
98
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
99
+ <label class="font_normal_body">安检结束</label>
100
+ <datepicker
101
+ :value.sync="model.f_check_end"
102
+ placeholder='最后安检时间结束'
103
+ style="width: 60%"
104
+ :format="'yyyy-MM-dd 23:59:59'"
105
+ :show-rest-button="reset"
106
+ v-model="model.f_check_end">
107
+ </datepicker>
108
+ </div>
109
+
110
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
+ <label class="font_normal_body">安检状态</label>
112
+ <v-select id="f_entry"
113
+ placeholder='安检状态'
114
+ :multiple="true"
115
+ class="select select_list"
116
+ :value.sync="$parent.$parent.checkStates"
117
+ :options='$parent.$parent.checkstatus'
118
+ ></v-select>
119
+ </div>
120
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
121
+ <label class="font_normal_body">隐患情况</label>
122
+ <v-select
123
+ placeholder='隐患情况'
124
+ class="select select_list"
125
+ :value-single="true"
126
+ v-model='model.f_check_result'
127
+ :value.sync="model.f_check_result"
128
+ :options='$parent.$parent.f_check_results'
129
+ condition="f_defect_content like '%{}%'"
130
+ close-on-select clear-button></v-select>
131
+ </div>
132
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
133
+ </div>
134
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
135
+
136
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
137
+ <role-selector-safe
138
+ role-name="安检员"
139
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
140
+ @re-res="$parent.$parent.getRes"
141
+ :value.sync="model.f_checker_id"
142
+ v-model="model.f_checker_id"
143
+ :value-multiple="true"
144
+ condition=" f_checker_name in {}">
145
+ </role-selector-safe>
146
+ </div>
147
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
148
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
149
+ <v-select class="select_list select"
150
+ placeholder='片区/管理站' style="width: 60%"
151
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
152
+ :options='$parent.$parent.sliceArea'
153
+ filer-key="name"
154
+ close-on-select clear-button
155
+ condition="f_slice_area='{}'"
156
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
157
+ :value-single="true">
158
+ </v-select>
159
+ </div>
160
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
161
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
162
+ <v-select class="select_list select"
163
+ placeholder='抄表册' style="width: 60%"
164
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
165
+ :options='$parent.$parent.cbc'
166
+ filer-key="name"
167
+ close-on-select clear-button
168
+ condition="f_meter_book_num={}"
169
+ :value-single="true">
170
+ </v-select>
171
+ </div>
172
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
173
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
174
+ <v-select class="select_list select"
175
+ placeholder='请选择' style="width: 60%"
176
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
177
+ :options='$parent.$parent.pcds'
178
+ filer-key="name"
179
+ close-on-select clear-button
180
+ condition="f_pcd='{}'"
181
+ :value-single="true">
182
+ </v-select>
183
+ </div>
184
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
185
+ <label class="font_normal_body">用户状态</label>
186
+ <v-select class="select_list select"
187
+ placeholder='用户状态' style="width: 60%"
188
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
189
+ :options='$parent.$parent.userstates'
190
+ close-on-select clear-button
191
+ condition="f_user_state = '{}'"
192
+ :value-single="true">
193
+ </v-select>
194
+ </div>
195
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
196
+ <label class="font_normal_body">通气起始</label>
197
+ <datepicker
198
+ :value.sync="model.f_gas_start"
199
+ placeholder='通气时间起始'
200
+ :disabled-days-of-week="[]"
201
+ style="width: 60%"
202
+ :format="'yyyy-MM-dd'"
203
+ :show-rest-button="reset"
204
+ v-model="model.f_gas_start"
205
+ condition="f_uservent_date >= '{}'"
206
+ >
207
+ </datepicker>
208
+ </div>
209
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
210
+ <label class="font_normal_body">通气结束</label>
211
+ <datepicker
212
+ :value.sync="model.f_gas_end"
213
+ placeholder='通气时间结束'
214
+ style="width: 60%"
215
+ :disabled-days-of-week="[]"
216
+ :format="'yyyy-MM-dd'"
217
+ :show-rest-button="reset"
218
+ condition="f_uservent_date <= '{}'"
219
+ v-model="model.f_gas_end">
220
+ </datepicker>
221
+ </div>
222
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
223
+ <label class="font_normal_body">建档起始</label>
224
+ <datepicker
225
+ :value.sync="model.f_createfile_start"
226
+ placeholder='建档时间起始'
227
+ :disabled-days-of-week="[]"
228
+ style="width: 60%"
229
+ :format="'yyyy-MM-dd'"
230
+ :show-rest-button="reset"
231
+ v-model="model.f_createfile_start"
232
+ condition="f_createfile_date >= '{}'"
233
+ >
234
+ </datepicker>
235
+ </div>
236
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
+ <label class="font_normal_body">建档结束</label>
238
+ <datepicker
239
+ :value.sync="model.f_createfile_end"
240
+ placeholder='建档时间结束'
241
+ style="width: 60%"
242
+ :disabled-days-of-week="[]"
243
+ :format="'yyyy-MM-dd'"
244
+ :show-rest-button="reset"
245
+ condition="f_createfile_date <= '{}'"
246
+ v-model="model.f_createfile_end">
247
+ </datepicker>
248
+ </div>
249
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
+ <label class="font_normal_body">安&ensp;检&ensp;册</label>
251
+ <v-select id="f_check_book_name"
252
+ placeholder='安检册'
253
+ class="select select_list"
254
+ :value.sync="model.f_check_book_name"
255
+ :options='$parent.$parent.checkbooknames'
256
+ :multiple='true'
257
+ v-model="model.f_check_book_name"
258
+ condition="f_check_book_name in {}"
259
+ ></v-select>
260
+ </div>
261
+ </div>
262
+
263
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
264
+ <div :class="$parent.$parent.style">
265
+ <label class="font_normal_body">用户编号</label>
266
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
267
+
268
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
269
+ </div>
270
+ <div :class="$parent.$parent.style">
271
+ <label class="font_normal_body">用户姓名</label>
272
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
273
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
274
+ </div>
275
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
276
+ <export-excel-safe :data="$parent.$parent.searchData"
277
+ :field="$parent.$parent.excelHeaders"
278
+ sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
279
+ template-name='用户安检情况'></export-excel-safe>
280
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
281
+ <div style="float: right" class="button_spacing"
282
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
283
+ @click="$parent.$parent.hiddenr()"></div>
284
+ <div style="float: right" class="button_spacing"
285
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
286
+ @click="$parent.$parent.hidden()">
287
+
288
+ </div>
289
+ </div>
290
+
291
+ </div>
292
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
293
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
294
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
295
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
296
+
297
+ placeholder="地址" condition="f_address like '%{}%'">
298
+ </div>
299
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
300
+ <label class="font_normal_body">用户类型</label>
301
+ <v-select
302
+ placeholder='用户类型'
303
+ class="select select_list"
304
+
305
+ :value.sync="model.f_usertype"
306
+ :value-single="true"
307
+ :options='$parent.$parent.usertypes'
308
+ v-model="model.f_usertype"
309
+ condition="f_user_type = '{}'"
310
+ close-on-select clear-button></v-select>
311
+ </div>
312
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
313
+
314
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
315
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
316
+ <v-select
317
+ placeholder='安检筛选'
318
+ :value-single="true"
319
+
320
+ class="select select_list"
321
+ :value.sync="$parent.$parent.SafeCheckXZ"
322
+ :options='$parent.$parent.SafeCheckXZs'
323
+ v-model="$parent.$parent.SafeCheckXZ"
324
+ close-on-select clear-button></v-select>
325
+ </div>
326
+
327
+ </div>
328
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
329
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
330
+ <label class="font_normal_body">安检起始</label>
331
+ <datepicker
332
+ :value.sync="model.f_check_start"
333
+ placeholder='最后安检时间起始'
334
+ :disabled-days-of-week="[]"
335
+ style="width: 60%"
336
+ :format="'yyyy-MM-dd'"
337
+ :show-rest-button="reset"
338
+ v-model="model.f_check_start">
339
+ </datepicker>
340
+ </div>
341
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
342
+ <label class="font_normal_body">安检结束</label>
343
+ <datepicker
344
+ :value.sync="model.f_check_end"
345
+ placeholder='最后安检时间结束'
346
+ style="width: 60%"
347
+ :disabled-days-of-week="[]"
348
+ :format="'yyyy-MM-dd'"
349
+ :show-rest-button="reset"
350
+ v-model="model.f_check_end">
351
+ </datepicker>
352
+ </div>
353
+
354
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
355
+ <label class="font_normal_body">安检状态</label>
356
+ <v-select
357
+ placeholder='安检状态'
358
+ class="select select_list"
359
+ :value.sync="$parent.$parent.checkStates"
360
+ :options='$parent.$parent.checkstatus'
361
+ :multiple="true"
362
+ close-on-select clear-button></v-select>
363
+ </div>
364
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
365
+ <label class="font_normal_body">隐患情况</label>
366
+ <v-select
367
+ placeholder='隐患情况'
368
+ class="select select_list"
369
+ :value-single="true"
370
+ v-model='model.f_check_result'
371
+ :value.sync="model.f_check_result"
372
+ :options='$parent.$parent.f_check_results'
373
+ condition="f_defect_content like '%{}%'"
374
+ close-on-select clear-button></v-select>
375
+ </div>
376
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
377
+ <label class="font_normal_body">通气起始</label>
378
+ <datepicker
379
+ :value.sync="model.f_gas_start"
380
+ placeholder='通气时间起始'
381
+ :disabled-days-of-week="[]"
382
+ style="width: 60%"
383
+ :format="'yyyy-MM-dd'"
384
+ :show-rest-button="reset"
385
+ v-model="model.f_gas_start"
386
+ condition="f_uservent_date >= '{}'"
387
+ >
388
+ </datepicker>
389
+ </div>
390
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
391
+ <label class="font_normal_body">通气结束</label>
392
+ <datepicker
393
+ :value.sync="model.f_gas_end"
394
+ placeholder='通气时间结束'
395
+ style="width: 60%"
396
+ :disabled-days-of-week="[]"
397
+ :format="'yyyy-MM-dd'"
398
+ :show-rest-button="reset"
399
+ condition="f_uservent_date <= '{}'"
400
+ v-model="model.f_gas_end">
401
+ </datepicker>
402
+ </div>
403
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
404
+ <label class="font_normal_body">建档起始</label>
405
+ <datepicker
406
+ :value.sync="model.f_createfile_start"
407
+ placeholder='建档时间起始'
408
+ :disabled-days-of-week="[]"
409
+ style="width: 60%"
410
+ :format="'yyyy-MM-dd'"
411
+ :show-rest-button="reset"
412
+ v-model="model.f_createfile_start"
413
+ condition="f_createfile_date >= '{}'"
414
+ >
415
+ </datepicker>
416
+ </div>
417
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
418
+ <label class="font_normal_body">建档结束</label>
419
+ <datepicker
420
+ :value.sync="model.f_createfile_end"
421
+ placeholder='建档时间结束'
422
+ style="width: 60%"
423
+ :disabled-days-of-week="[]"
424
+ :format="'yyyy-MM-dd'"
425
+ :show-rest-button="reset"
426
+ condition="f_createfile_date <= '{}'"
427
+ v-model="model.f_createfile_end">
428
+ </datepicker>
429
+ </div>
430
+ </div>
431
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
432
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
433
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
434
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
435
+ </right-tree>
436
+ </div>
437
+
438
+ </div>-->
439
+ </div>
440
+ </criteria>
441
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
442
+ <template partial='head'>
443
+ <tr>
444
+ <th>
445
+ <nobr>用户编号</nobr>
446
+ </th>
447
+ <th>
448
+ <nobr>用户名称</nobr>
449
+ </th>
450
+ <th>
451
+ <nobr>用户电话</nobr>
452
+ </th>
453
+ <th>
454
+ <nobr>用户表号</nobr>
455
+ </th>
456
+ <!-- <th>-->
457
+ <!-- <nobr>气表品牌</nobr>-->
458
+ <!-- </th>-->
459
+ <th>
460
+ <nobr>用户类型</nobr>
461
+ </th>
462
+ <!-- <th>-->
463
+ <!-- <nobr>壁挂炉</nobr>-->
464
+ <!-- </th>-->
465
+ <!-- <th>-->
466
+ <!-- <nobr>灶具</nobr>-->
467
+ <!-- </th>-->
468
+ <th>
469
+ <nobr>片区</nobr>
470
+ </th>
471
+ <th>
472
+ <nobr>小区名称</nobr>
473
+ </th>
474
+ <th style="padding: 0 40px">
475
+ <nobr>地址</nobr>
476
+ </th>
477
+ <th>
478
+ <nobr>安检册</nobr>
479
+ </th>
480
+ <th>
481
+ <nobr>安检员</nobr>
482
+ </th>
483
+ <!-- <th>-->
484
+ <!-- <nobr>安检员备注</nobr>-->
485
+ <!-- </th>-->
486
+ <th>
487
+ <nobr>安检日期</nobr>
488
+ </th>
489
+ <th>
490
+ <nobr>安检状态</nobr>
491
+ </th>
492
+ <th>
493
+ <nobr>安检结果</nobr>
494
+ </th>
495
+ <th>
496
+ <nobr>建档日期</nobr>
497
+ </th>
498
+ <th>
499
+ <nobr>通气日期</nobr>
500
+ </th>
501
+ <th v-show="$parent.$parent.$parent.showcode">
502
+ <nobr>二维码</nobr>
503
+ </th>
504
+ </tr>
505
+ </template>
506
+ <template partial='body'>
507
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
508
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
509
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
510
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
511
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
512
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
513
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
514
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
515
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_slice_area }}</td>
516
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
517
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
518
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_check_book_name }}</td>
519
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
520
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
521
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
522
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
523
+ {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
524
+ </td>
525
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
526
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_uservent_date }}</td>
527
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
528
+ <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
529
+ </td>
530
+ </template>
531
+ </data-grid>
532
+ </criteria-paged>
533
+ <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
534
+ <div slot="modal-header" class="modal-header">
535
+ <h4 class="modal-title">
536
+ 二维码
537
+ </h4>
538
+ </div>
539
+ <div slot="modal-body" class="modal-body" >
540
+ <div id="dd" ></div>
541
+ </div>
542
+ <div slot="modal-footer" class="modal-footer">
543
+ <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>
544
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
545
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
546
+ </div>
547
+ </modal>
548
+ </div>
549
+
550
+ </template>
551
+
552
+ <script>
553
+ import {PagedList} from 'vue-client'
554
+ import {HttpResetClass} from 'vue-client'
555
+ import co from 'co'
556
+ import * as Util from '.././../Util'
557
+ import Vue from 'vue'
558
+
559
+ // let select = function * (self,userid) {
560
+ // let http = new HttpResetClass()
561
+ // let getGasman = yield http.load('POST','/rs/search', {
562
+ // source: 'this.getChildByName($安检员$).getUsers()',
563
+ // userid: userid
564
+ // }, {resolveMsg: null, rejectMsg: null})
565
+ // //tag
566
+ // getGasman.data.forEach((checker)=>{
567
+ // self.checkersid.push({label:checker.name,value:checker.id})
568
+ // })
569
+ // self.checkersid.push({label:'全部',value:''})
570
+ // }
571
+
572
+
573
+ export default {
574
+ title: '用户安检情况',
575
+ data() {
576
+ let options = []
577
+ let year = (new Date()).getFullYear()
578
+ for (let i = year; i <= year + 3; i++)
579
+ options.push({label: i + '', value: i + ''})
580
+ let moptions = []
581
+ for (let i = 1; i <= 12; i++)
582
+ moptions.push({label: i + '', value: i + ''})
583
+
584
+ return {
585
+ dialogVisible: false,
586
+ searchData: {
587
+ condition: '1=1',
588
+ orderitem: "f_last_check_date",
589
+ timetype: "dd",
590
+ 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"
591
+ },
592
+ excelHeaders: {
593
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
594
+
595
+ 'f_userinfo_code': '用户编号',
596
+ 'f_user_name': '用户名称',
597
+ 'f_user_phone': '用户电话',
598
+ 'f_meternumber': '用户表号',
599
+ 'f_user_type': '用户类型',
600
+ 'f_checker_name': '安检员',
601
+ 'f_slice_area': '片区',
602
+ 'f_residential_area': '小区名称',
603
+ 'f_address': '地址',
604
+ 'f_last_check_date': '安检日期',
605
+ 'f_last_check_state': '安检状态',
606
+ 'f_last_check_result': '安检结果',
607
+ 'f_createfile_date': '建档日期',
608
+ 'f_uservent_date': '通气日期'
609
+ },
610
+ model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
611
+ orderitem: "'f_last_check_date'",
612
+ timetype: "'dd'",
613
+ f_defect_content: 'this.f_defect_content'
614
+ }),
615
+ 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",
616
+ orgstrs: [{label: '全部', value: ''}],
617
+ checkersid: [],
618
+ checkStates:[],
619
+ SafeCheckXZ: '',
620
+ civil: '', //民用安检周期
621
+ civilian: '', //非民用安检周期
622
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
623
+ SafeCheckSXs: [{label: '', value: ''}, {label: '否', value: '否'}, {label: '全部', value: ''}],
624
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
625
+ IsShares: [{label: '', value: ''}, {label: '否', value: '否'}],
626
+ IsShare: '',
627
+ checker: {},
628
+ NoBuys: [{label: '', value: ''}, {label: '否', value: '否'}],
629
+ criteriaShow: false,
630
+ checkers: [],
631
+ showcode:false,
632
+ chosenOrg: {id: 0},
633
+ showModal: false,
634
+ checkedAll: false,
635
+ checkrows: [],
636
+ adjustables: [],
637
+ f_plan_year: year + '',
638
+ f_plan_month: moptions[new Date().getMonth()].value,
639
+ f_effective_start_time: '', //计划有效起始时间
640
+ f_effective_end_time: '', //计划有效结束时间
641
+ checkboxModel: {},
642
+ c_year_list: options,
643
+ c_month_list: moptions,
644
+ // areas: this.areas(),
645
+ checkstatus: this.checkstatus(),
646
+ usertypes: this.usertypes(),
647
+ userstates: this.userstates(),
648
+ sqlname: '',
649
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
650
+ creatPlanWay: '',
651
+ sliceArea: [],
652
+ residentialareas: [],
653
+ checkbooknames: [],
654
+ cbcs:[],
655
+ cbc:[],
656
+ pcds:[]
657
+ }
658
+ },
659
+ props: {
660
+ style: {
661
+ type: String,
662
+ default: 'col-sm-2 form-group'
663
+ },
664
+ style2: {
665
+ type: String,
666
+ default: 'col-sm-4 form-group'
667
+ },
668
+ checkplan: { // 传入一条安检计划信息
669
+ type: Object
670
+ },
671
+ additemshow: {
672
+ type: Boolean,
673
+ default: false
674
+ }
675
+ },
676
+ ready() {
677
+ // 获取分公司信息
678
+ this.model.f_defect_content=this.f_defect_content
679
+ this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
680
+ //this.getfengongsi()
681
+ this.model.chosenOrg = {id: 0}
682
+ this.model.f_filialeids = this.$login.f.f_orgids
683
+ this.model.f_filiale = this.$login.f.f_fengongsi
684
+ this.model.f_OrgStr = this.$login.f.orgpathstr
685
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
686
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
687
+ this.getresidentialarea()
688
+ this.getcheckbookname()
689
+ },
690
+ methods: {
691
+ //查询二维码
692
+ searchInfo(val){
693
+ this.dialogVisible = true
694
+ //tag
695
+ new HttpResetClass().load('POST','rs/logic/QrcodeUtil', {
696
+ data: {
697
+ id:val
698
+ }
699
+ },{resolveMsg: null, rejectMsg: null}).then(res=>{
700
+ //tag
701
+ //tag
702
+ let imageer=new Image()
703
+ imageer.src="data:image/jpg;base64,"+res.data.result
704
+ document.getElementById("dd").appendChild(imageer);
705
+ //tag
706
+ })
707
+
708
+ },
709
+ //获取省市区列表
710
+ getPcd(val){
711
+ this.pcds = [{label:'全部',value:''}]
712
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
713
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
714
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
715
+ pcdlist.data.forEach((result)=>{
716
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
717
+ })
718
+ })
719
+ },
720
+ getmeterbook(val){
721
+
722
+ //tag
723
+ this.cbc=[]
724
+ this.cbc.push({
725
+ label:'全部',
726
+ value:''
727
+ })
728
+ if (val==''){
729
+
730
+ this.cbcs.forEach(res=>{
731
+ this.cbc.push({
732
+ label:res.f_book_name,
733
+ value:res.id
734
+ })
735
+ })
736
+ }else{
737
+ this.cbcs.forEach(res=>{
738
+ if (res.f_book_slice_area==val){
739
+ this.cbc.push({
740
+ label:res.f_book_name,
741
+ value:res.id
742
+ })
743
+ }
744
+ })
745
+ }
746
+ },
747
+ Mreadibook(val){
748
+ ////tag
749
+ ////tag
750
+ if (val){
751
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
752
+ items: 'name',
753
+ tablename: 't_zone',
754
+ condition: `parentid in ${val}`,
755
+ orderitem: 'id'
756
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
757
+ this.sliceArea=[]
758
+ this.sliceArea.push({
759
+ label:'全部',
760
+ value:''
761
+ })
762
+ res.data.forEach(ress=>{
763
+ this.sliceArea.push({
764
+ label:ress.name,
765
+ value:ress.name
766
+ })
767
+ })
768
+
769
+ })
770
+ }
771
+ },
772
+ getresidentialarea(){
773
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_GroupBy`, {data: {
774
+ items: 'f_residential_area',
775
+ tablename: 't_user_address',
776
+ condition: `f_residential_area is not null and f_orgid = '${this.$login.f.orgid}'`,
777
+ groupitem: 'f_residential_area',
778
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
779
+ this.residentialareas=[]
780
+ this.residentialareas.push({
781
+ label:'全部',
782
+ value:''
783
+ })
784
+ res.data.forEach(ress=>{
785
+ this.residentialareas.push({
786
+ label:ress.f_residential_area,
787
+ value:ress.f_residential_area
788
+ })
789
+ })
790
+
791
+ })
792
+ },
793
+ getcheckbookname(){
794
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_GroupBy`, {data: {
795
+ items: 'f_check_book_name',
796
+ tablename: 't_check_book',
797
+ condition: ` f_orgid = '${this.$login.f.orgid}'`,
798
+ groupitem: 'f_check_book_name',
799
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
800
+ this.checkbooknames=[]
801
+ this.checkbooknames.push({
802
+ label:'全部',
803
+ value:''
804
+ })
805
+ res.data.forEach(ress=>{
806
+ this.checkbooknames.push({
807
+ label:ress.f_check_book_name,
808
+ value:ress.f_check_book_name
809
+ })
810
+ })
811
+
812
+ })
813
+ },
814
+ // 获取县域分公司内容
815
+ getfengongsi() {
816
+ let val = {
817
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
818
+ userid: `${this.$login.f.id}`
819
+ }
820
+ let http = new HttpResetClass()
821
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
822
+ res.data.forEach((item) => {
823
+ this.orgstrs.push({label: item.name, value: item.id})
824
+ })
825
+ //tag
826
+ })
827
+ },
828
+ // 县域分公司发生改变
829
+ // orgstrchange(val){
830
+ // if(val == undefined || val == ''){
831
+ // return
832
+ // }else {
833
+ // this.checkersid = []
834
+ // let gen = select(this,val)
835
+ // return co(gen)
836
+ // }
837
+ // },
838
+ getDefect(val) {
839
+ if (val) {
840
+ try {
841
+ var defect = JSON.parse(val)
842
+ return defect.result
843
+ } catch (e) {
844
+ //tag
845
+ return '正常'
846
+ }
847
+ }
848
+ return '正常'
849
+ },
850
+ checkerchange(val) {
851
+ this.checkboxModel.f_checker = val.name
852
+ this.checkboxModel.f_checker_id = val.id
853
+ },
854
+ search(args) {
855
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
856
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
857
+ return
858
+ }
859
+ if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
860
+ this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
861
+ return
862
+ }
863
+ /*if (this.SafeCheckXZ == '未安检') {
864
+ 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)"
865
+ } else {
866
+ if (args.model.f_check_start) {
867
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
868
+ }
869
+ if (args.model.f_check_end) {
870
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
871
+ }
872
+ }*/
873
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
874
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
875
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
876
+ /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
877
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
878
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
879
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
880
+ if (this.SafeCheckXZ) {
881
+ con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
882
+ if (this.SafeCheckXZ == '未安检'){
883
+ args.condition += ' and ruhuid is null'
884
+ }else{
885
+ args.condition += ' and ruhuid is not null'
886
+ }
887
+ }
888
+ let states = ` (`
889
+ if (this.checkStates.length > 0 ){
890
+ for (let i = 0; i < this.checkStates.length; i++) {
891
+ if (this.checkStates[i]){
892
+ states += `'${this.checkStates[i]}',`
893
+ }else {
894
+ states = ''
895
+ break
896
+ }
897
+ }
898
+ if (states){
899
+ states=states.substring(0,states.length-1)
900
+ states += `) `
901
+ args.condition += ` and f_last_check_state in ${states}`
902
+ }
903
+ }else {
904
+ states = ''
905
+ }
906
+ con += states ? ` and f_entry_status in ${states}` : ''
907
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
908
+ let condition = {
909
+ condition1: args.condition,
910
+ condition2: con
911
+ }
912
+ this.searchData.condition = condition
913
+ return this.model.search(condition, args.model)
914
+ },
915
+ checkstatus() {
916
+ return this.$appdata.getParam('安检状态') ? [{
917
+ label: '全部',
918
+ value: ''
919
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
920
+ },
921
+ usertypes() {
922
+ return this.$appdata.getParam('用户类型') ? [{
923
+ label: '全部',
924
+ value: ''
925
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
926
+ },
927
+ userstates() {
928
+ return this.$appdata.getParam('用户状态') ? [{
929
+ label: '全部',
930
+ value: ''
931
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
932
+ },
933
+ hiddenr() {
934
+ this.$parent.showItem = !this.$parent.showItem
935
+ },
936
+ hidden() {
937
+ this.criteriaShow = !this.criteriaShow
938
+ },
939
+ confirm() {
940
+ if (!this.checkboxModel.f_plan_name) {
941
+ this.$showMessage('请填写安检计划名称!')
942
+ return
943
+ }
944
+ // if(this.f_effective_start_time == ''){
945
+ // this.$showMessage('请选择有效起始日期!')
946
+ // return
947
+ // }
948
+ // if(this.f_effective_end_time == ''){
949
+ // this.$showMessage('请选择有效结束日期!')
950
+ // return
951
+ // }
952
+ if (this.IsShare == '否') {
953
+ if (!this.checkboxModel.f_checker_id) {
954
+ this.$showMessage('请选择安检员!')
955
+ return
956
+ }
957
+ }
958
+ let gen = saveGen(this)
959
+ return co(gen)
960
+ },
961
+ changeStates() {
962
+ if (this.checkedAll) {//实现反选/
963
+ this.checkrows = [];
964
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
965
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
966
+ }
967
+ } else {//实现全选
968
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
969
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
970
+ }
971
+ let _this = this
972
+ let condition = this.$refs.paged.$refs.criteria.condition
973
+ let url = this.model.url
974
+ this.$resetpost(`${url}?pageSize=9999999`, {
975
+ data: {
976
+ condition: condition,
977
+ groupitem: '',
978
+ orderitem: 'f_residential_area',
979
+ f_usertype: this.model.f_usertype,
980
+ f_filialeids: this.model.f_filialeids,
981
+ month: this.model.month,
982
+ safeCycle: this.model.safeCycle,
983
+ f_checktime_start: this.model.f_checktime_start,
984
+ f_checktime_end: this.model.f_checktime_end,
985
+ SafeCheckSX: this.model.SafeCheckSX,
986
+ f_last_check_state: this.model.f_last_check_state
987
+ },
988
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
989
+ (respanse) => {
990
+ if (respanse.data.length >= 5000) {
991
+ this.$showMessage("数据量太大,请重新选择")
992
+ } else {
993
+ _this.checkrows = []
994
+ for (let j = 0; j < respanse.data.length; j++) {
995
+ _this.checkrows.push(respanse.data[j])
996
+ }
997
+ //tag;
998
+ }
999
+ })
1000
+ }
1001
+ },
1002
+ addChecked(item) {
1003
+ //tag;
1004
+ if (!item.checked) {
1005
+ this.checkrows.push(item);
1006
+ //tag;
1007
+ } else {
1008
+ for (let i = 0; i < this.checkrows.length; i++) {
1009
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
1010
+ this.checkrows.splice(i, 1)
1011
+ }
1012
+ }
1013
+ }
1014
+ },
1015
+ ToshowModal() {
1016
+ this.creatPlanWay = 'single'
1017
+ if (this.checkrows.length > 0) {
1018
+ this.showModal = true
1019
+ } else {
1020
+ this.$showMessage("请选择需要安检的用户!")
1021
+ }
1022
+ },
1023
+ FiltrationPlan() {
1024
+ if (this.model.rows.length == 0) {
1025
+ this.$showMessage("暂无可生成的计划!")
1026
+ return
1027
+ }
1028
+ this.creatPlanWay = 'filtration'
1029
+ this.showModal = true
1030
+ },
1031
+ AllPlan() {
1032
+ if (this.model.rows.length == 0) {
1033
+ this.$showMessage("暂无可生成的计划!")
1034
+ return
1035
+ }
1036
+ this.creatPlanWay = 'all'
1037
+ this.showModal = true
1038
+ },
1039
+ cancel() {
1040
+ this.showModal = false
1041
+ },
1042
+ /*areas() {
1043
+ let rs = []
1044
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1045
+ let temp = {
1046
+ label: this.$login.f.f_allArea[i].label,
1047
+ value: this.$login.f.f_allArea[i].label
1048
+ }
1049
+ rs.push(temp)
1050
+ }
1051
+ return [{label: '全部', value: ''}, ...rs]
1052
+ },*/
1053
+ initAdjustables() {
1054
+ //tag
1055
+ let arr = []
1056
+ let filter = this.$login.f.f_orgids
1057
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1058
+ let temp = {}
1059
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1060
+ temp.value = `${item.value.id}`
1061
+ arr.push(temp)
1062
+ })
1063
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
1064
+ },
1065
+ getAllMeterBook(val){
1066
+ ////tag
1067
+ ////tag
1068
+ this.cbcs=[]
1069
+ if (val){
1070
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
1071
+ items: 'f_book_name,f_book_slice_area,id',
1072
+ tablename: 't_meter_book',
1073
+ condition: `f_filiale_id in ${val}`,
1074
+ orderitem: 'id'
1075
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1076
+ res.data.forEach(ress=>{
1077
+ this.cbcs.push({
1078
+ id:ress.id,
1079
+ f_book_name:ress.f_book_name,
1080
+ f_book_slice_area:ress.f_book_slice_area
1081
+ })
1082
+ })
1083
+ this.cbc=[]
1084
+ this.cbc.push({
1085
+ label:'全部',
1086
+ value:''
1087
+ })
1088
+ this.cbcs.forEach(res=>{
1089
+ this.cbc.push({
1090
+ label:res.f_book_name,
1091
+ value:res.id
1092
+ })
1093
+ })
1094
+ })
1095
+ }
1096
+ },
1097
+ getRes(obj) {
1098
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1099
+ this.Mreadibook(this.model.f_filialeids)
1100
+ this.getAllMeterBook(this.model.f_filialeids)
1101
+ this.getPcd(this.model.f_filialeids)
1102
+ }
1103
+ },
1104
+
1105
+ watch: {
1106
+ 'model.f_usertype'(val) {
1107
+ if (val == '民用') {
1108
+ this.model.safeCycle = this.civil
1109
+ } else if (val == '非民用') {
1110
+ this.model.safeCycle = this.civilian
1111
+ }
1112
+ },
1113
+ 'model.SafeCheckXZ'(val) {
1114
+ this.model.SafeCheckSC = ''
1115
+ if (val == '已安检') {
1116
+ this.model.SafeCheckCQ = ''
1117
+ this.model.SafeCheckSX = {
1118
+ f_check_end: '', // 安检时间 查询起始条件
1119
+ f_check_start: ''// 安检时间 查询终止条件
1120
+ }
1121
+ } else {
1122
+ // 当使用筛选条件时,清空不需要的条件选项
1123
+ this.model.f_issue_start = ''
1124
+ this.model.f_issue_end = ''
1125
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
1126
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
1127
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1128
+ this.model.month = ''
1129
+ if (val == '应安检') {
1130
+ this.model.SafeCheckSC = '否'
1131
+
1132
+ this.model.f_issue_start = Util.toStartDateString()
1133
+ this.model.f_issue_end = Util.toStandardDateString()
1134
+ }
1135
+ // this.model.f_checktime_start = ''
1136
+ // this.model.f_checktime_end = ''
1137
+ }
1138
+ },
1139
+ 'model.SafeCheckSC'(val) {
1140
+ if (val == '') {
1141
+ this.model.f_issue_start = ''
1142
+ this.model.f_issue_end = ''
1143
+ }
1144
+ },
1145
+ // 'checker'(val){
1146
+ // //tag
1147
+ // if(val){
1148
+ // this.checkboxModel.f_checker = this.checker[0].name
1149
+ // this.checkboxModel.f_checker_id = this.checker[0].id
1150
+ // }
1151
+ // },
1152
+ 'model.rows'() {
1153
+ // if (!this.checkedAll) {//实现反选/
1154
+ // this.checkrows = [];
1155
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1156
+ var k = false
1157
+ for (let j = 0; j < this.checkrows.length; j++) {
1158
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1159
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1160
+ k = true
1161
+ continue
1162
+ }
1163
+ }
1164
+ if (!k) {
1165
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1166
+ }
1167
+ }
1168
+ // } else {//实现全选
1169
+ // // this.checkboxModel = {};
1170
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1171
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1172
+ // }
1173
+ // }
1174
+ }
1175
+ },
1176
+ computed: {
1177
+ selected() {
1178
+ return this.$refs.paged.$refs.grid.selected
1179
+ }
1180
+ }
1181
+ }
1182
+ </script>
1183
+ <style scoped>
1184
+ .newcolor {
1185
+ color: red;
1186
+ }
1187
+
1188
+ .table th {
1189
+ background-color: #f2f6fa;
1190
+ color: black;
1191
+ }
1192
+ </style>