From 2edde4943de13398fd08238a3cc048f882645eb3 Mon Sep 17 00:00:00 2001 From: jaimejimenezortega Date: Tue, 4 Mar 2025 20:13:11 +0100 Subject: [PATCH] terminado incluyendo el menu lateral --- .../Presupuestos/Presupuestocliente.php | 2 +- .../cliente/viewPresupuestoclienteForm.php | 31 +---- .../presupuestoCliente/datosGenerales.js | 114 ++++++++++++++---- .../presupuestoCliente/presupuestoCliente.js | 9 +- 4 files changed, 101 insertions(+), 55 deletions(-) diff --git a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php index 394ab9e9..f45d7bb8 100755 --- a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php @@ -3526,7 +3526,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController $id = "service_extra_" . $servicio->id; array_push($servicios, "id}\" data-tarifa-tipo=\"extra\"> + name=\"{$id}\" value=\"1\" data-tarifa-id=\"{$servicio->id}\" data-tarifa-tipo=\"extra\" data-tarifa-nombre=\"{$servicio->nombre}\"> "); } diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php index 4e6d56e5..7118c132 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php @@ -183,35 +183,8 @@
Servicios extra
-
-
    -
  • - Prototipo
  • -
-
    -
  • - Ferro
  • -
-
    -
  • - Ferro digital
  • -
-
    -
  • - Marcapáginas
  • -
-
    -
  • - Retractilado
  • -
-
    -
  • - Retractilado de 5
  • -
+
+
diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js index 3dcac622..23736d72 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/datosGenerales.js @@ -165,7 +165,7 @@ class DatosGenerales { if (value4.length > 0 && Number.isInteger(parseInt(value4)) && parseInt(value4) > 0) { tiradas.push(value4); } - // comprobar si hay valores > 30 + // comprobar si hay valores > 30 const noPOD = (tiradas.some(tirada => parseInt(tirada) > 30)); const siPOD = (tiradas.some(tirada => parseInt(tirada) <= 30)); if (noPOD && siPOD) { @@ -362,7 +362,7 @@ class DatosGenerales { `); return false; } - + }, } } @@ -478,7 +478,7 @@ class DatosGenerales { // servicios extra menu_off = true; - if(this.prototipo.is(':checked')){ + /*if(this.prototipo.is(':checked')){ this.rl_prototipo.removeClass("d-none"); menu_off = false; } @@ -493,7 +493,7 @@ class DatosGenerales { else{ this.rl_ferro.addClass('d-none'); } - + if(this.ferroDigital.is(':checked')){ this.rl_ferroDigital.removeClass("d-none"); menu_off = false; @@ -501,29 +501,67 @@ class DatosGenerales { else{ this.rl_ferroDigital.addClass('d-none'); } +*/ + $('#rl-servicios-extra-items').empty(); if(this.marcapaginas.is(':checked')){ - this.rl_marcapaginas.removeClass("d-none"); + let $ul = $('