Commit 4ddfb71f94ce8f74fbb8a30ce0a8e5a89fdeff9e
1 parent
1b4a23820b
Exists in
master
and in
2 other branches
Nuevo diseño en mobile, color icons
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
src/views/remito.html
| 1 | <div class="crear-nota-remito foca-crear row"> | 1 | <div class="crear-nota-remito foca-crear row"> |
| 2 | <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0 col-lg-12"> | 2 | <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0 col-lg-12"> |
| 3 | <div class="row"> | 3 | <div class="row"> |
| 4 | <div class="col-md-10 col-lg-12"> | 4 | <div class="col-md-10 col-lg-12"> |
| 5 | <div class="row panel-informativo"> | 5 | <div class="row panel-informativo"> |
| 6 | <div class="col-12"> | 6 | <div class="col-12"> |
| 7 | <div class="row titulares"> | 7 | <div class="row titulares"> |
| 8 | <div class="col-12 col-sm-3 border border-white border-left-0 align-middle nota-remito"> | 8 | <div class="col-12 col-sm-3 border border-white border-left-0 align-middle nota-remito"> |
| 9 | <h5 class="mb-0">REMITO</h5> | 9 | <h5 class="mb-0">REMITO</h5> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="col-12 col-sm-3 border border-white align-middle numero-remito" | 11 | <div class="col-12 col-sm-3 border border-white align-middle numero-remito" |
| 12 | > | 12 | > |
| 13 | Nº {{puntoVenta}}-{{comprobante}} | 13 | Nº {{puntoVenta}}-{{comprobante}} |
| 14 | <button | 14 | <button |
| 15 | class="btn btn-xs btn-outline-light float-right" | 15 | class="btn btn-xs btn-outline-light float-right" |
| 16 | type="button" | 16 | type="button" |
| 17 | ng-click="seleccionarRemito()" | 17 | ng-click="seleccionarRemito()" |
| 18 | > | 18 | > |
| 19 | <i class="fa fa-search"></i> | 19 | <i class="fa fa-search"></i> |
| 20 | </button> | 20 | </button> |
| 21 | </div> | 21 | </div> |
| 22 | <div class="col-7 col-sm-3 border border-white align-middle"> | 22 | <div class="col-7 col-sm-3 border border-white align-middle"> |
| 23 | Fecha: | 23 | Fecha: |
| 24 | <span | 24 | <span |
| 25 | ng-show="!datepickerAbierto" | 25 | ng-show="!datepickerAbierto" |
| 26 | ng-bind="now | date:'dd/MM/yyyy'" | 26 | ng-bind="now | date:'dd/MM/yyyy'" |
| 27 | ng-click="datepickerAbierto = true" | 27 | ng-click="datepickerAbierto = true" |
| 28 | > | 28 | > |
| 29 | </span> | 29 | </span> |
| 30 | <input | 30 | <input |
| 31 | ng-show="datepickerAbierto" | 31 | ng-show="datepickerAbierto" |
| 32 | type="date" | 32 | type="date" |
| 33 | ng-model="now" | 33 | ng-model="now" |
| 34 | ng-change="datepickerAbierto = false" | 34 | ng-change="datepickerAbierto = false" |
| 35 | ng-blur="datepickerAbierto = false" | 35 | ng-blur="datepickerAbierto = false" |
| 36 | class="form-control form-control-sm col-8 float-right" | 36 | class="form-control form-control-sm col-8 float-right" |
| 37 | foca-focus="datepickerAbierto" | 37 | foca-focus="datepickerAbierto" |
| 38 | hasta-hoy | 38 | hasta-hoy |
| 39 | /> | 39 | /> |
| 40 | </div> | 40 | </div> |
| 41 | <div class="col-5 col-sm-3 border border-white border-right-0 align-middle"> | 41 | <div class="col-5 col-sm-3 border border-white border-right-0 align-middle"> |
| 42 | Hora: | 42 | Hora: |
| 43 | <span | 43 | <span |
| 44 | ng-show="!datepickerAbierto" | 44 | ng-show="!datepickerAbierto" |
| 45 | ng-bind="now | date:'HH:mm'" | 45 | ng-bind="now | date:'HH:mm'" |
| 46 | ng-click="datepickerAbierto = true" | 46 | ng-click="datepickerAbierto = true" |
| 47 | > | 47 | > |
| 48 | </span> | 48 | </span> |
| 49 | </div> | 49 | </div> |
| 50 | </div> | 50 | </div> |
| 51 | <div class="row py-2"> | 51 | <div class="row py-2"> |
| 52 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> | 52 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> |
| 53 | <span class="label" ng-bind="cab.label"></span> | 53 | <span class="label" ng-bind="cab.label"></span> |
| 54 | <span class="valor" ng-bind="cab.valor" ng-if="!isNumber(cab.valor)"></span> | 54 | <span class="valor" ng-bind="cab.valor" ng-if="!isNumber(cab.valor)"></span> |
| 55 | <span class="valor" ng-bind="cab.valor | number:2" ng-if="isNumber(cab.valor)"></span> | 55 | <span class="valor" ng-bind="cab.valor | number:2" ng-if="isNumber(cab.valor)"></span> |
| 56 | </div> | 56 | </div> |
| 57 | <a | 57 | <a |
| 58 | class="btn col-12 btn-secondary d-sm-none" | 58 | class="btn col-12 btn-secondary d-sm-none" |
| 59 | ng-show="cabecera.length > 0" | 59 | ng-show="cabecera.length > 0" |
| 60 | ng-click="showCabecera = !showCabecera" | 60 | ng-click="showCabecera = !showCabecera" |
| 61 | > | 61 | > |
| 62 | <i | 62 | <i |
| 63 | class="fa fa-chevron-down" | 63 | class="fa fa-chevron-down" |
| 64 | ng-hide="showCabecera" | 64 | ng-hide="showCabecera" |
| 65 | aria-hidden="true" | 65 | aria-hidden="true" |
| 66 | > | 66 | > |
| 67 | </i> | 67 | </i> |
| 68 | <i | 68 | <i |
| 69 | class="fa fa-chevron-up" | 69 | class="fa fa-chevron-up" |
| 70 | ng-show="showCabecera" | 70 | ng-show="showCabecera" |
| 71 | aria-hidden="true"> | 71 | aria-hidden="true"> |
| 72 | </i> | 72 | </i> |
| 73 | </a> | 73 | </a> |
| 74 | </div> | 74 | </div> |
| 75 | </div> | 75 | </div> |
| 76 | </div> | 76 | </div> |
| 77 | 77 | ||
| 78 | </div> | 78 | </div> |
| 79 | </div> | 79 | </div> |
| 80 | </form> | 80 | </form> |
| 81 | <div class="col-lg-12"> | 81 | <div class="col-lg-12"> |
| 82 | <div class="row mt-4"> | 82 | <div class="row mt-4"> |
| 83 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> | 83 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> |
| 84 | <div class="row p-1 botonera-secundaria px-5 py-2"> | 84 | <div class="row p-1 botonera-secundaria px-5 py-2"> |
| 85 | <div class="col-12"> | 85 | <div class="col-12"> |
| 86 | <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador> | 86 | <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador> |
| 87 | </div> | 87 | </div> |
| 88 | </div> | 88 | </div> |
| 89 | <!-- PC --> | 89 | <!-- PC --> |
| 90 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> | 90 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> |
| 91 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 91 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
| 92 | <thead> | 92 | <thead> |
| 93 | <tr class="d-flex"> | 93 | <tr class="d-flex"> |
| 94 | <th class="">#</th> | 94 | <th class="">#</th> |
| 95 | <th class="col">Código</th> | 95 | <th class="col">Código</th> |
| 96 | <th class="col-4">Descripción</th> | 96 | <th class="col-4">Descripción</th> |
| 97 | <th class="col text-right">Cantidad</th> | 97 | <th class="col text-right">Cantidad</th> |
| 98 | <th class="col text-right">Precio Unitario</th> | 98 | <th class="col text-right">Precio Unitario</th> |
| 99 | <th class="col text-right">SubTotal</th> | 99 | <th class="col text-right">SubTotal</th> |
| 100 | <th class="text-right"> | 100 | <th class="text-right"> |
| 101 | <button | 101 | <button |
| 102 | class="btn btn-outline-secondary selectable" | 102 | class="btn btn-outline-light selectable" |
| 103 | ng-click="show = !show; masMenos()" | 103 | ng-click="show = !show; masMenos()" |
| 104 | > | 104 | > |
| 105 | <i | 105 | <i |
| 106 | class="fa fa-chevron-down" | 106 | class="fa fa-chevron-down" |
| 107 | ng-show="show" | 107 | ng-show="show" |
| 108 | aria-hidden="true" | 108 | aria-hidden="true" |
| 109 | > | 109 | > |
| 110 | </i> | 110 | </i> |
| 111 | <i | 111 | <i |
| 112 | class="fa fa-chevron-up" | 112 | class="fa fa-chevron-up" |
| 113 | ng-hide="show" | 113 | ng-hide="show" |
| 114 | aria-hidden="true"> | 114 | aria-hidden="true"> |
| 115 | </i> | 115 | </i> |
| 116 | </button> | 116 | </button> |
| 117 | </th> | 117 | </th> |
| 118 | </tr> | 118 | </tr> |
| 119 | </thead> | 119 | </thead> |
| 120 | <tbody class="tabla-articulo-body"> | 120 | <tbody class="tabla-articulo-body"> |
| 121 | <tr | 121 | <tr |
| 122 | ng-repeat="(key, articulo) in articulosTabla" | 122 | ng-repeat="(key, articulo) in articulosTabla" |
| 123 | ng-show="show || key == (articulosTabla.length - 1)" | 123 | ng-show="show || key == (articulosTabla.length - 1)" |
| 124 | class="d-flex" | 124 | class="d-flex" |
| 125 | > | 125 | > |
| 126 | <td ng-bind="key + 1"></td> | 126 | <td ng-bind="key + 1"></td> |
| 127 | <td | 127 | <td |
| 128 | class="col" | 128 | class="col" |
| 129 | ng-bind="articulo.sector + '-' + articulo.codigo" | 129 | ng-bind="articulo.sector + '-' + articulo.codigo" |
| 130 | ></td> | 130 | ></td> |
| 131 | <td | 131 | <td |
| 132 | class="col-4" | 132 | class="col-4" |
| 133 | ng-bind="articulo.descripcion" | 133 | ng-bind="articulo.descripcion" |
| 134 | ></td> | 134 | ></td> |
| 135 | <td class="col text-right"> | 135 | <td class="col text-right"> |
| 136 | <input | 136 | <input |
| 137 | ng-show="articulo.editCantidad" | 137 | ng-show="articulo.editCantidad" |
| 138 | ng-model="articulo.cantidad" | 138 | ng-model="articulo.cantidad" |
| 139 | class="form-control" | 139 | class="form-control" |
| 140 | foca-tipo-input | 140 | foca-tipo-input |
| 141 | min="1" | 141 | min="1" |
| 142 | foca-focus="articulo.editCantidad" | 142 | foca-focus="articulo.editCantidad" |
| 143 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 143 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
| 144 | ng-focus="selectFocus($event)" | 144 | ng-focus="selectFocus($event)" |
| 145 | teclado-virtual | 145 | teclado-virtual |
| 146 | > | 146 | > |
| 147 | <i | 147 | <i |
| 148 | class="selectable" | 148 | class="selectable" |
| 149 | ng-click="cambioEdit(articulo, 'cantidad')" | 149 | ng-click="cambioEdit(articulo, 'cantidad')" |
| 150 | ng-hide="articulo.editCantidad" | 150 | ng-hide="articulo.editCantidad" |
| 151 | ng-bind="articulo.cantidad"> | 151 | ng-bind="articulo.cantidad"> |
| 152 | </i> | 152 | </i> |
| 153 | </td> | 153 | </td> |
| 154 | <td class="col text-right"> | 154 | <td class="col text-right"> |
| 155 | <input | 155 | <input |
| 156 | ng-show="articulo.editPrecio" | 156 | ng-show="articulo.editPrecio" |
| 157 | ng-model="articulo.precio" | 157 | ng-model="articulo.precio" |
| 158 | class="form-control" | 158 | class="form-control" |
| 159 | foca-tipo-input | 159 | foca-tipo-input |
| 160 | min="1" | 160 | min="1" |
| 161 | step="0.0001" | 161 | step="0.0001" |
| 162 | foca-focus="articulo.editPrecio" | 162 | foca-focus="articulo.editPrecio" |
| 163 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 163 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
| 164 | ng-focus="selectFocus($event)" | 164 | ng-focus="selectFocus($event)" |
| 165 | teclado-virtual | 165 | teclado-virtual |
| 166 | > | 166 | > |
| 167 | <i | 167 | <i |
| 168 | class="selectable" | 168 | class="selectable" |
| 169 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" | 169 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" |
| 170 | ng-hide="articulo.editPrecio" | 170 | ng-hide="articulo.editPrecio" |
| 171 | ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"> | 171 | ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"> |
| 172 | </i> | 172 | </i> |
| 173 | </td> | 173 | </td> |
| 174 | <td | 174 | <td |
| 175 | class="col text-right" | 175 | class="col text-right" |
| 176 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"> | 176 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"> |
| 177 | </td> | 177 | </td> |
| 178 | <td class="text-center"> | 178 | <td class="text-center"> |
| 179 | <button | 179 | <button |
| 180 | class="btn btn-outline-secondary" | 180 | class="btn btn-outline-light" |
| 181 | ng-click="quitarArticulo(key)" | 181 | ng-click="quitarArticulo(key)" |
| 182 | > | 182 | > |
| 183 | <i class="fa fa-trash"></i> | 183 | <i class="fa fa-trash"></i> |
| 184 | </button> | 184 | </button> |
| 185 | </td> | 185 | </td> |
| 186 | </tr> | 186 | </tr> |
| 187 | </tbody> | 187 | </tbody> |
| 188 | <tfoot> | 188 | <tfoot> |
| 189 | <tr ng-show="!cargando" class="d-flex"> | 189 | <tr ng-show="!cargando" class="d-flex"> |
| 190 | <td | 190 | <td |
| 191 | class="align-middle" | 191 | class="align-middle" |
| 192 | ng-bind="articulosTabla.length + 1" | 192 | ng-bind="articulosTabla.length + 1" |
| 193 | ></td> | 193 | ></td> |
| 194 | <td class="col"> | 194 | <td class="col"> |
| 195 | <input | 195 | <input |
| 196 | class="form-control" | 196 | class="form-control" |
| 197 | ng-model="articuloACargar.sectorCodigo" | 197 | ng-model="articuloACargar.sectorCodigo" |
| 198 | readonly | 198 | readonly |
| 199 | > | 199 | > |
| 200 | </td> | 200 | </td> |
| 201 | <td class="col-4 tabla-articulo-descripcion"> | 201 | <td class="col-4 tabla-articulo-descripcion"> |
| 202 | <input | 202 | <input |
| 203 | class="form-control" | 203 | class="form-control" |
| 204 | ng-model="articuloACargar.descripcion" | 204 | ng-model="articuloACargar.descripcion" |
| 205 | readonly | 205 | readonly |
| 206 | > | 206 | > |
| 207 | </td> | 207 | </td> |
| 208 | <td class="col text-right"> | 208 | <td class="col text-right"> |
| 209 | <input | 209 | <input |
| 210 | class="form-control" | 210 | class="form-control" |
| 211 | foca-tipo-input | 211 | foca-tipo-input |
| 212 | min="1" | 212 | min="1" |
| 213 | ng-model="articuloACargar.cantidad" | 213 | ng-model="articuloACargar.cantidad" |
| 214 | foca-focus="!cargando" | 214 | foca-focus="!cargando" |
| 215 | esc-key="resetFilter()" | 215 | esc-key="resetFilter()" |
| 216 | ng-keypress="agregarATabla($event.keyCode)" | 216 | ng-keypress="agregarATabla($event.keyCode)" |
| 217 | teclado-virtual | 217 | teclado-virtual |
| 218 | > | 218 | > |
| 219 | </td> | 219 | </td> |
| 220 | <td class="col text-right"> | 220 | <td class="col text-right"> |
| 221 | <input | 221 | <input |
| 222 | class="form-control" | 222 | class="form-control" |
| 223 | ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4" | 223 | ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4" |
| 224 | ng-show="idLista != -1" | 224 | ng-show="idLista != -1" |
| 225 | readonly | 225 | readonly |
| 226 | > | 226 | > |
| 227 | <input | 227 | <input |
| 228 | class="form-control" | 228 | class="form-control" |
| 229 | foca-tipo-input | 229 | foca-tipo-input |
| 230 | step="0.0001" | 230 | step="0.0001" |
| 231 | ng-model="articuloACargar.precio" | 231 | ng-model="articuloACargar.precio" |
| 232 | esc-key="resetFilter()" | 232 | esc-key="resetFilter()" |
| 233 | ng-keypress="agregarATabla($event.keyCode)" | 233 | ng-keypress="agregarATabla($event.keyCode)" |
| 234 | ng-show="idLista == -1" | 234 | ng-show="idLista == -1" |
| 235 | teclado-virtual | 235 | teclado-virtual |
| 236 | > | 236 | > |
| 237 | </td> | 237 | </td> |
| 238 | <td class="col text-right"> | 238 | <td class="col text-right"> |
| 239 | <input | 239 | <input |
| 240 | class="form-control" | 240 | class="form-control" |
| 241 | ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO" | 241 | ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO" |
| 242 | readonly | 242 | readonly |
| 243 | ></td> | 243 | ></td> |
| 244 | <td class="text-center align-middle"> | 244 | <td class="text-center align-middle"> |
| 245 | <button | 245 | <button |
| 246 | class="btn btn-outline-secondary" | 246 | class="btn btn-outline-light" |
| 247 | ng-click="agregarATabla(13)" | 247 | ng-click="agregarATabla(13)" |
| 248 | > | 248 | > |
| 249 | <i class="fa fa-save"></i> | 249 | <i class="fa fa-save"></i> |
| 250 | </button> | 250 | </button> |
| 251 | </td> | 251 | </td> |
| 252 | </tr> | 252 | </tr> |
| 253 | 253 | ||
| 254 | <tr class="d-flex"> | 254 | <tr class="d-flex"> |
| 255 | <td colspan="4" class="no-border-top"> | 255 | <td colspan="4" class="no-border-top"> |
| 256 | <strong>Items:</strong> | 256 | <strong>Items:</strong> |
| 257 | <a ng-bind="articulosTabla.length"></a> | 257 | <a ng-bind="articulosTabla.length"></a> |
| 258 | </td> | 258 | </td> |
| 259 | <td class="text-right ml-auto table-celda-total no-border-top"> | 259 | <td class="text-right ml-auto table-celda-total no-border-top"> |
| 260 | <h3>Total:</h3> | 260 | <h3>Total:</h3> |
| 261 | </td> | 261 | </td> |
| 262 | <td class="table-celda-total text-right no-border-top" colspan="1"> | 262 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
| 263 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> | 263 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> |
| 264 | </td> | 264 | </td> |
| 265 | <td class="text-right no-border-top"> | 265 | <td class="text-right no-border-top"> |
| 266 | <button | 266 | <button |
| 267 | type="button" | 267 | type="button" |
| 268 | class="btn btn-default btn-sm" | 268 | class="btn btn-default btn-sm" |
| 269 | > | 269 | > |
| 270 | Totales | 270 | Totales |
| 271 | </button> | 271 | </button> |
| 272 | </td> | 272 | </td> |
| 273 | </tr> | 273 | </tr> |
| 274 | </tfoot> | 274 | </tfoot> |
| 275 | </table> | 275 | </table> |
| 276 | </div> | 276 | </div> |
| 277 | 277 | ||
| 278 | <!-- MOBILE --> | 278 | <!-- MOBILE --> |
| 279 | <div class="row d-sm-none"> | 279 | <div class="row d-sm-none"> |
| 280 | <table class="table table-sm table-striped table-dark margin-bottom-mobile"> | 280 | <table class="table table-sm table-striped tabla-articulo margin-bottom-mobile"> |
| 281 | <thead> | 281 | <thead> |
| 282 | <tr class="d-flex"> | 282 | <tr class="d-flex"> |
| 283 | <th class="">#</th> | 283 | <th class="">#</th> |
| 284 | <th class="col px-0"> | 284 | <th class="col px-0"> |
| 285 | <div class="d-flex"> | 285 | <div class="d-flex"> |
| 286 | <div class="col-4 px-1">Código</div> | 286 | <div class="col-4 px-1">Código</div> |
| 287 | <div class="col-8 px-1">Descripción</div> | 287 | <div class="col-8 px-1">Descripción</div> |
| 288 | </div> | 288 | </div> |
| 289 | <div class="d-flex"> | 289 | <div class="d-flex"> |
| 290 | <div class="col-3 px-1">Cantidad</div> | 290 | <div class="col-3 px-1">Cantidad</div> |
| 291 | <div class="col px-1 text-right">P. Uni.</div> | 291 | <div class="col px-1 text-right">P. Uni.</div> |
| 292 | <div class="col px-1 text-right">Subtotal</div> | 292 | <div class="col px-1 text-right">Subtotal</div> |
| 293 | </div> | 293 | </div> |
| 294 | </th> | 294 | </th> |
| 295 | <th class="text-center tamaño-boton"> | 295 | <th class="text-center tamaño-boton"> |
| 296 | | 296 | |
| 297 | </th> | 297 | </th> |
| 298 | </tr> | 298 | </tr> |
| 299 | </thead> | 299 | </thead> |
| 300 | <tbody> | 300 | <tbody> |
| 301 | <tr | 301 | <tr |
| 302 | ng-repeat="(key, articulo) in articulosTabla" | 302 | ng-repeat="(key, articulo) in articulosTabla" |
| 303 | ng-show="show || key == articulosTabla.length - 1" | 303 | ng-show="show || key == articulosTabla.length - 1" |
| 304 | > | 304 | > |
| 305 | <td class="w-100 align-middle d-flex p-0"> | 305 | <td class="w-100 align-middle d-flex p-0"> |
| 306 | <div class="align-middle p-1"> | 306 | <div class="align-middle p-1"> |
| 307 | <span ng-bind="key+1" class="align-middle"></span> | 307 | <span ng-bind="key+1" class="align-middle"></span> |
| 308 | </div> | 308 | </div> |
| 309 | <div class="col px-0"> | 309 | <div class="col px-0"> |
| 310 | <div class="d-flex"> | 310 | <div class="d-flex"> |
| 311 | <div class="col-4 px-1"> | 311 | <div class="col-4 px-1"> |
| 312 | <span | 312 | <span |
| 313 | ng-bind="articulo.sector + '-' + articulo.codigo" | 313 | ng-bind="articulo.sector + '-' + articulo.codigo" |
| 314 | ></span> | 314 | ></span> |
| 315 | </div> | 315 | </div> |
| 316 | <div class="col-8 px-1"> | 316 | <div class="col-8 px-1"> |
| 317 | <span | 317 | <span |
| 318 | ng-bind="'x' + articulo.cantidad" | 318 | ng-bind="'x' + articulo.cantidad" |
| 319 | ng-hide="articulo.editCantidad" | 319 | ng-hide="articulo.editCantidad" |
| 320 | ></span> | 320 | ></span> |
| 321 | <i | 321 | <i |
| 322 | class="fa fa-pencil text-white-50" | 322 | class="fa fa-pencil text-white-50" |
| 323 | aria-hidden="true" | 323 | aria-hidden="true" |
| 324 | ng-hide="articulo.editCantidad" | 324 | ng-hide="articulo.editCantidad" |
| 325 | ng-click="articulo.editCantidad = true" | 325 | ng-click="articulo.editCantidad = true" |
| 326 | ></i> | 326 | ></i> |
| 327 | <input | 327 | <input |
| 328 | ng-show="articulo.editCantidad" | 328 | ng-show="articulo.editCantidad" |
| 329 | ng-model="articulo.cantidad" | 329 | ng-model="articulo.cantidad" |
| 330 | class="form-control" | 330 | class="form-control" |
| 331 | foca-tipo-input | 331 | foca-tipo-input |
| 332 | min="1" | 332 | min="1" |
| 333 | step="0.001" | 333 | step="0.001" |
| 334 | foca-focus="articulo.editCantidad" | 334 | foca-focus="articulo.editCantidad" |
| 335 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 335 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
| 336 | ng-focus="selectFocus($event)" | 336 | ng-focus="selectFocus($event)" |
| 337 | > | 337 | > |
| 338 | </div> | 338 | </div> |
| 339 | </div> | 339 | </div> |
| 340 | <div class="d-flex"> | 340 | <div class="d-flex"> |
| 341 | <div class="col-3 px-1"> | 341 | <div class="col-3 px-1"> |
| 342 | <span ng-bind="'x' + articulo.cantidad"></span> | 342 | <span ng-bind="'x' + articulo.cantidad"></span> |
| 343 | </div> | 343 | </div> |
| 344 | <div class="col px-1 text-right"> | 344 | <div class="col px-1 text-right"> |
| 345 | <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span> | 345 | <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span> |
| 346 | </div> | 346 | </div> |
| 347 | <div class="col px-1 text-right"> | 347 | <div class="col px-1 text-right"> |
| 348 | <span | 348 | <span |
| 349 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO" | 349 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO" |
| 350 | > | 350 | > |
| 351 | </span> | 351 | </span> |
| 352 | </div> | 352 | </div> |
| 353 | </div> | 353 | </div> |
| 354 | </div> | 354 | </div> |
| 355 | <div class="align-middle p-1"> | 355 | <div class="align-middle p-1"> |
| 356 | <button | 356 | <button |
| 357 | class="btn btn-outline-secondary" | 357 | class="btn btn-outline-light" |
| 358 | ng-click="quitarArticulo(key)" | 358 | ng-click="quitarArticulo(key)" |
| 359 | > | 359 | > |
| 360 | <i class="fa fa-trash"></i> | 360 | <i class="fa fa-trash"></i> |
| 361 | </button> | 361 | </button> |
| 362 | </div> | 362 | </div> |
| 363 | </td> | 363 | </td> |
| 364 | </tr> | 364 | </tr> |
| 365 | </tbody> | 365 | </tbody> |
| 366 | <tfoot> | 366 | <tfoot> |
| 367 | <!-- CARGANDO ITEM --> | 367 | <!-- CARGANDO ITEM --> |
| 368 | <tr ng-show="!cargando" class="d-flex"> | 368 | <tr ng-show="!cargando" class="d-flex"> |
| 369 | <td | 369 | <td |
| 370 | class="align-middle p-1" | 370 | class="align-middle p-1" |
| 371 | ng-bind="articulosTabla.length + 1" | 371 | ng-bind="articulosTabla.length + 1" |
| 372 | ></td> | 372 | ></td> |
| 373 | <td class="col p-0"> | 373 | <td class="col p-0"> |
| 374 | <div class="d-flex"> | 374 | <div class="d-flex"> |
| 375 | <div class="col-4 px-1"> | 375 | <div class="col-4 px-1"> |
| 376 | <span | 376 | <span |
| 377 | ng-bind="articuloACargar.sectorCodigo" | 377 | ng-bind="articuloACargar.sectorCodigo" |
| 378 | ></span> | 378 | ></span> |
| 379 | </div> | 379 | </div> |
| 380 | <div class="col-8 px-1"> | 380 | <div class="col-8 px-1"> |
| 381 | <span ng-bind="articuloACargar.descripcion"></span> | 381 | <span ng-bind="articuloACargar.descripcion"></span> |
| 382 | </div> | 382 | </div> |
| 383 | </div> | 383 | </div> |
| 384 | <div class="d-flex"> | 384 | <div class="d-flex"> |
| 385 | <div class="col-3 px-1 m-1"> | 385 | <div class="col-3 px-1 m-1"> |
| 386 | <input | 386 | <input |
| 387 | class="form-control p-1" | 387 | class="form-control p-1" |
| 388 | foca-tipo-input | 388 | foca-tipo-input |
| 389 | min="1" | 389 | min="1" |
| 390 | ng-model="articuloACargar.cantidad" | 390 | ng-model="articuloACargar.cantidad" |
| 391 | foca-focus="!cargando" | 391 | foca-focus="!cargando" |
| 392 | ng-keypress="agregarATabla($event.keyCode)" | 392 | ng-keypress="agregarATabla($event.keyCode)" |
| 393 | style="height: auto; line-height: 1.1em" | 393 | style="height: auto; line-height: 1.1em" |
| 394 | > | 394 | > |
| 395 | </div> | 395 | </div> |
| 396 | <div class="col px-1 text-right"> | 396 | <div class="col px-1 text-right"> |
| 397 | <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span> | 397 | <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span> |
| 398 | </div> | 398 | </div> |
| 399 | <div class="col px-1 text-right"> | 399 | <div class="col px-1 text-right"> |
| 400 | <span | 400 | <span |
| 401 | ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO" | 401 | ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO" |
| 402 | > | 402 | > |
| 403 | </span> | 403 | </span> |
| 404 | </div> | 404 | </div> |
| 405 | </div> | 405 | </div> |
| 406 | </td> | 406 | </td> |
| 407 | <td class="text-center align-middle"> | 407 | <td class="text-center align-middle"> |
| 408 | <button | 408 | <button |
| 409 | class="btn btn-outline-secondary" | 409 | class="btn btn-outline-light" |
| 410 | ng-click="agregarATabla(13)" | 410 | ng-click="agregarATabla(13)" |
| 411 | > | 411 | > |
| 412 | <i class="fa fa-save"></i> | 412 | <i class="fa fa-save"></i> |
| 413 | </button> | 413 | </button> |
| 414 | </td> | 414 | </td> |
| 415 | </tr> | 415 | </tr> |
| 416 | <!-- TOOGLE EXPANDIR --> | 416 | <!-- TOOGLE EXPANDIR --> |
| 417 | <tr> | 417 | <tr> |
| 418 | <td class="col"> | 418 | <td class="col"> |
| 419 | <button | 419 | <button |
| 420 | class="btn btn-outline-secondary selectable w-100" | 420 | class="btn btn-outline-light selectable w-100" |
| 421 | ng-click="show = !show; masMenos()" | 421 | ng-click="show = !show; masMenos()" |
| 422 | ng-show="articulosTabla.length > 0" | 422 | ng-show="articulosTabla.length > 0" |
| 423 | > | 423 | > |
| 424 | <i | 424 | <i |
| 425 | class="fa fa-chevron-down" | 425 | class="fa fa-chevron-down" |
| 426 | ng-hide="show" | 426 | ng-hide="show" |
| 427 | aria-hidden="true" | 427 | aria-hidden="true" |
| 428 | > | 428 | > |
| 429 | </i> | 429 | </i> |
| 430 | <i | 430 | <i |
| 431 | class="fa fa-chevron-up" | 431 | class="fa fa-chevron-up" |
| 432 | ng-show="show" | 432 | ng-show="show" |
| 433 | aria-hidden="true"> | 433 | aria-hidden="true"> |
| 434 | </i> | 434 | </i> |
| 435 | </button> | 435 | </button> |
| 436 | </td> | 436 | </td> |
| 437 | </tr> | 437 | </tr> |
| 438 | <!-- FOOTER --> | 438 | <!-- FOOTER --> |
| 439 | <tr class="d-flex"> | 439 | <tr class="d-flex"> |
| 440 | <td class="align-middle no-border-top" colspan="2"> | 440 | <td class="align-middle no-border-top" colspan="2"> |
| 441 | <strong>Cantidad Items:</strong> | 441 | <strong>Cantidad Items:</strong> |
| 442 | <a ng-bind="articulosTabla.length"></a> | 442 | <a ng-bind="articulosTabla.length"></a> |
| 443 | </td> | 443 | </td> |
| 444 | <td class="text-right ml-auto table-celda-total no-border-top"> | 444 | <td class="text-right ml-auto table-celda-total no-border-top"> |
| 445 | <h3>Total:</h3> | 445 | <h3>Total:</h3> |
| 446 | </td> | 446 | </td> |
| 447 | <td class="table-celda-total text-right no-border-top"> | 447 | <td class="table-celda-total text-right no-border-top"> |
| 448 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> | 448 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> |
| 449 | </td> | 449 | </td> |
| 450 | </tr> | 450 | </tr> |
| 451 | </tfoot> | 451 | </tfoot> |
| 452 | </table> | 452 | </table> |
| 453 | </div> | 453 | </div> |
| 454 | </div> | 454 | </div> |
| 455 | <div class="col-auto my-2 col-lg-2 botonera-lateral d-none"> | 455 | <div class="col-auto my-2 col-lg-2 botonera-lateral d-none"> |
| 456 | <div class="col-12 mt-auto"> | 456 | <div class="col-12 mt-auto"> |
| 457 | <button | 457 | <button |
| 458 | ng-click="crearRemito()" | 458 | ng-click="crearRemito()" |
| 459 | type="submit" | 459 | type="submit" |
| 460 | title="Crear nota remito" | 460 | title="Crear nota remito" |
| 461 | class="btn btn-default btn-block mb-2 border border-dark" | 461 | class="btn btn-default btn-block mb-2 border border-dark" |
| 462 | ng-disabled="remito.estado === 5 || saveLoading" | 462 | ng-disabled="remito.estado === 5 || saveLoading" |
| 463 | ><strong>GUARDAR</strong> | 463 | ><strong>GUARDAR</strong> |
| 464 | </button> | 464 | </button> |
| 465 | <button | 465 | <button |
| 466 | type="button" | 466 | type="button" |
| 467 | title="Pausar" | 467 | title="Pausar" |
| 468 | class="btn btn-default btn-block border border-dark"> | 468 | class="btn btn-default btn-block border border-dark"> |
| 469 | <strong>PAUSAR</strong> | 469 | <strong>PAUSAR</strong> |
| 470 | </button> | 470 | </button> |
| 471 | <button | 471 | <button |
| 472 | ng-click="salir()" | 472 | ng-click="salir()" |
| 473 | type="button" | 473 | type="button" |
| 474 | title="Salir" | 474 | title="Salir" |
| 475 | class="btn btn-default btn-block border border-dark"> | 475 | class="btn btn-default btn-block border border-dark"> |
| 476 | <strong>SALIR</strong> | 476 | <strong>SALIR</strong> |
| 477 | </button> | 477 | </button> |
| 478 | </div> | 478 | </div> |
| 479 | </div> | 479 | </div> |
| 480 | </div> | 480 | </div> |
| 481 | </div> | 481 | </div> |
| 482 | <div class="row d-md-none fixed-bottom"> | 482 | <div class="row d-md-none fixed-bottom"> |
| 483 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 483 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
| 484 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 484 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
| 485 | <span | 485 | <span |
| 486 | class="mr-3 ml-auto" | 486 | class="mr-3 ml-auto" |
| 487 | ng-class="saveLoading ? 'text-muted' : ''" | 487 | ng-class="saveLoading ? 'text-muted' : ''" |
| 488 | ng-click="crearRemito()" | 488 | ng-click="crearRemito()" |
| 489 | ladda="saveLoading" | 489 | ladda="saveLoading" |
| 490 | data-style="expand-left" | 490 | data-style="expand-left" |
| 491 | >Guardar</span> | 491 | >Guardar</span> |
| 492 | </div> | 492 | </div> |
| 493 | </div> | 493 | </div> |
| 494 | </div> | 494 | </div> |
| 495 | 495 |