safecheck-client 4.0.2-51 → 4.0.2-52

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 (505) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/build/libs/SafecheckClient-1.15.6-9.jar +0 -0
  5. package/build/tmp/jar/MANIFEST.MF +2 -0
  6. package/config/dev.env.js +6 -6
  7. package/config/index.js +38 -38
  8. package/config/prod.env.js +3 -3
  9. package/config/test.env.js +6 -6
  10. package/docs/AppBase.md +22 -22
  11. package/docs/Busy.md +14 -14
  12. package/docs/CriteriaPaged.md +47 -47
  13. package/docs/DataGrid.md +54 -54
  14. package/docs/DataModel.md +22 -22
  15. package/docs/Dynamic.md +42 -42
  16. package/docs/GetParams.md +11 -11
  17. package/docs/HttpBusy.md +13 -13
  18. package/docs/HttpStore.md +29 -29
  19. package/docs/MessageBox.md +28 -28
  20. package/docs/PagedList.md +29 -29
  21. package/docs/Pager.md +21 -21
  22. package/docs/Project.md +23 -23
  23. package/docs/Route.md +105 -105
  24. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  25. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  26. package/docs/Task.md +46 -46
  27. package/docs/TreeList.md +28 -28
  28. package/docs/TreeMixin.md +18 -18
  29. package/docs/all.md +10 -10
  30. package/docs/list.md +42 -42
  31. package/docs/partial.md +75 -75
  32. package/docs/selector.md +82 -82
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  34. 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
  35. 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
  36. 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
  37. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  38. package/examples/AddressList/App.vue +13 -13
  39. package/examples/AddressList/index.html +11 -11
  40. package/examples/DispatchList/App.vue +10 -10
  41. package/examples/DispatchList/BaseTree.vue +13 -13
  42. package/examples/DispatchList/Init.vue +22 -22
  43. package/examples/DispatchList/Test.vue +20 -20
  44. package/examples/DispatchList/index.html +11 -11
  45. package/examples/DispatchList/main.js +18 -18
  46. package/home.html +16 -16
  47. package/package.json +1 -1
  48. package/publish.bat +7 -7
  49. package/release.bat +5 -5
  50. package/src/Widget.vue +13 -13
  51. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  52. package/src/android-bootstrap/less/.csscomb.json +304 -304
  53. package/src/android-bootstrap/less/.csslintrc +19 -19
  54. package/src/android-bootstrap/less/alerts.less +73 -73
  55. package/src/android-bootstrap/less/badges.less +66 -66
  56. package/src/android-bootstrap/less/bootstrap.less +56 -56
  57. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  58. package/src/android-bootstrap/less/button-groups.less +247 -247
  59. package/src/android-bootstrap/less/buttons.less +173 -173
  60. package/src/android-bootstrap/less/carousel.less +269 -269
  61. package/src/android-bootstrap/less/close.less +34 -34
  62. package/src/android-bootstrap/less/code.less +69 -69
  63. package/src/android-bootstrap/less/component-animations.less +33 -33
  64. package/src/android-bootstrap/less/grid.less +84 -84
  65. package/src/android-bootstrap/less/input-groups.less +167 -167
  66. package/src/android-bootstrap/less/jumbotron.less +52 -52
  67. package/src/android-bootstrap/less/labels.less +64 -64
  68. package/src/android-bootstrap/less/list-group.less +141 -141
  69. package/src/android-bootstrap/less/media.less +66 -66
  70. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  71. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  72. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  73. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  74. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  75. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  76. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  77. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  78. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  79. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  80. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  81. package/src/android-bootstrap/less/mixins/image.less +33 -33
  82. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  83. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  84. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  85. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  86. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  87. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  88. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  89. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  90. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  91. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  92. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  93. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  94. package/src/android-bootstrap/less/mixins/size.less +10 -10
  95. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  96. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  97. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  98. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  99. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  100. package/src/android-bootstrap/less/mixins.less +40 -40
  101. package/src/android-bootstrap/less/modals.less +151 -151
  102. package/src/android-bootstrap/less/navbar.less +660 -660
  103. package/src/android-bootstrap/less/navs.less +290 -290
  104. package/src/android-bootstrap/less/normalize.less +424 -424
  105. package/src/android-bootstrap/less/pager.less +76 -76
  106. package/src/android-bootstrap/less/pagination.less +89 -89
  107. package/src/android-bootstrap/less/panels.less +274 -274
  108. package/src/android-bootstrap/less/popovers.less +131 -131
  109. package/src/android-bootstrap/less/print.less +101 -101
  110. package/src/android-bootstrap/less/progress-bars.less +87 -87
  111. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  112. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  113. package/src/android-bootstrap/less/scaffolding.less +161 -161
  114. package/src/android-bootstrap/less/tables.less +262 -262
  115. package/src/android-bootstrap/less/theme.less +291 -291
  116. package/src/android-bootstrap/less/thumbnails.less +36 -36
  117. package/src/android-bootstrap/less/tooltip.less +102 -102
  118. package/src/android-bootstrap/less/type.less +303 -303
  119. package/src/android-bootstrap/less/utilities.less +55 -55
  120. package/src/android-bootstrap/less/variables.less +896 -896
  121. package/src/android-bootstrap/less/wells.less +29 -29
  122. package/src/bootstrap/less/.csscomb.json +304 -304
  123. package/src/bootstrap/less/.csslintrc +19 -19
  124. package/src/bootstrap/less/alerts.less +73 -73
  125. package/src/bootstrap/less/badges.less +66 -66
  126. package/src/bootstrap/less/breadcrumbs.less +26 -26
  127. package/src/bootstrap/less/button-groups.less +247 -247
  128. package/src/bootstrap/less/buttons.less +172 -172
  129. package/src/bootstrap/less/carousel.less +269 -269
  130. package/src/bootstrap/less/close.less +34 -34
  131. package/src/bootstrap/less/code.less +69 -69
  132. package/src/bootstrap/less/component-animations.less +33 -33
  133. package/src/bootstrap/less/dropdowns.less +216 -216
  134. package/src/bootstrap/less/grid.less +84 -84
  135. package/src/bootstrap/less/input-groups.less +167 -167
  136. package/src/bootstrap/less/jumbotron.less +52 -52
  137. package/src/bootstrap/less/labels.less +64 -64
  138. package/src/bootstrap/less/list-group.less +141 -141
  139. package/src/bootstrap/less/media.less +66 -66
  140. package/src/bootstrap/less/mixins/alerts.less +14 -14
  141. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  142. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  143. package/src/bootstrap/less/mixins/buttons.less +69 -69
  144. package/src/bootstrap/less/mixins/center-block.less +7 -7
  145. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  146. package/src/bootstrap/less/mixins/forms.less +90 -90
  147. package/src/bootstrap/less/mixins/gradients.less +59 -59
  148. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  149. package/src/bootstrap/less/mixins/grid.less +122 -122
  150. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  151. package/src/bootstrap/less/mixins/image.less +33 -33
  152. package/src/bootstrap/less/mixins/labels.less +12 -12
  153. package/src/bootstrap/less/mixins/list-group.less +30 -30
  154. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  155. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  156. package/src/bootstrap/less/mixins/opacity.less +8 -8
  157. package/src/bootstrap/less/mixins/pagination.less +24 -24
  158. package/src/bootstrap/less/mixins/panels.less +24 -24
  159. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  160. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  161. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  162. package/src/bootstrap/less/mixins/resize.less +6 -6
  163. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  164. package/src/bootstrap/less/mixins/size.less +10 -10
  165. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  166. package/src/bootstrap/less/mixins/table-row.less +44 -44
  167. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  168. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  169. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  170. package/src/bootstrap/less/mixins.less +40 -40
  171. package/src/bootstrap/less/modals.less +151 -151
  172. package/src/bootstrap/less/navbar.less +660 -660
  173. package/src/bootstrap/less/normalize.less +424 -424
  174. package/src/bootstrap/less/pagination.less +89 -89
  175. package/src/bootstrap/less/panels.less +275 -275
  176. package/src/bootstrap/less/popovers.less +131 -131
  177. package/src/bootstrap/less/print.less +101 -101
  178. package/src/bootstrap/less/progress-bars.less +87 -87
  179. package/src/bootstrap/less/responsive-embed.less +35 -35
  180. package/src/bootstrap/less/responsive-utilities.less +194 -194
  181. package/src/bootstrap/less/scaffolding.less +161 -161
  182. package/src/bootstrap/less/theme.less +291 -291
  183. package/src/bootstrap/less/thumbnails.less +36 -36
  184. package/src/bootstrap/less/tooltip.less +102 -102
  185. package/src/bootstrap/less/type.less +303 -303
  186. package/src/bootstrap/less/utilities.less +55 -55
  187. package/src/bootstrap/less/wells.less +29 -29
  188. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  189. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  190. package/src/components/FileUpload.vue +696 -696
  191. package/src/components/Hello.vue +39 -39
  192. package/src/components/LeftTree.vue +27 -27
  193. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  194. package/src/components/android/AddPlanItem.vue +447 -447
  195. package/src/components/android/AddPlanItemYy.vue +451 -451
  196. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  197. package/src/components/android/AndroidNotifiedDeal.vue +417 -417
  198. package/src/components/android/AttendanceTally.vue +116 -116
  199. package/src/components/android/Blank.vue +10 -10
  200. package/src/components/android/CheckUnplanPage.vue +56 -56
  201. package/src/components/android/Checker.vue +12 -12
  202. package/src/components/android/CheckerAnnual.vue +81 -81
  203. package/src/components/android/CheckerAvarta.vue +82 -82
  204. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  205. package/src/components/android/DailyworkloadQuery.vue +473 -473
  206. package/src/components/android/Devices.vue +327 -327
  207. package/src/components/android/Devicesm.vue +327 -327
  208. package/src/components/android/EquipmentInspection.vue +348 -348
  209. package/src/components/android/FootprintMap.vue +120 -120
  210. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  211. package/src/components/android/MasterMain.vue +77 -77
  212. package/src/components/android/Menu.vue +132 -132
  213. package/src/components/android/PaperAlarm.vue +85 -85
  214. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  215. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  216. package/src/components/android/PhoneRecordInfo.vue +113 -113
  217. package/src/components/android/PhoneSellInfo.vue +113 -113
  218. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  219. package/src/components/android/PlumberAnnual.vue +83 -83
  220. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  221. package/src/components/android/PlumberMonthly.vue +84 -84
  222. package/src/components/android/PostMap.vue +83 -83
  223. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  224. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  225. package/src/components/android/QueryCheckHistory.vue +122 -122
  226. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  227. package/src/components/android/RepairMain.vue +60 -60
  228. package/src/components/android/Repairman.vue +12 -12
  229. package/src/components/android/SafePlanItem.vue +509 -509
  230. package/src/components/android/StationMaster.vue +12 -12
  231. package/src/components/android/UploadPage.vue +232 -232
  232. package/src/components/android/examples/SafeListExamples.vue +296 -296
  233. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  234. package/src/components/android/recheck/Recheck.vue +402 -402
  235. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  236. package/src/components/checkplan/checkmsg.vue +459 -459
  237. package/src/components/defect/DefectList.vue +507 -507
  238. package/src/components/defect/DefectListWeixiu.vue +484 -484
  239. package/src/components/defects/DefectModal.vue +101 -101
  240. package/src/components/defects/DevicesAndItem.vue +39 -39
  241. package/src/components/filialCircle/CircleList.vue +139 -139
  242. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  243. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  244. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  245. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  246. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  247. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  248. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  249. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  250. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  251. package/src/components/map/PersonTrack.vue +226 -226
  252. package/src/components/notice/NoticeForm.vue +100 -100
  253. package/src/components/notice/NoticeIssue.vue +20 -20
  254. package/src/components/paper/PicViewer.vue +18 -18
  255. package/src/components/paper/RegionalList.vue +220 -220
  256. package/src/components/pc/AnnouncementPC.vue +524 -524
  257. package/src/components/pc/DefectList.vue +742 -742
  258. package/src/components/pc/DefectMaterialLook.vue +98 -98
  259. package/src/components/pc/DeviceChange.vue +1068 -1068
  260. package/src/components/pc/PaperDefectMain.vue +905 -905
  261. package/src/components/pc/RoleSelectorDep.vue +166 -166
  262. package/src/components/pc/SafeVisitInfo.vue +261 -261
  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/querycheckpaper/PaperItem.vue +59 -59
  267. package/src/components/report/HiddenSituation.vue +165 -165
  268. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  269. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  270. package/src/components/rongcheng/DefectList.vue +560 -560
  271. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  272. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  273. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  274. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  275. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  276. package/src/components/shaoguan/DefectList.vue +473 -473
  277. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  278. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  279. package/src/components/userfile/MeterFile.vue +145 -145
  280. package/src/components/userfile/MeterModify.vue +46 -46
  281. package/src/components/userfile/SecurityAudit.vue +243 -243
  282. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  283. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  284. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  285. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  286. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  287. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  288. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  289. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  290. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  291. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  292. package/src/filiale/bayan/android/Edit.vue +132 -132
  293. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  294. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  295. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  296. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  297. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  298. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  299. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  300. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  301. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  302. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  303. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  304. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  305. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  306. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  307. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  308. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  309. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  310. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  311. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  312. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  313. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  314. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  315. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  316. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  317. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  318. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  319. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  320. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  321. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  322. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  323. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -722
  324. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +463 -463
  325. package/src/filiale/jinhong/android.js +13 -13
  326. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  327. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  328. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  329. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  330. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  331. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  332. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  333. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  334. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  335. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  336. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  337. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  338. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  339. package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
  340. package/src/filiale/libo/android.js +15 -15
  341. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  342. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  343. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  344. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  345. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  346. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  347. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  348. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -217
  349. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -52
  350. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2028 -2028
  351. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2051
  352. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1289 -1289
  353. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -262
  354. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  355. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  356. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  357. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  358. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  359. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  360. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  361. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  362. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  363. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  364. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  365. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  366. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  367. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  368. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  369. package/src/filiale/qingjian/pc.js +15 -15
  370. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  371. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  372. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  373. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  374. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  375. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  376. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  377. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  378. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  379. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  380. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  381. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  382. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  383. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  384. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  385. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  386. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  387. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  388. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  389. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  390. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  391. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  392. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  393. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  394. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  395. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  396. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  397. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  398. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  399. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  400. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  401. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  402. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  403. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  404. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  405. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  406. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  407. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  408. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  409. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  410. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  411. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  412. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  413. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  414. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  415. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  416. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  417. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  418. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  419. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  420. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  421. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  422. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  423. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  424. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  425. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  426. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  427. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  428. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  429. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  430. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  431. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  432. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  433. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  434. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  435. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  436. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  437. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  438. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  439. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  440. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  441. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  442. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  443. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  444. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -814
  445. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -206
  446. package/src/filiale/xinliansihui/pc.js +13 -13
  447. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  448. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  449. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  450. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  451. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  452. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  453. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  454. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  455. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  456. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  457. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  458. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  459. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  460. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  461. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  462. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  463. package/src/filiale/yunchengminsheng/android.js +15 -15
  464. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  465. package/src/filiale/yunchengminsheng/pc.js +15 -15
  466. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  467. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  468. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  469. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  470. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  471. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  472. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  473. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  474. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  475. package/src/main.js +33 -32
  476. package/src/plugins/LoadData.js +10 -10
  477. package/src/plugins/LoadParams.js +24 -24
  478. package/src/safecheck-android.js +328 -328
  479. package/src/safecheck.js +927 -927
  480. package/src/stores/wxconfig.js +10 -10
  481. package/src/utils/getNowDate.js +33 -33
  482. package/test/e2e/custom-assertions/elementCount.js +26 -26
  483. package/test/e2e/nightwatch.conf.js +40 -40
  484. package/test/e2e/runner.js +30 -30
  485. package/test/e2e/specs/test.js +13 -13
  486. package/test/unit/.eslintrc +5 -5
  487. package/test/unit/TestUtil.js +62 -62
  488. package/test/unit/context.html +20 -20
  489. package/test/unit/index.js +13 -13
  490. package/build/css-loaders.js +0 -34
  491. package/build/dev-android.js +0 -151
  492. package/build/dev-client.js +0 -8
  493. package/build/example-server.js +0 -157
  494. package/build/release.sh +0 -28
  495. package/build/utils.js +0 -71
  496. package/build/webpack.base.conf.js +0 -129
  497. package/build/webpack.baseandroid.conf.js +0 -83
  498. package/build/webpack.dev.conf.js +0 -44
  499. package/build/webpack.devandroid.conf.js +0 -33
  500. package/build/webpack.example.conf.js +0 -49
  501. package/build/webpack.hanwei.conf.js +0 -57
  502. package/build/webpack.hwbase.conf.js +0 -78
  503. package/build/webpack.prod.conf.js +0 -78
  504. package/build/webpack.prodandroid.conf.js +0 -60
  505. package/build/webpack.test.conf.js +0 -31
