forked from verdnatura/salix-front
fix: refs #5186 parking routes
This commit is contained in:
parent
46bcba99bc
commit
ebbe38a14e
|
@ -30,19 +30,14 @@ const filter = {
|
||||||
<VnSubToolbar />
|
<VnSubToolbar />
|
||||||
<FormModel :url="`Parkings/${parkingId}`" model="parking" :filter="filter">
|
<FormModel :url="`Parkings/${parkingId}`" model="parking" :filter="filter">
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<VnRow class="row q-gutter-md q-mb-md">
|
<VnRow>
|
||||||
<div class="col">
|
|
||||||
<VnInput v-model="data.code" :label="t('parking.basicData.code')" />
|
<VnInput v-model="data.code" :label="t('parking.basicData.code')" />
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
<VnInput
|
<VnInput
|
||||||
v-model="data.pickingOrder"
|
v-model="data.pickingOrder"
|
||||||
:label="t('parking.basicData.pickingOrder')"
|
:label="t('parking.basicData.pickingOrder')"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<div class="col">
|
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
v-model="data.sectorFk"
|
v-model="data.sectorFk"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
|
@ -52,7 +47,6 @@ const filter = {
|
||||||
use-input
|
use-input
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</VnRow>
|
</VnRow>
|
||||||
</template>
|
</template>
|
||||||
</FormModel>
|
</FormModel>
|
|
@ -6,7 +6,7 @@ import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import LeftMenu from 'components/LeftMenu.vue';
|
import LeftMenu from 'components/LeftMenu.vue';
|
||||||
import VnSearchbar from 'src/components/ui/VnSearchbar.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 stateStore = useStateStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
|
@ -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>
|
|
|
@ -8,33 +8,16 @@ export default {
|
||||||
icon: 'garage_home',
|
icon: 'garage_home',
|
||||||
},
|
},
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'ParkingMain' },
|
redirect: { name: 'ParkingCard' },
|
||||||
menus: {
|
menus: {
|
||||||
main: ['ParkingList'],
|
main: [],
|
||||||
card: ['ParkingBasicData', 'ParkingLog'],
|
card: ['ParkingBasicData', 'ParkingLog'],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '/parking/:id',
|
||||||
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',
|
|
||||||
name: 'ParkingCard',
|
name: 'ParkingCard',
|
||||||
component: () => import('src/pages/Shelving/Parking/Card/ParkingCard.vue'),
|
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
|
||||||
redirect: { name: 'ParkingSummary' },
|
redirect: { name: 'ParkingSummary' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
@ -44,8 +27,7 @@ export default {
|
||||||
title: 'summary',
|
title: 'summary',
|
||||||
icon: 'view_list',
|
icon: 'view_list',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
|
||||||
import('src/pages/Shelving/Parking/Card/ParkingSummary.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ParkingBasicData',
|
name: 'ParkingBasicData',
|
||||||
|
@ -54,8 +36,7 @@ export default {
|
||||||
title: 'basicData',
|
title: 'basicData',
|
||||||
icon: 'vn:settings',
|
icon: 'vn:settings',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('pages/Parking/Card/ParkingBasicData.vue'),
|
||||||
import('pages/Shelving/Parking/Card/ParkingBasicData.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ParkingLog',
|
name: 'ParkingLog',
|
||||||
|
@ -64,8 +45,7 @@ export default {
|
||||||
title: 'log',
|
title: 'log',
|
||||||
icon: 'history',
|
icon: 'history',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
|
||||||
import('src/pages/Shelving/Parking/Card/ParkingLog.vue'),
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,6 +37,15 @@ export default {
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'),
|
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'),
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue