<?php 
    require '../../conexion.php';
?>

<div class="form-group">
    <label class="control-label">Producto: </label>
    <?php $articulos = consultas::get_datos("select * from v_articulos where tarti_cod=".$_REQUEST['vtipo']); ?>
    <select name="vart" class="form-control select2" id="vart" required="" onchange="obtenerprecio()" onkeyup="obtenerprecio()">
           <option value="">Seleccione Articulo</option>
           <?php
           if (!empty($articulos)) {
               foreach ($articulos as $articulo) { ?>
                   <option value="<?php echo $articulo['id_articulo']."_".$articulo['pre_compra']; ?>">
                       <?php echo $articulo['art_descri']." ".$articulo['mar_descrip']; ?>
                   </option>
                   <?php
               }
           } else { ?>
               <option value="0">Debe insertar un Articulo</option>
           <?php } ?>
       </select>
</div>
<script type="text/javascript">    
    $(".select2").select2();
</script>