<div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <form @submit.prevent="obtenerCompras()" id="form_compras">
                        <div class="form-row">
                            <div class="col-sm-6">
                                <div class="form-group form-floating-label">
                                    <input id="pvfecha_desde" type="date" class="form-control input-border-bottom" v-model="fecha_desde">
                                    <label for="pvfecha_desde" class="placeholder">Fecha desde</label>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group input-group form-floating-label">
                                    <input id="pvfecha_hasta" type="date" class="form-control input-border-bottom" v-model="fecha_hasta">
                                    <label for="pvfecha_hasta" class="placeholder">Fecha hasta</label>
                                    <div class="input-group-append">
                                        <button class="btn btn-border" type="submit"> <span class="fa fa-search"></span> </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <div class="col-12">
         <div class="card">
            <div class="card-body" :class="cargando_tabla">
                <div class="table-responsive">
                    <table class="display table table-striped table-hover dataTable table-head-bg-primary table-bordered-bd-primary" id="tabla_compras">
                        <thead>
                            <tr>
                                <th class="text-left">Fecha</th>
                                <th class="text-center">Documento</th>
                                <th class="text-center">Monto</th>
                                <th class="text-center">Proveedor</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="row in compras">
                                <td class="text-left">{{row.fecha}}</td>
                                <td class="text-center"><a :href="row.uri" target="_blank"> {{ row.tipo }}{{ row.correlativo }} </a></td>
                                <td class="text-center">{{row.monto}}</td>
                                <td class="text-center">{{row.proveedor}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
