MoveLine.vue 1023 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template lang="pug">
  2. .payments-step
  3. .move-step
  4. grid(:items='moves' @onSelect='selectMove' :currency='currencyInvoice')
  5. select-moves(:items='movesPayments' :total="movesPaymentsTotal" @onDeleteIntem='removeMovePayments' :currency='currencyInvoice')
  6. </template>
  7. <script>
  8. import Grid from '@@/moveLine/MovesGrid'
  9. import SelectMoves from '@@/moveLine/SelectedMovesGrid'
  10. import {mapGetters, mapActions } from 'vuex'
  11. import { SELECT_MOVE, REMOVE_MOVE_PAYMENTS } from '@/constants/actionTypes'
  12. export default {
  13. components: {
  14. Grid,
  15. SelectMoves
  16. },
  17. computed: mapGetters([
  18. 'moves',
  19. 'movesPayments',
  20. 'movesPaymentsTotal',
  21. 'currencyInvoice',
  22. ]),
  23. methods: mapActions([
  24. SELECT_MOVE,
  25. REMOVE_MOVE_PAYMENTS
  26. ])
  27. }
  28. </script>
  29. <style lang="sass">
  30. .move-step
  31. width: 100%
  32. height: 100%
  33. padding-right: 5px
  34. </style>