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