0
0
Fork 0

refs #7283 item request

This commit is contained in:
Carlos Satorres 2024-08-07 09:53:42 +02:00
parent fe78de0c47
commit 6ca8ede946
2 changed files with 11 additions and 20 deletions

View File

@ -33,8 +33,7 @@ watch(
const columns = computed(() => [
{
label: t('item.buyRequest.ticketId'),
name: 'id',
field: 'id',
name: 'ticketFk',
align: 'left',
isId: true,
chip: {
@ -44,7 +43,6 @@ const columns = computed(() => [
},
{
label: t('item.buyRequest.shipped'),
field: 'shipped',
name: 'shipped',
align: 'left',
component: 'date',
@ -61,57 +59,46 @@ const columns = computed(() => [
},
{
label: t('item.buyRequest.requester'),
field: 'requesterName',
name: 'requesterFk',
name: 'requesterName',
align: 'left',
},
{
label: t('item.buyRequest.requested'),
field: 'quantity',
name: 'requested',
name: 'saleQuantity',
align: 'left',
},
{
label: t('item.buyRequest.price'),
field: 'price',
name: 'price',
align: 'left',
format: (row) => toCurrency(row.price),
},
{
label: t('item.buyRequest.attender'),
field: 'attender',
name: 'attender',
name: 'attenderName',
align: 'left',
},
{
label: t('item.buyRequest.item'),
field: 'item',
name: 'item',
align: 'left',
component: 'input',
visible: false,
},
{
label: t('item.buyRequest.achieved'),
field: 'achieved',
name: 'achieved',
align: 'left',
component: 'input',
visible: false,
},
{
label: t('item.buyRequest.concept'),
field: 'concept',
name: 'concept',
align: 'left',
sortable: true,
component: 'input',
visible: false,
},
{
label: t('item.buyRequest.state'),
field: 'state',
name: 'state',
align: 'left',
},
@ -123,7 +110,7 @@ const columns = computed(() => [
{
title: t('Client ticket list'),
icon: 'thumb_down',
action: onDenyAccept,
action: showDenyRequestForm,
isPrimary: true,
},
],
@ -348,14 +335,15 @@ onBeforeMount(() => {
<VnTable
ref="tableRef"
data-key="itemRequest"
url="ticketRequests"
url="ticketRequests/filter"
order="id DESC"
:columns="columns"
:is-editable="false"
auto-load
>
<template #column-attender="{ row }">
<span class="link" @click.stop>
{{ row.attenderFk }}
{{ row }}
<WorkerDescriptorProxy :id="row.attenderFk" />
</span>
</template>

View File

@ -84,6 +84,7 @@ const columns = computed(() => [
fields: ['id', 'firstName'],
},
cardVisible: true,
visible: false,
},
{
align: 'left',
@ -96,6 +97,7 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
cardVisible: true,
visible: false,
},
{
align: 'left',
@ -108,6 +110,7 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
cardVisible: true,
visible: false,
},
]);
</script>