diff --git a/resources/js/app.js b/resources/js/app.js index 026177f..3254467 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -111,6 +111,7 @@ const app = new Vue({ }).then((response) => { this.pedido = response.data.data this.$toast('Pedido actualizado exitosamente') + Event.$emit("pedido-actualizado"); }); }); // Actualizar monto y notas de devoluciones diff --git a/resources/js/components/Chismosa.vue b/resources/js/components/Chismosa.vue index c14b00b..de373b6 100644 --- a/resources/js/components/Chismosa.vue +++ b/resources/js/components/Chismosa.vue @@ -1,6 +1,6 @@ @@ -37,28 +30,9 @@ export default { }, methods: { toggle() { - this.activa = !this.activa + this.activa = !this.activa; + Event.$emit("toggle-chismosa"); }, }, } - - diff --git a/resources/js/components/PedidoBody.vue b/resources/js/components/PedidoBody.vue new file mode 100644 index 0000000..fb0f4e9 --- /dev/null +++ b/resources/js/components/PedidoBody.vue @@ -0,0 +1,32 @@ + + + diff --git a/resources/views/productos.blade.php b/resources/views/productos.blade.php index fd29893..d3877a4 100644 --- a/resources/views/productos.blade.php +++ b/resources/views/productos.blade.php @@ -1,9 +1,6 @@ @extends('layouts.app') @section('content') - - - - + @endsection