pedi2/resources/js/components/pedidos/ProductoRow.vue
2025-05-23 00:01:55 -03:00

26 lines
709 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>