Commit 66933189f6cfa7832818510348e50c9c513dd4ba
1 parent
9e4386a385
Exists in
master
and in
1 other branch
Agregado spinner para mostrar que se esta cargando la informacion.
Showing
2 changed files
with
9 additions
and
3 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -557,6 +557,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
| 557 | 557 | ); |
| 558 | 558 | modalInstanceDomicilio.result.then( |
| 559 | 559 | function (domicilio) { |
| 560 | + $scope.showLoading = true; | |
| 560 | 561 | $scope.notaPedido.domicilio = domicilio; |
| 561 | 562 | $scope.notaPedido.cliente = { |
| 562 | 563 | COD: cliente.cod, |
| ... | ... | @@ -602,6 +603,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
| 602 | 603 | { label: 'Cliente' })[0].checked = true; |
| 603 | 604 | $filter('filter')($scope.botonera, |
| 604 | 605 | { label: 'Domicilio de Entrega' })[0].checked = true; |
| 606 | + | |
| 607 | + $scope.showLoading = false; | |
| 605 | 608 | }) |
| 606 | 609 | .catch(function (e) { console.log(e); }); |
| 607 | 610 | }, function () { |
| ... | ... | @@ -630,9 +633,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
| 630 | 633 | |
| 631 | 634 | $scope.seleccionarPreciosYCondiciones = function () { |
| 632 | 635 | |
| 633 | - if (!validarNotaRemitada()) { | |
| 634 | - return; | |
| 635 | - } | |
| 636 | + if (!validarNotaRemitada()) return; | |
| 636 | 637 | |
| 637 | 638 | if (!$scope.notaPedido.cliente.COD) { |
| 638 | 639 | focaModalService.alert('Primero seleccione un cliente'); |
src/views/nota-pedido.html
| ... | ... | @@ -422,3 +422,8 @@ |
| 422 | 422 | </div> |
| 423 | 423 | </div> |
| 424 | 424 | </div> |
| 425 | +<div ng-show="showLoading == true" class="cover-spin align-items-center justify-content-center"> | |
| 426 | + <div class="spinner-border text-danger m-2" style="width: 3rem; height: 3rem;" role="status"> | |
| 427 | + </div> | |
| 428 | + <strong>Cargando informacion...</strong> | |
| 429 | +</div> | |
| 425 | 430 | \ No newline at end of file |