Commit cef91ce45f47a52f4e5e6c454ff77ce275354374
1 parent
a682b3f4e3
Exists in
master
agrego foca-botonera-lateral
Showing
3 changed files
with
22 additions
and
32 deletions
Show diff stats
src/js/app.js
src/js/controller.js
1 | 1 | angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
2 | 2 | [ |
3 | - '$scope', '$uibModal', '$location', '$filter', 'crearNotaPedidoService', | |
4 | - 'focaModalService', 'notaPedidoBusinessService', '$rootScope', 'focaSeguimientoService', | |
3 | + '$scope', | |
4 | + '$uibModal', | |
5 | + '$location', | |
6 | + '$filter', | |
7 | + '$timeout', | |
8 | + 'crearNotaPedidoService', | |
9 | + 'focaBotoneraLateralService', | |
10 | + 'focaModalService', | |
11 | + 'notaPedidoBusinessService', | |
12 | + '$rootScope', | |
13 | + 'focaSeguimientoService', | |
5 | 14 | function( |
6 | - $scope, $uibModal, $location, $filter, crearNotaPedidoService, focaModalService, | |
7 | - notaPedidoBusinessService, $rootScope, focaSeguimientoService) | |
15 | + $scope, $uibModal, $location, $filter, $timeout, | |
16 | + crearNotaPedidoService, focaBotoneraLateralService, | |
17 | + focaModalService, notaPedidoBusinessService, $rootScope, focaSeguimientoService) | |
8 | 18 | { |
9 | 19 | |
10 | 20 | $scope.botonera = crearNotaPedidoService.getBotonera(); |
... | ... | @@ -44,6 +54,13 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
44 | 54 | $scope.articulosTabla = []; |
45 | 55 | $scope.idLista = undefined; |
46 | 56 | |
57 | + //SETEO BOTONERA LATERAL | |
58 | + $timeout(function() { | |
59 | + focaBotoneraLateralService.showSalir(true); | |
60 | + focaBotoneraLateralService.showPausar(true); | |
61 | + focaBotoneraLateralService.showGuardar(true, $scope.crearNotaPedido); | |
62 | + }); | |
63 | + | |
47 | 64 | crearNotaPedidoService.getPrecioCondicion().then( |
48 | 65 | function(res) { |
49 | 66 | $scope.precioCondiciones = res.data; |
src/views/nota-pedido.html
... | ... | @@ -408,34 +408,6 @@ |
408 | 408 | </table> |
409 | 409 | </div> |
410 | 410 | </div> |
411 | - <div class="col-auto my-2 col-lg-2 botonera-lateral d-none"> | |
412 | - <div class="col-12 mt-auto"> | |
413 | - <button | |
414 | - ng-click="crearNotaPedido()" | |
415 | - type="submit" | |
416 | - title="Crear nota pedido" | |
417 | - class="btn btn-default btn-block mb-2 border border-dark" | |
418 | - ng-disabled="notaPedido.idRemito || saveLoading" | |
419 | - > | |
420 | - <strong>GUARDAR</strong> | |
421 | - </button> | |
422 | - <!-- AGREGAR FUNCIONALIDAD PAUSAR --> | |
423 | - <button | |
424 | - type="submit" | |
425 | - title="Crear nota pedido" | |
426 | - class="btn btn-default btn-block mb-2 border border-dark" | |
427 | - > | |
428 | - <strong>PAUSAR</strong> | |
429 | - </button> | |
430 | - <button | |
431 | - ng-click="salir()" | |
432 | - type="button" | |
433 | - title="Salir" | |
434 | - class="btn btn-default btn-block border border-dark"> | |
435 | - <strong>SALIR</strong> | |
436 | - </button> | |
437 | - </div> | |
438 | - </div> | |
439 | 411 | </div> |
440 | 412 | </div> |
441 | 413 | <div class="row d-md-none fixed-bottom"> |