Commit 8ac50a483a87117ccf50140987fbc7e23b24e386
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !6
Showing
1 changed file
Show diff stats
src/views/modal-detalle-hoja-ruta.html
| 1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
| 2 | <h5 class="modal-title">Detalle de descarga</h5> | 2 | <h5 class="modal-title">Detalle de descarga</h5> |
| 3 | </div> | 3 | </div> |
| 4 | <div class="modal-body" id="modal-body" ladda="cargando" data-spinner-color="#FF0000" data-spinner-size="5"> | 4 | <div class="modal-body" id="modal-body" ladda="cargando" data-spinner-color="#FF0000" data-spinner-size="5"> |
| 5 | <form name="formDetalleHojaRuta"> | 5 | <form name="formDetalleHojaRuta"> |
| 6 | <div class="form-group row" ng-show="!cargando"> | 6 | <div class="form-group row" ng-show="!cargando"> |
| 7 | <div class="col-12 px-0"> | 7 | <div class="col-12 px-0"> |
| 8 | <strong>Información Remito</strong> | 8 | <strong>Información Remito</strong> |
| 9 | <button | 9 | <button |
| 10 | class="btn btn-sm btn-outline-light selectable" | 10 | class="btn btn-sm btn-light selectable" |
| 11 | ng-click="verInformacion = !verInformacion" | 11 | ng-click="verInformacion = !verInformacion" |
| 12 | ><i | 12 | ><i |
| 13 | class="fa fa-chevron-down" | 13 | class="fa fa-chevron-up" |
| 14 | ng-show="verInformacion"></i> | 14 | ng-show="verInformacion"></i> |
| 15 | <i | 15 | <i |
| 16 | class="fa fa-chevron-up" | 16 | class="fa fa-chevron-down" |
| 17 | ng-hide="verInformacion"> | 17 | ng-hide="verInformacion"> |
| 18 | </i> | 18 | </i> |
| 19 | </button> | 19 | </button> |
| 20 | </div> | 20 | </div> |
| 21 | <div class="row" ng-show="verInformacion"> | 21 | <div class="row" ng-show="verInformacion"> |
| 22 | <div class="col-12"> | 22 | <div class="col-12"> |
| 23 | <label class="form-control-sm"> | 23 | <label class="form-control-sm"> |
| 24 | <b>Remito Nº</b> | 24 | <b>Remito Nº</b> |
| 25 | <span ng-bind="[remito.numeroRemito, remito.sucursal] | comprobante"/> | 25 | <span ng-bind="[remito.numeroRemito, remito.sucursal] | comprobante"/> |
| 26 | </label> | 26 | </label> |
| 27 | </div> | 27 | </div> |
| 28 | <div class="col-12"> | 28 | <div class="col-12"> |
| 29 | <label class="form-control-sm"> | 29 | <label class="form-control-sm"> |
| 30 | <b>Cliente</b> | 30 | <b>Cliente</b> |
| 31 | </label> | 31 | </label> |
| 32 | <span ng-bind="remito.nombreCliente"/> | 32 | <span ng-bind="remito.nombreCliente"/> |
| 33 | </div> | 33 | </div> |
| 34 | <div class="col-12"> | 34 | <div class="col-12"> |
| 35 | <label class="form-control-sm"> | 35 | <label class="form-control-sm"> |
| 36 | <b>Domicilio</b> | 36 | <b>Domicilio</b> |
| 37 | <span ng-bind="remito.domicilioStamp"/> | 37 | <span ng-bind="remito.domicilioStamp"/> |
| 38 | </label> | 38 | </label> |
| 39 | </div> | 39 | </div> |
| 40 | <div ng-show="remito.notaPedido.notaPedidoPuntoDescarga.length" class="px-3"> | 40 | <div ng-show="remito.notaPedido.notaPedidoPuntoDescarga.length" class="px-3"> |
| 41 | <label class="form-control-sm"> | 41 | <label class="form-control-sm"> |
| 42 | <b>Puntos de descarga</b> | 42 | <b>Puntos de descarga</b> |
| 43 | </label> | 43 | </label> |
| 44 | <table class="table table-sm"> | 44 | <table class="table table-sm"> |
| 45 | <thead> | 45 | <thead> |
| 46 | <tr> | 46 | <tr> |
| 47 | <th>Nombre</th> | 47 | <th>Nombre</th> |
| 48 | <th>Articulo</th> | 48 | <th>Articulo</th> |
| 49 | <th>Cantidad</th> | 49 | <th>Cantidad</th> |
| 50 | </tr> | 50 | </tr> |
| 51 | </thead> | 51 | </thead> |
| 52 | <tbody> | 52 | <tbody> |
| 53 | <tr ng-repeat="(key, puntoDescarga) in remito.notaPedido.notaPedidoPuntoDescarga"> | 53 | <tr ng-repeat="(key, puntoDescarga) in remito.notaPedido.notaPedidoPuntoDescarga"> |
| 54 | <td ng-bind="puntoDescarga.puntoDescarga.descripcion"></td> | 54 | <td ng-bind="puntoDescarga.puntoDescarga.descripcion"></td> |
| 55 | <td ng-bind="puntoDescarga.producto.DetArt"></td> | 55 | <td ng-bind="puntoDescarga.producto.DetArt"></td> |
| 56 | <td ng-bind="puntoDescarga.cantidad"></td> | 56 | <td ng-bind="puntoDescarga.cantidad"></td> |
| 57 | </tbody> | 57 | </tbody> |
| 58 | </table> | 58 | </table> |
| 59 | </div> | 59 | </div> |
| 60 | </div> | 60 | </div> |
| 61 | <strong>Articulo a descargar</strong> | 61 | <strong>Articulo a descargar</strong> |
| 62 | <table class="table table-sm"> | 62 | <table class="table table-sm"> |
| 63 | <thead> | 63 | <thead> |
| 64 | <tr> | 64 | <tr> |
| 65 | <th></th> | 65 | <th></th> |
| 66 | <th>Articulo</th> | 66 | <th>Articulo</th> |
| 67 | <th>Total</th> | 67 | <th>Total</th> |
| 68 | <th>Descargado</th> | 68 | <th>Descargado</th> |
| 69 | </tr> | 69 | </tr> |
| 70 | </thead> | 70 | </thead> |
| 71 | <tbody> | 71 | <tbody> |
| 72 | <tr ng-repeat="(key, articulo) in remito.articulosRemito"> | 72 | <tr ng-repeat="(key, articulo) in remito.articulosRemito"> |
| 73 | <td class="pt-2"> | 73 | <td class="pt-2"> |
| 74 | <input | 74 | <input |
| 75 | type="radio" | 75 | type="radio" |
| 76 | name="articuloRadio" | 76 | name="articuloRadio" |
| 77 | id="{{'articulo' + articulo.id}}" | 77 | id="{{'articulo' + articulo.id}}" |
| 78 | ng-click="cambio(articulo)" | 78 | ng-click="cambio(articulo)" |
| 79 | ng-disabled="articulo.descargado || readonly" | 79 | ng-disabled="articulo.descargado || readonly" |
| 80 | ng-checked="articuloSeleccionado.id === articulo.id" | 80 | ng-checked="articuloSeleccionado.id === articulo.id" |
| 81 | ></td> | 81 | ></td> |
| 82 | <td ng-bind="articulo.descripcion"></td> | 82 | <td ng-bind="articulo.descripcion"></td> |
| 83 | <td ng-bind="articulo.cantidad"></td> | 83 | <td ng-bind="articulo.cantidad"></td> |
| 84 | <td ng-bind="articulo.cantidadDescargada || 0"></td> | 84 | <td ng-bind="articulo.cantidadDescargada || 0"></td> |
| 85 | </tbody> | 85 | </tbody> |
| 86 | </table> | 86 | </table> |
| 87 | <strong>Cisterna</strong> | 87 | <strong>Cisterna</strong> |
| 88 | <table class="table table-sm"> | 88 | <table class="table table-sm"> |
| 89 | <thead> | 89 | <thead> |
| 90 | <tr> | 90 | <tr> |
| 91 | <th>Código</th> | 91 | <th>Código</th> |
| 92 | <th>Articulo</th> | 92 | <th>Articulo</th> |
| 93 | <th>Total</th> | 93 | <th>Total</th> |
| 94 | <th>A descargar</th> | 94 | <th>A descargar</th> |
| 95 | </tr> | 95 | </tr> |
| 96 | </thead> | 96 | </thead> |
| 97 | <tbody> | 97 | <tbody> |
| 98 | <tr ng-repeat="(key, cisterna) in cisternas"> | 98 | <tr ng-repeat="(key, cisterna) in cisternas"> |
| 99 | <td ng-bind="cisterna.codigo"></td> | 99 | <td ng-bind="cisterna.codigo"></td> |
| 100 | <td ng-bind="cisterna.cisternaCarga.articulo.DetArt"></td> | 100 | <td ng-bind="cisterna.cisternaCarga.articulo.DetArt"></td> |
| 101 | <td ng-bind="cisterna.cisternaCarga.cantidad"></td> | 101 | <td ng-bind="cisterna.cisternaCarga.cantidad"></td> |
| 102 | <td><input | 102 | <td><input |
| 103 | class="form-control form-control-sm" | 103 | class="form-control form-control-sm" |
| 104 | type="number" | 104 | type="number" |
| 105 | ng-model="aDescargar[key]" | 105 | ng-model="aDescargar[key]" |
| 106 | ng-change="actualizarArticulo()" | 106 | ng-change="actualizarArticulo()" |
| 107 | foca-focus="articuloSeleccionado.idArticulo == cisterna.cisternaCarga.idProducto" | 107 | foca-focus="articuloSeleccionado.idArticulo == cisterna.cisternaCarga.idProducto" |
| 108 | ng-disabled="articuloSeleccionado.idArticulo != cisterna.cisternaCarga.idProducto | 108 | ng-disabled="articuloSeleccionado.idArticulo != cisterna.cisternaCarga.idProducto |
| 109 | || readonly"/></td> | 109 | || readonly"/></td> |
| 110 | </tr> | 110 | </tr> |
| 111 | </tbody> | 111 | </tbody> |
| 112 | </table> | 112 | </table> |
| 113 | <div class="col-12 px-0"> | 113 | <div class="col-12 px-0"> |
| 114 | <label class="form-control-sm px-0"> | 114 | <label class="form-control-sm px-0"> |
| 115 | <b>Observaciones</b> | 115 | <b>Observaciones</b> |
| 116 | </label> | 116 | </label> |
| 117 | </div> | 117 | </div> |
| 118 | <div class="col-12"> | 118 | <div class="col-12"> |
| 119 | <textarea | 119 | <textarea |
| 120 | ng-model="remito.observaciones" | 120 | ng-model="remito.observaciones" |
| 121 | ng-disabled="readonly" | 121 | ng-disabled="readonly" |
| 122 | class="form-control form-control-sm" | 122 | class="form-control form-control-sm" |
| 123 | rows="1" | 123 | rows="1" |
| 124 | ></textarea> | 124 | ></textarea> |
| 125 | </div> | 125 | </div> |
| 126 | <div class="col-12 row mt-2"> | 126 | <div class="col-12 row mt-2"> |
| 127 | <label class="form-control-sm px-0 col-3"><b>Nº Recibo</b></label> | 127 | <label class="form-control-sm px-0 col-3"><b>Nº Recibo</b></label> |
| 128 | <input | 128 | <input |
| 129 | class="form-control form-control-sm col-4" | 129 | class="form-control form-control-sm col-4" |
| 130 | type="number" | 130 | type="number" |
| 131 | ng-disabled="readonly" | 131 | ng-disabled="readonly" |
| 132 | ng-model="numeroRecibo" | 132 | ng-model="numeroRecibo" |
| 133 | ng-keypress="descargar($event.keyCode)" | 133 | ng-keypress="descargar($event.keyCode)" |
| 134 | foca-focus="distribucionDisponible()"> | 134 | foca-focus="distribucionDisponible()"> |
| 135 | <button | 135 | <button |
| 136 | class="ml-4 form-control-sm btn btn-success col-4" | 136 | class="ml-4 form-control-sm btn btn-success col-4" |
| 137 | ladda="cargando" | 137 | ladda="cargando" |
| 138 | data-spinner-color="#FF0000" | 138 | data-spinner-color="#FF0000" |
| 139 | type="button" | 139 | type="button" |
| 140 | ng-disabled="!distribucionDisponible() || !numeroRecibo" | 140 | ng-disabled="!distribucionDisponible() || !numeroRecibo" |
| 141 | ng-click="descargar(13)"> | 141 | ng-click="descargar(13)"> |
| 142 | Descargar | 142 | Descargar |
| 143 | </button> | 143 | </button> |
| 144 | </div> | 144 | </div> |
| 145 | </form> | 145 | </form> |
| 146 | </div> | 146 | </div> |
| 147 | <div class="modal-footer py-2"> | 147 | <div class="modal-footer py-2"> |
| 148 | <button | 148 | <button |
| 149 | class="btn btn-danger btn-sm" | 149 | class="btn btn-danger btn-sm" |
| 150 | type="button" | 150 | type="button" |
| 151 | ng-click="rechazar()" | 151 | ng-click="rechazar()" |
| 152 | ng-disabled="readonly" | 152 | ng-disabled="readonly" |
| 153 | >Rechazar</button> | 153 | >Rechazar</button> |
| 154 | <button | 154 | <button |
| 155 | class="btn btn-secondary btn-sm" | 155 | class="btn btn-secondary btn-sm" |
| 156 | type="button" | 156 | type="button" |
| 157 | ng-click="cancel()" | 157 | ng-click="cancel()" |
| 158 | >Salir</button> | 158 | >Salir</button> |
| 159 | </div> | 159 | </div> |
| 160 | 160 |