From 1ca742020789a33e249c5241ea6c2f450d377098 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 15 May 2024 08:54:22 +0200 Subject: [PATCH] feat: replace item --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Item/components/ItemProposal.vue | 42 +++++++++++++++++++- src/pages/Ticket/Negative/TicketLackList.vue | 1 + 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index ac653b56c..3a8cd7d92 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -32,6 +32,7 @@ globals: clone: Clone confirm: Confirm assign: Assign + replace: Replace back: Back yes: 'Yes' no: 'No' diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 8d0a4b0ee..a3ebc136e 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -32,6 +32,7 @@ globals: clone: Clonar confirm: Confirmar assign: Asignar + replace: Sustituir back: Volver yes: Si no: No diff --git a/src/pages/Item/components/ItemProposal.vue b/src/pages/Item/components/ItemProposal.vue index 51a9ba721..92415eef5 100644 --- a/src/pages/Item/components/ItemProposal.vue +++ b/src/pages/Item/components/ItemProposal.vue @@ -13,6 +13,7 @@ const $props = defineProps({ }, }); const proposalSelected = ref([]); +const quantity = ref(-1); const showProposalDialog = ref(false); const defaultColumnAttrs = { @@ -115,6 +116,23 @@ const columns = computed(() => [ field: 'located', }, ]); + +async function confirm() { + quantity.value = 0; + // const response = { address: address.value }; + // if (props.promise) { + // isLoading.value = true; + // // eslint-disable-next-line no-unused-vars + // const { address: _address, ...restData } = props.data; + // try { + // Object.assign(response, restData); + // await props.promise(response); + // } finally { + // isLoading.value = false; + // } + // } + // onDialogOK(response); +} - + + + + + + + + diff --git a/src/pages/Ticket/Negative/TicketLackList.vue b/src/pages/Ticket/Negative/TicketLackList.vue index 469e98aa1..7b9db0e6a 100644 --- a/src/pages/Ticket/Negative/TicketLackList.vue +++ b/src/pages/Ticket/Negative/TicketLackList.vue @@ -190,6 +190,7 @@ const onDetailDialogHide = (evt) => {