From 69cd3062635aadcaa27c255595455e30dad6f41a Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Tue, 10 Sep 2024 21:31:49 -0300 Subject: [PATCH 01/10] =?UTF-8?q?Mov=C3=AD=20la=20chismosa=20a=20la=20dere?= =?UTF-8?q?cha=20de=20los=20productos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/app.js | 1 + resources/js/components/Chismosa.vue | 62 +++++++++++--------- resources/js/components/ChismosaDropdown.vue | 30 +--------- resources/js/components/PedidoBody.vue | 32 ++++++++++ resources/views/productos.blade.php | 5 +- 5 files changed, 71 insertions(+), 59 deletions(-) create mode 100644 resources/js/components/PedidoBody.vue 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 -- 2.44.0 From fbae6770df3a9e06faefd9de13459500320ad48c Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Tue, 10 Sep 2024 22:07:16 -0300 Subject: [PATCH 02/10] Cismosa: Ajustes visuales --- .../js/components/CategoriasContainer.vue | 2 +- resources/js/components/Chismosa.vue | 109 ++++++++++-------- resources/js/components/ChismosaDropdown.vue | 2 +- resources/js/components/PedidoBody.vue | 11 +- .../js/components/ProductosContainer.vue | 2 +- 5 files changed, 69 insertions(+), 57 deletions(-) diff --git a/resources/js/components/CategoriasContainer.vue b/resources/js/components/CategoriasContainer.vue index ff21a86..62fd96b 100644 --- a/resources/js/components/CategoriasContainer.vue +++ b/resources/js/components/CategoriasContainer.vue @@ -1,5 +1,5 @@