From b668d07e2dc4fb453efcd1050abbc0f6fd570687 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 1 Aug 2024 13:20:33 +0200 Subject: [PATCH] refs #7283 fetchedTags --- src/pages/Item/ItemList.vue | 46 +++++++++++++++++++++++----------- src/pages/Item/ItemRequest.vue | 17 ++++++++++--- 2 files changed, 44 insertions(+), 19 deletions(-) diff --git a/src/pages/Item/ItemList.vue b/src/pages/Item/ItemList.vue index 2532a6df2..a3b70372f 100644 --- a/src/pages/Item/ItemList.vue +++ b/src/pages/Item/ItemList.vue @@ -7,6 +7,7 @@ import VnTable from 'components/VnTable/VnTable.vue'; import { useStateStore } from 'stores/useStateStore'; import { toDate } from 'src/filters'; import axios from 'axios'; +import FetchedTags from 'src/components/ui/FetchedTags.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import ItemSummary from '../Item/Card/ItemSummary.vue'; @@ -43,21 +44,21 @@ const itemFilter = { ], }; const columns = computed(() => [ - { - label: '', - name: 'image', - align: 'left', - columnField: { - component: VnImg, - attrs: (id) => { - return { - id, - width: '50px', - }; - }, - }, - columnFilter: false, - }, + // { + // label: '', + // name: 'image', + // align: 'left', + // columnField: { + // component: VnImg, + // attrs: (id) => { + // return { + // id, + // width: '50px', + // }; + // }, + // }, + // columnFilter: false, + // }, { label: t('item.list.id'), name: 'id', @@ -280,9 +281,24 @@ const cloneItem = async (itemFk) => { + + es: New item: Nuevo artículo diff --git a/src/pages/Item/ItemRequest.vue b/src/pages/Item/ItemRequest.vue index ed6f623aa..0389ba864 100644 --- a/src/pages/Item/ItemRequest.vue +++ b/src/pages/Item/ItemRequest.vue @@ -13,7 +13,6 @@ import VnTable from 'components/VnTable/VnTable.vue'; const { t } = useI18n(); const { notify } = useNotify(); const stateStore = useStateStore(); -const workersOptions = ref([]); let filterParams = ref({}); const denyFormRef = ref(null); const denyRequestId = ref(null); @@ -91,6 +90,7 @@ const columns = computed(() => [ name: 'item', align: 'left', component: 'input', + visible: false, }, { label: t('item.buyRequest.achieved'), @@ -98,6 +98,7 @@ const columns = computed(() => [ name: 'achieved', align: 'left', component: 'input', + visible: false, }, { label: t('item.buyRequest.concept'), @@ -106,6 +107,7 @@ const columns = computed(() => [ align: 'left', sortable: true, component: 'input', + visible: false, }, { label: t('item.buyRequest.state'), @@ -114,10 +116,17 @@ const columns = computed(() => [ align: 'left', }, { + align: 'right', label: '', - name: 'action', - align: 'left', - columnFilter: null, + name: 'tableActions', + actions: [ + { + title: t('Client ticket list'), + icon: 'thumb_down', + action: onDenyAccept, + isPrimary: true, + }, + ], }, ]);