mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
servicios acabado finalizados
This commit is contained in:
@ -28,8 +28,6 @@ class PresupuestoAdminEdit {
|
||||
this.datosGenerales = new DatosGenerales(this.domItem.find('#accordionDatosPresupuestoTip'));
|
||||
this.datosLibro = new DatosLibro(this.domItem.find('#accordionDatosLibroTip'),
|
||||
{
|
||||
addService: this.addService,
|
||||
removeService: this.removeService,
|
||||
checkPaginasPresupuesto: this.checkPaginasPresupuesto,
|
||||
});
|
||||
this.comparador = new Comparador(this.domItem.find('#accordionDatosPresupuestoClienteTip'));
|
||||
@ -160,15 +158,6 @@ class PresupuestoAdminEdit {
|
||||
}
|
||||
|
||||
|
||||
addService() {
|
||||
|
||||
}
|
||||
|
||||
removeService() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
checkPaginasPresupuesto() {
|
||||
|
||||
let cantidad_total = 0;
|
||||
|
||||
@ -7,8 +7,6 @@ class DatosLibro {
|
||||
|
||||
this.domItem = domItem;
|
||||
|
||||
this.addService = functions.addService;
|
||||
this.removeService = functions.removeService;
|
||||
this.checkPaginasPresupuesto = functions.checkPaginasPresupuesto;
|
||||
|
||||
this.csrf_token = getToken();
|
||||
@ -61,10 +59,20 @@ class DatosLibro {
|
||||
|
||||
init() {
|
||||
|
||||
const self = this;
|
||||
|
||||
this.tamanio.init();
|
||||
this.acabadoCubierta.init();
|
||||
this.acabadoSobrecubierta.init();
|
||||
|
||||
this.acabadoCubierta.item.on('select2:select', function () {
|
||||
|
||||
$(document).trigger('add-servicio-lineas', 'acabadoCubierta');
|
||||
});
|
||||
this.acabadoSobrecubierta.item.on('select2:select', function () {
|
||||
$(document).trigger('add-servicio-lineas', 'acabadoSobrecubierta');
|
||||
});
|
||||
|
||||
if (window.location.href.includes("edit")) {
|
||||
this.retractilado.on('change', this.checkRetractilado.bind(this));
|
||||
this.retractilado5.on('change', this.checkRetractilado.bind(this));
|
||||
@ -102,31 +110,32 @@ class DatosLibro {
|
||||
changeFajaColor() {
|
||||
|
||||
if (this.imprimirFajaColor.prop('checked')) {
|
||||
this.addService('fajaColor');
|
||||
$(document).trigger('add-servicio-lineas', 'facaColor');
|
||||
}
|
||||
else {
|
||||
this.removeService('fajaColor');
|
||||
$(document).trigger('remove-servicio-lineas', 'fajaColor');
|
||||
}
|
||||
}
|
||||
|
||||
changeFerro() {
|
||||
|
||||
if (this.ferro.prop('checked')) {
|
||||
this.addService('ferro');
|
||||
$(document).trigger('add-servicio-lineas', 'ferro');
|
||||
}
|
||||
else {
|
||||
this.removeService('ferro');
|
||||
$(document).trigger('remove-servicio-lineas', 'ferro');
|
||||
}
|
||||
}
|
||||
|
||||
changePrototipo() {
|
||||
|
||||
if (this.prototipo.prop('checked')) {
|
||||
this.addService('prototipo');
|
||||
|
||||
$(document).trigger('add-servicio-lineas', 'prototipo');
|
||||
this.ferro.prop('checked', true).trigger('change');
|
||||
}
|
||||
else {
|
||||
this.removeService('prototipo');
|
||||
$(document).trigger('remove-servicio-lineas', 'prototipo');
|
||||
}
|
||||
}
|
||||
|
||||
@ -137,15 +146,15 @@ class DatosLibro {
|
||||
case 'retractilado':
|
||||
if ($('#' + element.id).prop('checked')) {
|
||||
$('#retractilado5').prop('checked', false);
|
||||
this.removeService('retractilado5');
|
||||
this.addService('retractilado');
|
||||
$(document).trigger('remove-servicio-lineas', 'retractilado5');
|
||||
$(document).trigger('add-servicio-lineas', 'retractilado');
|
||||
}
|
||||
break;
|
||||
case 'retractilado5':
|
||||
if ($('#' + element.id).prop('checked')) {
|
||||
$('#retractilado').prop('checked', false);
|
||||
this.removeService('retractilado');
|
||||
this.addService('retractilado5');
|
||||
$(document).trigger('remove-servicio-lineas', 'retractilado');
|
||||
$(document).trigger('add-servicio-lineas', 'retractilado5');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -154,6 +163,7 @@ class DatosLibro {
|
||||
|
||||
}
|
||||
|
||||
|
||||
changeFormato() {
|
||||
|
||||
// Si es negro o color
|
||||
|
||||
Reference in New Issue
Block a user