foca-modal-cerrar-vehiculo.html 3.18 KB
<div class="modal-header">
    <h4>Confirmar distribución vehículo</h4>
    <div class="row">
        <div class="col-6 row">
            <label class="col-3 mt-2">Fecha:</label>
            <input
                type="text"
                readonly
                ng-model="now"
                uib-datepicker-popup="dd/MM/yyyy"
                show-button-bar="false"
                is-open="datepickerOpen"
                on-open-focus="false"
                class="form-control col-8"/>
        </div>
    </div>
</div>
<div class="modal-body">
    <form class="row" name="formHojaRuta">
    
        <div class="col-2">
            <label>Transportista</label>
        </div>
        <div class="col-4">
            <input
            class="form-control"
            readonly
            ng-value="vehiculo.transportista.COD + ' ' + vehiculo.transportista.NOM"
            >
        </div>
        <div class="col-2 form-group">
            <label>Unidad</label>
        </div>
        <div class="col-4">
            <input
                class="form-control"
                readonly
                ng-model="vehiculo.tractor"
            >
        </div>
    </form>
    <strong>Remitos:</strong>
    <table class="table">
        <thead>
            <tr>
                <th>Remito Nº</th>
                <th>Cliente</th>
                <th>Domicilio de entrega</th>
                <th>Eliminar
                    <i
                        class="fa fa-info"
                        uib-tooltip="Los remitos que no se pueden eliminar tienen asignada una hoja de ruta">
                    </i>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr ng-show="!remitos.length">
                <td colspan="3">
                    No se han encontrado remitos.
                </td>
            </tr>
            <tr ng-repeat="remito in remitos">
                <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td>
                <td ng-bind="remito.nombreCliente"></td>
                <td ng-bind="remito.domicilioStamp"></td>
                <td>
                    <div class="custom-control custom-checkbox">
                        <input
                            type="checkbox"
                            ng-model="remito.checked"
                            class="custom-control-input"
                            id="{{remito.id}}"
                            ng-disabled="remito.idHojaRuta">
                        <label class="custom-control-label" for="{{remito.id}}"></label>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div class="modal-footer py-1">
    <button
        class="btn btn-sm btn-danger"
        type="button"
        ng-click="eliminarRemitos()"
        ng-disabled="minimoUnoChecked()">Eliminar</button>
    <button
        class="btn btn-sm btn-secondary"
        ladda="cargando"
        type="button"
        ng-click="cancelar()">Cancelar</button>
    <button
        class="btn btn-sm btn-primary"
        ladda="cargando"
        type="button"
        ng-disabled="!formHojaRuta.$valid || !remitos.length"
        ng-click="aceptar()">Cerrar distribución</button>
</div>