activar-hoja-ruta.html 2.66 KB
<div class="row">
    <foca-cabecera-facturador 
    titulo="'Activar Hoja de Ruta'"
    fecha="now"
    class="mb-0 col-lg-12"
    ></foca-cabecera-facturador>
</div>
<div class="row">
    <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded">
        <div class="row px-5 py-2 botonera-secundaria">
            <div class="col-12">
                <foca-botonera-facturador botones="botonera" max="6" class="row"></foca-botonera-facturador>
            </div>
        </div>
        <!-- <div class="col-6 form-group">
            <input seleccionarTransportista()
                type="text"
                teclado-virtual
                class="form-control form-control-sm"
                placeholder="Búsqueda"
                ng-model="filtros"
            />
        </div> -->
        <table class="table table-default table-hover table-sm table-abm table-striped mb-0">
            <thead>
                <tr>
                    <th>Número</th>
                    <th>Fecha</th>
                    <th>Remitos</th>
                    <th>Estados</th>
                    <th></th>
                    <th class="text-center">
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="hojaRuta in hojasRuta | filter:filtros">
                    <td ng-bind="[hojaRuta.sucursal, hojaRuta.numeroHojaRuta] | comprobante"></td>
                    <td ng-bind="hojaRuta.fechaReparto | date:'yyyy-MM-dd':'-0300'"></td>
                    <td>
                        <div ng-bind="hojaRuta.remitos.length" class="d-inline-block"></div>
                        <button class="btn btn-outline-dark boton-accion" ng-click="mostrarRemitos(hojaRuta)">
                            <i class="fa fa-eye"></i>
                        </button>
                    </td>
                    <td 
                        ng-bind="setearEstado(hojaRuta.estado)"
                        ng-class="{'text-white':hojaRuta.estado == 0,
                                   'text-danger':hojaRuta.estado == 1,
                                   'text-dark': hojaRuta.estado == 2
                                  }"    
                    ></td>
                    <td></td>
                    <td class="text-center">
                        <button
                            class="btn btn-outline-dark boton-accion"
                            title="Activar"
                            ng-click="activarHojaRuta(hojaRuta)"
                        >
                            <i class="fa fa-check"></i>
                        </button>
                    </td>
                </tr>
            </body>
        </table>
    </div>
</div>