forked from verdnatura/salix-front
refactor: refs #8316 used VnSection and VnCardBeta
This commit is contained in:
parent
93047ab179
commit
89cf61a750
|
@ -550,6 +550,8 @@ shelving:
|
||||||
newShelving: New Shelving
|
newShelving: New Shelving
|
||||||
summary:
|
summary:
|
||||||
recyclable: Recyclable
|
recyclable: Recyclable
|
||||||
|
search: Search shelving
|
||||||
|
searchInfo: You can search by shelving reference
|
||||||
parking:
|
parking:
|
||||||
pickingOrder: Picking order
|
pickingOrder: Picking order
|
||||||
sector: Sector
|
sector: Sector
|
||||||
|
@ -558,6 +560,8 @@ parking:
|
||||||
searchBar:
|
searchBar:
|
||||||
info: You can search by parking code
|
info: You can search by parking code
|
||||||
label: Search parking...
|
label: Search parking...
|
||||||
|
search: Search parking
|
||||||
|
searchInfo: You can search by parking code
|
||||||
order:
|
order:
|
||||||
field:
|
field:
|
||||||
salesPersonFk: Sales Person
|
salesPersonFk: Sales Person
|
||||||
|
|
|
@ -575,6 +575,8 @@ shelving:
|
||||||
newShelving: Nuevo Carro
|
newShelving: Nuevo Carro
|
||||||
summary:
|
summary:
|
||||||
recyclable: Reciclable
|
recyclable: Reciclable
|
||||||
|
search: Buscar carro
|
||||||
|
searchInfo: Puedes buscar por referencia del carro
|
||||||
parking:
|
parking:
|
||||||
pickingOrder: Orden de recogida
|
pickingOrder: Orden de recogida
|
||||||
row: Fila
|
row: Fila
|
||||||
|
@ -582,6 +584,8 @@ parking:
|
||||||
searchBar:
|
searchBar:
|
||||||
info: Puedes buscar por código de parking
|
info: Puedes buscar por código de parking
|
||||||
label: Buscar parking...
|
label: Buscar parking...
|
||||||
|
search: Buscar parking
|
||||||
|
searchInfo: Puedes buscar por código de 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,27 +37,26 @@ 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>
|
exprBuilder,
|
||||||
<RightMenu>
|
}"
|
||||||
<template #right-panel>
|
>
|
||||||
|
<template #rightMenu>
|
||||||
<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="ParkingList"
|
:data-key="dataKey"
|
||||||
url="Parkings"
|
|
||||||
:user-filter="filter"
|
:user-filter="filter"
|
||||||
:expr-builder="exprBuilder"
|
:expr-builder="exprBuilder"
|
||||||
:limit="20"
|
:limit="20"
|
||||||
order="code"
|
|
||||||
>
|
>
|
||||||
<template #body="{ rows }">
|
<template #body="{ rows }">
|
||||||
<CardList
|
<CardList
|
||||||
|
@ -87,8 +86,5 @@ function exprBuilder(param, value) {
|
||||||
</div>
|
</div>
|
||||||
</QPage>
|
</QPage>
|
||||||
</template>
|
</template>
|
||||||
<i18n>
|
</VnSection>
|
||||||
es:
|
</template>
|
||||||
Search parking: Buscar parking
|
|
||||||
You can search by parking code: Puede buscar por el código del parking
|
|
||||||
</i18n>
|
|
|
@ -1,47 +1,38 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
export default {
|
const parkingCard = {
|
||||||
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',
|
name: 'ParkingCard',
|
||||||
|
path: ':id',
|
||||||
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
|
component: () => import('src/pages/Parking/Card/ParkingCard.vue'),
|
||||||
redirect: { name: 'ParkingSummary' },
|
redirect: { name: 'ParkingSummary' },
|
||||||
|
meta: {
|
||||||
|
menu: [
|
||||||
|
'ParkingBasicData',
|
||||||
|
'ParkingLog'
|
||||||
|
],
|
||||||
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'ParkingSummary',
|
|
||||||
path: 'summary',
|
path: 'summary',
|
||||||
|
name: 'ParkingSummary',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'summary',
|
title: 'summary',
|
||||||
icon: 'view_list',
|
icon: 'launch',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
|
component: () => import('src/pages/Parking/Card/ParkingSummary.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ParkingBasicData',
|
|
||||||
path: 'basic-data',
|
path: 'basic-data',
|
||||||
|
name: 'ParkingBasicData',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'basicData',
|
title: 'basicData',
|
||||||
icon: 'vn:settings',
|
icon: 'vn:settings',
|
||||||
},
|
},
|
||||||
component: () => import('pages/Parking/Card/ParkingBasicData.vue'),
|
component: () => import('src/pages/Parking/Card/ParkingBasicData.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ParkingLog',
|
|
||||||
path: 'log',
|
path: 'log',
|
||||||
|
name: 'ParkingLog',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'log',
|
title: 'log',
|
||||||
icon: 'history',
|
icon: 'history',
|
||||||
|
@ -49,6 +40,26 @@ export default {
|
||||||
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
|
component: () => import('src/pages/Parking/Card/ParkingLog.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Parking',
|
||||||
|
path: '/parking',
|
||||||
|
meta: {
|
||||||
|
title: 'parking',
|
||||||
|
icon: 'garage_home',
|
||||||
|
moduleName: 'Parking',
|
||||||
|
menu: [],
|
||||||
|
},
|
||||||
|
component: RouterView,
|
||||||
|
redirect: { name: 'ParkingMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'ParkingMain',
|
||||||
|
path: '',
|
||||||
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
|
redirect: { name: 'ParkingIndexMain' },
|
||||||
|
children: [ parkingCard ],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue