falta update servicios

This commit is contained in:
2025-01-12 21:47:39 +01:00
parent f93251b7bf
commit c6d1d06d8a
24 changed files with 1395 additions and 669 deletions

View File

@ -195,6 +195,8 @@ class Comparador {
initSelect2() {
const self = this;
this.paginasCubierta.select2({
allowClear: false,
minimumResultsForSearch: Infinity,
@ -240,7 +242,7 @@ class Comparador {
});
this.papelSobrecubierta.init();
this.gramajeSobrecubierta.init();
this.papelSobrecubierta.onChange(() => this.gramajeSobrecubierta.setVal(0))
this.papelSobrecubierta.onChange(() => self.gramajeSobrecubierta.empty());
this.sobrecubierta.on('change', () => {
if (this.sobrecubierta.val() == 1) {
$('#solapas_sobrecubierta').prop('checked', true);
@ -262,15 +264,14 @@ class Comparador {
if (this.tipo_impresion_id == 1 || this.tipo_impresion_id == 3 || this.tipo_impresion_id == 5 || this.tipo_impresion_id == 7) {
this.papelGuardas.init();
this.gramajeGuardas.init();
this.papelGuardas.onChange(() => this.gramajeGuardas.setVal(0))
this.papelGuardas.onChange(() => self.gramajeGuardas.empty());
}
this.papelNegro.onChange(() => this.gramajeNegro.setVal(0))
this.papelNegrohq.onChange(() => this.gramajeNegrohq.setVal(0))
this.papelColor.onChange(() => this.gramajeColor.setVal(0))
this.papelColorhq.onChange(() => this.gramajeColorhq.setVal(0))
this.papelCubierta.onChange(() => this.gramajeCubierta.setVal(0))
this.papelCubierta.onChange(() => this.gramajeSobrecubierta.setVal(0))
this.papelNegro.onChange(() => self.gramajeNegro.empty());
this.papelNegrohq.onChange(() => self.gramajeNegrohq.empty());
this.papelColor.onChange(() => self.gramajeColor.empty());
this.papelColorhq.onChange(() => self.gramajeColorhq.empty());
this.papelCubierta.onChange(() => self.gramajeCubierta.empty());
this.tipo_impresion.select2({