From 4da6ee19c6c9e4ea8b4bfba5ed1106191d57dc2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Thu, 19 Jun 2025 17:39:18 +0200 Subject: [PATCH] =?UTF-8?q?arreglado=20vista=20del=20mensaje=20de=20lomo?= =?UTF-8?q?=20m=C3=A1ximo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presupuestos/cliente/viewPresupuestoclienteForm.php | 3 +++ .../js/safekat/pages/presupuestoCliente/datosGenerales.js | 3 ++- .../pages/presupuestoCliente/presupuestoCliente.js | 8 +++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php index 3b19c20b..c153784f 100755 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php @@ -20,6 +20,8 @@ +
+
+ getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js index 13f3a962..2a846bb5 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js @@ -636,7 +636,7 @@ class DatosGenerales { } // Para recalcular el presupuesto - element.trigger('change'); + $('#paginas').trigger('change'); } #handlePaginas() { @@ -693,6 +693,7 @@ class DatosGenerales { $('#divPapelInterior').empty(); $('#divGramajeInterior').empty(); $('#negroEstandar').trigger('click'); + $(".divTiradasPrecio").empty(); } } else { diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js index 23ad3216..a555131f 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js @@ -171,10 +171,10 @@ class PresupuestoCliente { return; } if (response.errors.status == 1) { - popErrorAlert('' + response.errors.value, "sk-alert", false); + popErrorAlert('' + response.errors.value, "sk-alert-lomo", false); } else { - popAlert2Hide('sk-alert'); + popAlert2Hide('sk-alert-lomo'); } }, () => { } @@ -492,12 +492,14 @@ class PresupuestoCliente { if (response === null || response === undefined || response === "") { popErrorAlert("No se ha podido calcular el presupuesto para los datos proporcionados. Por favor, póngase en contacto con el departamento comercial." , "sk-alert-2", false); + this.divTiradasPrecios.empty(); return; } if (Object.values(response.errors).some((value) => value !== "")) { if (response.errors.status == 1) { popErrorAlert("No se ha podido calcular el presupuesto para los datos proporcionados. Por favor, póngase en contacto con el departamento comercial." , "sk-alert-2", false); + this.divTiradasPrecios.empty(); return; } } @@ -512,7 +514,7 @@ class PresupuestoCliente { this.direcciones.divTiradas.empty(); } - popAlert2Hide(); + popAlert2Hide("sk-alert-2"); this.divTiradasPrecios.empty();