forked from verdnatura/salix-front
56 lines
1.9 KiB
Vue
56 lines
1.9 KiB
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
import FetchData from 'src/components/FetchData.vue';
|
|
import CardSummary from 'components/ui/CardSummary.vue';
|
|
import VnLv from 'components/ui/VnLv.vue';
|
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
|
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
|
|
|
|
const $props = defineProps({
|
|
id: {
|
|
type: Number,
|
|
default: 0,
|
|
},
|
|
});
|
|
const { params } = useRoute();
|
|
const { t } = useI18n();
|
|
const entityId = computed(() => $props.id || params.id);
|
|
|
|
const filter = {
|
|
fields: ['id', 'sectorFk', 'code', 'pickingOrder', 'row', 'column'],
|
|
include: [{ relation: 'sector', scope: { fields: ['id', 'description'] } }],
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="q-pa-md">
|
|
<CardSummary :url="`Agencies/${entityId}`">
|
|
<template #header="{ entity: agency }">{{ agency.name }}</template>
|
|
<template #body="{ entity: agency }">
|
|
<QCard class="vn-one">
|
|
<QCardSection class="q-pa-none">
|
|
<VnTitle
|
|
:url="`#/agency/${entityId}/basic-data`"
|
|
:text="t('globals.pageTitles.basicData')"
|
|
/>
|
|
</QCardSection>
|
|
<VnLv :label="t('globals.name')" :value="agency.name" />
|
|
<QCheckbox
|
|
:label="t('agency.isOwn')"
|
|
v-model="agency.isOwn"
|
|
:disable="true"
|
|
/>
|
|
<QCheckbox
|
|
:label="t('agency.isAnyVolumeAllowed')"
|
|
v-model="agency.isAnyVolumeAllowed"
|
|
:disable="true"
|
|
/>
|
|
</QCard>
|
|
</template>
|
|
</CardSummary>
|
|
</div>
|
|
</template>
|