Commit 50dbd96fe614fc2054df9c2274d61e82db3325ec
1 parent
b849869dca
Exists in
master
and in
2 other branches
Arreglo en la vista del Boton
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/views/foca-modal-remito.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 Remito</h5> | 4 | <h5 class="modal-title my-1">Búsqueda de Remito</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 | placeholder="Razón social" | 11 | placeholder="Razón social" |
| 12 | ng-model="filters" | 12 | ng-model="filters" |
| 13 | ng-change="search()" | 13 | ng-change="search()" |
| 14 | ng-keydown="busquedaDown($event.keyCode)" | 14 | ng-keydown="busquedaDown($event.keyCode)" |
| 15 | ng-keypress="busquedaPress($event.keyCode)" | 15 | ng-keypress="busquedaPress($event.keyCode)" |
| 16 | foca-focus="selectedRemito == -1" | 16 | foca-focus="selectedRemito == -1" |
| 17 | ng-focus="selectedRemito = -1" | 17 | ng-focus="selectedRemito = -1" |
| 18 | id="search" | 18 | id="search" |
| 19 | teclado-virtual | 19 | teclado-virtual |
| 20 | > | 20 | > |
| 21 | <button | 21 | <button |
| 22 | ng-show="filters.length >= 1" | 22 | ng-show="filters.length >= 1" |
| 23 | type="button" | 23 | type="button" |
| 24 | class="clear-input" | 24 | class="clear-input" |
| 25 | ng-click="filters = ''" | 25 | ng-click="filters = ''" |
| 26 | > | 26 | > |
| 27 | <i class="fa fa-times"></i> | 27 | <i class="fa fa-times"></i> |
| 28 | </button> | 28 | </button> |
| 29 | <div class="input-group-append"> | 29 | <div class="input-group-append"> |
| 30 | <button | 30 | <button |
| 31 | ladda="searchLoading" | 31 | ladda="searchLoading" |
| 32 | data-spinner-color="#FF0000" | 32 | data-spinner-color="#FF0000" |
| 33 | class="btn btn-outline-secondary" | 33 | class="btn btn-outline-secondary" |
| 34 | type="button" | 34 | type="button" |
| 35 | ng-click="busquedaPress(13)" | 35 | ng-click="busquedaPress(13)" |
| 36 | > | 36 | > |
| 37 | <i class="fa fa-search" aria-hidden="true"></i> | 37 | <i class="fa fa-search" aria-hidden="true"></i> |
| 38 | </button> | 38 | </button> |
| 39 | </div> | 39 | </div> |
| 40 | </div> | 40 | </div> |
| 41 | </div> | 41 | </div> |
| 42 | 42 | ||
| 43 | </div> | 43 | </div> |
| 44 | <div class="modal-body" id="modal-body"> | 44 | <div class="modal-body" id="modal-body"> |
| 45 | <div class="input-group row"> | 45 | <div class="input-group row"> |
| 46 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> | 46 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> |
| 47 | <div class="col-md-4 col-8 input-group mb-3"> | 47 | <div class="col-md-4 col-8 input-group mb-3"> |
| 48 | <div class="input-group-prepend"> | 48 | <div class="input-group-prepend"> |
| 49 | <button | 49 | <button |
| 50 | class="input-group-text" | 50 | class="input-group-text" |
| 51 | type="button" | 51 | type="button" |
| 52 | ng-click="datepickerOpen = true" | 52 | ng-click="datepickerOpen = true" |
| 53 | > | 53 | > |
| 54 | <i class="fa fa-calendar"></i> | 54 | <i class="fa fa-calendar"></i> |
| 55 | </button> | 55 | </button> |
| 56 | </div> | 56 | </div> |
| 57 | <input | 57 | <input |
| 58 | class="form-control form-control-sm" | 58 | class="form-control form-control-sm" |
| 59 | id="inlineFormInputGroup" | 59 | id="inlineFormInputGroup" |
| 60 | ladda="searchLoading" | 60 | ladda="searchLoading" |
| 61 | type="text" | 61 | type="text" |
| 62 | ng-model="fechaDesde" | 62 | ng-model="fechaDesde" |
| 63 | ng-required="true" | 63 | ng-required="true" |
| 64 | uib-datepicker-popup="dd/MM/yyyy" | 64 | uib-datepicker-popup="dd/MM/yyyy" |
| 65 | show-button-bar="false" | 65 | show-button-bar="false" |
| 66 | is-open="datepickerOpen" | 66 | is-open="datepickerOpen" |
| 67 | on-open-focus="false" | 67 | on-open-focus="false" |
| 68 | ng-focus="datepickerOpen = true" | 68 | ng-focus="datepickerOpen = true" |
| 69 | /> | 69 | /> |
| 70 | </div> | 70 | </div> |
| 71 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> | 71 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> |
| 72 | <div class="col-md-4 col-8 input-group mb-3"> | 72 | <div class="col-md-4 col-8 input-group mb-3"> |
| 73 | <div class="input-group-prepend"> | 73 | <div class="input-group-prepend"> |
| 74 | <button | 74 | <button |
| 75 | class="input-group-text" | 75 | class="input-group-text" |
| 76 | type="button" | 76 | type="button" |
| 77 | ng-click="datepicker2Open = true" | 77 | ng-click="datepicker2Open = true" |
| 78 | > | 78 | > |
| 79 | <i class="fa fa-calendar"></i> | 79 | <i class="fa fa-calendar"></i> |
| 80 | </button> | 80 | </button> |
| 81 | </div> | 81 | </div> |
| 82 | <input | 82 | <input |
| 83 | class="form-control form-control-sm" | 83 | class="form-control form-control-sm" |
| 84 | id="inlineFormInputGroup" | 84 | id="inlineFormInputGroup" |
| 85 | ladda="searchLoading" | 85 | ladda="searchLoading" |
| 86 | type="text" | 86 | type="text" |
| 87 | ng-model="fechaHasta" | 87 | ng-model="fechaHasta" |
| 88 | ng-required="true" | 88 | ng-required="true" |
| 89 | uib-datepicker-popup="dd/MM/yyyy" | 89 | uib-datepicker-popup="dd/MM/yyyy" |
| 90 | show-button-bar="false" | 90 | show-button-bar="false" |
| 91 | is-open="datepicker2Open" | 91 | is-open="datepicker2Open" |
| 92 | on-open-focus="false" | 92 | on-open-focus="false" |
| 93 | ng-focus="datepicker2Open = true" | 93 | ng-focus="datepicker2Open = true" |
| 94 | /> | 94 | /> |
| 95 | </div> | 95 | </div> |
| 96 | </div> | 96 | </div> |
| 97 | <table ng-show="primerBusqueda" class="table table-hover table-sm"> | 97 | <table ng-show="primerBusqueda" class="table table-hover table-sm"> |
| 98 | <thead> | 98 | <thead> |
| 99 | <tr> | 99 | <tr> |
| 100 | <th>Fecha</th> | 100 | <th>Fecha</th> |
| 101 | <th>Cliente</th> | 101 | <th>Cliente</th> |
| 102 | <th>Comprobante</th> | 102 | <th>Comprobante</th> |
| 103 | <th>Importe</th> | 103 | <th>Importe</th> |
| 104 | <th></th> | 104 | <th></th> |
| 105 | <th></th> | 105 | <th></th> |
| 106 | </tr> | 106 | </tr> |
| 107 | </thead> | 107 | </thead> |
| 108 | <tbody> | 108 | <tbody> |
| 109 | <tr ng-show="currentPageRemitos.length == 0 && primerBusqueda"> | 109 | <tr ng-show="currentPageRemitos.length == 0 && primerBusqueda"> |
| 110 | <td colspan="5"> | 110 | <td colspan="5"> |
| 111 | No se encontraron resultados. | 111 | No se encontraron resultados. |
| 112 | </td> | 112 | </td> |
| 113 | </tr> | 113 | </tr> |
| 114 | <tr class="selectable" | 114 | <tr class="selectable" |
| 115 | ng-repeat-start="(key, remito) in currentPageRemitos" | 115 | ng-repeat-start="(key, remito) in currentPageRemitos" |
| 116 | > | 116 | > |
| 117 | <td ng-bind="remito.fechaRemito | date : 'dd/MM/yyyy'"></td> | 117 | <td ng-bind="remito.fechaRemito | date : 'dd/MM/yyyy'"></td> |
| 118 | <td ng-bind="remito.nombreCliente"></td> | 118 | <td ng-bind="remito.nombreCliente"></td> |
| 119 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> | 119 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> |
| 120 | <td ng-bind="remito.total | number: 2"></td> | 120 | <td ng-bind="remito.total | number: 2"></td> |
| 121 | <td> | 121 | <td> |
| 122 | <button | 122 | <button |
| 123 | type="button" | 123 | type="button" |
| 124 | class="fa fa-eye btn-secondary" | 124 | class="btn btn-secondary btn-xs p-1" |
| 125 | ng-click="isCollapsed = !isCollapsed ; verProductos = remito.articulosRemito" | 125 | ng-click="isCollapsed = !isCollapsed ; verProductos = remito.articulosRemito" |
| 126 | > | 126 | ><i class="fa fa-eye"></i> |
| 127 | </button> | 127 | </button> |
| 128 | </td> | 128 | </td> |
| 129 | <td> | 129 | <td> |
| 130 | <button ng-click="select(remito);" | 130 | <button ng-click="select(remito);" |
| 131 | type="button" | 131 | type="button" |
| 132 | class="btn btn-xs p-1 float-right" | 132 | class="btn btn-xs p-1 float-right" |
| 133 | ng-class="{ | 133 | ng-class="{ |
| 134 | 'btn-secondary': selectedRemito != key, | 134 | 'btn-secondary': selectedRemito != key, |
| 135 | 'btn-primary': selectedRemito == key | 135 | 'btn-primary': selectedRemito == key |
| 136 | }" | 136 | }" |
| 137 | foca-focus="selectedRemito == {{key}}" | 137 | foca-focus="selectedRemito == {{key}}" |
| 138 | ng-keydown="itemRemito($event.keyCode)" | 138 | ng-keydown="itemRemito($event.keyCode)" |
| 139 | > | 139 | > |
| 140 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 140 | <i class="fa fa-circle-thin" aria-hidden="true"></i> |
| 141 | </button> | 141 | </button> |
| 142 | </td> | 142 | </td> |
| 143 | </tr> | 143 | </tr> |
| 144 | <tr ng-repeat-end uib-collapse="!isCollapsed"> | 144 | <tr ng-repeat-end uib-collapse="!isCollapsed"> |
| 145 | <td colspan="6"> | 145 | <td colspan="6"> |
| 146 | <table class="table table-sm"> | 146 | <table class="table table-sm"> |
| 147 | <thead> | 147 | <thead> |
| 148 | <tr> | 148 | <tr> |
| 149 | <th>Código</th> | 149 | <th>Código</th> |
| 150 | <th>Descripción</th> | 150 | <th>Descripción</th> |
| 151 | <th>Cantidad</th> | 151 | <th>Cantidad</th> |
| 152 | </tr> | 152 | </tr> |
| 153 | </thead> | 153 | </thead> |
| 154 | <tbody> | 154 | <tbody> |
| 155 | <tr ng-repeat="(key, articulo) in verProductos"> | 155 | <tr ng-repeat="(key, articulo) in verProductos"> |
| 156 | <td>{{articulo.codigo}}</td> | 156 | <td>{{articulo.codigo}}</td> |
| 157 | <td>{{articulo.descripcion}}</td> | 157 | <td>{{articulo.descripcion}}</td> |
| 158 | <td>{{articulo.cantidad}}</td> | 158 | <td>{{articulo.cantidad}}</td> |
| 159 | </tr> | 159 | </tr> |
| 160 | </tbody> | 160 | </tbody> |
| 161 | </table> | 161 | </table> |
| 162 | </td> | 162 | </td> |
| 163 | </tr> | 163 | </tr> |
| 164 | </tbody> | 164 | </tbody> |
| 165 | </table> | 165 | </table> |
| 166 | </div> | 166 | </div> |
| 167 | <div class="modal-footer py-1"> | 167 | <div class="modal-footer py-1"> |
| 168 | <nav ng-show="currentPageRemitos.length > 0 && primerBusqueda" class="mr-auto"> | 168 | <nav ng-show="currentPageRemitos.length > 0 && primerBusqueda" class="mr-auto"> |
| 169 | <ul class="pagination pagination-sm justify-content mb-0"> | 169 | <ul class="pagination pagination-sm justify-content mb-0"> |
| 170 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 170 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 171 | <a | 171 | <a |
| 172 | class="page-link" | 172 | class="page-link" |
| 173 | href="javascript:void();" | 173 | href="javascript:void();" |
| 174 | ng-click="selectPage(currentPage - 1)" | 174 | ng-click="selectPage(currentPage - 1)" |
| 175 | > | 175 | > |
| 176 | <span aria-hidden="true">«</span> | 176 | <span aria-hidden="true">«</span> |
| 177 | <span class="sr-only">Anterior</span> | 177 | <span class="sr-only">Anterior</span> |
| 178 | </a> | 178 | </a> |
| 179 | </li> | 179 | </li> |
| 180 | <li | 180 | <li |
| 181 | class="page-item" | 181 | class="page-item" |
| 182 | ng-repeat="pagina in paginas" | 182 | ng-repeat="pagina in paginas" |
| 183 | ng-class="{'active': pagina == currentPage}" | 183 | ng-class="{'active': pagina == currentPage}" |
| 184 | > | 184 | > |
| 185 | <a | 185 | <a |
| 186 | class="page-link" | 186 | class="page-link" |
| 187 | href="javascript:void();" | 187 | href="javascript:void();" |
| 188 | ng-click="selectPage(pagina)" | 188 | ng-click="selectPage(pagina)" |
| 189 | ng-bind="pagina" | 189 | ng-bind="pagina" |
| 190 | ></a> | 190 | ></a> |
| 191 | </li> | 191 | </li> |
| 192 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 192 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 193 | <a | 193 | <a |
| 194 | class="page-link" | 194 | class="page-link" |
| 195 | href="javascript:void();" | 195 | href="javascript:void();" |
| 196 | ng-click="selectPage(currentPage + 1)" | 196 | ng-click="selectPage(currentPage + 1)" |
| 197 | > | 197 | > |
| 198 | <span aria-hidden="true">»</span> | 198 | <span aria-hidden="true">»</span> |
| 199 | <span class="sr-only">Siguiente</span> | 199 | <span class="sr-only">Siguiente</span> |
| 200 | </a> | 200 | </a> |
| 201 | </li> | 201 | </li> |
| 202 | </ul> | 202 | </ul> |
| 203 | </nav> | 203 | </nav> |
| 204 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 204 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 205 | </div> | 205 | </div> |
| 206 | 206 |