From 7f82f57588d0a86bdf4da4f4f53fc8c7789e9f6b Mon Sep 17 00:00:00 2001 From: Juan Felipe Zapata Moreno Date: Tue, 18 Nov 2025 21:14:29 -0600 Subject: [PATCH] =?UTF-8?q?ADD:=20Mejora=20en=20la=20gesti=C3=B3n=20de=20d?= =?UTF-8?q?irecciones=20y=20conceptos,=20incluyendo=20validaciones=20y=20t?= =?UTF-8?q?raducciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerfile | 2 - src/components/App/AddressSection.vue | 15 +- src/components/App/ConceptSection.vue | 178 ++++++++++++------- src/lang/es.js | 51 +++++- src/pages/App/Address/Index.vue | 23 ++- src/pages/App/Concept/Index.vue | 247 +++++++++++++++++++++----- src/pages/App/Concept/Module.js | 2 +- src/pages/App/Fine/Module.js | 21 +++ 8 files changed, 421 insertions(+), 118 deletions(-) create mode 100644 src/pages/App/Fine/Module.js diff --git a/dockerfile b/dockerfile index b0446c3..2194ffe 100644 --- a/dockerfile +++ b/dockerfile @@ -11,7 +11,5 @@ COPY . . COPY install.sh /usr/local/bin/install.sh RUN chmod +x /usr/local/bin/install.sh -EXPOSE 3000 - ENTRYPOINT ["/usr/local/bin/install.sh"] CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] \ No newline at end of file diff --git a/src/components/App/AddressSection.vue b/src/components/App/AddressSection.vue index 1684402..7b93af3 100644 --- a/src/components/App/AddressSection.vue +++ b/src/components/App/AddressSection.vue @@ -10,15 +10,15 @@ const addressName = ref(""); /** Métodos */ const handleSubmit = () => { if (!addressName.value.trim()) { - alert("Por favor ingresa un nombre de dirección"); + window.Notify.warning(window.Lang('address.validation.required')); return; } - + // Emitir evento al padre con la nueva dirección emit('address-created', { name: addressName.value }); - + // Limpiar el formulario addressName.value = ""; }; @@ -27,7 +27,7 @@ const handleSubmit = () => {