@@ -1,911 +1,911 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
-
8
- .app-row {
9
- background-color: white;
10
- padding: 10px 10px 0 10px;
11
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
- }
13
-
14
- .search_input {
15
- border: 0;
16
- outline: none;
17
- }
18
-
19
- .font {
20
- font: 15px PingFang-SC-Medium;
21
- color: #666666;
22
- }
23
-
24
- .input-font {
25
- font: 15px PingFang-SC-Medium;
26
- color: #333333;
27
- }
28
-
29
- .btn-font {
30
- font: 600 16px PingFang-SC-Bold;
31
- color: #499EDF;
32
- }
33
-
34
- .btn-color {
35
- background-color: #FFFFFF;
36
- border-radius: 10px;
37
- border: 1px solid #499EDF;
38
- }
39
-
40
- .app-text {
41
- font-size: 12px;
42
- }
43
-
44
- .panel-self {
45
- border-radius: 10px;
46
- border: 1px solid #499EDF;
47
- background-color: #F8F8F8;
48
- }
49
-
50
- .yybtn-color {
51
- background-color: #499edf;
52
- border-radius: 4px;
53
- border: 1px solid #499EDF;
54
- color: #FFFFFF;
55
- font: 14px PingFang-SC-Bold;
56
- }
57
-
58
- .qxbtn-color {
59
- background-color: #FFFFFF;
60
- border-radius: 4px;
61
- color: #499edf;
62
- font: 14px PingFang-SC-Bold;
63
- border: 1px solid #499EDF;
64
- }
65
-
66
- .button_shrink_top {
67
- width: 35px;
68
- height: 35px;
69
- background-size: 100%;
70
- background-image: url("../../../../static/newStyle/stretch_top.png")
71
- }
72
-
73
- .button_shrink_bottom {
74
- width: 35px;
75
- height: 35px;
76
- background-size: 100%;
77
- background-image: url("../../../../static/newStyle/stretch_bottom.png")
78
- }
79
-
80
- .button_shrink_left {
81
- width: 35px;
82
- height: 35px;
83
- background-size: 100%;
84
- background-image: url("../../../../static/newStyle/stretch_left.png")
85
- }
86
-
87
- .button_shrink_right {
88
- width: 35px;
89
- height: 35px;
90
- background-size: 100%;
91
- background-image: url("../../../../static/newStyle/stretch_right.png")
92
- }
93
- </style>
94
- <style>
95
- .clear-select-with .dropdown-menu {
96
- left: 0px !important;
97
- width: 200% !important;
98
- }
99
- </style>
100
- <template>
101
- <div style="height: auto;width: 100%">
102
- <criteria-paged :model="model" v-ref:paged>
103
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
104
- <div partial>
105
- <form>
106
- <div class="row app-row">
107
- <!--小区名称-->
108
- <v-select :value.sync="model.f_residential_area"
109
- class="input-font clear-select-with"
110
- :options='$parent.$parent.residentialAreaOptions'
111
- placeholder='小区名称'
112
- :width="'46.5%'"
113
- v-model="model.f_residential_area"
114
- condition="ti.f_residential_area = '{}'"
115
- @change="$parent.$parent.getbuilds"
116
- close-on-select clear-button>
117
- </v-select>
118
- <!--楼栋-->
119
- <v-select :value.sync="model.f_building"
120
- class="input-font"
121
- :options='$parent.$parent.buildOptions'
122
- placeholder='楼栋'
123
- :width="'46.5%'"
124
- v-model="model.f_building"
125
- condition="ti.f_building = '{}'"
126
- @change="$parent.$parent.getUnits"
127
- close-on-select clear-button>
128
- </v-select>
129
- </div>
130
- <div class="row app-row">
131
- <!--单元-->
132
- <v-select :value.sync="model.f_unit"
133
- class="input-font"
134
- :options='$parent.$parent.unitOptions'
135
- placeholder='单元'
136
- :width="'46.5%'"
137
- @change="$parent.$parent.getfloors"
138
- v-model="model.f_unit"
139
- condition="ti.f_unit = '{}'"
140
- close-on-select clear-button>
141
- </v-select>
142
- <!--楼层-->
143
- <v-select :value.sync="model.floor"
144
- class="input-font"
145
- :options='$parent.$parent.floors'
146
- placeholder='楼层'
147
- :width="'46.5%'"
148
- v-model="model.floor"
149
- condition="ti.f_floor = '{}'"
150
- close-on-select clear-button>
151
- </v-select>
152
- </div>
153
- <div class="row app-row">
154
- <div class="col-xs-4">
155
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
156
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
157
- </div>
158
- <div class="col-xs-8">
159
- <input id="f_userinfo_code" class="search_input input-font"
160
- v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'"/>
161
- </div>
162
- </div>
163
- <div class="row app-row">
164
- <div class="col-xs-4">
165
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
166
- <label class="font text-left">用户姓名:</label>
167
- </div>
168
- <div class="col-xs-8">
169
- <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'"/>
170
- </div>
171
- </div>
172
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
173
- <div class="col-xs-4">
174
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
175
- <label class="font text-left">气表编号:</label>
176
- </div>
177
- <div class="col-xs-5">
178
- <input class="search_input input-font"
179
- v-model=model.f_meter_no condition="f_meter_no like '%{}%'"/>
180
- </div>
181
- <div class="col-xs-3">
182
- <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
183
- </div>
184
- </div>
185
-
186
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
187
- <div class="col-xs-4">
188
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
189
- <label class="font text-left">用户地址:</label>
190
- </div>
191
- <div class="col-xs-8">
192
- <input class="search_input input-font"
193
- v-model=model.f_keyword condition="f_address like '%{}%'"/>
194
- </div>
195
- </div>
196
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
197
- <div class="col-xs-4">
198
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
199
- <label for="f_user_type" class="font text-left">用户类型:</label>
200
- </div>
201
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
202
- :width="'60%'"
203
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
204
- v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select
205
- clear-button></v-select>
206
- </div>
207
- <div class="row app-row" v-if="false">
208
- <div class="col-xs-6" style="text-align: center">
209
- <span class="font text-left">待办{{ $parent.$parent.upcomingCount }}条</span>
210
- </div>
211
- <div class="col-xs-6" style="text-align: center">
212
- <span class="font text-left">已办{{ $parent.$parent.doneCount }}条</span>
213
- </div>
214
- <div class="col-xs-6" style="text-align: center">
215
- <span class="font text-left">临时保存{{ $parent.$parent.tempSaveCount }}条</span>
216
- </div>
217
- <div class="col-xs-6" style="text-align: center">
218
- <span class="font text-left">总共{{ $parent.$parent.allPlanCount }}条</span>
219
- </div>
220
- </div>
221
-
222
- <div class="row text-center" style="margin-top: 20px;">
223
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
224
- @click="$parent.$parent.selfSearch">查询
225
- </button>
226
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px"
227
- @click="$parent.$parent.queryplanmany">重置
228
- </button>
229
- <div style="float: right;margin-right: 3% " class="button_spacing"
230
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
231
- @click="$parent.$parent.hidden()"></div>
232
- </div>
233
- <div class="col-sm-12">
234
-
235
- </div>
236
- <!--<div class="row app-btn">-->
237
- <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
238
- <!--</div>-->
239
- <div style="height:30px;"></div>
240
- </form>
241
- </div>
242
- </criteria>
243
- <list :model="model" partial='list'>
244
- <div partial>
245
- <div class="auto app-text" style="margin-top: 5px;">
246
- <div class="panel" style="padding: 10px 10px 5px 10px;">
247
- <div class="panel-body panel-self">
248
-
249
- <div class="col-xs-12">
250
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>用户编号:</b></p>
251
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
252
- <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
253
- <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
254
- </p>
255
- </div>
256
- <div class="col-xs-12">
257
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>用户名称:</b></p>
258
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_name }}</p>
259
- </div>
260
- <div class="col-xs-12">
261
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>用户类型:</b></p>
262
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
263
- </p>
264
- </div>
265
- <div class="col-xs-12">
266
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>计划名称:</b></p>
267
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
268
- </div>
269
- <!-- <div class="col-xs-6">-->
270
- <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
271
- <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
272
- <!-- </div>-->
273
- <div class="col-xs-12">
274
- <p class="panel-title text-left font" style="width: 25%;float: left"><b>用户电话:</b></p>
275
- <p class="panel-title text-left input-font" style="width: 77%">
276
- {{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}
277
- <img src="../../../assets/phone.png" style="width: 6%"
278
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>
279
- </p>
280
- </div>
281
-
282
- <div class="col-xs-12">
283
- <p class="panel-title text-left font" style="width: 25%;float: left"><b>用户地址:</b></p>
284
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
285
- </div>
286
-
287
- <!-- <div class="row">-->
288
- <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
289
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
290
- <!-- </div>-->
291
- <!-- <div class="row">-->
292
- <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
293
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
294
- <!-- </div>-->
295
- <!-- <div class="row">-->
296
- <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
297
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
298
- <!-- </div>-->
299
- <!--<div class="row">-->
300
- <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
301
- <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
302
- <!--</div>-->
303
- <div class="col-xs-12">
304
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>安检状态:</b></p>
305
- <p class="panel-title col-xs-7 text-left input-font">
306
- {{ row.f_state == '已检' ? row.f_last_check_state : row.f_state }}</p>
307
- </div>
308
- <div class="col-xs-12">
309
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>上传状态:</b></p>
310
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
311
- </div>
312
- <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
313
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>预约时间:</b></p>
314
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
315
- row.f_prearranged_date
316
- }}</p>
317
- </div>
318
- <div class="col-xs-12">
319
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>安检类型:</b></p>
320
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
321
- </div>
322
- <div class="col-xs-12">
323
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>开户日期:</b></p>
324
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_open_date }}</p>
325
- </div>
326
- <!--<div class="col-xs-12">-->
327
- <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
328
- <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
329
- <!--</div>-->
330
- <div class="col-xs-12">
331
- <button type="button" name="button" class="btn btn-primary"
332
- style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理
333
- </button>
334
- <!-- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>-->
335
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
336
- </div>
337
- <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
338
- <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
339
- <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
340
- <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
341
- <!-- </div>-->
342
- </div>
343
- </div>
344
- </div>
345
- </div>
346
- </list>
347
- </criteria-paged>
348
- <div style="height: 50px">
349
- </div>
350
- </div>
351
-
352
- </template>
353
-
354
- <script>
355
- import LocalPagedList from '../../../plugins/LocalPagedList'
356
- import Vue from 'vue'
357
- import {HttpResetClass, PagedList} from 'vue-client'
358
- import * as Util from '../../Util'
359
- import co from 'co'
360
-
361
- let select = function* (self) {
362
- let http = new HttpResetClass()
363
- http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
364
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
365
- userid: Vue.user.id
366
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
367
- //tag
368
- self.checkers.push({label: '全部', value: ''})
369
- res.data.forEach((checker) => {
370
- self.checkers.push({label: checker.name, value: checker.id})
371
- })
372
- })
373
- }
374
- export default {
375
- title: '无计划安检查询',
376
- props: ['planName'],
377
- data() {
378
- return {
379
- f_filialeids: '(' + Vue.user.orgid + ')',
380
- //f_filialeids:'(305)',
381
- planparam: [],
382
- check: '',
383
- plan: '',
384
- planid: '',
385
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfoOnline`, 20, {condition: 'this.condition'}),
386
- showModal: false,
387
- showModal2: false,
388
- showModal3: false,
389
- needid: '',
390
- criteriaShow: false,
391
- planoption: [],
392
- condition: '',
393
- checkers: [],
394
- param: null,
395
- f_preset_dt: Util.to3339TimeString(),
396
- flow_direction: [
397
- {label: '请选择挂表方式', value: ''},
398
- {label: '左表', value: '左表'},
399
- {label: '右表', value: '右表'}
400
- ],
401
- check_states: [
402
- {label: '请选择安检状态', value: ''},
403
- {label: '未检', value: '未检'},
404
- {label: '临时保存', value: '已检'},
405
- ],
406
- last_check_states: [
407
- {label: '请选择上次安检状态', value: ''},
408
- {label: '入户', value: '入户'},
409
- {label: '拒检', value: '拒检'},
410
- {label: '到访不遇', value: '到访不遇'},
411
- {label: '未使用天然气', value: '未使用天然气'}
412
- ],
413
- upload_states: [
414
- {label: '请选择上传状态', value: ''},
415
- {label: '未传', value: '未传'},
416
- {label: '已传', value: '已传'}
417
- ],
418
- user_types: [
419
- {label: '请选择用户类型', value: ''},
420
- {label: '民用', value: '民用'},
421
- {label: '非民用', value: '非民用'},
422
- ],
423
- verify_state: [
424
- {label: '请选择审核状态', value: ''},
425
- {label: '未审核', value: '未审核'},
426
- {label: '打回', value: '打回'}
427
- ],
428
- residentialAreaOptions: [],
429
- buildOptions: [],
430
- unitOptions: [],
431
- floors: [],
432
- planNameOptions: [],
433
- upcomingCount: 0,
434
- doneCount: 0,
435
- tempSaveCount: 0,
436
- allPlanCount: 0
437
- }
438
- },
439
- ready() {
440
- this.$refs.paged.$refs.cri.model.f_residential_area = ''
441
- this.$refs.paged.$refs.cri.model.f_building = ''
442
- this.$refs.paged.$refs.cri.model.f_unit = ''
443
- this.$refs.paged.$refs.cri.model.floor = ''
444
- this.getAllArea()
445
- this.getAllPlanName()
446
- this.selfSearch()
447
- let gen = select(this)
448
- co(gen)
449
- },
450
- mounted() {
451
- //tag
452
- if (window.history && window.history.pushState) {
453
- history.pushState(null, null, document.URL);
454
- window.addEventListener('popstate', this.fun, false);//false阻止默认事件
455
- }
456
- },
457
- destroyed() {
458
- //tag
459
- window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
460
- },
461
- methods: {
462
- scan() {
463
- HostApp.__this__ = this,
464
- HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
465
- },
466
- getCode() {
467
- const datapa = HostApp.getCode().data;
468
- //tag
469
- this.$refs.paged.$refs.cri.model.f_meter_no = datapa
470
-
471
- },
472
- fun() {
473
- //tag
474
- //tag
475
- },
476
- iscancel() {
477
- this.showModal2 = false
478
- this.showModal3 = false
479
- this.planoption = []
480
- },
481
- timeSet(val) {
482
- return val
483
- },
484
- async isok() {
485
- if (this.planoption.length == 0) {
486
- this.$showMessage("请选择计划")
487
- return false
488
- }
489
- for (let i = 0; i < this.planoption.length; i++) {
490
- if (this.planoption[i]["selected"] == true) {
491
- this.planid = this.planoption[i].value
492
- break
493
- }
494
- }
495
- if (this.planid == '') {
496
- this.$showMessage("请选择计划")
497
- return false
498
- }
499
- await this.okput()
500
- },
501
- async manyisok() {
502
- if (this.planoption.length == 0) {
503
- this.$showMessage("请选择计划")
504
- return false
505
- }
506
- for (let i = 0; i < this.planoption.length; i++) {
507
- if (this.planoption[i]["selected"] == true) {
508
- this.planid = this.planoption[i].value
509
- break
510
- }
511
- }
512
- if (this.planid == '') {
513
- this.$showMessage("请选择计划")
514
- return false
515
- }
516
- await this.manyokput()
517
- },
518
- changenull() {
519
- this.showModal2 = false
520
- this.showModal3 = false
521
- this.planoption = []
522
- this.plan = ''
523
- this.check = ''
524
- },
525
- async okput() {
526
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
527
- data: {
528
-
529
- condition: `i.id='` + this.needid + `'`,
530
- f_plan_id: this.planid,
531
- switchCheckAll: false,
532
- checkAll: false,
533
- f_operator: Vue.user.name
534
- }
535
- })
536
- await this.changenull()
537
- await this.getNewOrder()
538
- },
539
- async manyokput() {
540
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
541
- data: {
542
- columnName: "i.id",
543
- condition: "1=1",
544
- f_plan_id: this.planid,
545
- switchCheckAll: true,
546
- param: this.planparam,
547
- checkAll: false,
548
- f_operator: Vue.user.name
549
- }
550
- })
551
- await this.changenull()
552
- await this.getNewOrder()
553
- },
554
- async plansearch() {
555
- this.planoption = []
556
- let condition = `f_checker_id=` + this.check + ` and f_plan_name like '%` + this.plan + `%'`
557
- if (!this.check) {
558
- condition = `f_plan_name like '%` + this.plan + `%'`
559
- }
560
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
561
- data: {
562
- condition: condition,
563
- f_filialeids: this.f_filialeids,
564
- groupitem: '',
565
- orderitem: 'id'
566
- }
567
- })
568
- let resoult = res.data
569
- for (let i = 0; i < resoult.length; i++) {
570
- this.planoption.push({label: resoult[i].f_plan_name, selected: false, value: resoult[i].id})
571
- }
572
- },
573
-
574
- select(row, idx) {
575
- this.$set('planoption[' + idx + '].selected', true)
576
- for (let i = 0; i < this.planoption.length; i++) {
577
- if (i != idx) {
578
- this.planoption[i]["selected"] = false
579
- }
580
- }
581
- },
582
- planclose() {
583
- this.showModal2 = false
584
- this.showModal3 = false
585
- },
586
- queryplan(val) {
587
- this.needid = val
588
- this.showModal2 = true
589
- },
590
- queryplanmany() {
591
- this.$refs.paged.$refs.cri.model.f_residential_area = ''
592
- this.$refs.paged.$refs.cri.model.f_building = ''
593
- this.$refs.paged.$refs.cri.model.f_unit = ''
594
- this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
595
- this.$refs.paged.$refs.cri.model.f_user_name = ''
596
- this.$refs.paged.$refs.cri.model.f_enter_number = ''
597
- this.$refs.paged.$refs.cri.model.f_plan_name = ''
598
- this.$refs.paged.$refs.cri.model.f_state = ''
599
- this.$refs.paged.$refs.cri.model.f_meter_no = ''
600
- this.$refs.paged.$refs.cri.model.f_address = ''
601
- this.$refs.paged.$refs.cri.model.f_user_type = ''
602
- },
603
- reload() {
604
- // this.getAllArea()
605
- // this.getAllPlanName()
606
- this.selfSearch()
607
- },
608
- cancelReserve(idx, id) {
609
- if (Vue.android) {
610
- let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
611
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
612
- if (res.code == 200) {
613
- this.$showMessage("取消预约成功")
614
- }
615
- } else {
616
- this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
617
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
618
- if (repanse.data.code == 200) {
619
- alert("取消预约成功!")
620
- }
621
- })
622
- }
623
- },
624
- genuineReserve() {
625
- if (Vue.android) {
626
- if (!this.f_preset_dt) {
627
- this.$showMessage('请选择一个日期')
628
- return
629
- }
630
- let pdt = this.f_preset_dt.replace('T', ' ')
631
- let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
632
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
633
- if (respanse.code == 200) {
634
- this.$showMessage("预约成功!")
635
- }
636
- this.showModal = false
637
- } else {
638
- if (!this.f_preset_dt) {
639
- alert('请选择一个日期')
640
- return
641
- }
642
- let pdt = this.f_preset_dt.replace('T', ' ')
643
- this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
644
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
645
- if (res.data.code == 200) {
646
- alert("预约成功!")
647
- }
648
- this.showModal = false
649
- })
650
- }
651
- },
652
- inspect(row) {
653
- var _this = this
654
- if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && (row.f_state == '未检' || (row.f_state == '已检' && (row.f_last_check_state == '到访不遇' || row.f_last_check_state == '拒检'))) && row.f_no_checkplan != '无计划安检')) {
655
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
656
- data: {
657
- items: '*',
658
- tablename: 't_check_plan',
659
- condition: `id = '${row.f_plan_id}'`,
660
- orderitem: 'id'
661
- }
662
- }).then(resp => {
663
- let myDate = new Date()
664
- // if (resp.data[0].f_end_time > myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDay() || !resp.data[0].f_end_time) {
665
- _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}}, {
666
- resolveMsg: null,
667
- rejectMsg: null
668
- }).then((response) => {
669
- if(response.data.length!=1){
670
- this.$showMessage("当前用户有多条表信息,请联系管理员核实进行处理!")
671
- }else{
672
- row['f_plan_meters'] = response.data
673
- var pardate = {
674
- _this: _this,
675
- title: '安全检查',
676
- safe: true
677
- }
678
- _this.$dispatch('gotoson', pardate)
679
- _this.$goto('safecheck-order-v', {
680
- f_plan_id: row.f_plan_id,
681
- item: row,
682
- role: 'inspect',
683
- parentPage: 'CurrentCreate'
684
- }, 'self', _this.reload)
685
- }
686
- }).catch((msg) => {
687
- this.$showMessage("网络异常,请检查网络后再试!")
688
- })
689
- // } else {
690
- // this.getNewOrder()
691
- // this.$showMessage("计划超期,请联系管理员")
692
- // }
693
- }).catch(error => {
694
-
695
- })
696
- } else {
697
- this.$showMessage("该安检单已被上传!")
698
- }
699
- },
700
- makeAPhoneCall(phoneNumber) {
701
- this.$androidUtil.makeAPhoneCall(phoneNumber)
702
- },
703
- reserve(idx) {
704
- this.param = idx
705
- this.showModal = true
706
- },
707
- search(args) {
708
- this.model.rows = []
709
- this.model.search(args.condition, args.model)
710
- },
711
- selfSearch() {
712
- // this.getPlanCount()
713
- let condition = "and 1 = 1 "
714
- if (this.$refs.paged.$refs.cri.model.f_residential_area)
715
- condition += " and ti.f_residential_area like '%" + this.$refs.paged.$refs.cri.model.f_residential_area + "%'"
716
- if (this.$refs.paged.$refs.cri.model.f_building)
717
- condition += " and ti.f_building = '" + this.$refs.paged.$refs.cri.model.f_building + "'"
718
- if (this.$refs.paged.$refs.cri.model.f_unit)
719
- condition += " and ti.f_unit = '" + this.$refs.paged.$refs.cri.model.f_unit + "'"
720
- if (this.$refs.paged.$refs.cri.model.floor)
721
- condition += " and ti.f_floor = '" + this.$refs.paged.$refs.cri.model.floor + "'"
722
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code)
723
- condition += " and ti.f_userinfo_code like '%" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "%'"
724
- if (this.$refs.paged.$refs.cri.model.f_keyword)
725
- condition += " and ti.f_address like '%" + this.$refs.paged.$refs.cri.model.f_keyword + "%'"
726
- if (this.$refs.paged.$refs.cri.model.f_user_name)
727
- condition += " and ti.f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
728
- if (this.$refs.paged.$refs.cri.model.f_user_type[0])
729
- condition += " and ti.f_user_type='" + this.$refs.paged.$refs.cri.model.f_user_type[0] + "'"
730
- if (this.$refs.paged.$refs.cri.model.f_meter_no)
731
- condition += " and tm.f_meter_no like '%" + this.$refs.paged.$refs.cri.model.f_meter_no + "%'"
732
- if (this.$refs.paged.$refs.cri.model.f_enter_number)
733
- condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
734
-
735
- const searchCondition = "((f_state = '未检') or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检') )) and ti.f_no_checkplan = '有计划安检' and ti.f_checker_idhp = '"+ Vue.user.id +"'" + condition
736
- //tag
737
- this.model.search(searchCondition)
738
- },
739
- hidden() {
740
- this.criteriaShow = !this.criteriaShow
741
- },
742
- getAllArea() {
743
- this.residentialAreaOptions = []
744
- this.buildOptions = []
745
- this.unitOptions = []
746
- let criteria = {
747
- items: 'f_residential_area',
748
- tablename: 't_check_plan_item',
749
- condition: `f_checker_idhp = '${Vue.user.id}' and f_residential_area IS NOT NULL AND f_residential_area != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检')))`,
750
- groupitem: 'f_residential_area'
751
- }
752
- let http = new HttpResetClass()
753
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
754
- //tag
755
- res.data.forEach(item => this.residentialAreaOptions.push({
756
- label: item.f_residential_area,
757
- value: item.f_residential_area
758
- }))
759
- })
760
- },
761
- getbuilds(f_residential_area) {
762
- //tag)
763
- this.buildOptions = []
764
- this.unitOptions = []
765
- this.$refs.paged.$refs.cri.model.f_building = ''
766
- this.$refs.paged.$refs.cri.model.f_unit = ''
767
- if (!f_residential_area) {
768
- return
769
- }
770
- let criteria = {
771
- items: "f_building",
772
- tablename: 't_check_plan_item',
773
- condition: `f_checker_idhp = '${Vue.user.id}' and f_building IS NOT NULL AND f_building != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${f_residential_area}'`,
774
- groupitem: 'f_building order by CASE WHEN ISNUMERIC(f_building) = 1 THEN TRY_CAST(f_building AS INT) ELSE 9999999 END'
775
- }
776
- let http = new HttpResetClass()
777
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
778
- //tag
779
- res.data.forEach(item => this.buildOptions.push({label: item.f_building, value: item.f_building}))
780
- })
781
- },
782
- getUnits(f_building) {
783
- f_building = f_building[0]
784
- //tag)
785
- this.unitOptions = []
786
- this.$refs.paged.$refs.cri.model.f_unit = ''
787
- if (!f_building) {
788
- return
789
- }
790
- let criteria = {
791
- items: "f_unit",
792
- tablename: 't_check_plan_item',
793
- condition: `f_checker_idhp = '${Vue.user.id}' and f_unit IS NOT NULL AND f_unit != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
794
- groupitem: 'f_unit order by CASE WHEN ISNUMERIC(f_unit) = 1 THEN TRY_CAST(f_unit AS INT) ELSE 9999999 END'
795
- }
796
- let http = new HttpResetClass()
797
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
798
- //tag
799
- res.data.forEach(item => this.unitOptions.push({label: item.f_unit, value: item.f_unit}))
800
- })
801
- },
802
- getfloors(f_unit) {
803
- f_unit = f_unit[0]
804
- //tag)
805
- this.floors = []
806
- this.$refs.paged.$refs.cri.model.floor = ''
807
- if (!f_unit) {
808
- return
809
- }
810
- let criteria = {
811
- items: "f_floor",
812
- tablename: 't_check_plan_item',
813
- condition: `f_checker_idhp = '${Vue.user.id}' and f_floor IS NOT NULL AND f_floor != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${this.$refs.paged.$refs.cri.model.f_building}' AND f_unit = '${f_unit}'`,
814
- groupitem: 'f_floor order by CASE WHEN ISNUMERIC(f_floor) = 1 THEN TRY_CAST(f_floor AS INT) ELSE 9999999 END'
815
- }
816
- let http = new HttpResetClass()
817
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
818
- //tag
819
- res.data.forEach(item => this.floors.push({label: item.f_floor, value: item.f_floor}))
820
- })
821
- },
822
- getPlanCount() {
823
- this.upcomingCount = 0
824
- this.tempSaveCount = 0
825
- this.doneCount = 0
826
- this.allPlanCount = 0
827
- let criteria = {
828
- items: 'count(id) count',
829
- tablename: 't_check_plan_item',
830
- condition: `f_state = '未检'`,
831
- groupitem: 'f_state'
832
- }
833
- let result = HostApp._executeTask({
834
- 'type': 'sql',
835
- 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
836
- })
837
- if (result.code && result.code == 200) {
838
- if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
839
- this.upcomingCount = result.data.rows[0].count
840
- }
841
- }
842
- criteria = {
843
- items: 'count(id) count',
844
- tablename: 't_check_plan_item',
845
- condition: `(f_complete = '' or f_complete = null or f_complete = '未完成') AND f_state = '已检'`,
846
- groupitem: 'f_state'
847
- }
848
- result = HostApp._executeTask({
849
- 'type': 'sql',
850
- 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
851
- })
852
- if (result.code && result.code == 200) {
853
- if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
854
- this.tempSaveCount = result.data.rows[0].count
855
- }
856
- }
857
- criteria = {
858
- items: 'count(id) count',
859
- tablename: 't_check_plan_item',
860
- condition: `f_complete = '已完成' AND f_state = '已检'`,
861
- groupitem: 'f_state'
862
- }
863
- result = HostApp._executeTask({
864
- 'type': 'sql',
865
- 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
866
- })
867
- if (result.code && result.code == 200) {
868
- if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
869
- this.doneCount = result.data.rows[0].count
870
- }
871
- }
872
- this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
873
- },
874
- getAllPlanName() {
875
- this.planNameOptions = []
876
- this.$refs.paged.$refs.cri.model.f_plan_name = ''
877
- let criteria = {
878
- items: 'f_plan_name',
879
- tablename: 't_check_plan',
880
- condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
881
- groupitem: 'f_plan_name'
882
- }
883
- let http = new HttpResetClass()
884
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
885
- //tag
886
- res.data.forEach(item => this.planNameOptions.push({
887
- label: item.f_plan_name,
888
- value: item.f_plan_name
889
- }))
890
- })
891
-
892
- },
893
- setPlanParam(detailsType, event) {
894
- if (event.srcElement.checked) {
895
- this.planparam.push(detailsType)
896
- //tag
897
- } else {
898
- if (this.planparam.length > 0) {
899
- let planid = this.planparam.findIndex((value) => {
900
- return value === detailsType
901
- })
902
- this.planparam.splice(planid, 1)
903
- //tag
904
-
905
- }
906
-
907
- }
908
- }
909
- }
910
- }
911
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+
8
+ .app-row {
9
+ background-color: white;
10
+ padding: 10px 10px 0 10px;
11
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
+ }
13
+
14
+ .search_input {
15
+ border: 0;
16
+ outline: none;
17
+ }
18
+
19
+ .font {
20
+ font: 15px PingFang-SC-Medium;
21
+ color: #666666;
22
+ }
23
+
24
+ .input-font {
25
+ font: 15px PingFang-SC-Medium;
26
+ color: #333333;
27
+ }
28
+
29
+ .btn-font {
30
+ font: 600 16px PingFang-SC-Bold;
31
+ color: #499EDF;
32
+ }
33
+
34
+ .btn-color {
35
+ background-color: #FFFFFF;
36
+ border-radius: 10px;
37
+ border: 1px solid #499EDF;
38
+ }
39
+
40
+ .app-text {
41
+ font-size: 12px;
42
+ }
43
+
44
+ .panel-self {
45
+ border-radius: 10px;
46
+ border: 1px solid #499EDF;
47
+ background-color: #F8F8F8;
48
+ }
49
+
50
+ .yybtn-color {
51
+ background-color: #499edf;
52
+ border-radius: 4px;
53
+ border: 1px solid #499EDF;
54
+ color: #FFFFFF;
55
+ font: 14px PingFang-SC-Bold;
56
+ }
57
+
58
+ .qxbtn-color {
59
+ background-color: #FFFFFF;
60
+ border-radius: 4px;
61
+ color: #499edf;
62
+ font: 14px PingFang-SC-Bold;
63
+ border: 1px solid #499EDF;
64
+ }
65
+
66
+ .button_shrink_top {
67
+ width: 35px;
68
+ height: 35px;
69
+ background-size: 100%;
70
+ background-image: url("../../../../static/newStyle/stretch_top.png")
71
+ }
72
+
73
+ .button_shrink_bottom {
74
+ width: 35px;
75
+ height: 35px;
76
+ background-size: 100%;
77
+ background-image: url("../../../../static/newStyle/stretch_bottom.png")
78
+ }
79
+
80
+ .button_shrink_left {
81
+ width: 35px;
82
+ height: 35px;
83
+ background-size: 100%;
84
+ background-image: url("../../../../static/newStyle/stretch_left.png")
85
+ }
86
+
87
+ .button_shrink_right {
88
+ width: 35px;
89
+ height: 35px;
90
+ background-size: 100%;
91
+ background-image: url("../../../../static/newStyle/stretch_right.png")
92
+ }
93
+ </style>
94
+ <style>
95
+ .clear-select-with .dropdown-menu {
96
+ left: 0px !important;
97
+ width: 200% !important;
98
+ }
99
+ </style>
100
+ <template>
101
+ <div style="height: auto;width: 100%">
102
+ <criteria-paged :model="model" v-ref:paged>
103
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
104
+ <div partial>
105
+ <form>
106
+ <div class="row app-row">
107
+ <!--小区名称-->
108
+ <v-select :value.sync="model.f_residential_area"
109
+ class="input-font clear-select-with"
110
+ :options='$parent.$parent.residentialAreaOptions'
111
+ placeholder='小区名称'
112
+ :width="'46.5%'"
113
+ v-model="model.f_residential_area"
114
+ condition="ti.f_residential_area = '{}'"
115
+ @change="$parent.$parent.getbuilds"
116
+ close-on-select clear-button>
117
+ </v-select>
118
+ <!--楼栋-->
119
+ <v-select :value.sync="model.f_building"
120
+ class="input-font"
121
+ :options='$parent.$parent.buildOptions'
122
+ placeholder='楼栋'
123
+ :width="'46.5%'"
124
+ v-model="model.f_building"
125
+ condition="ti.f_building = '{}'"
126
+ @change="$parent.$parent.getUnits"
127
+ close-on-select clear-button>
128
+ </v-select>
129
+ </div>
130
+ <div class="row app-row">
131
+ <!--单元-->
132
+ <v-select :value.sync="model.f_unit"
133
+ class="input-font"
134
+ :options='$parent.$parent.unitOptions'
135
+ placeholder='单元'
136
+ :width="'46.5%'"
137
+ @change="$parent.$parent.getfloors"
138
+ v-model="model.f_unit"
139
+ condition="ti.f_unit = '{}'"
140
+ close-on-select clear-button>
141
+ </v-select>
142
+ <!--楼层-->
143
+ <v-select :value.sync="model.floor"
144
+ class="input-font"
145
+ :options='$parent.$parent.floors'
146
+ placeholder='楼层'
147
+ :width="'46.5%'"
148
+ v-model="model.floor"
149
+ condition="ti.f_floor = '{}'"
150
+ close-on-select clear-button>
151
+ </v-select>
152
+ </div>
153
+ <div class="row app-row">
154
+ <div class="col-xs-4">
155
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
156
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
157
+ </div>
158
+ <div class="col-xs-8">
159
+ <input id="f_userinfo_code" class="search_input input-font"
160
+ v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'"/>
161
+ </div>
162
+ </div>
163
+ <div class="row app-row">
164
+ <div class="col-xs-4">
165
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
166
+ <label class="font text-left">用户姓名:</label>
167
+ </div>
168
+ <div class="col-xs-8">
169
+ <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'"/>
170
+ </div>
171
+ </div>
172
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
173
+ <div class="col-xs-4">
174
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
175
+ <label class="font text-left">气表编号:</label>
176
+ </div>
177
+ <div class="col-xs-5">
178
+ <input class="search_input input-font"
179
+ v-model=model.f_meter_no condition="f_meter_no like '%{}%'"/>
180
+ </div>
181
+ <div class="col-xs-3">
182
+ <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
183
+ </div>
184
+ </div>
185
+
186
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
187
+ <div class="col-xs-4">
188
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
189
+ <label class="font text-left">用户地址:</label>
190
+ </div>
191
+ <div class="col-xs-8">
192
+ <input class="search_input input-font"
193
+ v-model=model.f_keyword condition="f_address like '%{}%'"/>
194
+ </div>
195
+ </div>
196
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
197
+ <div class="col-xs-4">
198
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
199
+ <label for="f_user_type" class="font text-left">用户类型:</label>
200
+ </div>
201
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
202
+ :width="'60%'"
203
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
204
+ v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select
205
+ clear-button></v-select>
206
+ </div>
207
+ <div class="row app-row" v-if="false">
208
+ <div class="col-xs-6" style="text-align: center">
209
+ <span class="font text-left">待办{{ $parent.$parent.upcomingCount }}条</span>
210
+ </div>
211
+ <div class="col-xs-6" style="text-align: center">
212
+ <span class="font text-left">已办{{ $parent.$parent.doneCount }}条</span>
213
+ </div>
214
+ <div class="col-xs-6" style="text-align: center">
215
+ <span class="font text-left">临时保存{{ $parent.$parent.tempSaveCount }}条</span>
216
+ </div>
217
+ <div class="col-xs-6" style="text-align: center">
218
+ <span class="font text-left">总共{{ $parent.$parent.allPlanCount }}条</span>
219
+ </div>
220
+ </div>
221
+
222
+ <div class="row text-center" style="margin-top: 20px;">
223
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
224
+ @click="$parent.$parent.selfSearch">查询
225
+ </button>
226
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px"
227
+ @click="$parent.$parent.queryplanmany">重置
228
+ </button>
229
+ <div style="float: right;margin-right: 3% " class="button_spacing"
230
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
231
+ @click="$parent.$parent.hidden()"></div>
232
+ </div>
233
+ <div class="col-sm-12">
234
+
235
+ </div>
236
+ <!--<div class="row app-btn">-->
237
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
238
+ <!--</div>-->
239
+ <div style="height:30px;"></div>
240
+ </form>
241
+ </div>
242
+ </criteria>
243
+ <list :model="model" partial='list'>
244
+ <div partial>
245
+ <div class="auto app-text" style="margin-top: 5px;">
246
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
247
+ <div class="panel-body panel-self">
248
+
249
+ <div class="col-xs-12">
250
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>用户编号:</b></p>
251
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
252
+ <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
253
+ <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
254
+ </p>
255
+ </div>
256
+ <div class="col-xs-12">
257
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>用户名称:</b></p>
258
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_name }}</p>
259
+ </div>
260
+ <div class="col-xs-12">
261
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>用户类型:</b></p>
262
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
263
+ </p>
264
+ </div>
265
+ <div class="col-xs-12">
266
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>计划名称:</b></p>
267
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
268
+ </div>
269
+ <!-- <div class="col-xs-6">-->
270
+ <!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
271
+ <!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
272
+ <!-- </div>-->
273
+ <div class="col-xs-12">
274
+ <p class="panel-title text-left font" style="width: 25%;float: left"><b>用户电话:</b></p>
275
+ <p class="panel-title text-left input-font" style="width: 77%">
276
+ {{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}
277
+ <img src="../../../assets/phone.png" style="width: 6%"
278
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>
279
+ </p>
280
+ </div>
281
+
282
+ <div class="col-xs-12">
283
+ <p class="panel-title text-left font" style="width: 25%;float: left"><b>用户地址:</b></p>
284
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
285
+ </div>
286
+
287
+ <!-- <div class="row">-->
288
+ <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
289
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
290
+ <!-- </div>-->
291
+ <!-- <div class="row">-->
292
+ <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
293
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
294
+ <!-- </div>-->
295
+ <!-- <div class="row">-->
296
+ <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
297
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
298
+ <!-- </div>-->
299
+ <!--<div class="row">-->
300
+ <!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
301
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
302
+ <!--</div>-->
303
+ <div class="col-xs-12">
304
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>安检状态:</b></p>
305
+ <p class="panel-title col-xs-7 text-left input-font">
306
+ {{ row.f_state == '已检' ? row.f_last_check_state : row.f_state }}</p>
307
+ </div>
308
+ <div class="col-xs-12">
309
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>上传状态:</b></p>
310
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
311
+ </div>
312
+ <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
313
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>预约时间:</b></p>
314
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{
315
+ row.f_prearranged_date
316
+ }}</p>
317
+ </div>
318
+ <div class="col-xs-12">
319
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;"><b>安检类型:</b></p>
320
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
321
+ </div>
322
+ <div class="col-xs-12">
323
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>开户日期:</b></p>
324
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_open_date }}</p>
325
+ </div>
326
+ <!--<div class="col-xs-12">-->
327
+ <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
328
+ <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
329
+ <!--</div>-->
330
+ <div class="col-xs-12">
331
+ <button type="button" name="button" class="btn btn-primary"
332
+ style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理
333
+ </button>
334
+ <!-- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>-->
335
+ <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
336
+ </div>
337
+ <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
338
+ <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
339
+ <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
340
+ <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
341
+ <!-- </div>-->
342
+ </div>
343
+ </div>
344
+ </div>
345
+ </div>
346
+ </list>
347
+ </criteria-paged>
348
+ <div style="height: 50px">
349
+ </div>
350
+ </div>
351
+
352
+ </template>
353
+
354
+ <script>
355
+ import LocalPagedList from '../../../plugins/LocalPagedList'
356
+ import Vue from 'vue'
357
+ import {HttpResetClass, PagedList} from 'vue-client'
358
+ import * as Util from '../../Util'
359
+ import co from 'co'
360
+
361
+ let select = function* (self) {
362
+ let http = new HttpResetClass()
363
+ http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
364
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
365
+ userid: Vue.user.id
366
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
367
+ //tag
368
+ self.checkers.push({label: '全部', value: ''})
369
+ res.data.forEach((checker) => {
370
+ self.checkers.push({label: checker.name, value: checker.id})
371
+ })
372
+ })
373
+ }
374
+ export default {
375
+ title: '无计划安检查询',
376
+ props: ['planName'],
377
+ data() {
378
+ return {
379
+ f_filialeids: '(' + Vue.user.orgid + ')',
380
+ //f_filialeids:'(305)',
381
+ planparam: [],
382
+ check: '',
383
+ plan: '',
384
+ planid: '',
385
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfoOnline`, 20, {condition: 'this.condition'}),
386
+ showModal: false,
387
+ showModal2: false,
388
+ showModal3: false,
389
+ needid: '',
390
+ criteriaShow: false,
391
+ planoption: [],
392
+ condition: '',
393
+ checkers: [],
394
+ param: null,
395
+ f_preset_dt: Util.to3339TimeString(),
396
+ flow_direction: [
397
+ {label: '请选择挂表方式', value: ''},
398
+ {label: '左表', value: '左表'},
399
+ {label: '右表', value: '右表'}
400
+ ],
401
+ check_states: [
402
+ {label: '请选择安检状态', value: ''},
403
+ {label: '未检', value: '未检'},
404
+ {label: '临时保存', value: '已检'},
405
+ ],
406
+ last_check_states: [
407
+ {label: '请选择上次安检状态', value: ''},
408
+ {label: '入户', value: '入户'},
409
+ {label: '拒检', value: '拒检'},
410
+ {label: '到访不遇', value: '到访不遇'},
411
+ {label: '未使用天然气', value: '未使用天然气'}
412
+ ],
413
+ upload_states: [
414
+ {label: '请选择上传状态', value: ''},
415
+ {label: '未传', value: '未传'},
416
+ {label: '已传', value: '已传'}
417
+ ],
418
+ user_types: [
419
+ {label: '请选择用户类型', value: ''},
420
+ {label: '民用', value: '民用'},
421
+ {label: '非民用', value: '非民用'},
422
+ ],
423
+ verify_state: [
424
+ {label: '请选择审核状态', value: ''},
425
+ {label: '未审核', value: '未审核'},
426
+ {label: '打回', value: '打回'}
427
+ ],
428
+ residentialAreaOptions: [],
429
+ buildOptions: [],
430
+ unitOptions: [],
431
+ floors: [],
432
+ planNameOptions: [],
433
+ upcomingCount: 0,
434
+ doneCount: 0,
435
+ tempSaveCount: 0,
436
+ allPlanCount: 0
437
+ }
438
+ },
439
+ ready() {
440
+ this.$refs.paged.$refs.cri.model.f_residential_area = ''
441
+ this.$refs.paged.$refs.cri.model.f_building = ''
442
+ this.$refs.paged.$refs.cri.model.f_unit = ''
443
+ this.$refs.paged.$refs.cri.model.floor = ''
444
+ this.getAllArea()
445
+ this.getAllPlanName()
446
+ this.selfSearch()
447
+ let gen = select(this)
448
+ co(gen)
449
+ },
450
+ mounted() {
451
+ //tag
452
+ if (window.history && window.history.pushState) {
453
+ history.pushState(null, null, document.URL);
454
+ window.addEventListener('popstate', this.fun, false);//false阻止默认事件
455
+ }
456
+ },
457
+ destroyed() {
458
+ //tag
459
+ window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
460
+ },
461
+ methods: {
462
+ scan() {
463
+ HostApp.__this__ = this,
464
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
465
+ },
466
+ getCode() {
467
+ const datapa = HostApp.getCode().data;
468
+ //tag
469
+ this.$refs.paged.$refs.cri.model.f_meter_no = datapa
470
+
471
+ },
472
+ fun() {
473
+ //tag
474
+ //tag
475
+ },
476
+ iscancel() {
477
+ this.showModal2 = false
478
+ this.showModal3 = false
479
+ this.planoption = []
480
+ },
481
+ timeSet(val) {
482
+ return val
483
+ },
484
+ async isok() {
485
+ if (this.planoption.length == 0) {
486
+ this.$showMessage("请选择计划")
487
+ return false
488
+ }
489
+ for (let i = 0; i < this.planoption.length; i++) {
490
+ if (this.planoption[i]["selected"] == true) {
491
+ this.planid = this.planoption[i].value
492
+ break
493
+ }
494
+ }
495
+ if (this.planid == '') {
496
+ this.$showMessage("请选择计划")
497
+ return false
498
+ }
499
+ await this.okput()
500
+ },
501
+ async manyisok() {
502
+ if (this.planoption.length == 0) {
503
+ this.$showMessage("请选择计划")
504
+ return false
505
+ }
506
+ for (let i = 0; i < this.planoption.length; i++) {
507
+ if (this.planoption[i]["selected"] == true) {
508
+ this.planid = this.planoption[i].value
509
+ break
510
+ }
511
+ }
512
+ if (this.planid == '') {
513
+ this.$showMessage("请选择计划")
514
+ return false
515
+ }
516
+ await this.manyokput()
517
+ },
518
+ changenull() {
519
+ this.showModal2 = false
520
+ this.showModal3 = false
521
+ this.planoption = []
522
+ this.plan = ''
523
+ this.check = ''
524
+ },
525
+ async okput() {
526
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
527
+ data: {
528
+
529
+ condition: `i.id='` + this.needid + `'`,
530
+ f_plan_id: this.planid,
531
+ switchCheckAll: false,
532
+ checkAll: false,
533
+ f_operator: Vue.user.name
534
+ }
535
+ })
536
+ await this.changenull()
537
+ await this.getNewOrder()
538
+ },
539
+ async manyokput() {
540
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
541
+ data: {
542
+ columnName: "i.id",
543
+ condition: "1=1",
544
+ f_plan_id: this.planid,
545
+ switchCheckAll: true,
546
+ param: this.planparam,
547
+ checkAll: false,
548
+ f_operator: Vue.user.name
549
+ }
550
+ })
551
+ await this.changenull()
552
+ await this.getNewOrder()
553
+ },
554
+ async plansearch() {
555
+ this.planoption = []
556
+ let condition = `f_checker_id=` + this.check + ` and f_plan_name like '%` + this.plan + `%'`
557
+ if (!this.check) {
558
+ condition = `f_plan_name like '%` + this.plan + `%'`
559
+ }
560
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
561
+ data: {
562
+ condition: condition,
563
+ f_filialeids: this.f_filialeids,
564
+ groupitem: '',
565
+ orderitem: 'id'
566
+ }
567
+ })
568
+ let resoult = res.data
569
+ for (let i = 0; i < resoult.length; i++) {
570
+ this.planoption.push({label: resoult[i].f_plan_name, selected: false, value: resoult[i].id})
571
+ }
572
+ },
573
+
574
+ select(row, idx) {
575
+ this.$set('planoption[' + idx + '].selected', true)
576
+ for (let i = 0; i < this.planoption.length; i++) {
577
+ if (i != idx) {
578
+ this.planoption[i]["selected"] = false
579
+ }
580
+ }
581
+ },
582
+ planclose() {
583
+ this.showModal2 = false
584
+ this.showModal3 = false
585
+ },
586
+ queryplan(val) {
587
+ this.needid = val
588
+ this.showModal2 = true
589
+ },
590
+ queryplanmany() {
591
+ this.$refs.paged.$refs.cri.model.f_residential_area = ''
592
+ this.$refs.paged.$refs.cri.model.f_building = ''
593
+ this.$refs.paged.$refs.cri.model.f_unit = ''
594
+ this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
595
+ this.$refs.paged.$refs.cri.model.f_user_name = ''
596
+ this.$refs.paged.$refs.cri.model.f_enter_number = ''
597
+ this.$refs.paged.$refs.cri.model.f_plan_name = ''
598
+ this.$refs.paged.$refs.cri.model.f_state = ''
599
+ this.$refs.paged.$refs.cri.model.f_meter_no = ''
600
+ this.$refs.paged.$refs.cri.model.f_address = ''
601
+ this.$refs.paged.$refs.cri.model.f_user_type = ''
602
+ },
603
+ reload() {
604
+ // this.getAllArea()
605
+ // this.getAllPlanName()
606
+ this.selfSearch()
607
+ },
608
+ cancelReserve(idx, id) {
609
+ if (Vue.android) {
610
+ let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
611
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
612
+ if (res.code == 200) {
613
+ this.$showMessage("取消预约成功")
614
+ }
615
+ } else {
616
+ this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
617
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
618
+ if (repanse.data.code == 200) {
619
+ alert("取消预约成功!")
620
+ }
621
+ })
622
+ }
623
+ },
624
+ genuineReserve() {
625
+ if (Vue.android) {
626
+ if (!this.f_preset_dt) {
627
+ this.$showMessage('请选择一个日期')
628
+ return
629
+ }
630
+ let pdt = this.f_preset_dt.replace('T', ' ')
631
+ let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
632
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
633
+ if (respanse.code == 200) {
634
+ this.$showMessage("预约成功!")
635
+ }
636
+ this.showModal = false
637
+ } else {
638
+ if (!this.f_preset_dt) {
639
+ alert('请选择一个日期')
640
+ return
641
+ }
642
+ let pdt = this.f_preset_dt.replace('T', ' ')
643
+ this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
644
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
645
+ if (res.data.code == 200) {
646
+ alert("预约成功!")
647
+ }
648
+ this.showModal = false
649
+ })
650
+ }
651
+ },
652
+ inspect(row) {
653
+ var _this = this
654
+ if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && (row.f_state == '未检' || (row.f_state == '已检' && (row.f_last_check_state == '到访不遇' || row.f_last_check_state == '拒检'))) && row.f_no_checkplan != '无计划安检')) {
655
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
656
+ data: {
657
+ items: '*',
658
+ tablename: 't_check_plan',
659
+ condition: `id = '${row.f_plan_id}'`,
660
+ orderitem: 'id'
661
+ }
662
+ }).then(resp => {
663
+ let myDate = new Date()
664
+ // if (resp.data[0].f_end_time > myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDay() || !resp.data[0].f_end_time) {
665
+ _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}}, {
666
+ resolveMsg: null,
667
+ rejectMsg: null
668
+ }).then((response) => {
669
+ if(response.data.length!=1){
670
+ this.$showMessage("当前用户有多条表信息,请联系管理员核实进行处理!")
671
+ }else{
672
+ row['f_plan_meters'] = response.data
673
+ var pardate = {
674
+ _this: _this,
675
+ title: '安全检查',
676
+ safe: true
677
+ }
678
+ _this.$dispatch('gotoson', pardate)
679
+ _this.$goto('safecheck-order-v', {
680
+ f_plan_id: row.f_plan_id,
681
+ item: row,
682
+ role: 'inspect',
683
+ parentPage: 'CurrentCreate'
684
+ }, 'self', _this.reload)
685
+ }
686
+ }).catch((msg) => {
687
+ this.$showMessage("网络异常,请检查网络后再试!")
688
+ })
689
+ // } else {
690
+ // this.getNewOrder()
691
+ // this.$showMessage("计划超期,请联系管理员")
692
+ // }
693
+ }).catch(error => {
694
+
695
+ })
696
+ } else {
697
+ this.$showMessage("该安检单已被上传!")
698
+ }
699
+ },
700
+ makeAPhoneCall(phoneNumber) {
701
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
702
+ },
703
+ reserve(idx) {
704
+ this.param = idx
705
+ this.showModal = true
706
+ },
707
+ search(args) {
708
+ this.model.rows = []
709
+ this.model.search(args.condition, args.model)
710
+ },
711
+ selfSearch() {
712
+ // this.getPlanCount()
713
+ let condition = "and 1 = 1 "
714
+ if (this.$refs.paged.$refs.cri.model.f_residential_area)
715
+ condition += " and ti.f_residential_area like '%" + this.$refs.paged.$refs.cri.model.f_residential_area + "%'"
716
+ if (this.$refs.paged.$refs.cri.model.f_building)
717
+ condition += " and ti.f_building = '" + this.$refs.paged.$refs.cri.model.f_building + "'"
718
+ if (this.$refs.paged.$refs.cri.model.f_unit)
719
+ condition += " and ti.f_unit = '" + this.$refs.paged.$refs.cri.model.f_unit + "'"
720
+ if (this.$refs.paged.$refs.cri.model.floor)
721
+ condition += " and ti.f_floor = '" + this.$refs.paged.$refs.cri.model.floor + "'"
722
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code)
723
+ condition += " and ti.f_userinfo_code like '%" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "%'"
724
+ if (this.$refs.paged.$refs.cri.model.f_keyword)
725
+ condition += " and ti.f_address like '%" + this.$refs.paged.$refs.cri.model.f_keyword + "%'"
726
+ if (this.$refs.paged.$refs.cri.model.f_user_name)
727
+ condition += " and ti.f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
728
+ if (this.$refs.paged.$refs.cri.model.f_user_type[0])
729
+ condition += " and ti.f_user_type='" + this.$refs.paged.$refs.cri.model.f_user_type[0] + "'"
730
+ if (this.$refs.paged.$refs.cri.model.f_meter_no)
731
+ condition += " and tm.f_meter_no like '%" + this.$refs.paged.$refs.cri.model.f_meter_no + "%'"
732
+ if (this.$refs.paged.$refs.cri.model.f_enter_number)
733
+ condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
734
+
735
+ const searchCondition = "((f_state = '未检') or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检') )) and ti.f_no_checkplan = '有计划安检' and ti.f_checker_idhp = '"+ Vue.user.id +"'" + condition
736
+ //tag
737
+ this.model.search(searchCondition)
738
+ },
739
+ hidden() {
740
+ this.criteriaShow = !this.criteriaShow
741
+ },
742
+ getAllArea() {
743
+ this.residentialAreaOptions = []
744
+ this.buildOptions = []
745
+ this.unitOptions = []
746
+ let criteria = {
747
+ items: 'f_residential_area',
748
+ tablename: 't_check_plan_item',
749
+ condition: `f_checker_idhp = '${Vue.user.id}' and f_residential_area IS NOT NULL AND f_residential_area != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检')))`,
750
+ groupitem: 'f_residential_area'
751
+ }
752
+ let http = new HttpResetClass()
753
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
754
+ //tag
755
+ res.data.forEach(item => this.residentialAreaOptions.push({
756
+ label: item.f_residential_area,
757
+ value: item.f_residential_area
758
+ }))
759
+ })
760
+ },
761
+ getbuilds(f_residential_area) {
762
+ //tag)
763
+ this.buildOptions = []
764
+ this.unitOptions = []
765
+ this.$refs.paged.$refs.cri.model.f_building = ''
766
+ this.$refs.paged.$refs.cri.model.f_unit = ''
767
+ if (!f_residential_area) {
768
+ return
769
+ }
770
+ let criteria = {
771
+ items: "f_building",
772
+ tablename: 't_check_plan_item',
773
+ condition: `f_checker_idhp = '${Vue.user.id}' and f_building IS NOT NULL AND f_building != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${f_residential_area}'`,
774
+ groupitem: 'f_building order by CASE WHEN ISNUMERIC(f_building) = 1 THEN TRY_CAST(f_building AS INT) ELSE 9999999 END'
775
+ }
776
+ let http = new HttpResetClass()
777
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
778
+ //tag
779
+ res.data.forEach(item => this.buildOptions.push({label: item.f_building, value: item.f_building}))
780
+ })
781
+ },
782
+ getUnits(f_building) {
783
+ f_building = f_building[0]
784
+ //tag)
785
+ this.unitOptions = []
786
+ this.$refs.paged.$refs.cri.model.f_unit = ''
787
+ if (!f_building) {
788
+ return
789
+ }
790
+ let criteria = {
791
+ items: "f_unit",
792
+ tablename: 't_check_plan_item',
793
+ condition: `f_checker_idhp = '${Vue.user.id}' and f_unit IS NOT NULL AND f_unit != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
794
+ groupitem: 'f_unit order by CASE WHEN ISNUMERIC(f_unit) = 1 THEN TRY_CAST(f_unit AS INT) ELSE 9999999 END'
795
+ }
796
+ let http = new HttpResetClass()
797
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
798
+ //tag
799
+ res.data.forEach(item => this.unitOptions.push({label: item.f_unit, value: item.f_unit}))
800
+ })
801
+ },
802
+ getfloors(f_unit) {
803
+ f_unit = f_unit[0]
804
+ //tag)
805
+ this.floors = []
806
+ this.$refs.paged.$refs.cri.model.floor = ''
807
+ if (!f_unit) {
808
+ return
809
+ }
810
+ let criteria = {
811
+ items: "f_floor",
812
+ tablename: 't_check_plan_item',
813
+ condition: `f_checker_idhp = '${Vue.user.id}' and f_floor IS NOT NULL AND f_floor != '' AND (f_state <> '已检' or (f_state = '已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))) AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${this.$refs.paged.$refs.cri.model.f_building}' AND f_unit = '${f_unit}'`,
814
+ groupitem: 'f_floor order by CASE WHEN ISNUMERIC(f_floor) = 1 THEN TRY_CAST(f_floor AS INT) ELSE 9999999 END'
815
+ }
816
+ let http = new HttpResetClass()
817
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
818
+ //tag
819
+ res.data.forEach(item => this.floors.push({label: item.f_floor, value: item.f_floor}))
820
+ })
821
+ },
822
+ getPlanCount() {
823
+ this.upcomingCount = 0
824
+ this.tempSaveCount = 0
825
+ this.doneCount = 0
826
+ this.allPlanCount = 0
827
+ let criteria = {
828
+ items: 'count(id) count',
829
+ tablename: 't_check_plan_item',
830
+ condition: `f_state = '未检'`,
831
+ groupitem: 'f_state'
832
+ }
833
+ let result = HostApp._executeTask({
834
+ 'type': 'sql',
835
+ 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
836
+ })
837
+ if (result.code && result.code == 200) {
838
+ if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
839
+ this.upcomingCount = result.data.rows[0].count
840
+ }
841
+ }
842
+ criteria = {
843
+ items: 'count(id) count',
844
+ tablename: 't_check_plan_item',
845
+ condition: `(f_complete = '' or f_complete = null or f_complete = '未完成') AND f_state = '已检'`,
846
+ groupitem: 'f_state'
847
+ }
848
+ result = HostApp._executeTask({
849
+ 'type': 'sql',
850
+ 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
851
+ })
852
+ if (result.code && result.code == 200) {
853
+ if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
854
+ this.tempSaveCount = result.data.rows[0].count
855
+ }
856
+ }
857
+ criteria = {
858
+ items: 'count(id) count',
859
+ tablename: 't_check_plan_item',
860
+ condition: `f_complete = '已完成' AND f_state = '已检'`,
861
+ groupitem: 'f_state'
862
+ }
863
+ result = HostApp._executeTask({
864
+ 'type': 'sql',
865
+ 'data': {'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}
866
+ })
867
+ if (result.code && result.code == 200) {
868
+ if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
869
+ this.doneCount = result.data.rows[0].count
870
+ }
871
+ }
872
+ this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
873
+ },
874
+ getAllPlanName() {
875
+ this.planNameOptions = []
876
+ this.$refs.paged.$refs.cri.model.f_plan_name = ''
877
+ let criteria = {
878
+ items: 'f_plan_name',
879
+ tablename: 't_check_plan',
880
+ condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
881
+ groupitem: 'f_plan_name'
882
+ }
883
+ let http = new HttpResetClass()
884
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {data:criteria}, {resolveMsg: null, rejectMsg: null}).then((res) => {
885
+ //tag
886
+ res.data.forEach(item => this.planNameOptions.push({
887
+ label: item.f_plan_name,
888
+ value: item.f_plan_name
889
+ }))
890
+ })
891
+
892
+ },
893
+ setPlanParam(detailsType, event) {
894
+ if (event.srcElement.checked) {
895
+ this.planparam.push(detailsType)
896
+ //tag
897
+ } else {
898
+ if (this.planparam.length > 0) {
899
+ let planid = this.planparam.findIndex((value) => {
900
+ return value === detailsType
901
+ })
902
+ this.planparam.splice(planid, 1)
903
+ //tag
904
+
905
+ }
906
+
907
+ }
908
+ }
909
+ }
910
+ }
911
+ </script>