Agregada lógica para cargar pedido de faltantes y sobrantes del barrio
This commit is contained in:
parent
a34bfd53a8
commit
88deb88f04
1 changed files with 3 additions and 0 deletions
|
@ -66,7 +66,10 @@ const actions = {
|
||||||
commit('toggleCaracteristica', { caracteristica_id: caracteristica_id })
|
commit('toggleCaracteristica', { caracteristica_id: caracteristica_id })
|
||||||
},
|
},
|
||||||
async abrirFaltantesYSobrantes({ commit, dispatch }) {
|
async abrirFaltantesYSobrantes({ commit, dispatch }) {
|
||||||
|
const { data } = await axios.get(`/admin/${state.grupo_de_compra_id}/faltantes-y-sobrantes`)
|
||||||
|
const pedido = { pedido_id: data.id };
|
||||||
dispatch("productos/init", null, { root: true });
|
dispatch("productos/init", null, { root: true });
|
||||||
|
dispatch("pedido/elegirPedido", pedido, { root: true });
|
||||||
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
|
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue