App.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template lang="pug">
  2. .pos
  3. form-wizard(title='' subtitle='' finishButtonText='Finalizar' color='#7c7bad' nextButtonText='Continuar' backButtonText='Volver' @on-complete='createSale')
  4. tab-content(title="Qué productos necesita?") Step 1
  5. tab-content(title="Quién es el cliente?") Step 2
  6. tab-content(title="Cómo quieres pagar?") Step 3
  7. </template>
  8. <script>
  9. import { mapActions } from 'vuex'
  10. import { FormWizard, TabContent } from 'vue-form-wizard'
  11. export default {
  12. components: {
  13. FormWizard,
  14. TabContent
  15. },
  16. methods: mapActions([
  17. 'initSale',
  18. 'createSale'
  19. ]),
  20. mounted() {
  21. this.initSale()
  22. }
  23. }
  24. </script>
  25. <style lang="sass">
  26. @import './assets/variables'
  27. .pos
  28. width: 100%
  29. height: 100%
  30. position: absolute
  31. .vue-form-wizard
  32. width: 100%
  33. height: 100%
  34. padding-bottom: 0
  35. .wizard-header
  36. display: none
  37. .wizard-navigation
  38. width: 100%
  39. height: 100%
  40. .wizard-progress-with-circle
  41. top: 35px
  42. .wizard-icon-circle
  43. width: 60px
  44. height: 60px
  45. .wizard-tab-content
  46. width: 100%
  47. height: calc(100% - 82px)
  48. padding: 0
  49. overflow: hidden
  50. .wizard-tab-container
  51. width: calc(100% - 20px)
  52. height: calc(100% - 20px)
  53. margin: 10px
  54. .pos-step
  55. width: 100%
  56. height: 100%
  57. background: #fff
  58. .wizard-card-footer
  59. width: 100%
  60. height: 50px
  61. position: absolute
  62. bottom: 0
  63. .wizard-btn
  64. width: 160px
  65. height: 40px
  66. border-radius: 0
  67. box-shadow: none
  68. border: none
  69. &:hover, &:focus
  70. background: $app-main-color
  71. </style>