Cambiada información de total a chismosa

This commit is contained in:
Alejandro Tasistro 2025-06-23 23:15:57 -03:00
parent 7c2f592072
commit 86bf66ebcd
2 changed files with 10 additions and 3 deletions

View file

@ -23,7 +23,7 @@ export default {
<template> <template>
<div class="navbar-item hide-below-1024"> <div class="navbar-item hide-below-1024">
<p v-if="pedidoDefinido">{{ `${nombre} - Monto total: ${montoTotal}` }}</p> <p v-if="pedidoDefinido">{{ `${nombre}` }}</p>
<chismosa-dropdown <chismosa-dropdown
v-if="pedidoDefinido" v-if="pedidoDefinido"
class="hide-above-1023" class="hide-above-1023"

View file

@ -5,7 +5,7 @@
<span class="icon is-small mr-1"> <span class="icon is-small mr-1">
<img src="/assets/chismosa.png"> <img src="/assets/chismosa.png">
</span> </span>
<span v-text="'$' + total"/> <span v-text="textoChismosa"/>
</a> </a>
</div> </div>
</div> </div>
@ -13,7 +13,7 @@
<script> <script>
import Chismosa from './Chismosa.vue' import Chismosa from './Chismosa.vue'
import { mapMutations, mapState } from "vuex"; import { mapGetters, mapMutations, mapState } from "vuex";
export default { export default {
components: { components: {
Chismosa Chismosa
@ -27,6 +27,13 @@ export default {
computed: { computed: {
...mapState('pedido',["total"]), ...mapState('pedido',["total"]),
...mapState('ui',["show_chismosa"]), ...mapState('ui',["show_chismosa"]),
...mapState('login', ["rol"]),
...mapGetters('ollas', ["montoTotal"]),
textoChismosa() {
if (this.rol === 'ollas')
return `$${this.total} / $${this.montoTotal}`;
return `$${this.total}`;
},
}, },
methods: { methods: {
...mapMutations('ui',["toggleChismosa"]), ...mapMutations('ui',["toggleChismosa"]),