|
@@ -1,24 +1,33 @@
|
|
|
<template lang="pug">
|
|
|
- .pos
|
|
|
- .products-container
|
|
|
- products-searcher
|
|
|
- products-grid
|
|
|
- .cart-container
|
|
|
- cart-total
|
|
|
- cart-items
|
|
|
- cart-options
|
|
|
+ form-wizard(title="" subtitle="" nextButtonText="Continuar" backButtonText="Volver" finishButtonText="Finalizar" color="#7c7bad")
|
|
|
+ tab-content(title="Agregue productos al carrito")
|
|
|
+ .pos
|
|
|
+ .products-container
|
|
|
+ products-searcher
|
|
|
+ products-grid
|
|
|
+ .cart-container
|
|
|
+ cart-total
|
|
|
+ cart-items
|
|
|
+ tab-content(title="Seleccione un cliente")
|
|
|
+ .customers
|
|
|
+ tab-content(title="Vea un resumen de su operación")
|
|
|
+ .results
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { FormWizard, TabContent } from 'vue-form-wizard'
|
|
|
import ProductsSearcher from '@/components/ProductsSearcher'
|
|
|
import ProductsGrid from '@/components/ProductsGrid'
|
|
|
import CartTotal from '@/components/CartTotal'
|
|
|
import CartItems from '@/components/CartItems'
|
|
|
import CartItem from '@/components/CartItem'
|
|
|
import CartOptions from '@/components/CartOptions'
|
|
|
+ import 'vue-form-wizard/dist/vue-form-wizard.min.css'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
+ 'form-wizard': FormWizard,
|
|
|
+ 'tab-content': TabContent,
|
|
|
'products-searcher': ProductsSearcher,
|
|
|
'products-grid': ProductsGrid,
|
|
|
'cart-total': CartTotal,
|
|
@@ -30,25 +39,50 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="sass">
|
|
|
- .pos
|
|
|
+ .vue-form-wizard
|
|
|
width: 100%
|
|
|
height: 100%
|
|
|
- padding: 10px
|
|
|
+ padding-bottom: 0
|
|
|
display: flex
|
|
|
- background: #fff
|
|
|
-
|
|
|
- .products-container
|
|
|
- width: calc(100% - 300px)
|
|
|
- height: 100%
|
|
|
- padding-right: 5px
|
|
|
- display: flex
|
|
|
- flex-direction: column
|
|
|
-
|
|
|
- .cart-container
|
|
|
- width: 300px
|
|
|
- height: 100%
|
|
|
- border-left: 1px solid #d3d3d3
|
|
|
- padding-left: 10px
|
|
|
- display: flex
|
|
|
- flex-direction: column
|
|
|
+ flex-direction: column
|
|
|
+ .wizard-header
|
|
|
+ display: none
|
|
|
+ .wizard-navigation
|
|
|
+ width: 100%
|
|
|
+ flex-grow: 1
|
|
|
+ .wizard-progress-with-circle
|
|
|
+ top: 35px
|
|
|
+ .wizard-icon-circle
|
|
|
+ width: 60px
|
|
|
+ height: 60px
|
|
|
+ .wizard-tab-content
|
|
|
+ padding: 0
|
|
|
+ .pos
|
|
|
+ width: 100%
|
|
|
+ height: 100%
|
|
|
+ padding: 10px
|
|
|
+ display: block
|
|
|
+ background: #fff
|
|
|
+ .products-container
|
|
|
+ width: calc(100% - 300px)
|
|
|
+ height: 100%
|
|
|
+ padding-right: 5px
|
|
|
+ display: inline-block
|
|
|
+ .cart-container
|
|
|
+ width: 300px
|
|
|
+ height: 100%
|
|
|
+ border-left: 1px solid #d3d3d3
|
|
|
+ padding-left: 10px
|
|
|
+ display: inline-block
|
|
|
+ vertical-align: top
|
|
|
+ .wizard-card-footer
|
|
|
+ padding-bottom: 15px
|
|
|
+ .wizard-btn
|
|
|
+ width: 160px
|
|
|
+ height: 40px
|
|
|
+ border-radius: 0
|
|
|
+ box-shadow: none
|
|
|
+ border: none
|
|
|
+ &:hover, &:focus
|
|
|
+ background: #7c7bad
|
|
|
</style>
|