From 0a3703532ea734415b44fc22128d95677dfaa499 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 16 Sep 2024 10:47:41 +0200 Subject: [PATCH] feat: itemProposalProxy --- src/pages/Item/components/ItemProposal.vue | 262 +++++++++--------- .../Item/components/ItemProposalProxy.vue | 30 ++ .../Ticket/Negative/TicketLackDetail.vue | 5 +- 3 files changed, 161 insertions(+), 136 deletions(-) create mode 100644 src/pages/Item/components/ItemProposalProxy.vue diff --git a/src/pages/Item/components/ItemProposal.vue b/src/pages/Item/components/ItemProposal.vue index e4ece8043..32b7b6dce 100644 --- a/src/pages/Item/components/ItemProposal.vue +++ b/src/pages/Item/components/ItemProposal.vue @@ -94,7 +94,7 @@ const columns = computed(() => [ ...defaultColumnAttrs, label: t('proposal.difference'), name: 'difference', - format: (item) => (item.id % 2 === 0 ? 10 : -10), + format: ({ id }) => (id % 2 === 0 ? 10 : -10), columnFilter: { component: 'input', type: 'number', @@ -226,85 +226,79 @@ function onDialogClose() { onUnmounted(() => {});