mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
falta update servicios
This commit is contained in:
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user