Agregada logica para adaptar migas a faltantes y sobrantes
This commit is contained in:
parent
5f847dc9af
commit
a6f726f8a0
2 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,7 @@ const actions = {
|
||||||
const pedido = { pedido_id: data.id };
|
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("pedido/elegirPedido", pedido, { root: true });
|
||||||
|
dispatch("ui/migasFaltantesYSobrantes", null, { root: true });
|
||||||
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
|
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,6 +45,10 @@ const mutations = {
|
||||||
migasOllas(state) {
|
migasOllas(state) {
|
||||||
state.migas.reverse().pop();
|
state.migas.reverse().pop();
|
||||||
},
|
},
|
||||||
|
migasFaltantesYSobrantes(state) {
|
||||||
|
const migaAdmin = { nombre: 'Administración', action: 'ui/toggleFaltantesYSobrantes' }
|
||||||
|
state.migas[0] = migaAdmin;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
@ -86,6 +90,9 @@ const actions = {
|
||||||
},
|
},
|
||||||
toggleFaltantesYSobrantes({ commit }) {
|
toggleFaltantesYSobrantes({ commit }) {
|
||||||
commit("toggleFaltantesYSobrantes");
|
commit("toggleFaltantesYSobrantes");
|
||||||
|
},
|
||||||
|
migasFaltantesYSobrantes({ commit }) {
|
||||||
|
commit("migasFaltantesYSobrantes");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue