Merge pull request 'refactor: refs #8316 used VnSection and VnCardBeta' (!1150) from 8316-parkingCardWithVnCardBeta into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1150 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
cbf7ef7ccf
|
@ -492,21 +492,6 @@ invoiceOut:
|
||||||
comercial: Comercial
|
comercial: Comercial
|
||||||
errors:
|
errors:
|
||||||
downloadCsvFailed: CSV download failed
|
downloadCsvFailed: CSV download failed
|
||||||
shelving:
|
|
||||||
list:
|
|
||||||
parking: Parking
|
|
||||||
priority: Priority
|
|
||||||
newShelving: New Shelving
|
|
||||||
summary:
|
|
||||||
recyclable: Recyclable
|
|
||||||
parking:
|
|
||||||
pickingOrder: Picking order
|
|
||||||
sector: Sector
|
|
||||||
row: Row
|
|
||||||
column: Column
|
|
||||||
searchBar:
|
|
||||||
info: You can search by parking code
|
|
||||||
label: Search parking...
|
|
||||||
department:
|
department:
|
||||||
chat: Chat
|
chat: Chat
|
||||||
bossDepartment: Boss Department
|
bossDepartment: Boss Department
|
||||||
|
|
|
@ -491,20 +491,6 @@ invoiceOut:
|
||||||
comercial: Comercial
|
comercial: Comercial
|
||||||
errors:
|
errors:
|
||||||
downloadCsvFailed: Error al descargar CSV
|
downloadCsvFailed: Error al descargar CSV
|
||||||
shelving:
|
|
||||||
list:
|
|
||||||
parking: Parking
|
|
||||||
priority: Prioridad
|
|
||||||
newShelving: Nuevo Carro
|
|
||||||
summary:
|
|
||||||
recyclable: Reciclable
|
|
||||||
parking:
|
|
||||||
pickingOrder: Orden de recogida
|
|
||||||
row: Fila
|
|
||||||
column: Columna
|
|
||||||
searchBar:
|
|
||||||
info: Puedes buscar por código de parking
|
|
||||||
label: Buscar parking...
|
|
||||||
department:
|
department:
|
||||||
chat: Chat
|
chat: Chat
|
||||||
bossDepartment: Jefe de departamento
|
bossDepartment: Jefe de departamento
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
import VnCardBeta from 'components/common/VnCardBeta.vue';
|
||||||
import ParkingDescriptor from 'pages/Parking/Card/ParkingDescriptor.vue';
|
import ParkingDescriptor from 'pages/Parking/Card/ParkingDescriptor.vue';
|
||||||
import ParkingFilter from 'pages/Parking/ParkingFilter.vue';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCardBeta
|
||||||
data-key="Parking"
|
data-key="Parking"
|
||||||
base-url="Parkings"
|
base-url="Parkings"
|
||||||
:descriptor="ParkingDescriptor"
|
:descriptor="ParkingDescriptor"
|
||||||
:filter-panel="ParkingFilter"
|
|
||||||
search-data-key="ParkingList"
|
|
||||||
:searchbar-props="{
|
|
||||||
url: 'Parkings',
|
|
||||||
label: 'parking.searchBar.label',
|
|
||||||
info: 'parking.searchBar.info',
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,17 +5,17 @@ import { useI18n } from 'vue-i18n';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import VnPaginate from 'components/ui/VnPaginate.vue';
|
import VnPaginate from 'components/ui/VnPaginate.vue';
|
||||||
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
|
||||||
import CardList from 'components/ui/CardList.vue';
|
import CardList from 'components/ui/CardList.vue';
|
||||||
import VnLv from 'components/ui/VnLv.vue';
|
import VnLv from 'components/ui/VnLv.vue';
|
||||||
import ParkingFilter from './ParkingFilter.vue';
|
import ParkingFilter from './ParkingFilter.vue';
|
||||||
import ParkingSummary from './Card/ParkingSummary.vue';
|
import ParkingSummary from './Card/ParkingSummary.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const { push } = useRouter();
|
const { push } = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { viewSummary } = useSummaryDialog();
|
const { viewSummary } = useSummaryDialog();
|
||||||
|
const dataKey = 'ParkingList';
|
||||||
|
|
||||||
onMounted(() => (stateStore.rightDrawer = true));
|
onMounted(() => (stateStore.rightDrawer = true));
|
||||||
onUnmounted(() => (stateStore.rightDrawer = false));
|
onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
|
@ -37,58 +37,55 @@ function exprBuilder(param, value) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<template>
|
<VnSection
|
||||||
<VnSearchbar
|
:data-key="dataKey"
|
||||||
data-key="ParkingList"
|
prefix="parking"
|
||||||
:label="t('Search parking')"
|
:array-data-props="{
|
||||||
:info="t('You can search by parking code')"
|
url: 'Parkings',
|
||||||
/>
|
order: ['code'],
|
||||||
</template>
|
userFilter: filter,
|
||||||
<RightMenu>
|
exprBuilder,
|
||||||
<template #right-panel>
|
}"
|
||||||
|
>
|
||||||
|
<template #advanced-menu>
|
||||||
<ParkingFilter data-key="ParkingList" />
|
<ParkingFilter data-key="ParkingList" />
|
||||||
</template>
|
</template>
|
||||||
</RightMenu>
|
<template #body>
|
||||||
<QPage class="column items-center q-pa-md">
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate :data-key="dataKey">
|
||||||
data-key="ParkingList"
|
<template #body="{ rows }">
|
||||||
url="Parkings"
|
<CardList
|
||||||
:user-filter="filter"
|
v-for="row of rows"
|
||||||
:expr-builder="exprBuilder"
|
:key="row.id"
|
||||||
:limit="20"
|
:id="row.id"
|
||||||
order="code"
|
:title="row.code"
|
||||||
>
|
@click="
|
||||||
<template #body="{ rows }">
|
push({ path: `/shelving/parking/${row.id}/summary` })
|
||||||
<CardList
|
"
|
||||||
v-for="row of rows"
|
>
|
||||||
:key="row.id"
|
<template #list-items>
|
||||||
:id="row.id"
|
<VnLv
|
||||||
:title="row.code"
|
label="Sector"
|
||||||
@click="push({ path: `/parking/${row.id}` })"
|
:value="row.sector?.description"
|
||||||
>
|
/>
|
||||||
<template #list-items>
|
<VnLv
|
||||||
<VnLv label="Sector" :value="row.sector?.description" />
|
:label="t('parking.pickingOrder')"
|
||||||
<VnLv
|
:value="row.pickingOrder"
|
||||||
:label="t('parking.pickingOrder')"
|
/>
|
||||||
:value="row.pickingOrder"
|
</template>
|
||||||
/>
|
<template #actions>
|
||||||
|
<QBtn
|
||||||
|
:label="t('components.smartCard.openSummary')"
|
||||||
|
@click.stop="viewSummary(row.id, ParkingSummary)"
|
||||||
|
color="primary"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</CardList>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
</VnPaginate>
|
||||||
<QBtn
|
</div>
|
||||||
:label="t('components.smartCard.openSummary')"
|
</QPage>
|
||||||
@click.stop="viewSummary(row.id, ParkingSummary)"
|
</template>
|
||||||
color="primary"
|
</VnSection>
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</CardList>
|
|
||||||
</template>
|
|
||||||
</VnPaginate>
|
|
||||||
</div>
|
|
||||||
</QPage>
|
|
||||||
</template>
|
</template>
|
||||||
<i18n>
|
|
||||||
es:
|
|
||||||
Search parking: Buscar parking
|
|
||||||
You can search by parking code: Puede buscar por el código del parking
|
|
||||||
</i18n>
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
parking:
|
||||||
|
pickingOrder: Picking order
|
||||||
|
sector: Sector
|
||||||
|
row: Row
|
||||||
|
column: Column
|
||||||
|
search: Search parking
|
||||||
|
searchInfo: You can search by parking code
|
|
@ -0,0 +1,7 @@
|
||||||
|
parking:
|
||||||
|
pickingOrder: Orden de recogida
|
||||||
|
row: Fila
|
||||||
|
sector: Sector
|
||||||
|
column: Columna
|
||||||
|
search: Buscar parking
|
||||||
|
searchInfo: Puedes buscar por código de parking
|
|
@ -1,19 +1,12 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
import VnCardBeta from 'components/common/VnCardBeta.vue';
|
||||||
import ShelvingDescriptor from 'pages/Shelving/Card/ShelvingDescriptor.vue';
|
import ShelvingDescriptor from 'pages/Shelving/Card/ShelvingDescriptor.vue';
|
||||||
import ShelvingFilter from './ShelvingFilter.vue';
|
|
||||||
import ShelvingSearchbar from './ShelvingSearchbar.vue';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCardBeta
|
||||||
data-key="Shelving"
|
data-key="Shelving"
|
||||||
base-url="Shelvings"
|
base-url="Shelvings"
|
||||||
:descriptor="ShelvingDescriptor"
|
:descriptor="ShelvingDescriptor"
|
||||||
:filter-panel="ShelvingFilter"
|
/>
|
||||||
search-data-key="ShelvingList"
|
|
||||||
>
|
|
||||||
<template #searchbar>
|
|
||||||
<ShelvingSearchbar />
|
|
||||||
</template>
|
|
||||||
</VnCard>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -6,13 +6,14 @@ import VnLv from 'components/ui/VnLv.vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import ShelvingFilter from 'pages/Shelving/Card/ShelvingFilter.vue';
|
import ShelvingFilter from 'pages/Shelving/Card/ShelvingFilter.vue';
|
||||||
import ShelvingSummary from 'pages/Shelving/Card/ShelvingSummary.vue';
|
import ShelvingSummary from 'pages/Shelving/Card/ShelvingSummary.vue';
|
||||||
import ShelvingSearchbar from 'pages/Shelving/Card/ShelvingSearchbar.vue';
|
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { viewSummary } = useSummaryDialog();
|
const { viewSummary } = useSummaryDialog();
|
||||||
|
const dataKey = 'ShelvingList';
|
||||||
|
|
||||||
const filter = {
|
const filter = {
|
||||||
include: [{ relation: 'parking' }],
|
include: [{ relation: 'parking' }],
|
||||||
};
|
};
|
||||||
|
@ -34,58 +35,62 @@ function exprBuilder(param, value) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ShelvingSearchbar />
|
<VnSection
|
||||||
<RightMenu>
|
:data-key="dataKey"
|
||||||
<template #right-panel>
|
prefix="shelving"
|
||||||
|
:array-data-props="{
|
||||||
|
url: 'Shelvings',
|
||||||
|
order: ['code'],
|
||||||
|
userFilter: filter,
|
||||||
|
exprBuilder,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<template #advanced-menu>
|
||||||
<ShelvingFilter data-key="ShelvingList" />
|
<ShelvingFilter data-key="ShelvingList" />
|
||||||
</template>
|
</template>
|
||||||
</RightMenu>
|
<template #body>
|
||||||
<QPage class="column items-center q-pa-md">
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate :data-key="dataKey">
|
||||||
data-key="ShelvingList"
|
<template #body="{ rows }">
|
||||||
url="Shelvings"
|
<CardList
|
||||||
:filter="filter"
|
v-for="row of rows"
|
||||||
:expr-builder="exprBuilder"
|
:key="row.id"
|
||||||
:limit="20"
|
:id="row.id"
|
||||||
>
|
:title="row.code"
|
||||||
<template #body="{ rows }">
|
@click="navigate(row.id)"
|
||||||
<CardList
|
>
|
||||||
v-for="row of rows"
|
<template #list-items>
|
||||||
:key="row.id"
|
<VnLv
|
||||||
:id="row.id"
|
:label="t('shelving.list.parking')"
|
||||||
:title="row.code"
|
:title-label="t('shelving.list.parking')"
|
||||||
@click="navigate(row.id)"
|
:value="row.parking?.code"
|
||||||
>
|
/>
|
||||||
<template #list-items>
|
<VnLv
|
||||||
<VnLv
|
:label="t('shelving.list.priority')"
|
||||||
:label="t('shelving.list.parking')"
|
:value="row?.priority"
|
||||||
:title-label="t('shelving.list.parking')"
|
/>
|
||||||
:value="row.parking?.code"
|
</template>
|
||||||
/>
|
<template #actions>
|
||||||
<VnLv
|
<QBtn
|
||||||
:label="t('shelving.list.priority')"
|
:label="t('components.smartCard.openSummary')"
|
||||||
:value="row?.priority"
|
@click.stop="viewSummary(row.id, ShelvingSummary)"
|
||||||
/>
|
color="primary"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</CardList>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
</VnPaginate>
|
||||||
<QBtn
|
</div>
|
||||||
:label="t('components.smartCard.openSummary')"
|
<QPageSticky :offset="[20, 20]">
|
||||||
@click.stop="viewSummary(row.id, ShelvingSummary)"
|
<RouterLink :to="{ name: 'ShelvingCreate' }">
|
||||||
color="primary"
|
<QBtn fab icon="add" color="primary" shortcut="+" />
|
||||||
/>
|
<QTooltip>
|
||||||
</template>
|
{{ t('shelving.list.newShelving') }}
|
||||||
</CardList>
|
</QTooltip>
|
||||||
</template>
|
</RouterLink>
|
||||||
</VnPaginate>
|
</QPageSticky>
|
||||||
</div>
|
</QPage>
|
||||||
<QPageSticky :offset="[20, 20]">
|
</template>
|
||||||
<RouterLink :to="{ name: 'ShelvingCreate' }">
|
</VnSection>
|
||||||
<QBtn fab icon="add" color="primary" shortcut="+" />
|
|
||||||
<QTooltip>
|
|
||||||
{{ t('shelving.list.newShelving') }}
|
|
||||||
</QTooltip>
|
|
||||||
</RouterLink>
|
|
||||||
</QPageSticky>
|
|
||||||
</QPage>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
shelving:
|
||||||
|
list:
|
||||||
|
parking: Parking
|
||||||
|
priority: Priority
|
||||||
|
newShelving: New Shelving
|
||||||
|
summary:
|
||||||
|
recyclable: Recyclable
|
||||||
|
search: Search shelving
|
||||||
|
searchInfo: You can search by shelving reference
|
|
@ -0,0 +1,9 @@
|
||||||
|
shelving:
|
||||||
|
list:
|
||||||
|
parking: Parking
|
||||||
|
priority: Prioridad
|
||||||
|
newShelving: Nuevo Carro
|
||||||
|
summary:
|
||||||
|
recyclable: Reciclable
|
||||||
|
search: Buscar carro
|
||||||
|
searchInfo: Puedes buscar por referencia del carro
|
|
@ -13,7 +13,6 @@ import Travel from './travel';
|
||||||
import Order from './order';
|
import Order from './order';
|
||||||
import Entry from './entry';
|
import Entry from './entry';
|
||||||
import roadmap from './roadmap';
|
import roadmap from './roadmap';
|
||||||
import Parking from './parking';
|
|
||||||
import Agency from './agency';
|
import Agency from './agency';
|
||||||
import Zone from './zone';
|
import Zone from './zone';
|
||||||
import Account from './account';
|
import Account from './account';
|
||||||
|
@ -35,7 +34,6 @@ export default [
|
||||||
invoiceIn,
|
invoiceIn,
|
||||||
Entry,
|
Entry,
|
||||||
roadmap,
|
roadmap,
|
||||||
Parking,
|
|
||||||
Agency,
|
Agency,
|
||||||
Zone,
|
Zone,
|
||||||
Account,
|
Account,
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
import { RouterView } from 'vue-router';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
path: '/parking',
|
|
||||||
name: 'Parking',
|
|
||||||
meta: {
|
|
||||||
title: 'parking',
|
|
||||||
icon: 'garage_home',
|
|
||||||
moduleName: 'Parking',
|
|
||||||
},
|
|
||||||
component: RouterView,
|
|
||||||
redirect: { name: 'ParkingCard' },
|
|
||||||
menus: {
|
|
||||||
main: [],
|
|
||||||
card: ['ParkingBasicData', 'ParkingLog'],
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/parking/:id',
|
|
||||||
name: 'ParkingCard',
|
|
||||||
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
|
|
||||||
redirect: { name: 'ParkingSummary' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'ParkingSummary',
|
|
||||||
path: 'summary',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ParkingBasicData',
|
|
||||||
path: 'basic-data',
|
|
||||||
meta: {
|
|
||||||
title: 'basicData',
|
|
||||||
icon: 'vn:settings',
|
|
||||||
},
|
|
||||||
component: () => import('pages/Parking/Card/ParkingBasicData.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ParkingLog',
|
|
||||||
path: 'log',
|
|
||||||
meta: {
|
|
||||||
title: 'log',
|
|
||||||
icon: 'history',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
|
@ -1,5 +1,79 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
|
const parkingCard = {
|
||||||
|
name: 'ParkingCard',
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
|
||||||
|
redirect: { name: 'ParkingSummary' },
|
||||||
|
meta: {
|
||||||
|
menu: ['ParkingBasicData', 'ParkingLog'],
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'summary',
|
||||||
|
name: 'ParkingSummary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'launch',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'basic-data',
|
||||||
|
name: 'ParkingBasicData',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Parking/Card/ParkingBasicData.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'log',
|
||||||
|
name: 'ParkingLog',
|
||||||
|
meta: {
|
||||||
|
title: 'log',
|
||||||
|
icon: 'history',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
const shelvingCard = {
|
||||||
|
name: 'ShelvingLayout',
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('pages/Shelving/Card/ShelvingCard.vue'),
|
||||||
|
redirect: { name: 'ShelvingSummary' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'ShelvingSummary',
|
||||||
|
path: 'summary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
},
|
||||||
|
component: () => import('pages/Shelving/Card/ShelvingSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'ShelvingBasicData',
|
||||||
|
path: 'basic-data',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('pages/Shelving/Card/ShelvingForm.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'ShelvingLog',
|
||||||
|
path: 'log',
|
||||||
|
meta: {
|
||||||
|
title: 'log',
|
||||||
|
icon: 'history',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Shelving/Card/ShelvingLog.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
path: '/shelving',
|
path: '/shelving',
|
||||||
name: 'Shelving',
|
name: 'Shelving',
|
||||||
|
@ -11,7 +85,7 @@ export default {
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'ShelvingMain' },
|
redirect: { name: 'ShelvingMain' },
|
||||||
menus: {
|
menus: {
|
||||||
main: ['ShelvingList', 'ParkingList'],
|
main: ['ShelvingList', 'ParkingMain'],
|
||||||
card: ['ShelvingBasicData', 'ShelvingLog'],
|
card: ['ShelvingBasicData', 'ShelvingLog'],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -19,16 +93,24 @@ export default {
|
||||||
path: '',
|
path: '',
|
||||||
name: 'ShelvingMain',
|
name: 'ShelvingMain',
|
||||||
component: () => import('src/components/common/VnModule.vue'),
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
redirect: { name: 'ShelvingList' },
|
redirect: { name: 'ShelvingSection' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: '',
|
||||||
name: 'ShelvingList',
|
name: 'ShelvingSection',
|
||||||
meta: {
|
redirect: { name: 'ShelvingList' },
|
||||||
title: 'list',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Shelving/ShelvingList.vue'),
|
component: () => import('src/pages/Shelving/ShelvingList.vue'),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'list',
|
||||||
|
name: 'ShelvingList',
|
||||||
|
meta: {
|
||||||
|
title: 'list',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
shelvingCard,
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'create',
|
path: 'create',
|
||||||
|
@ -40,55 +122,23 @@ export default {
|
||||||
component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'),
|
component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/parking',
|
path: 'parking',
|
||||||
|
name: 'ParkingMain',
|
||||||
redirect: { name: 'ParkingList' },
|
redirect: { name: 'ParkingList' },
|
||||||
|
meta: {
|
||||||
|
title: 'parkingList',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Parking/ParkingList.vue'),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: 'list',
|
||||||
name: 'ParkingList',
|
name: 'ParkingList',
|
||||||
meta: {
|
|
||||||
title: 'parkingList',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Parking/ParkingList.vue'),
|
|
||||||
},
|
},
|
||||||
|
parkingCard,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'ShelvingLayout',
|
|
||||||
path: ':id',
|
|
||||||
component: () => import('pages/Shelving/Card/ShelvingCard.vue'),
|
|
||||||
redirect: { name: 'ShelvingSummary' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'ShelvingSummary',
|
|
||||||
path: 'summary',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
},
|
|
||||||
component: () => import('pages/Shelving/Card/ShelvingSummary.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ShelvingBasicData',
|
|
||||||
path: 'basic-data',
|
|
||||||
meta: {
|
|
||||||
title: 'basicData',
|
|
||||||
icon: 'vn:settings',
|
|
||||||
},
|
|
||||||
component: () => import('pages/Shelving/Card/ShelvingForm.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ShelvingLog',
|
|
||||||
path: 'log',
|
|
||||||
meta: {
|
|
||||||
title: 'log',
|
|
||||||
icon: 'history',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Shelving/Card/ShelvingLog.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,6 @@ import shelving from 'src/router/modules/shelving';
|
||||||
import order from 'src/router/modules/order';
|
import order from 'src/router/modules/order';
|
||||||
import entry from 'src/router/modules/entry';
|
import entry from 'src/router/modules/entry';
|
||||||
import roadmap from 'src/router/modules/roadmap';
|
import roadmap from 'src/router/modules/roadmap';
|
||||||
import parking from 'src/router/modules/parking';
|
|
||||||
import agency from 'src/router/modules/agency';
|
import agency from 'src/router/modules/agency';
|
||||||
import zone from 'src/router/modules/zone';
|
import zone from 'src/router/modules/zone';
|
||||||
import account from './modules/account';
|
import account from './modules/account';
|
||||||
|
@ -85,7 +84,6 @@ const routes = [
|
||||||
travel,
|
travel,
|
||||||
roadmap,
|
roadmap,
|
||||||
entry,
|
entry,
|
||||||
parking,
|
|
||||||
agency,
|
agency,
|
||||||
zone,
|
zone,
|
||||||
account,
|
account,
|
||||||
|
|
Loading…
Reference in New Issue