Commit 46c0bf3b04cea52fe9af2b606e133fbbcaceabf6
1 parent
90ff6023ac
Exists in
master
Boton detalle de carga
Showing
3 changed files
with
14 additions
and
1 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -546,6 +546,15 @@ angular.module('focaCrearHojaRuta').controller('hojaRutaCtrl', |
| 546 | 546 | } |
| 547 | 547 | }; |
| 548 | 548 | |
| 549 | + $scope.seleccionarDetalleDeCarga = function () { | |
| 550 | + if ($scope.hojaRuta.vehiculo.capacidad === 0) { | |
| 551 | + focaModalService.alert('Debe ingresar vehiculo'); | |
| 552 | + return; | |
| 553 | + } else { | |
| 554 | + $scope.mostrarDetalle($scope.hojaRuta); | |
| 555 | + } | |
| 556 | + }; | |
| 557 | + | |
| 549 | 558 | function getCabeceraPuntoDescarga(puntosDescarga) { |
| 550 | 559 | var puntosStamp = ''; |
| 551 | 560 | puntosDescarga.forEach(function (punto, idx, arr) { |
src/js/service.js
src/views/modal-detalle-carga.html
| ... | ... | @@ -70,6 +70,6 @@ |
| 70 | 70 | </div> |
| 71 | 71 | <div class="modal-footer py-1"> |
| 72 | 72 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 73 | - <button class="btn btn-sm btn-secondary" type="button" ng-click="guardar()">Guardar</button> | |
| 73 | + <button class="btn btn-sm btn-primary" type="button" ng-click="guardar()">Guardar</button> | |
| 74 | 74 | </div> |
| 75 | 75 | </div> |
| 76 | 76 | \ No newline at end of file |