33 lines
979 B
Vue
33 lines
979 B
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
|
import VnLv from 'components/ui/VnLv.vue';
|
|
import filter from './ParkingFilter.js';
|
|
const props = defineProps({
|
|
id: {
|
|
type: Number,
|
|
required: false,
|
|
default: null,
|
|
},
|
|
});
|
|
|
|
const route = useRoute();
|
|
const entityId = computed(() => props.id || route.params.id);
|
|
</script>
|
|
<template>
|
|
<CardDescriptor
|
|
data-key="Parking"
|
|
:url="`Parkings/${entityId}`"
|
|
title="code"
|
|
:filter="filter"
|
|
:to-module="{ name: 'ParkingMain' }"
|
|
>
|
|
<template #body="{ entity }">
|
|
<VnLv :label="$t('globals.code')" :value="entity.code" />
|
|
<VnLv :label="$t('parking.pickingOrder')" :value="entity.pickingOrder" />
|
|
<VnLv :label="$t('parking.sector')" :value="entity.sector?.description" />
|
|
</template>
|
|
</CardDescriptor>
|
|
</template>
|