|
@@ -1,14 +1,16 @@
|
|
|
<template lang="pug">
|
|
|
.pos
|
|
|
- form-wizard(title="" subtitle="" finishButtonText="Finalizar" color="#7c7bad" :nextButtonText="getNextMessage()" backButtonText="Volver" transition="fade")
|
|
|
+ form-wizard(title="" subtitle="" finishButtonText="Finalizar" color="#7c7bad" nextButtonText="Continuar" backButtonText="Volver" transition="fade")
|
|
|
tab-content(title="Qué productos necesita?" :before-change="checkCart")
|
|
|
cart-step
|
|
|
tab-content(title="Quién es el cliente?" :before-change="checkCustomer")
|
|
|
customer-step
|
|
|
tab-content(title="Cómo quieres pagar?")
|
|
|
- payment-step
|
|
|
- tab-content(title="Qué monto quieres pagar?" v-if="payment === 'cash'")
|
|
|
+ payment-method-step
|
|
|
+ tab-content(v-if="payment === 'cash'" title="Qué monto quieres pagar?")
|
|
|
payment-cash-step
|
|
|
+ tab-content(v-else title="Quieres hacer alguna entrega?")
|
|
|
+ payment-credit-step
|
|
|
loader
|
|
|
</template>
|
|
|
|
|
@@ -18,8 +20,9 @@
|
|
|
|
|
|
import CartStep from '@/components/cart/CartStep'
|
|
|
import CustomerStep from '@/components/customer/CustomerStep'
|
|
|
- import PaymentStep from '@/components/payment/PaymentStep'
|
|
|
- import PaymentCashStep from '@/components/payment/PaymentCashStep'
|
|
|
+ import PaymentMethodStep from '@/components/payment/method/PaymentMethodStep'
|
|
|
+ import PaymentCashStep from '@/components/payment/cash/PaymentCashStep'
|
|
|
+ import PaymentCreditStep from '@/components/payment/credit/PaymentCreditStep'
|
|
|
|
|
|
import Loader from '@/components/Loader'
|
|
|
|
|
@@ -32,8 +35,9 @@
|
|
|
FormWizard,
|
|
|
CartStep,
|
|
|
CustomerStep,
|
|
|
- PaymentStep,
|
|
|
+ PaymentMethodStep,
|
|
|
PaymentCashStep,
|
|
|
+ PaymentCreditStep,
|
|
|
Loader,
|
|
|
},
|
|
|
computed: mapGetters([
|
|
@@ -56,9 +60,6 @@
|
|
|
|
|
|
return this.hasSelectedCustomer
|
|
|
},
|
|
|
- getNextMessage() {
|
|
|
- return this.payment === 'cash' ? 'Continuar' : 'Finalizar'
|
|
|
- },
|
|
|
...mapActions([
|
|
|
'initSale',
|
|
|
'notify',
|
|
@@ -81,7 +82,7 @@
|
|
|
width: 100%
|
|
|
height: 100%
|
|
|
padding-bottom: 0
|
|
|
-
|
|
|
+
|
|
|
.wizard-header
|
|
|
display: none
|
|
|
|