43 lines
1.6 KiB
Vue
43 lines
1.6 KiB
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
import CardSummary from 'components/ui/CardSummary.vue';
|
|
import VnLv from 'components/ui/VnLv.vue';
|
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
|
import VnCheckbox from 'components/common/VnCheckbox.vue';
|
|
|
|
const route = useRoute();
|
|
const $props = defineProps({ id: { type: Number, default: 0 } });
|
|
const { t } = useI18n();
|
|
const entityId = computed(() => $props.id || route.params.id);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="q-pa-md">
|
|
<CardSummary :url="`Agencies/${entityId}`" data-key="Agency" module-name="Agency">
|
|
<template #header="{ entity: agency }">{{ agency.name }}</template>
|
|
<template #body="{ entity: agency }">
|
|
<QCard class="vn-one">
|
|
<VnTitle
|
|
:url="`#/${route.meta.moduleName.toLowerCase()}/agency/${entityId}/basic-data`"
|
|
:text="t('globals.pageTitles.basicData')"
|
|
/>
|
|
<VnLv :label="t('globals.name')" :value="agency.name" />
|
|
<VnCheckbox
|
|
:label="t('agency.isOwn')"
|
|
v-model="agency.isOwn"
|
|
:disable="true"
|
|
/>
|
|
<VnCheckbox
|
|
:label="t('agency.isAnyVolumeAllowed')"
|
|
v-model="agency.isAnyVolumeAllowed"
|
|
:disable="true"
|
|
/>
|
|
</QCard>
|
|
</template>
|
|
</CardSummary>
|
|
</div>
|
|
</template>
|