From afbcd2ebda00ec2487ebc090940f83405ce54f1f Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 15 Jul 2024 14:31:33 +0200 Subject: [PATCH] refs #7283 item filters --- src/pages/Item/ItemList.vue | 14 ++-- src/pages/Item/ItemTypeList.vue | 140 ++++++++++++++++++++------------ 2 files changed, 91 insertions(+), 63 deletions(-) diff --git a/src/pages/Item/ItemList.vue b/src/pages/Item/ItemList.vue index 4c49f068f..e2c5f4bb3 100644 --- a/src/pages/Item/ItemList.vue +++ b/src/pages/Item/ItemList.vue @@ -7,9 +7,7 @@ import VnImg from 'src/components/ui/VnImg.vue'; import VnTable from 'components/VnTable/VnTable.vue'; import { useStateStore } from 'stores/useStateStore'; import { toDate } from 'src/filters'; -import { dashIfEmpty } from 'src/filters'; import axios from 'axios'; -import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; const entityId = computed(() => route.params.id); const router = useRouter(); @@ -104,7 +102,7 @@ const columns = computed(() => [ align: 'left', component: 'select', attrs: { - url: 'ItemType', + url: 'ItemTypes', fields: ['id', 'name'], }, columnField: { @@ -112,7 +110,6 @@ const columns = computed(() => [ }, create: true, }, - { label: t('item.list.category'), field: 'category', @@ -120,14 +117,13 @@ const columns = computed(() => [ align: 'left', component: 'select', attrs: { - url: 'ItemCategory', + url: 'ItemCategories', fields: ['id', 'name'], }, columnField: { component: null, }, }, - { label: t('item.list.intrastat'), field: 'intrastat', @@ -135,7 +131,7 @@ const columns = computed(() => [ align: 'left', component: 'select', attrs: { - url: 'Intrastat', + url: 'Intrastats', fields: ['id', 'description'], }, columnField: { @@ -150,7 +146,7 @@ const columns = computed(() => [ align: 'left', component: 'select', attrs: { - url: 'Origin', + url: 'Origins', fields: ['id', 'name'], }, columnField: { @@ -198,7 +194,7 @@ const columns = computed(() => [ align: 'left', component: 'select', attrs: { - url: 'Producer', + url: 'Producers', fields: ['id', 'name'], }, columnField: { diff --git a/src/pages/Item/ItemTypeList.vue b/src/pages/Item/ItemTypeList.vue index 125672d60..c02f9bb43 100644 --- a/src/pages/Item/ItemTypeList.vue +++ b/src/pages/Item/ItemTypeList.vue @@ -1,20 +1,13 @@