Commit b84604bf9e8ed59b779bc1d2aef5a60768d84673
1 parent
62ce377367
Exists in
master
agrego componente foca-botonera-lateral
Showing
4 changed files
with
18 additions
and
31 deletions
Show diff stats
index.html
| ... | ... | @@ -18,12 +18,13 @@ |
| 18 | 18 | <script src="node_modules/ladda/dist/ladda.min.js"></script> |
| 19 | 19 | <script src="node_modules/angular-ladda/dist/angular-ladda.min.js"></script> |
| 20 | 20 | |
| 21 | + <script src="node_modules/foca-busqueda-cliente/dist/foca-busqueda-cliente.min.js"></script> | |
| 21 | 22 | <script src="node_modules/foca-botonera-facturador/dist/foca-botonera-facturador.min.js"></script> |
| 23 | + <script src="node_modules/foca-botonera-lateral/dist/foca-botonera-lateral.min.js"></script> | |
| 24 | + <script src="node_modules/foca-cabecera-facturador/dist/foca-cabecera-facturador.min.js"></script> | |
| 22 | 25 | <script src="node_modules/foca-directivas/dist/foca-directivas.min.js"></script> |
| 23 | 26 | <script src="node_modules/foca-modal/dist/foca-modal.min.js"></script> |
| 24 | - <script src="node_modules/foca-directivas/dist/foca-directivas.min.js"></script> | |
| 25 | 27 | <script src="node_modules/foca-modal-factura/dist/foca-modal-factura.min.js"></script> |
| 26 | - <script src="node_modules/foca-busqueda-cliente/dist/foca-busqueda-cliente.min.js"></script> | |
| 27 | 28 | |
| 28 | 29 | <script src="src/js/app.js"></script> |
| 29 | 30 | <script src="src/js/controller.js"></script> |
src/js/app.js
src/js/controller.js
| 1 | 1 | angular.module('focaCrearCobranza') .controller('cobranzaController', |
| 2 | 2 | [ |
| 3 | 3 | '$scope', |
| 4 | + '$rootScope', | |
| 5 | + '$timeout', | |
| 4 | 6 | '$uibModal', |
| 5 | 7 | '$location', |
| 6 | - '$filter', | |
| 7 | 8 | 'focaCrearCobranzaService', |
| 8 | 9 | 'focaModalService', |
| 9 | 10 | '$cookies', |
| 11 | + '$filter', | |
| 10 | 12 | 'focaSeguimientoService', |
| 11 | - function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, | |
| 12 | - $cookies, focaSeguimientoService) | |
| 13 | + 'focaBotoneraLateralService', | |
| 14 | + function($scope, $rootScope, $timeout, $uibModal, $location, focaCrearCobranzaService, | |
| 15 | + focaModalService, $filter, $cookies, focaSeguimientoService, focaBotoneraLateralService) | |
| 13 | 16 | { |
| 14 | 17 | |
| 15 | 18 | $scope.botonera = focaCrearCobranzaService.getBotonera(); |
| ... | ... | @@ -34,6 +37,12 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
| 34 | 37 | $scope.usuario = data.data; |
| 35 | 38 | }); |
| 36 | 39 | |
| 40 | + $timeout(function() { | |
| 41 | + focaBotoneraLateralService.showSalir(true); | |
| 42 | + focaBotoneraLateralService.showPausar(true); | |
| 43 | + focaBotoneraLateralService.showGuardar(true, $scope.crearCobranza); | |
| 44 | + }); | |
| 45 | + | |
| 37 | 46 | $scope.crearCobranza = function() { |
| 38 | 47 | if(!$scope.cobranza.cliente) { |
| 39 | 48 | focaModalService.alert('Ingrese Cliente'); |
src/views/cobranza.html
| 1 | -<div class="crear-nota-pedido foca-crear one-row row"> | |
| 1 | +<div class="crear-nota-pedido foca-crear row"> | |
| 2 | 2 | <foca-cabecera-facturador |
| 3 | 3 | titulo="'RECIBO DE COBRANZA'" |
| 4 | 4 | numero="puntoVenta + '-' + comprobante" |
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | <div class="col-12 col-md-10 border border-light rounded"> |
| 12 | 12 | <div class="row px-5 py-2 botonera-secundaria"> |
| 13 | 13 | <div class="col-12"> |
| 14 | - <foca-botonera-facturador botones="botonera" extra="1" class="row"></foca-botonera-facturador> | |
| 14 | + <foca-botonera-facturador botones="botonera" extra="7" class="row"></foca-botonera-facturador> | |
| 15 | 15 | </div> |
| 16 | 16 | </div> |
| 17 | 17 | <!-- PC --> |
| ... | ... | @@ -433,30 +433,6 @@ |
| 433 | 433 | </table> |
| 434 | 434 | </div> |
| 435 | 435 | </div> |
| 436 | - <div class="col-auto my-2 col-lg-2 botonera-lateral d-none d-md-block"> | |
| 437 | - <div class="col-12 mt-auto"> | |
| 438 | - <button | |
| 439 | - ng-click="crearCobranza()" | |
| 440 | - title="Crear nota pedido" | |
| 441 | - class="btn btn-default btn-block mb-2 border border-dark" | |
| 442 | - ng-disabled="editando || saveLoading"> | |
| 443 | - <strong>GUARDAR</strong> | |
| 444 | - </button> | |
| 445 | - <button | |
| 446 | - type="button" | |
| 447 | - title="Salir" | |
| 448 | - class="btn btn-default btn-block border border-dark"> | |
| 449 | - <strong>PAUSAR</strong> | |
| 450 | - </button> | |
| 451 | - <button | |
| 452 | - ng-click="salir()" | |
| 453 | - type="button" | |
| 454 | - title="Salir" | |
| 455 | - class="btn btn-default btn-block border border-dark"> | |
| 456 | - <strong>SALIR</strong> | |
| 457 | - </button> | |
| 458 | - </div> | |
| 459 | - </div> | |
| 460 | 436 | </div> |
| 461 | 437 | </div> |
| 462 | 438 | <div class="row d-md-none fixed-bottom"> |