mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
solucionado problema con solapas
This commit is contained in:
@ -324,37 +324,42 @@ class DisenioCubierta {
|
|||||||
this.gramaje = datosCubierta.gramaje;
|
this.gramaje = datosCubierta.gramaje;
|
||||||
|
|
||||||
|
|
||||||
if (datosCubierta.lomoRedondo) {
|
if (datosCubierta.lomoRedondo || datosCubierta.tapa == "dura") {
|
||||||
|
if (datosCubierta.lomoRedondo)
|
||||||
this.tapaDuraLomoRedondo.trigger('click');
|
this.tapaDuraLomoRedondo.trigger('click');
|
||||||
}
|
else
|
||||||
else {
|
|
||||||
if (datosCubierta.tapa == "dura") {
|
|
||||||
this.tapaDuraLomoRecto.trigger('click');
|
this.tapaDuraLomoRecto.trigger('click');
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.tapaBlanda.trigger('click');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (datosCubierta.tapa == "dura") {
|
|
||||||
this.papelGuardas.setOption(datosGuardas.papel_id, datosGuardas.papel);
|
this.papelGuardas.setOption(datosGuardas.papel_id, datosGuardas.papel);
|
||||||
this.gramajeGuardas.setOption(datosGuardas.gramaje, datosGuardas.gramaje);
|
this.gramajeGuardas.setOption(datosGuardas.gramaje, datosGuardas.gramaje);
|
||||||
this.guardasImpresas.val(datosGuardas.paginas).trigger('change');
|
this.guardasImpresas.val(datosGuardas.paginas).trigger('change');
|
||||||
this.cabezada.val(datosCubierta.cabezada).trigger('change');
|
this.cabezada.val(datosCubierta.cabezada).trigger('change');
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.carasCubierta.val(datosCubierta.paginas).trigger('change');
|
|
||||||
if (datosCubierta.solapas) {
|
|
||||||
this.conSolapas.trigger('click');
|
|
||||||
this.tamanioSolapasCubierta.val(datosCubierta.solapas_ancho);
|
|
||||||
|
|
||||||
|
this.tapaBlanda.addClass('selected');
|
||||||
|
this.#handleMenuTipoCubierta();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.carasCubierta.val(datosCubierta.paginas).trigger('change');
|
||||||
|
|
||||||
|
if (datosCubierta.solapas) {
|
||||||
|
// Activar con-solapas
|
||||||
|
this.conSolapas.addClass('selected')
|
||||||
|
.find('.image-presupuesto').addClass('selected');
|
||||||
|
this.sinSolapas.removeClass('selected')
|
||||||
|
.find('.image-presupuesto').removeClass('selected');
|
||||||
|
this.divTamanioSolapas.removeClass('d-none');
|
||||||
|
this.tamanioSolapasCubierta.val(datosCubierta.solapas_ancho);
|
||||||
|
} else {
|
||||||
|
// Asegurar que sin-solapas queda seleccionado (no togglear)
|
||||||
|
this.divTamanioSolapas.addClass('d-none');
|
||||||
}
|
}
|
||||||
else {
|
}, 100);
|
||||||
this.sinSolapas.trigger('click');
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
this.divPapelCubierta.find(`[cod="${datosCubierta.papel.code}"]`).addClass('selected');
|
this.divPapelCubierta.find(`[cod="${datosCubierta.papel.code}"]`).addClass('selected');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user