refs 4466 drop guard
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
a1b6698819
commit
48a947ed95
|
@ -43,24 +43,6 @@ export default {
|
||||||
name: 'InvoiceInCard',
|
name: 'InvoiceInCard',
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
|
||||||
beforeEnter: async (to, from, next) => {
|
|
||||||
const card = to.matched.find((match) => match.name == 'InvoiceInCard');
|
|
||||||
const corrective = card.children.find(
|
|
||||||
(child) => child.name == 'InvoiceInCorrective'
|
|
||||||
);
|
|
||||||
|
|
||||||
const { data: correctings } = await axios.get('InvoiceInCorrections', {
|
|
||||||
params: {
|
|
||||||
filter: {
|
|
||||||
where: {
|
|
||||||
correctingFk: to.params.id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
corrective.meta.hidden = !correctings.length > 0;
|
|
||||||
next();
|
|
||||||
},
|
|
||||||
redirect: { name: 'InvoiceInSummary' },
|
redirect: { name: 'InvoiceInSummary' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue