Commit 4703ee08d4b94a3c0a69aafbd7e8bda7a5aeadd3

Authored by Nicolás Guarnieri
Exists in master and in 1 other branch develop

Merge remote-tracking branch 'upstream/master'

... ... @@ -43,7 +43,7 @@ gulp.task('uglify', ['templates'], function() {
43 43 gulp.dest(paths.tmp),
44 44 rename('foca-admin-seguimiento.min.js'),
45 45 uglify(),
46   - replace('"ngRoute","ui.bootstrap"', ''),
  46 + replace('"ngRoute","ui.bootstrap","focaBotoneraLateral"', ''),
47 47 gulp.dest(paths.dist)
48 48 ]
49 49 );
1 1 angular.module('focaAdminSeguimiento', [
2 2 'ngRoute',
3   - 'ui.bootstrap'
  3 + 'ui.bootstrap',
  4 + 'focaBotoneraLateral'
4 5 ]);
src/js/controller.js
1 1 angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoController', [
2   - '$scope', 'focaAdminSeguimientoService', '$location', '$routeParams',
3   - function($scope, focaAdminSeguimientoService, $location, $routeParams) {
  2 + '$scope', '$timeout', 'focaAdminSeguimientoService',
  3 + 'focaBotoneraLateralService','$location', '$routeParams',
  4 + function($scope, $timeout, focaAdminSeguimientoService,
  5 + focaBotoneraLateralService, $location, $routeParams) {
  6 +
4 7 $scope.actividad = '';
  8 + $scope.titulo = '';
  9 + var cabecera = '';
5 10  
6 11 $scope.now = new Date();
7 12  
8 13 if ($routeParams.parametro === 'nota-pedido') {
9 14 $scope.actividad = 'Nota de pedido';
  15 + $scope.titulo = 'Seguimiento de nota de pedido';
  16 + cabecera = 'Vendedor:';
10 17 }
11 18  
12 19 if ($routeParams.parametro === 'hoja-ruta') {
13 20 $scope.actividad = 'Entrega de producto';
  21 + $scope.titulo = 'Seguimiento de hoja de ruta';
  22 + cabecera = 'Vehiculo:';
14 23 }
15 24  
16 25 if ($routeParams.parametro === 'cobranza') {
17 26 $scope.actividad = 'Cobranza';
  27 + $scope.titulo = 'Seguimiento de cobranza';
  28 + cabecera = 'Cobrador:';
18 29 }
19 30  
20 31 $scope.idUsuario = 0;
21 32 $scope.marcadores = [];
22 33 getSeguimiento();
23 34  
  35 + $timeout(function() {
  36 + $scope.$broadcast('addCabecera',{
  37 + label: 'General',
  38 + valor: ''
  39 + });
  40 + })
  41 +
  42 + //SETEO BOTONERA LATERAL
  43 + focaBotoneraLateralService.showSalir(true);
  44 + focaBotoneraLateralService.showPausar(false);
  45 + focaBotoneraLateralService.showGuardar(false);
  46 +
24 47 $scope.general = function() {
25 48 $scope.idUsuario = 0;
26 49 getSeguimiento();
  50 + $scope.$broadcast('removeCabecera', cabecera);
  51 + $scope.$broadcast('addCabecera',{
  52 + label: 'General',
  53 + valor: ''
  54 + });
27 55 };
28 56  
29 57 $scope.individual = function() {
... ... @@ -38,6 +66,11 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll
38 66 if (key === 13) {
39 67 $scope.idUsuario = $scope.idUsuarioInput;
40 68 getSeguimiento();
  69 + $scope.$broadcast('removeCabecera', 'General');
  70 + $scope.$broadcast('addCabecera', {
  71 + label: cabecera,
  72 + valor: $scope.idUsuarioInput
  73 + });
41 74 }
42 75 };
43 76  
src/views/foca-admin-seguimiento.html
1 1 <div class="foca-admin-seguimiento">
2 2 <div class="row">
3   - <div class="offset-1 col-9">
  3 + <foca-cabecera-facturador
  4 + titulo="titulo"
  5 + fecha="now"
  6 + class="mb-0 col-lg-12"
  7 + ></foca-cabecera-facturador>
  8 + </div>
  9 + <div class="row">
  10 + <div class="col-10">
4 11 <osm
5 12 latitud="-32.89214159952345"
6 13 longitud="-68.84572999101856"
... ... @@ -59,13 +66,6 @@
59 66 ng-show="actividad == 'Cobranza'"
60 67 >
61 68 </div>
62   - <button
63   - type="button"
64   - class="btn col-12 my-1 boton-salir"
65   - ng-click="salir()"
66   - >
67   - Salir
68   - </button>
69 69 </div>
70 70 </div>
71 71 </div>