26 lines
		
	
	
	
		
			677 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			677 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
	<tr>
 | 
						|
        <td>{{ this.producto.nombre }}</td>
 | 
						|
        <td class="has-text-right">
 | 
						|
            <producto-cantidad
 | 
						|
                :producto_id="producto.id"
 | 
						|
                :requiere_notas="producto.requiere_notas">
 | 
						|
            </producto-cantidad>
 | 
						|
        </td>
 | 
						|
        <td class="has-text-right">{{ cantidad(producto.id) }}</td>
 | 
						|
    </tr>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
    import ProductoCantidad from "./ProductoCantidad.vue";
 | 
						|
    import { mapGetters } from "vuex";
 | 
						|
 | 
						|
    export default {
 | 
						|
        components: { ProductoCantidad },
 | 
						|
		props: {
 | 
						|
	        producto: Object
 | 
						|
	    },
 | 
						|
        computed: {
 | 
						|
            ...mapGetters('pedido',["cantidad"]),
 | 
						|
        },
 | 
						|
	}
 | 
						|
</script>
 |