BankPaymentModal.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template lang="pug">
  2. modal(
  3. name='payment-bank-modal'
  4. adaptive='true'
  5. width='800px'
  6. height='500px'
  7. transition='nice-modal-fade'
  8. :classes="['v--modal', 'payment-bank-modal']"
  9. @before-close='beforeClose'
  10. )
  11. form-wizard(
  12. title='Pago Bancario'
  13. subtitle=''
  14. next-button-text='Continuar'
  15. back-button-text='Volver'
  16. finish-button-text='Completar'
  17. color='#7c7bad'
  18. )
  19. tab-content(
  20. title='Qué tipo de operación es?'
  21. )
  22. form.journal-form
  23. ul
  24. li
  25. input.form-input(
  26. type='radio'
  27. id='cash'
  28. )
  29. label Banco (PYG)
  30. li
  31. input.form-input(
  32. type='radio'
  33. id='cash'
  34. )
  35. label Cheques (PYG)
  36. li
  37. input.form-input(
  38. type='radio'
  39. id='cash'
  40. )
  41. label Tarjeta de crédito (PYG)
  42. li
  43. input.form-input(
  44. type='radio'
  45. id='cash'
  46. )
  47. label Tarjeta de débito (PYG)
  48. li
  49. input.form-input(
  50. type='radio'
  51. id='cash'
  52. )
  53. label Billera Tigo (PYG)
  54. tab-content(
  55. title='Qué detalles necesita?'
  56. )
  57. tab-content(
  58. title='De qué monto es la operación?'
  59. )
  60. </template>
  61. <script>
  62. import { FormWizard, TabContent } from 'vue-form-wizard'
  63. export default {
  64. props: {
  65. show: {
  66. type: Boolean,
  67. required: true
  68. }
  69. },
  70. components: {
  71. FormWizard,
  72. TabContent
  73. },
  74. watch: {
  75. show(value) {
  76. if (!value) {
  77. this.$modal.hide('payment-bank-modal')
  78. return
  79. }
  80. this.$modal.show('payment-bank-modal')
  81. }
  82. },
  83. methods: {
  84. beforeClose(e) {
  85. if (this.show) {
  86. e.stop()
  87. }
  88. console.log(this.show)
  89. },
  90. onFinalize() {
  91. this.$emit('onFinalize')
  92. },
  93. onCancel() {
  94. this.$emit('onCancel')
  95. }
  96. }
  97. }
  98. </script>
  99. <style lang="sass">
  100. .payment-bank-modal
  101. padding: 0 !important
  102. &::before
  103. content: ''
  104. display: block
  105. position: absolute
  106. background-size: cover
  107. filter: blur(3px)
  108. z-index: -1
  109. .wizard-tab-container
  110. display: flex !important
  111. justify-content: center !important
  112. align-items: center !important
  113. .journal-form
  114. width: 400px
  115. background: #fff
  116. ul
  117. list-style: none
  118. li
  119. margin-bottom: 3px
  120. input
  121. width: 20px
  122. height: 20px
  123. label
  124. font-size: 12pt
  125. margin: 0 35px 15px 5px
  126. </style>