This commit is contained in:
Alejandro Tasistro 2025-05-22 00:01:36 -03:00
parent b8390c4ac6
commit b46b56159b

View file

@ -45,10 +45,10 @@
</template> </template>
<script> <script>
import ProductoRow from "./ProductoRow.vue"; import ProductoRow from "./ProductoRow.vue";
export default { export default {
components: {ProductoRow}, components: { ProductoRow },
data() { data() {
return { return {
mostrar_tabla: false, mostrar_tabla: false,
@ -66,7 +66,7 @@
Event.$on('toggle-chismosa', this.pedidoActualizado); Event.$on('toggle-chismosa', this.pedidoActualizado);
}, },
methods: { methods: {
pedidoActualizado: function() { pedidoActualizado: function () {
this.mostrar_tabla = this.$root.productos.length > 0; this.mostrar_tabla = this.$root.productos.length > 0;
this.cantidad_bonos_transporte = this.cantidadBonosDeTransporte(); this.cantidad_bonos_transporte = this.cantidadBonosDeTransporte();
this.total_bonos_transporte = this.totalBonosDeTransporte(); this.total_bonos_transporte = this.totalBonosDeTransporte();
@ -79,27 +79,28 @@
this.total = this.$root.pedido.total; this.total = this.$root.pedido.total;
this.productos = this.$root.productos; this.productos = this.$root.productos;
}, },
modificarDevoluciones: function() { modificarDevoluciones: function () {
Event.$emit("modificar-devoluciones"); Event.$emit("modificar-devoluciones");
}, },
cantidadBonosDeTransporte: function() { cantidadBonosDeTransporte: function () {
return this.$root.pedido.cantidad_transporte; return this.$root.pedido.cantidad_transporte;
}, },
totalBonosDeTransporte: function() { totalBonosDeTransporte: function () {
return this.$root.pedido.total_transporte return this.$root.pedido.total_transporte
}, },
}, },
} }
</script> </script>
<style> <style>
.tabla-chismosa { .tabla-chismosa {
width: 100%; width: 100%;
} }
.fixed-right {
.fixed-right {
position: fixed; position: fixed;
overflow-y: auto; overflow-y: auto;
max-height: 81vh; max-height: 81vh;
margin-right: 20px; margin-right: 20px;
} }
</style> </style>