fix: refs #8316 add rectificative handling in invoiceIn route
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
6a182d5403
commit
3679cbd253
|
@ -1,10 +1,15 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
import { setRectificative } from 'src/pages/InvoiceIn/composables/setRectificative';
|
||||||
|
|
||||||
const invoiceInCard = {
|
const invoiceInCard = {
|
||||||
name: 'InvoiceInCard',
|
name: 'InvoiceInCard',
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
|
||||||
redirect: { name: 'InvoiceInSummary' },
|
redirect: { name: 'InvoiceInSummary' },
|
||||||
|
beforeEnter: async (to, from, next) => {
|
||||||
|
await setRectificative(to);
|
||||||
|
next();
|
||||||
|
},
|
||||||
meta: {
|
meta: {
|
||||||
menu: [
|
menu: [
|
||||||
'InvoiceInBasicData',
|
'InvoiceInBasicData',
|
||||||
|
@ -32,8 +37,7 @@ const invoiceInCard = {
|
||||||
title: 'basicData',
|
title: 'basicData',
|
||||||
icon: 'vn:settings',
|
icon: 'vn:settings',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInBasicData.vue'),
|
||||||
import('src/pages/InvoiceIn/Card/InvoiceInBasicData.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'InvoiceInVat',
|
name: 'InvoiceInVat',
|
||||||
|
@ -51,8 +55,7 @@ const invoiceInCard = {
|
||||||
title: 'dueDay',
|
title: 'dueDay',
|
||||||
icon: 'vn:calendar',
|
icon: 'vn:calendar',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInDueDay.vue'),
|
||||||
import('src/pages/InvoiceIn/Card/InvoiceInDueDay.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'InvoiceInIntrastat',
|
name: 'InvoiceInIntrastat',
|
||||||
|
@ -61,8 +64,7 @@ const invoiceInCard = {
|
||||||
title: 'intrastat',
|
title: 'intrastat',
|
||||||
icon: 'vn:lines',
|
icon: 'vn:lines',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue'),
|
||||||
import('src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'InvoiceInCorrective',
|
name: 'InvoiceInCorrective',
|
||||||
|
@ -71,8 +73,7 @@ const invoiceInCard = {
|
||||||
title: 'corrective',
|
title: 'corrective',
|
||||||
icon: 'attachment',
|
icon: 'attachment',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/InvoiceIn/Card/InvoiceInCorrective.vue'),
|
||||||
import('src/pages/InvoiceIn/Card/InvoiceInCorrective.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'InvoiceInLog',
|
name: 'InvoiceInLog',
|
||||||
|
@ -86,7 +87,7 @@ const invoiceInCard = {
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'InvoiceIn',
|
name: 'InvoiceIn',
|
||||||
path: '/invoice-in',
|
path: '/invoice-in',
|
||||||
meta: {
|
meta: {
|
||||||
|
@ -98,7 +99,7 @@ export default {
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'InvoiceInMain' },
|
redirect: { name: 'InvoiceInMain' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'InvoiceInMain',
|
name: 'InvoiceInMain',
|
||||||
path: '',
|
path: '',
|
||||||
component: () => import('src/components/common/VnModule.vue'),
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
|
@ -111,7 +112,7 @@ export default {
|
||||||
component: () => import('src/pages/InvoiceIn/InvoiceInList.vue'),
|
component: () => import('src/pages/InvoiceIn/InvoiceInList.vue'),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'InvoiceInList',
|
name: 'InvoiceInList',
|
||||||
path: 'list',
|
path: 'list',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'list',
|
title: 'list',
|
||||||
|
@ -137,9 +138,10 @@ export default {
|
||||||
title: 'serial',
|
title: 'serial',
|
||||||
icon: 'view_list',
|
icon: 'view_list',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/InvoiceIn/Serial/InvoiceInSerial.vue'),
|
component: () =>
|
||||||
|
import('src/pages/InvoiceIn/Serial/InvoiceInSerial.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue