modificaciones

This commit is contained in:
2025-01-09 18:35:24 +01:00
parent 642b445cd2
commit 130457f0ef
5 changed files with 67 additions and 25 deletions

View File

@ -85,6 +85,17 @@ class DatosLibro {
this.paginas.on('change', this.changePaginas.bind(this));
this.tirada.on('change', this.changeTirada.bind(this));
$('.formato-libro').on('change', function () {
$(document).trigger('update-lineas-presupuesto');
/* TO-DO
updatePresupuesto({
update_servicios: true,
update_envios: true,
update_resumen: true,
update_tiradas_alternativas: true
})*/
});
}
}
@ -161,9 +172,12 @@ class DatosLibro {
this.checkPaginasPresupuesto();
$('.tamanio-personalizado').addClass('d-none');
$(document).trigger('update-lineas-presupuesto');
// TO-DO
/*updatePresupuesto({
update_lineas: true,
update_servicios: true,
update_envios: true,
update_resumen: true,
@ -190,6 +204,7 @@ class DatosLibro {
$("#label_papelFormatoId").text(
window.language.Presupuestos.papelFormatoId + '*');
}
$(document).trigger('update-lineas-presupuesto');
}
@ -367,20 +382,31 @@ class DatosLibro {
if ($('#tipo_impresion_id').val() == 1 || $('#tipo_impresion_id').val() == 3 ||
$('#tipo_impresion_id').val() == 5 || $('#tipo_impresion_id').val() == 7) {
$(".impresion-con-solapas").addClass('d-none');
$(".solapas-cubierta-div").addClass('d-none');
}
else {
else{
if (datos.solapasCubierta) {
this.solapasCubierta.prop('checked', true);
this.anchoSolapasCubierta.val(datos.solapasCubiertaAncho);
$('#div_solapas_ancho').removeClass('d-none');
}
if (datos.solapasSobrecubierta) {
this.solapasSobrecubierta.prop('checked', true);
this.anchoSolapasSobrecubierta.val(datos.solapasSobrecubiertaAncho);
$('#div_solapas_ancho_sobrecubierta').removeClass('d-none');
else{
this.solapasCubierta.prop('checked', false);
this.anchoSolapasCubierta.val(0);
$('#div_solapas_ancho').addClass('d-none');
}
}
if (datos.solapasSobrecubierta) {
this.solapasSobrecubierta.prop('checked', true);
this.anchoSolapasSobrecubierta.val(datos.solapasSobrecubiertaAncho);
$('#div_solapas_ancho_sobrecubierta').removeClass('d-none');
}
else{
this.solapasSobrecubierta.prop('checked', false);
this.anchoSolapasSobrecubierta.val(0);
$('#div_solapas_ancho_sobrecubierta').addClass('d-none');
}
this.acabadoCubierta.setOption(datos.acabadoCubierta.id, datos.acabadoCubierta.text);