arreglado vista del mensaje de lomo máximo

This commit is contained in:
2025-06-19 17:39:18 +02:00
parent 4fde46a222
commit 4da6ee19c6
3 changed files with 10 additions and 4 deletions

View File

@ -20,6 +20,8 @@
<?php endif; ?> <?php endif; ?>
<?= csrf_field() ?> <?= csrf_field() ?>
<?= view("themes/_commonPartialsBs/_alertBoxes") ?> <?= view("themes/_commonPartialsBs/_alertBoxes") ?>
<div id="sk-alert-lomo">
</div>
<div id="alert-cubierta-sin-acabado" class="alert alert-warning d-flex align-items-baseline d-none" role="alert"> <div id="alert-cubierta-sin-acabado" class="alert alert-warning d-flex align-items-baseline d-none" role="alert">
<span class="alert-icon alert-icon-lg text-primary me-2"> <span class="alert-icon alert-icon-lg text-primary me-2">
<i class="ti ti-bell ti-sm"></i> <i class="ti ti-bell ti-sm"></i>
@ -28,6 +30,7 @@
<h5 class="alert-heading mb-2"><?= lang('Presupuestos.cubiertaSinAcabadoText') ?></h5> <h5 class="alert-heading mb-2"><?= lang('Presupuestos.cubiertaSinAcabadoText') ?></h5>
</div> </div>
</div> </div>
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> <?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
<input hidden id="lc" value=""></input> <input hidden id="lc" value=""></input>

View File

@ -636,7 +636,7 @@ class DatosGenerales {
} }
// Para recalcular el presupuesto // Para recalcular el presupuesto
element.trigger('change'); $('#paginas').trigger('change');
} }
#handlePaginas() { #handlePaginas() {
@ -693,6 +693,7 @@ class DatosGenerales {
$('#divPapelInterior').empty(); $('#divPapelInterior').empty();
$('#divGramajeInterior').empty(); $('#divGramajeInterior').empty();
$('#negroEstandar').trigger('click'); $('#negroEstandar').trigger('click');
$(".divTiradasPrecio").empty();
} }
} }
else { else {

View File

@ -171,10 +171,10 @@ class PresupuestoCliente {
return; return;
} }
if (response.errors.status == 1) { if (response.errors.status == 1) {
popErrorAlert('' + response.errors.value, "sk-alert", false); popErrorAlert('' + response.errors.value, "sk-alert-lomo", false);
} }
else { else {
popAlert2Hide('sk-alert'); popAlert2Hide('sk-alert-lomo');
} }
}, },
() => { } () => { }
@ -492,12 +492,14 @@ class PresupuestoCliente {
if (response === null || response === undefined || response === "") { 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." 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); , "sk-alert-2", false);
this.divTiradasPrecios.empty();
return; return;
} }
if (Object.values(response.errors).some((value) => value !== "")) { if (Object.values(response.errors).some((value) => value !== "")) {
if (response.errors.status == 1) { 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." 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); , "sk-alert-2", false);
this.divTiradasPrecios.empty();
return; return;
} }
} }
@ -512,7 +514,7 @@ class PresupuestoCliente {
this.direcciones.divTiradas.empty(); this.direcciones.divTiradas.empty();
} }
popAlert2Hide(); popAlert2Hide("sk-alert-2");
this.divTiradasPrecios.empty(); this.divTiradasPrecios.empty();