0
0
Fork 0

fix: refs #7283 fix image

This commit is contained in:
Carlos Satorres 2024-10-16 14:45:33 +02:00
parent d1c61c5aed
commit f2cb0111eb
1 changed files with 17 additions and 6 deletions

View File

@ -1,10 +1,9 @@
<script setup> <script setup>
import { ref, computed, onUnmounted } from 'vue'; import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import VnImg from 'src/components/ui/VnImg.vue'; import VnImg from 'src/components/ui/VnImg.vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'components/VnTable/VnTable.vue';
import { useStateStore } from 'stores/useStateStore';
import { toDate } from 'src/filters'; import { toDate } from 'src/filters';
import axios from 'axios'; import axios from 'axios';
import FetchedTags from 'src/components/ui/FetchedTags.vue'; import FetchedTags from 'src/components/ui/FetchedTags.vue';
@ -16,7 +15,6 @@ const entityId = computed(() => route.params.id);
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
const router = useRouter(); const router = useRouter();
const stateStore = useStateStore();
const { t } = useI18n(); const { t } = useI18n();
const tableRef = ref(); const tableRef = ref();
const route = useRoute(); const route = useRoute();
@ -53,8 +51,8 @@ const columns = computed(() => [
attrs: ({ row }) => { attrs: ({ row }) => {
return { return {
id: row?.id, id: row?.id,
width: '50px',
zoomResolution: '1600x900', zoomResolution: '1600x900',
zoom: true,
}; };
}, },
}, },
@ -116,9 +114,13 @@ const columns = computed(() => [
}, },
{ {
label: t('item.list.typeName'), label: t('item.list.typeName'),
name: 'typeName', name: 'typeFk',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: {
url: 'ItemTypes',
fields: ['id', 'name'],
},
columnFilter: { columnFilter: {
name: 'typeFk', name: 'typeFk',
attrs: { attrs: {
@ -152,6 +154,11 @@ const columns = computed(() => [
name: 'intrastat', name: 'intrastat',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: {
url: 'Intrastats',
optionValue: 'description',
optionLabel: 'description',
},
columnFilter: { columnFilter: {
name: 'description', name: 'description',
attrs: { attrs: {
@ -159,7 +166,6 @@ const columns = computed(() => [
optionValue: 'description', optionValue: 'description',
optionLabel: 'description', optionLabel: 'description',
}, },
inWhere: true,
alias: 'intr', alias: 'intr',
}, },
columnField: { columnField: {
@ -172,6 +178,11 @@ const columns = computed(() => [
name: 'origin', name: 'origin',
align: 'left', align: 'left',
component: 'select', component: 'select',
attrs: {
url: 'Origins',
optionValue: 'id',
optionLabel: 'code',
},
columnFilter: { columnFilter: {
name: 'id', name: 'id',
attrs: { attrs: {