From fbb11330ffbcc1c9701997e7ef29dd8defc60ccd Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Fri, 22 Feb 2019 15:54:43 -0300 Subject: [PATCH] =?UTF-8?q?detalles=20dise=C3=B1o=20y=20textos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller-general-unidad.js | 5 ++++- src/js/controller-litros-km-unidad.js | 1 + src/views/informe-chofer.html | 7 ++++--- src/views/informe-general-unidad.html | 13 ++++++++++--- src/views/informe-hoja-ruta.html | 7 ++++--- src/views/informe-litros-km-unidad.html | 9 ++++++--- 6 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/js/controller-general-unidad.js b/src/js/controller-general-unidad.js index b52b6f2..49b6fa2 100644 --- a/src/js/controller-general-unidad.js +++ b/src/js/controller-general-unidad.js @@ -172,6 +172,9 @@ angular.module('focaModalInforme') $scope.cancel = function() { $uibModalInstance.dismiss('Cancelar'); }; + $scope.clearSector = function() { + $scope.params.sector = undefined; + }; function unirProductos(productos) { var result = [{fechas: []}]; @@ -210,7 +213,7 @@ angular.module('focaModalInforme') }); } }); - + results.forEach(function(result) { result.vehiculos = unirVehiculos(result.vehiculos); }); diff --git a/src/js/controller-litros-km-unidad.js b/src/js/controller-litros-km-unidad.js index ce6d1b1..fff8e05 100644 --- a/src/js/controller-litros-km-unidad.js +++ b/src/js/controller-litros-km-unidad.js @@ -146,6 +146,7 @@ angular.module('focaModalInforme') $scope.seleccionarUnidad = function() { $scope.seleccionarTransportista().then( function(transportista) { + $scope.transportista = transportista; var parametrosModal = { titulo: 'Búsqueda de vehículos', query: '/vehiculo/transportista/' + transportista.COD, diff --git a/src/views/informe-chofer.html b/src/views/informe-chofer.html index d65abf6..3b521df 100644 --- a/src/views/informe-chofer.html +++ b/src/views/informe-chofer.html @@ -1,9 +1,10 @@