Commit 3db891c88e7bdb2686f52f67593a0cea87a94b78

Authored by Eric Fernandez
1 parent 1e30fd1c90
Exists in master

muestro vehiculos del usuario

Showing 2 changed files with 6 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -26,6 +26,9 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo
26 26 focaBotoneraLateralService.showPausar(false);
27 27 focaBotoneraLateralService.showGuardar(false);
28 28  
  29 + focaLogisticaPedidoRutaService.getVehiculosByIdUsuario().then(function(res) {
  30 + $scope.vehiculos = res.data;
  31 + });
29 32  
30 33 $scope.general = function() {
31 34 $scope.idVendedor = 0;
... ... @@ -65,6 +65,9 @@ angular.module('focaLogisticaPedidoRuta')
65 65 }
66 66 }
67 67 return remitosRes;
  68 + },
  69 + getVehiculosByIdUsuario: function() {
  70 + return $http.get(API_ENDPOINT.URL + '/vehiculo/usuario/' + this.idUsuario);
68 71 }
69 72 };
70 73 }]);