0
0
Fork 0

refs #7283 itemRequestList

This commit is contained in:
Carlos Satorres 2024-07-15 15:00:43 +02:00
parent afbcd2ebda
commit daf99f4730
1 changed files with 18 additions and 8 deletions

View File

@ -18,6 +18,7 @@ import useNotify from 'src/composables/useNotify.js';
import { getDateQBadgeColor } from 'src/composables/getDateQBadgeColor.js';
import axios from 'axios';
import RightMenu from 'src/components/common/RightMenu.vue';
import { toDate } from 'src/filters';
const { t } = useI18n();
const { notify } = useNotify();
@ -46,21 +47,28 @@ const columns = computed(() => [
name: 'id',
field: 'id',
align: 'left',
sortable: true,
isId: true,
chip: {
condition: () => true,
},
cardVisible: true,
},
{
label: t('item.buyRequest.shipped'),
field: 'shipped',
name: 'shipped',
align: 'left',
sortable: true,
component: 'date',
columnField: {
component: null,
},
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.shipped)),
},
{
label: t('globals.description'),
field: 'description',
name: 'description',
align: 'left',
sortable: true,
},
{
label: t('item.buyRequest.requester'),
@ -80,29 +88,31 @@ const columns = computed(() => [
field: 'price',
name: 'price',
align: 'left',
sortable: true,
format: (val) => toCurrency(val),
format: (row) => toCurrency(row.price),
},
{
label: t('item.buyRequest.attender'),
field: 'attender',
name: 'attender',
align: 'left',
sortable: true,
attrs: {
url: 'Workers',
fields: ['id', 'firstName'],
},
},
{
label: t('item.buyRequest.item'),
field: 'item',
name: 'item',
align: 'left',
sortable: true,
component: 'input',
},
{
label: t('item.buyRequest.achieved'),
field: 'achieved',
name: 'achieved',
align: 'left',
sortable: true,
component: 'input',
},
{
label: t('item.buyRequest.concept'),