<?php 
    require '../../conexion.php';       
?>
    <?php $articulos = consultas::get_datos("select * from v_articulos where tarti_cod = ".$_REQUEST['vtipo']." and id_articulo in(select id_articulo from stock where cod_depo =".$_REQUEST['vdepo'].")"); ?>
    <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_venta']; ?>">
                       <?php echo $articulo['art_descri']." ".($articulo['mar_cod']!=="0" ?$articulo['mar_descrip']:""); ?>
                   </option>
                   <?php
               }
           } else { ?>
               <option value="0">Debe insertar un Articulo</option>
           <?php } ?>
       </select>
<script type="text/javascript">    
    $(".select2").select2();
</script>