diff --git a/resources/js/components/pedidos/Chismosa.vue b/resources/js/components/pedidos/Chismosa.vue index 5c215a8..d86b0d2 100644 --- a/resources/js/components/pedidos/Chismosa.vue +++ b/resources/js/components/pedidos/Chismosa.vue @@ -14,7 +14,7 @@ {{ cantidad_transporte }} {{ total_transporte }} - +

Devoluciones

{{ notas_abreviadas }} @@ -49,6 +49,7 @@ import { mapMutations, mapState } from "vuex"; export default { components: { ProductoRow }, computed: { + ...mapState('login', ["rol"]), ...mapState('pedido',[ "grupo_de_compra", "productos", @@ -65,6 +66,9 @@ export default { mostrar_tabla() { return this.productos?.length !== 0; }, + mostrarDevoluciones() { + return this.rol === "barrio" && this.grupo_de_compra.devoluciones_habilitadas && !this.aprobado; + } }, methods: { ...mapMutations('ui',["toggleDevoluciones"]),