Commit 63a019dce1aaf6c2bcf5c4b0392be7a4594cda4b
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
Show diff stats
src/views/foca-modal-nota-pedido.html
| 1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
| 2 | <div class="row w-100"> | 2 | <div class="row w-100"> |
| 3 | <div class="col-lg-6"> | 3 | <div class="col-lg-6"> |
| 4 | <h5 class="modal-title my-1">Búsqueda de Nota de Pedido</h5> | 4 | <h5 class="modal-title my-1">Búsqueda de Nota de Pedido</h5> |
| 5 | </div> | 5 | </div> |
| 6 | <div class="input-group col-lg-6 pr-0 my-2"> | 6 | <div class="input-group col-lg-6 pr-0 my-2"> |
| 7 | <input | 7 | <input |
| 8 | ladda="searchLoading" | 8 | ladda="searchLoading" |
| 9 | type="text" | 9 | type="text" |
| 10 | class="form-control form-control-sm" | 10 | class="form-control form-control-sm" |
| 11 | id="search" | 11 | id="search" |
| 12 | placeholder="Cliente" | 12 | placeholder="Cliente" |
| 13 | ng-model="filters" | 13 | ng-model="filters" |
| 14 | ng-change="search()" | 14 | ng-change="search()" |
| 15 | ng-keydown="busquedaDown($event.keyCode)" | 15 | ng-keydown="busquedaDown($event.keyCode)" |
| 16 | ng-keypress="busquedaPress($event.keyCode)" | 16 | ng-keypress="busquedaPress($event.keyCode)" |
| 17 | foca-focus="selectedNotaPedido == -1" | 17 | foca-focus="selectedNotaPedido == -1" |
| 18 | ng-focus="selectedNotaPedido = -1" | 18 | ng-focus="selectedNotaPedido = -1" |
| 19 | teclado-virtual | 19 | teclado-virtual |
| 20 | /> | 20 | /> |
| 21 | <div class="input-group-append"> | 21 | <div class="input-group-append"> |
| 22 | <button | 22 | <button |
| 23 | ladda="searchLoading" | 23 | ladda="searchLoading" |
| 24 | data-spinner-color="#FF0000" | ||
| 24 | class="btn btn-outline-secondary" | 25 | class="btn btn-outline-secondary" |
| 25 | type="button" | 26 | type="button" |
| 26 | ng-click="busquedaPress(13)" | 27 | ng-click="busquedaPress(13)" |
| 27 | > | 28 | > |
| 28 | <i class="fa fa-search" aria-hidden="true"></i> | 29 | <i class="fa fa-search" aria-hidden="true"></i> |
| 29 | </button> | 30 | </button> |
| 30 | </div> | 31 | </div> |
| 31 | </div> | 32 | </div> |
| 32 | </div> | 33 | </div> |
| 33 | </div> | 34 | </div> |
| 34 | <div class="modal-body" id="modal-body"> | 35 | <div class="modal-body" id="modal-body"> |
| 35 | 36 | ||
| 36 | <div class="input-group row"> | 37 | <div class="input-group row"> |
| 37 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> | 38 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> |
| 38 | <div class="col-md-4 col-8 input-group mb-2"> | 39 | <div class="col-md-4 col-8 input-group mb-2"> |
| 39 | <div class="input-group-prepend"> | 40 | <div class="input-group-prepend"> |
| 40 | <div class="input-group-text"> | 41 | <div class="input-group-text"> |
| 41 | <i class="fa fa-calendar"></i> | 42 | <i class="fa fa-calendar"></i> |
| 42 | </div> | 43 | </div> |
| 43 | </div> | 44 | </div> |
| 44 | <input | 45 | <input |
| 45 | class="form-control form-control-sm" | 46 | class="form-control form-control-sm" |
| 46 | id="inlineFormInputGroup" | 47 | id="inlineFormInputGroup" |
| 47 | ladda="searchLoading" | 48 | ladda="searchLoading" |
| 48 | type="text" | 49 | type="text" |
| 49 | ng-model="fechaDesde" | 50 | ng-model="fechaDesde" |
| 50 | ng-required="true" | 51 | ng-required="true" |
| 51 | uib-datepicker-popup="dd/MM/yyyy" | 52 | uib-datepicker-popup="dd/MM/yyyy" |
| 52 | show-button-bar="false" | 53 | show-button-bar="false" |
| 53 | is-open="datepickerOpen" | 54 | is-open="datepickerOpen" |
| 54 | on-open-focus="false" | 55 | on-open-focus="false" |
| 55 | ng-focus="datepickerOpen = true" | 56 | ng-focus="datepickerOpen = true" |
| 56 | datepicker-options="dateOptions" | 57 | datepicker-options="dateOptions" |
| 57 | /> | 58 | /> |
| 58 | </div> | 59 | </div> |
| 59 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> | 60 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> |
| 60 | <div class="col-md-4 col-8 input-group mb-2"> | 61 | <div class="col-md-4 col-8 input-group mb-2"> |
| 61 | <div class="input-group-prepend"> | 62 | <div class="input-group-prepend"> |
| 62 | <div class="input-group-text"> | 63 | <div class="input-group-text"> |
| 63 | <i class="fa fa-calendar"></i> | 64 | <i class="fa fa-calendar"></i> |
| 64 | </div> | 65 | </div> |
| 65 | </div> | 66 | </div> |
| 66 | <input | 67 | <input |
| 67 | class="form-control form-control-sm" | 68 | class="form-control form-control-sm" |
| 68 | id="inlineFormInputGroup" | 69 | id="inlineFormInputGroup" |
| 69 | ladda="searchLoading" | 70 | ladda="searchLoading" |
| 70 | type="text" | 71 | type="text" |
| 71 | ng-model="fechaHasta" | 72 | ng-model="fechaHasta" |
| 72 | ng-required="true" | 73 | ng-required="true" |
| 73 | uib-datepicker-popup="dd/MM/yyyy" | 74 | uib-datepicker-popup="dd/MM/yyyy" |
| 74 | show-button-bar="false" | 75 | show-button-bar="false" |
| 75 | is-open="datepicker2Open" | 76 | is-open="datepicker2Open" |
| 76 | on-open-focus="false" | 77 | on-open-focus="false" |
| 77 | ng-focus="datepicker2Open = true" | 78 | ng-focus="datepicker2Open = true" |
| 78 | /> | 79 | /> |
| 79 | </div> | 80 | </div> |
| 80 | </div> | 81 | </div> |
| 81 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 82 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
| 82 | <thead> | 83 | <thead> |
| 83 | <tr> | 84 | <tr> |
| 84 | <th>Fecha</th> | 85 | <th>Fecha</th> |
| 85 | <th>Cliente</th> | 86 | <th>Cliente</th> |
| 86 | <th>Comprobante</th> | 87 | <th>Comprobante</th> |
| 87 | <th class="text-right">Importe</th> | 88 | <th class="text-right">Importe</th> |
| 88 | <th></th> | 89 | <th></th> |
| 89 | </tr> | 90 | </tr> |
| 90 | </thead> | 91 | </thead> |
| 91 | <tbody> | 92 | <tbody> |
| 92 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> | 93 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> |
| 93 | <td colspan="5"> | 94 | <td colspan="5"> |
| 94 | No se encontraron resultados. | 95 | No se encontraron resultados. |
| 95 | </td> | 96 | </td> |
| 96 | </tr> | 97 | </tr> |
| 97 | <tr class="selectable" | 98 | <tr class="selectable" |
| 98 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" | 99 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" |
| 99 | ng-click="select(notaPedido)"> | 100 | ng-click="select(notaPedido)"> |
| 100 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> | 101 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> |
| 101 | <td ng-bind="notaPedido.nombreCliente"></td> | 102 | <td ng-bind="notaPedido.nombreCliente"></td> |
| 102 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> | 103 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> |
| 103 | <td ng-bind="notaPedido.total | number: 2" class="text-right"></td> | 104 | <td ng-bind="notaPedido.total | number: 2" class="text-right"></td> |
| 104 | <td> | 105 | <td> |
| 105 | <button | 106 | <button |
| 106 | type="button" | 107 | type="button" |
| 107 | class="btn btn-xs p-1 float-right" | 108 | class="btn btn-xs p-1 float-right" |
| 108 | ng-class="{ | 109 | ng-class="{ |
| 109 | 'btn-secondary': selectedNotaPedido != key, | 110 | 'btn-secondary': selectedNotaPedido != key, |
| 110 | 'btn-primary': selectedNotaPedido == key | 111 | 'btn-primary': selectedNotaPedido == key |
| 111 | }" | 112 | }" |
| 112 | foca-focus="selectedNotaPedido == {{key}}" | 113 | foca-focus="selectedNotaPedido == {{key}}" |
| 113 | ng-keydown="itemNotaPedido($event.keyCode)" | 114 | ng-keydown="itemNotaPedido($event.keyCode)" |
| 114 | > | 115 | > |
| 115 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 116 | <i class="fa fa-circle-thin" aria-hidden="true"></i> |
| 116 | </button> | 117 | </button> |
| 117 | </td> | 118 | </td> |
| 118 | </tr> | 119 | </tr> |
| 119 | </tbody> | 120 | </tbody> |
| 120 | </table> | 121 | </table> |
| 121 | </div> | 122 | </div> |
| 122 | <div class="modal-footer py-1"> | 123 | <div class="modal-footer py-1"> |
| 123 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda" class="mr-auto"> | 124 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda" class="mr-auto"> |
| 124 | <ul class="pagination pagination-sm justify-content mb-0"> | 125 | <ul class="pagination pagination-sm justify-content mb-0"> |
| 125 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 126 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 126 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 127 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
| 127 | <span aria-hidden="true">«</span> | 128 | <span aria-hidden="true">«</span> |
| 128 | <span class="sr-only">Anterior</span> | 129 | <span class="sr-only">Anterior</span> |
| 129 | </a> | 130 | </a> |
| 130 | </li> | 131 | </li> |
| 131 | <li | 132 | <li |
| 132 | class="page-item" | 133 | class="page-item" |
| 133 | ng-repeat="pagina in paginas" | 134 | ng-repeat="pagina in paginas" |
| 134 | ng-class="{'active': pagina == currentPage}" | 135 | ng-class="{'active': pagina == currentPage}" |
| 135 | > | 136 | > |
| 136 | <a | 137 | <a |
| 137 | class="page-link" | 138 | class="page-link" |
| 138 | href="javascript:void();" | 139 | href="javascript:void();" |
| 139 | ng-click="selectPage(pagina)" | 140 | ng-click="selectPage(pagina)" |
| 140 | ng-bind="pagina" | 141 | ng-bind="pagina" |
| 141 | ></a> | 142 | ></a> |
| 142 | </li> | 143 | </li> |
| 143 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 144 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 144 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 145 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> |
| 145 | <span aria-hidden="true">»</span> | 146 | <span aria-hidden="true">»</span> |
| 146 | <span class="sr-only">Siguiente</span> | 147 | <span class="sr-only">Siguiente</span> |
| 147 | </a> | 148 | </a> |
| 148 | </li> | 149 | </li> |
| 149 | </ul> | 150 | </ul> |
| 150 | </nav> | 151 | </nav> |
| 151 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 152 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 152 | </div> | 153 | </div> |
| 153 | 154 |