pedi2/resources/js/components/ollas/OllasBody.vue

33 lines
786 B
Vue

<script>
import PedidosMain from "../pedidos/PedidosMain.vue";
import { mapActions, mapMutations } from "vuex";
import CantidadOllas from "./CantidadOllas.vue";
export default {
name: "OllasBody",
components: { CantidadOllas, PedidosMain },
methods: {
...mapActions('pedido', ["getPedidoDeOllas", "getGrupoDeCompra"]),
...mapMutations('ui', ["migasOllas"])
},
async mounted() {
await this.getGrupoDeCompra();
await this.getPedidoDeOllas();
this.migasOllas();
},
}
</script>
<template>
<div id="ollas-body" class="pb-6 mb-6">
<pedidos-main>
<template v-slot:cartel>
<cantidad-ollas/>
</template>
</pedidos-main>
</div>
</template>
<style scoped>
</style>