Commit eb556b166083e4fbb7026bd298a809de97e23097
1 parent
45096db37a
Exists in
master
refactor cookies
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/js/service.js
... | ... | @@ -8,7 +8,7 @@ angular.module('focaLogisticaPedidoRuta') |
8 | 8 | function($http, $cookies, API_ENDPOINT, $filter) { |
9 | 9 | var url = API_ENDPOINT.URL; |
10 | 10 | return { |
11 | - idUsuario: $cookies.get('idUsuario'), | |
11 | + idUsuario: $cookies.get('vendedorCobrador'), | |
12 | 12 | obtenerActividad: function(parametros) { |
13 | 13 | return $http.post(url + '/seguimiento/filtros', parametros); |
14 | 14 | }, |
... | ... | @@ -73,6 +73,9 @@ angular.module('focaLogisticaPedidoRuta') |
73 | 73 | }, |
74 | 74 | setFechaReparto: function(fechaReparto) { |
75 | 75 | this.fecha = fechaReparto; |
76 | + }, | |
77 | + obtenerVehiculoById: function(idVehiculo) { | |
78 | + return $http.get(url + '/vehiculo/' + idVehiculo); | |
76 | 79 | } |
77 | 80 | }; |
78 | 81 | }]); |