0
0
Fork 0

fix: refs #5186 parking routes

This commit is contained in:
Jorge Penadés 2024-03-01 11:05:34 +01:00
parent 46bcba99bc
commit ebbe38a14e
10 changed files with 32 additions and 75 deletions

View File

@ -30,19 +30,14 @@ const filter = {
<VnSubToolbar />
<FormModel :url="`Parkings/${parkingId}`" model="parking" :filter="filter">
<template #form="{ data }">
<VnRow class="row q-gutter-md q-mb-md">
<div class="col">
<VnRow>
<VnInput v-model="data.code" :label="t('parking.basicData.code')" />
</div>
<div class="col">
<VnInput
v-model="data.pickingOrder"
:label="t('parking.basicData.pickingOrder')"
/>
</div>
</VnRow>
<VnRow>
<div class="col">
<VnSelectFilter
v-model="data.sectorFk"
option-value="id"
@ -52,7 +47,6 @@ const filter = {
use-input
input-debounce="0"
/>
</div>
</VnRow>
</template>
</FormModel>

View File

@ -6,7 +6,7 @@ import { useStateStore } from 'stores/useStateStore';
import { useArrayData } from 'src/composables/useArrayData';
import LeftMenu from 'components/LeftMenu.vue';
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import ParkingDescriptor from 'pages/Shelving/Parking/Card/ParkingDescriptor.vue';
import ParkingDescriptor from 'pages/Parking/Card/ParkingDescriptor.vue';
const stateStore = useStateStore();
const { t } = useI18n();

View File

@ -1,17 +0,0 @@
<script setup>
import { useStateStore } from 'stores/useStateStore';
import LeftMenu from 'src/components/LeftMenu.vue';
const stateStore = useStateStore();
</script>
<template>
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
<QScrollArea class="fit text-grey-8">
<LeftMenu />
</QScrollArea>
</QDrawer>
<QPageContainer>
<RouterView></RouterView>
</QPageContainer>
</template>

View File

@ -8,33 +8,16 @@ export default {
icon: 'garage_home',
},
component: RouterView,
redirect: { name: 'ParkingMain' },
redirect: { name: 'ParkingCard' },
menus: {
main: ['ParkingList'],
main: [],
card: ['ParkingBasicData', 'ParkingLog'],
},
children: [
{
path: '',
name: 'ParkingMain',
component: () => import('src/pages/Shelving/Parking/ParkingMain.vue'),
redirect: { name: 'ParkingList' },
children: [
{
path: 'list',
name: 'ParkingList',
meta: {
title: 'parkingList',
icon: 'view_list',
},
component: () => import('src/pages/Shelving/Parking/ParkingList.vue'),
},
],
},
{
path: ':id',
path: '/parking/:id',
name: 'ParkingCard',
component: () => import('src/pages/Shelving/Parking/Card/ParkingCard.vue'),
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
redirect: { name: 'ParkingSummary' },
children: [
{
@ -44,8 +27,7 @@ export default {
title: 'summary',
icon: 'view_list',
},
component: () =>
import('src/pages/Shelving/Parking/Card/ParkingSummary.vue'),
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
},
{
name: 'ParkingBasicData',
@ -54,8 +36,7 @@ export default {
title: 'basicData',
icon: 'vn:settings',
},
component: () =>
import('pages/Shelving/Parking/Card/ParkingBasicData.vue'),
component: () => import('pages/Parking/Card/ParkingBasicData.vue'),
},
{
name: 'ParkingLog',
@ -64,8 +45,7 @@ export default {
title: 'log',
icon: 'history',
},
component: () =>
import('src/pages/Shelving/Parking/Card/ParkingLog.vue'),
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
},
],
},

View File

@ -37,6 +37,15 @@ export default {
},
component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'),
},
{
path: '/parking',
name: 'ParkingList',
meta: {
title: 'parkingList',
icon: 'view_list',
},
component: () => import('src/pages/Parking/ParkingList.vue'),
},
],
},
{
@ -74,14 +83,5 @@ export default {
},
],
},
{
path: 'parking',
name: 'ParkingList',
meta: {
title: 'parkingList',
icon: 'view_list',
},
component: () => import('src/pages/Shelving/Parking/ParkingMain.vue'),
},
],
};