Payments.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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) => removeLineAll(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. //- method-payment-step
  13. </template>
  14. <script>
  15. import { mapActions } from 'vuex'
  16. import {FormWizard, TabContent } from 'vue-form-wizard'
  17. import 'vue-form-wizard/dist/vue-form-wizard.min.css'
  18. import Customers from '@@/steps/Partner'
  19. import Invoices from '@@/steps/Invoices'
  20. import MoveLine from '@@/steps/MoveLine'
  21. export default {
  22. components: {
  23. TabContent,
  24. FormWizard,
  25. Customers,
  26. Invoices,
  27. MoveLine
  28. },
  29. methods: mapActions([
  30. 'initPayments'
  31. // 'notify',
  32. // 'completePayment',
  33. // 'removeLineAll',
  34. // 'checkMoveLine',
  35. // 'chekPaymentAmount',
  36. // 'checkPartner',
  37. // 'checkInvoice'
  38. ]),
  39. mounted() {
  40. this.initPayments()
  41. }
  42. }
  43. </script>
  44. <style lang="sass">
  45. @import './assets/variables'
  46. .payments
  47. width: 100%
  48. height: 100%
  49. position: absolute
  50. .vue-form-wizard
  51. width: 100%
  52. height: 100%
  53. padding-bottom: 0
  54. .wizard-header
  55. display: none
  56. .wizard-navigation
  57. width: 100%
  58. height: 100%
  59. .wizard-progress-with-circle
  60. top: 35px
  61. .wizard-icon-circle
  62. width: 60px
  63. height: 60px
  64. .wizard-tab-content
  65. width: 100%
  66. height: calc(100% - 82px)
  67. padding: 0
  68. overflow: hidden
  69. .wizard-tab-container
  70. width: calc(100% - 20px)
  71. height: calc(100% - 20px)
  72. margin: 10px
  73. .payments-step
  74. width: 100%
  75. height: 100%
  76. background: #fff
  77. .wizard-card-footer
  78. width: 100%
  79. height: 50px
  80. position: absolute
  81. bottom: 0
  82. .wizard-btn
  83. width: 160px
  84. height: 40px
  85. border-radius: 0
  86. box-shadow: none
  87. border: none
  88. &:hover, &:focus
  89. background: $app-main-color
  90. </style>