<div class="modal fade" tabindex="-1" role="dialog" id="modal_proveedores">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><span class="fa fa-users"></span> Proveedores</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="table-responsive">
                    <table id="table_proveed" class="display table table-striped table-hover table-head-bg-primary table-bordered-bd-primary no-footer dataTable">
                        <thead>
                            <tr>
                                <th>Proveedor</th>
                                <th>Producto</th>
                                <th>Precio</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="row in proveedores">
                                <td style="width: 40%;">{{row.prov_razonsocial}}
                                    <small v-if="row.comprador==1" class="badge badge-success m-2">Se le ha comprado</small>
                                    <small v-if="row.comprador==0" class="badge badge-warning m-2">No se le ha comprado</small>
                                </td>
                                <td style="width: 40%;">{{row.pprov_producto}}</td>
                                <td>
                                    {{ moneda(row.pprov_precio, 'en-US', '$') }}
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
            </div>
        </div>
    </div>
</div>