From 5860b1ef94d2ca258d7259f6f7be489d500d8712 Mon Sep 17 00:00:00 2001 From: Pablo Marco del Pont Date: Wed, 24 Oct 2018 15:58:17 -0300 Subject: [PATCH] =?UTF-8?q?-=20Agregu=C3=A9=20botones=20Vendedor=20y=20Cli?= =?UTF-8?q?ente.=20-=20Modifiqu=C3=A9=20los=20botones,=20primera=20letra?= =?UTF-8?q?=20en=20may=C3=BAsculas.=20-=20Agregue=20los=20m=C3=A9todos=20r?= =?UTF-8?q?elacionados=20con=20cada=20bot=C3=B3n.=20-=20Agregu=C3=A9=20la?= =?UTF-8?q?=20l=C3=B3gica=20para=20selecci=C3=B3n=20de=20moneda.=20-=20Rem?= =?UTF-8?q?ov=C3=AD=20la=20llamada=20a=20limpiarPantalla.=20-=20Modifiqu?= =?UTF-8?q?=C3=A9=20la=20estructura=20de=20los=20componentes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 24 +-- src/views/nota-pedido.html | 356 +++++++++++++++++++++------------------------ 2 files changed, 180 insertions(+), 200 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 7a63ce4..a3d29e9 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -3,14 +3,16 @@ angular.module('focaCrearNotaPedido') ['$scope', '$uibModal', 'crearNotaPedidoService', 'focaModalService', function($scope, $uibModal, crearNotaPedidoService, focaModalService) { $scope.botonera = [ - {texto: 'moneda', accion: function() {$scope.abrirModalMoneda();}}, + {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}}, + {texto: 'Cliente', accion: function() {$scope.seleccionarCliente();}}, + {texto: 'Moneda', accion: function() {$scope.abrirModalMoneda();}}, { - texto: 'precios y condiciones', + texto: 'Precios y condiciones', accion: function() {$scope.abrirModalListaPrecio();}}, - {texto: 'flete', accion: function() {$scope.abrirModalFlete();}}, - {texto: 'bomba', accion: function() {}}, - {texto: 'detalle', accion: function() {}}, - {texto: 'totales', accion: function() {}} + {texto: 'Flete', accion: function() {$scope.abrirModalFlete();}}, + {texto: 'Bomba', accion: function() {}}, + {texto: 'Detalle', accion: function() {}}, + {texto: 'Totales', accion: function() {}} ]; $scope.show = false; $scope.cargando = true; @@ -21,7 +23,8 @@ angular.module('focaCrearNotaPedido') $scope.notaPedido = { vendedor: {}, cliente: {}, - domicilio: { dom: ''} + domicilio: {dom: ''}, + moneda: {detalle: ''} }; $scope.articulosTabla = []; var idLista; @@ -196,7 +199,6 @@ angular.module('focaCrearNotaPedido') ); modalInstance.result.then( function(cliente) { - $scope.limpiarPantalla(); $scope.notaPedido.cliente.nombre = cliente.nom; $scope.notaPedido.cliente.id = cliente.cod; crearNotaPedidoService.getDomiciliosByIdCliente(cliente.cod).then( @@ -294,7 +296,11 @@ angular.module('focaCrearNotaPedido') ); modalInstance.result.then( function(moneda) { - console.log('moneda', moneda); + $scope.notaPedido.moneda = { + id: moneda.ID, + detalle: moneda.DETALLE, + simbolo: moneda.SIMBOLO + }; }, function() { } diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index faca52d..8c08500 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -1,208 +1,182 @@ -
-
-
-
-
-
-
-
- - - - +
+ +
+
+
+
+
+
+ Vendedor: + +
+
+ Moneda: + +
+
+ Flete: +
-
-
-
-
- - - - +
+
+ Cliente: + +
+
+ Precios y condiciones: + +
+
+ Bomba: +
-
-
-
- +
+
+ +
-
- -
-
-
-
-
- - - - - - - - - - + + + + + + + + + + + + + + +
SectorCódigoDescripciónPrecio UnitarioCantidadSubTotal - + +
+ +
+ Cantidad Items: + +

Total:

{{getTotal() | currency:'$'}}

+
+
+
+
-
-
- -
-
-