Commit a6f2298711dedd3574f881c755dcb510f596d414

Authored by Eric Fernandez
1 parent 4b812ac8b6
Exists in master and in 1 other branch develop

titulos

src/js/controller.js
... ... @@ -84,8 +84,11 @@ angular.module('focaAbmVehiculo')
84 84 }
85 85 delete $scope.vehiculo.transportista;
86 86 focaAbmVehiculoService.guerdarVehiculo($scope.vehiculo).then(function(res) {
87   - console.log(res.data);
88   - $location.path('/vehiculo/' + res.data.id + '/' + res.data.idTransportista);
  87 + if($scope.nuevo) {
  88 + $location.path('/vehiculo/' + res.data.id + '/' + res.data.idTransportista);
  89 + } else {
  90 + $location.path('/vehiculo');
  91 + }
89 92 });
90 93 };
91 94 $scope.solicitarConfirmacionCisterna = function(cisterna) {
src/views/foca-abm-vehiculos-listado.html
... ... @@ -26,10 +26,9 @@
26 26 <thead>
27 27 <tr>
28 28 <th>Unidad</th>
29   - <th>Tractor</th>
30   - <th>Semi</th>
  29 + <th>Dominio Tractor</th>
  30 + <th>Dominio Semi</th>
31 31 <th>Capacidad</th>
32   - <th>Cisternado</th>
33 32 <th class="text-center">
34 33 <button
35 34 ng-disabled="!idTransportista"
... ... @@ -45,8 +44,7 @@
45 44 <td ng-bind="vehiculo.codigo"></td>
46 45 <td ng-bind="vehiculo.tractor"></td>
47 46 <td ng-bind="vehiculo.semi"></td>
48   - <td ng-bind="vehiculo.capacidad"></td>
49   - <td ng-bind="vehiculo.cisternado"></td>
  47 + <td ng-bind="vehiculo.capacidadTotalCisternas"></td>
50 48 <td class="text-center">
51 49 <button
52 50 class="btn btn-default boton-accion"