foca-admin-seguimiento.html 5.39 KB
<div class="foca-admin-seguimiento">
    <div class="row">
        <foca-cabecera-facturador 
        titulo="titulo"
        fecha="now"
        class="mb-0 col-lg-12"
        ></foca-cabecera-facturador>
    </div>
    <div class="row">
        <div class="col-10">
            <osm
                latitud="-34.7152975"
                longitud="-65.9053867"
                zoom="6"
                marcadores="marcadores"
                parametros= "datosBuscados"
            />
        </div>
        <div class="col-2 pl-0">
            <input
                type="text"
                ng-model="now"
                class="btn col-12 my-1"
                ng-blur="fecha()"
                uib-datepicker-popup="dd/MM/yyyy"
                show-button-bar="false"
                is-open="datepickerOpen"
                on-open-focus="false"
                ng-focus="datepickerOpen = true"
                datepicker-options="dateOptions"
            />
            <button 
                type="button" 
                ng-class="{'active': idUsuario == 0}" 
                class="btn col-12 my-1" 
                ng-click="general()"
            >General</button>
            <button
                type="button" 
                ng-class="{'active': idUsuario != 0}" 
                class="btn col-12 my-1" 
                ng-click="individual()"
            >Individual</button>
            <div class="form-group my-1" ng-show="idUsuario != 0">
                <input 
                    type="text"
                    placeholder="Vendedor"
                    class="form-control"
                    ng-model="idUsuarioInput"
                    ng-keypress="search($event.keyCode)"
                    foca-focus="idUsuario == -1"
                    ng-show="actividad == 'Nota de pedido'"
                    teclado-virtual
                >
                <input 
                    type="text"
                    placeholder="Vehiculo"
                    class="form-control"
                    ng-model="idUsuarioInput"
                    ng-keypress="search($event.keyCode)"
                    foca-focus="idUsuario == -1"
                    ng-show="actividad == 'Entrega de producto'"
                    teclado-virtual
                >
                <input 
                    type="text"
                    placeholder="Cobrador"
                    class="form-control"
                    ng-model="idUsuarioInput"
                    ng-keypress="search($event.keyCode)"
                    foca-focus="idUsuario == -1"
                    ng-show="actividad == 'Cobranza'"
                    teclado-virtual
                >
            </div>
            <button
                type="button" 
                class="btn col-12 my-1"
                ng-show="marcadores.length > 0 && idUsuario > 0"
                ng-click="showMarcadores()"
            >Listar marcadores</button>
            <div ng-show="actividad === 'Entrega de producto' && idUsuario != 0">
                <div class="custom-control custom-radio">
                    <input
                    type="radio"
                    class="custom-control-input"
                    id="idTodos"
                    name="filtro"
                    ng-model="filtroEstado"
                    ng-change="search(13)"
                    checked>
                    <label class="custom-control-label pb-3" for="idTodos"></label>
                    <img src="img/marker-icon-grey.png">
                    <strong>Todos</strong>
                </div>
                <div class="custom-control custom-radio">
                    <input
                    type="radio"
                    class="custom-control-input"
                    id="entregado"
                    name="filtro"
                    ng-model="filtroEstado"
                    ng-change="search(13)"
                    ng-value="true">
                    <label class="custom-control-label pb-3" for="entregado"></label>
                    <img src="img/marker-icon-green.png">
                    <strong>Entregado</strong>
                </div>
                <div class="custom-control custom-radio">
                    <input
                    type="radio"
                    class="custom-control-input"
                    id="noEntregado"
                    name="filtro"
                    ng-model="filtroEstado"
                    ng-change="search(13)"
                    ng-value="false">
                    <label class="custom-control-label pb-3" for="noEntregado"></label>
                    <img src="img/marker-icon-yellow.png">
                    <strong>No entregado</strong>
                </div>
            </div>
        </div>
    </div>
    <div ng-show="actividad === 'Entrega de producto' && idUsuario != 0">
        <strong>Remitos pendientes de entrega</strong>
        <table class="table">
            <thead>
                <tr>
                    <th>Remito Nº</th>
                    <th>Cliente</th>
                    <th>Dirección</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="remito in remitosVehiculo">
                    <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td>
                    <td ng-bind="remito.nombreCliente"></td>
                    <td ng-bind="remito.domicilioStamp"></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>