añadido direcciones

This commit is contained in:
2024-10-08 15:14:12 +02:00
parent dfd915e47f
commit 032b09f0a3
4 changed files with 149 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import DatosGenerales from './datosGenerales.js';
import DisenioInterior from './disenioInterior.js';
import DisenioCubierta from './disenioCubierta.js';
import Direcciones from './direcciones.js';
import Ajax from '../../components/ajax.js';
class PresupuestoCliente {
@ -21,6 +22,7 @@ class PresupuestoCliente {
this.datosGenerales = new DatosGenerales($("#datos-generales"), this.clientePresupuestoWizard, this.validationStepper);
this.disenioInterior = new DisenioInterior($("#interior-libro"), this.clientePresupuestoWizard, this.validationStepper);
this.disenioCubierta = new DisenioCubierta($("#cubierta-libro"), this.clientePresupuestoWizard, this.validationStepper);
this.direcciones = new Direcciones($("#direcciones-libro"), this.clientePresupuestoWizard, this.validationStepper);
}
@ -39,6 +41,7 @@ class PresupuestoCliente {
this.datosGenerales.init();
this.disenioInterior.init();
this.disenioCubierta.init();
this.direcciones.init();
this.RELLENAR_PRESUPUESTO();
@ -51,14 +54,14 @@ class PresupuestoCliente {
$("#titulo").trigger('change');
const clienteId = $("#clienteId");
const newOption = new Option("Cliente Potencial", "1", true, true);
const newOption = new Option("Cliente Potencial", "1817", true, true);
clienteId.append(newOption).trigger('change');
const papelFormatoId = $("#papelFormatoId");
const newOption2 = new Option("Formato 1", "1", true, true);
papelFormatoId.append(newOption2).trigger('change');
$("#paginasColor").val("5");
$("#paginasColor").val("6");
$("#paginasColor").trigger('change');
$("#fresado").trigger("click");
@ -70,6 +73,10 @@ class PresupuestoCliente {
setTimeout(function() {
$("#gramaje80").trigger("click");
}, 0);
setTimeout(function() {
$("#tapaDura").trigger("click");
}, 0);
}