Compare commits

..

No commits in common. "db056e7d34071ba5c3a65db9dabff1b4f29a389a" and "09fce4e96a0b155fc2eed36f66ec5911c29f207e" have entirely different histories.

3 changed files with 4 additions and 12 deletions

View file

@ -13,7 +13,7 @@ class OllasController extends Controller
{
$tipoOlla = TipoPedido::firstOrCreate(['nombre' => 'olla']);
$pedido = $gdc->subpedidos()->firstOrCreate([
'nombre' => 'Pedido de Ollas de ' . $gdc->nombre,
'nombre' => 'Pedido de Olla de ' . $gdc->nombre,
'tipo_pedido_id' => $tipoOlla->id,
]);
return response()->json(new SubpedidoResource($pedido));

View file

@ -1,18 +1,16 @@
<script>
import PedidosMain from "../pedidos/PedidosMain.vue";
import { mapActions, mapMutations } from "vuex";
import { mapActions } from "vuex";
export default {
name: "OllasBody",
components: { PedidosMain },
methods: {
...mapActions('pedido', ["getPedidoDeOllas", "getGrupoDeCompra"]),
...mapMutations('ui', ["migasOllas"])
},
async mounted() {
await this.getGrupoDeCompra();
await this.getPedidoDeOllas();
this.migasOllas();
},
}
</script>

View file

@ -35,10 +35,7 @@ const mutations = {
reset(state) {
state.show_chismosa = false;
state.show_devoluciones = false;
},
migasOllas(state) {
state.migas.reverse().pop();
},
}
};
const actions = {
@ -75,9 +72,6 @@ const actions = {
resetear({ commit }) {
commit("reset");
},
migasOllas({ commit }) {
commit("migasOllas");
},
};
export default {