From 9673f7be1edf10b9606327415118411a03380670 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 23 Oct 2024 15:17:06 +0200 Subject: [PATCH] fix: refs #8083 update rightly --- src/pages/Ticket/Card/TicketExpedition.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/Ticket/Card/TicketExpedition.vue b/src/pages/Ticket/Card/TicketExpedition.vue index 93749ebec..9f592bd89 100644 --- a/src/pages/Ticket/Card/TicketExpedition.vue +++ b/src/pages/Ticket/Card/TicketExpedition.vue @@ -231,14 +231,14 @@ onUnmounted(() => (stateStore.rightDrawer = false)); :select-props="{ options: expeditionStateTypes, optionLabel: 'description', + optionValue: 'code', }" :promise=" - async (stateTypeFk) => { - await vnTableRef.CrudModelRef.saveChanges({ - updates: selectedRows.map(({ id }) => ({ - data: { stateTypeFk }, - where: { id }, - })), + async (stateCode) => { + await axios.post('ExpeditionStates/addExpeditionState', { + expeditions: selectedRows.map(({ id }) => { + return { expeditionFk: id, stateCode }; + }), }); vnTableRef.tableRef.clearSelection(); } @@ -309,7 +309,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); 'row-key': 'id', selection: 'multiple', }" - save-url="Expeditions/crud" + save-url="ExpeditionStates/crud" auto-load :expr-builder=" (param, value) => {