0
0
Fork 0

refs #7283 fetchedTags

This commit is contained in:
Carlos Satorres 2024-08-01 13:20:33 +02:00
parent 2604441c13
commit b668d07e2d
2 changed files with 44 additions and 19 deletions

View File

@ -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) => {
<WorkerDescriptorProxy :id="row.buyerFk" />
</span>
</template>
<template #column-description="{ row }">
<div class="row column full-width justify-between items-start">
{{ row?.name }}
<div v-if="row?.subName" class="subName">
{{ row?.subName.toUpperCase() }}
</div>
</div>
<FetchedTags :item="row" :max-length="6" />
</template>
</VnTable>
</template>
<style lang="scss" scoped>
.subName {
text-transform: uppercase;
color: var(--vn-label-color);
}
</style>
<i18n>
es:
New item: Nuevo artículo

View File

@ -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,
},
],
},
]);