Payments.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template lang="pug">
  2. .payments
  3. form-wizard(title="" subtitle="" finishButtonText="Finalizar" color="#8c9bad" backButtonText="Volver" nextButtonText="Continuar" transition="fade" @on-complete="completePayment()" @on-change="(prev, next) => removeMovePaymentsAll(prev > next && prev >= 2)")
  4. //- form-wizard(title="" subtitle="" finishButtonText="Finalizar" color="#8c9bad" backButtonText="Volver" nextButtonText="Continuar" transition="fade" @on-complete="completePayment()")
  5. tab-content(title="Quien es el cliente?")
  6. Customers
  7. tab-content(title="Cual es la factura?")
  8. invoices
  9. tab-content(title="Que cuota es?")
  10. move-line
  11. tab-content(title="Como quieres pagar?" )
  12. payments
  13. </template>
  14. <script>
  15. import { mapActions } from 'vuex'
  16. import { REMOVE_MOVE_PAYMENTS_ALL } from '@/constants/actionTypes'
  17. import {FormWizard, TabContent } from 'vue-form-wizard'
  18. import 'vue-form-wizard/dist/vue-form-wizard.min.css'
  19. import Customers from '@@/steps/Partner'
  20. import Invoices from '@@/steps/Invoices'
  21. import MoveLine from '@@/steps/MoveLine'
  22. import Payments from '@@/steps/MethodPayment'
  23. export default {
  24. components: {
  25. TabContent,
  26. FormWizard,
  27. Customers,
  28. Invoices,
  29. MoveLine,
  30. Payments
  31. },
  32. methods: mapActions([
  33. 'initPayments',
  34. REMOVE_MOVE_PAYMENTS_ALL
  35. // 'notify',
  36. // 'completePayment',
  37. // 'removeLineAll',
  38. // 'checkMoveLine',
  39. // 'chekPaymentAmount',
  40. // 'checkPartner',
  41. // 'checkInvoice'
  42. ]),
  43. mounted() {
  44. this.initPayments()
  45. }
  46. }
  47. </script>
  48. <style lang="sass">
  49. @import './assets/variables'
  50. .payments
  51. width: 100%
  52. height: 100%
  53. position: absolute
  54. .vue-form-wizard
  55. width: 100%
  56. height: 100%
  57. padding-bottom: 0
  58. .wizard-header
  59. display: none
  60. .wizard-navigation
  61. width: 100%
  62. height: 100%
  63. .wizard-progress-with-circle
  64. top: 35px
  65. .wizard-icon-circle
  66. width: 60px
  67. height: 60px
  68. .wizard-tab-content
  69. width: 100%
  70. height: calc(100% - 82px)
  71. padding: 0
  72. overflow: hidden
  73. .wizard-tab-container
  74. width: calc(100% - 20px)
  75. height: calc(100% - 20px)
  76. margin: 10px
  77. .payments-step
  78. width: 100%
  79. height: 100%
  80. background: #fff
  81. .wizard-card-footer
  82. width: 100%
  83. height: 50px
  84. position: absolute
  85. bottom: 0
  86. .wizard-btn
  87. width: 160px
  88. height: 40px
  89. border-radius: 0
  90. box-shadow: none
  91. border: none
  92. &:hover, &:focus
  93. background: $app-main-color
  94. </style>