#7283 #7831 itemMigration #553

Merged
carlossa merged 77 commits from 7283-itemMigration into dev 2024-10-25 07:09:13 +00:00
1 changed files with 18 additions and 8 deletions
Showing only changes of commit daf99f4730 - Show all commits

View File

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