mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadidos lomos en resumen lateral y final. Arreglado tb alto de preview en presupuesto admin
This commit is contained in:
@ -122,6 +122,10 @@
|
|||||||
<td class="col-item-resumen-table">Caras impresas</td>
|
<td class="col-item-resumen-table">Caras impresas</td>
|
||||||
<td id="resumenCarasCubierta"></td>
|
<td id="resumenCarasCubierta"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="col-item-resumen-table">Lomo cubierta</td>
|
||||||
|
<td id="resumenLomoCubierta"></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="col-item-resumen-table">Papel</td>
|
<td class="col-item-resumen-table">Papel</td>
|
||||||
<td id="resumenPapelCubierta"></td>
|
<td id="resumenPapelCubierta"></td>
|
||||||
|
|||||||
@ -156,6 +156,8 @@
|
|||||||
cara</li>
|
cara</li>
|
||||||
<li id="rl_acabado_cubierta" class="list-group-item list-group-timeline-primary texto-resumen-lateral">
|
<li id="rl_acabado_cubierta" class="list-group-item list-group-timeline-primary texto-resumen-lateral">
|
||||||
Plastificado brillo</li>
|
Plastificado brillo</li>
|
||||||
|
<li id="rl_lomo_cubierta" class="list-group-item list-group-timeline-primary texto-resumen-lateral">
|
||||||
|
Plastificado brillo</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -500,7 +500,7 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -515,7 +515,7 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = altoSangrado * 0.95;
|
altoLibro = altoSangrado * 0.95;
|
||||||
@ -710,7 +710,7 @@ class previewFormas {
|
|||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 800; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 650) ? 650 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = altoSangrado * 0.88;
|
altoLibro = altoSangrado * 0.88;
|
||||||
anchoLibro = anchoSangrado * 0.39;
|
anchoLibro = anchoSangrado * 0.39;
|
||||||
@ -851,8 +851,8 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 650) ? 650 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = altoSangrado * 0.95;
|
altoLibro = altoSangrado * 0.95;
|
||||||
anchoLibro = anchoSangrado * 0.28;
|
anchoLibro = anchoSangrado * 0.28;
|
||||||
@ -866,8 +866,8 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 650) ? 650 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = (isTapaDura) ? altoSangrado * 0.88 : altoSangrado * 0.9;
|
altoLibro = (isTapaDura) ? altoSangrado * 0.88 : altoSangrado * 0.9;
|
||||||
anchoLibro = (isTapaDura) ? anchoSangrado * 0.39 : anchoSangrado * 0.44;
|
anchoLibro = (isTapaDura) ? anchoSangrado * 0.39 : anchoSangrado * 0.44;
|
||||||
@ -1068,8 +1068,8 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 650) ? 650 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = altoSangrado * 0.97;
|
altoLibro = altoSangrado * 0.97;
|
||||||
anchoLibro = anchoSangrado * 0.48;
|
anchoLibro = anchoSangrado * 0.48;
|
||||||
@ -1082,8 +1082,8 @@ class previewFormas {
|
|||||||
anchoSangrado = 350; // px
|
anchoSangrado = 350; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.647 > 300) ? 300 : anchoSangrado * 0.647; // px
|
||||||
} else {
|
} else {
|
||||||
anchoSangrado = 750; // px
|
anchoSangrado = 800; // px
|
||||||
altoSangrado = (anchoSangrado * 0.647 > 650) ? 650 : anchoSangrado * 0.647; // px
|
altoSangrado = (anchoSangrado * 0.6 > 650) ? 650 : anchoSangrado * 0.6; // px
|
||||||
}
|
}
|
||||||
altoLibro = altoSangrado * 0.95;
|
altoLibro = altoSangrado * 0.95;
|
||||||
anchoLibro = anchoSangrado * 0.3;
|
anchoLibro = anchoSangrado * 0.3;
|
||||||
|
|||||||
@ -205,6 +205,7 @@ class DisenioCubierta {
|
|||||||
this.rl_papel_sobrecubierta = $('#rl_papel_sobrecubierta');
|
this.rl_papel_sobrecubierta = $('#rl_papel_sobrecubierta');
|
||||||
this.rl_tamanio_sobrecubierta = $('#rl_tamanio_sobrecubierta');
|
this.rl_tamanio_sobrecubierta = $('#rl_tamanio_sobrecubierta');
|
||||||
this.rl_acabado_sobrecubierta = $("#rl_acabado_sobrecubierta");
|
this.rl_acabado_sobrecubierta = $("#rl_acabado_sobrecubierta");
|
||||||
|
this.rl_lomo_cubierta = $("#rl_lomo_cubierta");
|
||||||
|
|
||||||
this.acabadoCubierta = new ClassSelect($("#acabadoCubierta"),
|
this.acabadoCubierta = new ClassSelect($("#acabadoCubierta"),
|
||||||
'/serviciosacabados/getacabados',
|
'/serviciosacabados/getacabados',
|
||||||
@ -621,6 +622,21 @@ class DisenioCubierta {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLomoCubierta() {
|
||||||
|
|
||||||
|
const lomoRedondo = this.tapaDuraLomoRedondo.hasClass("selected");
|
||||||
|
const tapaBlanda = this.tapaBlanda.hasClass("selected");
|
||||||
|
let anchoCarton = parseFloat(6);
|
||||||
|
let lomoVal = parseFloat($('#lc').val());
|
||||||
|
if (lomoRedondo)
|
||||||
|
anchoCarton += 6; // ancho carton
|
||||||
|
if (!tapaBlanda)
|
||||||
|
lomoVal += anchoCarton;
|
||||||
|
|
||||||
|
return lomoVal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
processMenuLateral() {
|
processMenuLateral() {
|
||||||
|
|
||||||
@ -633,8 +649,11 @@ class DisenioCubierta {
|
|||||||
|
|
||||||
this.rl_papel_cubierta.text(papel + " " + gramaje + " gr");
|
this.rl_papel_cubierta.text(papel + " " + gramaje + " gr");
|
||||||
this.rl_acabado_cubierta.text("Acabado: " + this.acabadoCubierta.getText());
|
this.rl_acabado_cubierta.text("Acabado: " + this.acabadoCubierta.getText());
|
||||||
|
|
||||||
|
this.rl_lomo_cubierta.text("Lomo: " + (this.getLomoCubierta().toFixed(0) + " mm"));
|
||||||
this.rl_papel_cubierta.removeClass('d-none');
|
this.rl_papel_cubierta.removeClass('d-none');
|
||||||
this.rl_acabado_cubierta.removeClass('d-none');
|
this.rl_acabado_cubierta.removeClass('d-none');
|
||||||
|
this.rl_lomo_cubierta.removeClass('d-none');
|
||||||
|
|
||||||
if (this.carasCubierta.find('option:selected').length > 0) {
|
if (this.carasCubierta.find('option:selected').length > 0) {
|
||||||
this.rl_caras_cubierta.text("Impresa " + this.carasCubierta.find('option:selected').text());
|
this.rl_caras_cubierta.text("Impresa " + this.carasCubierta.find('option:selected').text());
|
||||||
@ -650,6 +669,7 @@ class DisenioCubierta {
|
|||||||
else {
|
else {
|
||||||
this.rl_papel_cubierta.addClass('d-none');
|
this.rl_papel_cubierta.addClass('d-none');
|
||||||
this.rl_acabado_cubierta.addClass('d-none');
|
this.rl_acabado_cubierta.addClass('d-none');
|
||||||
|
this.rl_lomo_cubierta.addClass('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!menu_off)
|
if (!menu_off)
|
||||||
|
|||||||
@ -33,6 +33,7 @@ class Resumen {
|
|||||||
this.carasCubierta = $(this.domItem.find("#resumenCarasCubierta"));
|
this.carasCubierta = $(this.domItem.find("#resumenCarasCubierta"));
|
||||||
this.papelCubierta = $(this.domItem.find("#resumenPapelCubierta"));
|
this.papelCubierta = $(this.domItem.find("#resumenPapelCubierta"));
|
||||||
this.gramajeCubierta = $(this.domItem.find("#resumenGramajeCubierta"));
|
this.gramajeCubierta = $(this.domItem.find("#resumenGramajeCubierta"));
|
||||||
|
this.lomoCubierta = $(this.domItem.find("#resumenLomoCubierta"));
|
||||||
this.solapasCubierta = $(this.domItem.find("#resumenSolapasCubierta"));
|
this.solapasCubierta = $(this.domItem.find("#resumenSolapasCubierta"));
|
||||||
this.papelGuardas = $(this.domItem.find("#resumenPapelGuardas"));
|
this.papelGuardas = $(this.domItem.find("#resumenPapelGuardas"));
|
||||||
this.guardasImpresas = $(this.domItem.find("#resumenGuardasImpresas"));
|
this.guardasImpresas = $(this.domItem.find("#resumenGuardasImpresas"));
|
||||||
@ -226,11 +227,11 @@ class Resumen {
|
|||||||
this.disenioCubierta.disenioCubierta.filter('.selected').attr('id'),
|
this.disenioCubierta.disenioCubierta.filter('.selected').attr('id'),
|
||||||
"resumen",
|
"resumen",
|
||||||
{
|
{
|
||||||
ancho: ancho,
|
ancho: () => {return ancho},
|
||||||
alto: alto,
|
alto: () => {return alto},
|
||||||
lomo: $('#lc').val() === '' ? parseFloat('0.0') : parseFloat($('#lc').val()),
|
lomo: () => {return $('#lc').val() === '' ? parseFloat('0.0') : parseFloat($('#lc').val())},
|
||||||
solapas: this.disenioCubierta.getSolapasCubierta(),
|
solapas: () => {return this.disenioCubierta.getSolapasCubierta()},
|
||||||
lomoRedondo: this.disenioCubierta.tapaDuraLomoRedondo.hasClass('selected'),
|
lomoRedondo: ()=> {return this.disenioCubierta.tapaDuraLomoRedondo.hasClass('selected')? 1: 0},
|
||||||
}
|
}
|
||||||
).previewEsquemaCubierta();
|
).previewEsquemaCubierta();
|
||||||
|
|
||||||
@ -282,6 +283,7 @@ class Resumen {
|
|||||||
}
|
}
|
||||||
this.papelCubierta.text(this.disenioCubierta.getPapel(true));
|
this.papelCubierta.text(this.disenioCubierta.getPapel(true));
|
||||||
this.gramajeCubierta.text(this.disenioCubierta.getGramaje());
|
this.gramajeCubierta.text(this.disenioCubierta.getGramaje());
|
||||||
|
this.lomoCubierta.text(this.disenioCubierta.getLomoCubierta().toFixed(0) + " mm");
|
||||||
this.cubiertaAcabados.text(this.disenioCubierta.getAcabados(true));
|
this.cubiertaAcabados.text(this.disenioCubierta.getAcabados(true));
|
||||||
|
|
||||||
if (this.disenioCubierta.getSobrecubierta()) {
|
if (this.disenioCubierta.getSobrecubierta()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user