diff --git a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php index 1aaf1de3..9297a654 100755 --- a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php @@ -108,6 +108,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController $datosPresupuesto->tapa = 'blanda'; $datosPresupuesto->clienteList = $this->getClienteListItems($presupuestoEntity->cliente_id ?? null); + $presupuestoEntity->estado = 1; $this->viewData['formAction'] = route_to('crearPresupuestoCliente'); diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/_resumenItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/_resumenItems.php index 45d3720d..073147c5 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/_resumenItems.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/_resumenItems.php @@ -200,7 +200,7 @@ window.routes_resumen = { duplicarPresupuesto: "", } -if(estado_id?>==2){ +estado_id==2): ?> previewEsquemaCubierta(true); const previewTemplate = `
@@ -312,5 +312,5 @@ if(estado_id?>==2){ return false; }); -} + endSection() ?> 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 6abd657c..7441d4fd 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php @@ -18,136 +18,178 @@
-
- - estado_id==1): ?> -
- -
-
- -
- -
-
- -
- -
-
- - -
- -
- - - -
- -
- -
- -
-
+ estado_id == 1) : ?> + +
- - estado_id==1): ?> -
+
+ +
+
-
+
+ +
+
- - -
- - -
-
+
+ +
+
+ +
+
- -
-
- - - -
- - -
-
+ - -
-
+
- +
-
- - +
+ +
+ + + + +
+ +
+ + + +
+ + +
-
- - -
-
+ +
+
- + +
+ + +
+
+ + +
+
+ + + +
+ + +
+
+
+ + +
+
+ + + +
+
+
+ estado_id == 1) : ?> + + +
+
+ estado_id == 1) : ?> + + + + + + + +
+
+
+ + +
+ + + +
+
+ + + +
estado_id == 1) : ?> @@ -178,11 +220,10 @@
-
-
-
- + + +
@@ -199,35 +240,38 @@ window.datosPresupuesto = ; window.token_ajax= {: v}; -$('#clienteId').select2({ - allowClear: false, - ajax: { - url: '', - type: 'post', - dataType: 'json', +estado_id == 1) : ?> + $('#clienteId').select2({ + allowClear: false, + ajax: { + url: '', + type: 'post', + dataType: 'json', - data: function(params) { - return { - id: 'id', - text: 'nombre', - searchTerm: params.term, - : v - }; - }, - delay: 60, - processResults: function(response) { - yeniden(response.); - return { - results: response.menu - }; - }, - cache: true -} -}); + data: function(params) { + return { + id: 'id', + text: 'nombre', + searchTerm: params.term, + : v + }; + }, + delay: 60, + processResults: function(response) { + yeniden(response.); + return { + results: response.menu + }; + }, + cache: true + } + }); -if(estado_id ?>==1){ initDisenioLibro(); -} + + + + endSection() ?> @@ -238,7 +282,6 @@ if(estado_id ?>==1){ - endSection() ?> @@ -258,7 +301,9 @@ if(estado_id ?>==1){ - + estado_id == 1) : ?> + +