Commit 2f567bc85ef6b141346f4a6fa8cd087d8bc9c879
1 parent
5e0afa91f4
Exists in
master
muestro el vehículo al que fue asignado
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
src/js/osm-directive.js
| ... | ... | @@ -45,6 +45,18 @@ angular.module('focaLogisticaPedidoRuta').directive('focaLogistica', function() |
| 45 | 45 | } |
| 46 | 46 | var icon; |
| 47 | 47 | if(marcador.notaPedido.remito.idUsuarioProceso) { |
| 48 | + observacion += '<br/>'; | |
| 49 | + observacion += '<strong>'; | |
| 50 | + observacion += 'Fecha de entrega: ' + marcador.notaPedido.remito | |
| 51 | + .cisternaMovimientos[0].cisternaCarga.fechaReparto.substring(0, 10); | |
| 52 | + observacion += '<br/>'; | |
| 53 | + observacion += 'Vehículo: ' + marcador.notaPedido.remito | |
| 54 | + .cisternaMovimientos[0].cisternaCarga.cisterna.vehiculo.tractor; | |
| 55 | + observacion += '<br/>'; | |
| 56 | + observacion += 'Transportista: ' + marcador.notaPedido.remito | |
| 57 | + .cisternaMovimientos[0].cisternaCarga.cisterna.vehiculo.transportista | |
| 58 | + .NOM; | |
| 59 | + observacion += '</strong>'; | |
| 48 | 60 | //Asignado ROJO |
| 49 | 61 | icon = new L.Icon({ |
| 50 | 62 | iconUrl: 'img/marker-icon-2x-red.png', |
| ... | ... | @@ -59,6 +71,7 @@ angular.module('focaLogisticaPedidoRuta').directive('focaLogistica', function() |
| 59 | 71 | observacion += '<i class="fa fa-map-marker fa-3x" aria-hidden="true"'+ |
| 60 | 72 | 'class="form-control" ondragend="dropEnd()" ondragstart=\'drag(event, '+ |
| 61 | 73 | JSON.stringify(marcador)+')\' draggable="true"></i>(Arrastrar icono)'; |
| 74 | + | |
| 62 | 75 | //Sin asignar VERDE |
| 63 | 76 | icon = new L.Icon({ |
| 64 | 77 | iconUrl: 'img/marker-icon-2x-green.png', |