#8745 - fixCustomer #1588

Open
carlossa wants to merge 9 commits from 8745-fixCustomer into master
2 changed files with 6 additions and 16 deletions
Showing only changes of commit f648d8c84c - Show all commits

View File

@ -99,12 +99,6 @@ const columns = computed(() => [
align: 'left',
field: '',
name: 'validate',
component: CustomerCheckIconTooltip,
columnField: {
component: CustomerCheckIconTooltip,
promise: () => ClientDmsRef.value.fetch(),
},
},
]);
</script>
@ -127,7 +121,7 @@ const columns = computed(() => [
<CustomerCloseIconTooltip :transaction="row" />
</template>
<template #column-validate="{ row }">
<CustomerCheckIconTooltip :transaction="row" />
<CustomerCheckIconTooltip :transaction="row" :promise="tableRef.reload" />
</template>
</VnTable>
</template>

View File

@ -16,15 +16,11 @@ const $props = defineProps({
},
});
const setClientsConfirmTransaction = async () => {
try {
const payload = { id: $props.transaction.id };
await axios.post('Clients/confirmTransaction', payload);
$props.promise();
} catch (error) {
return error;
}
};
async function setClientsConfirmTransaction() {
const payload = { id: $props.transaction.id };
await axios.post('Clients/confirmTransaction', payload);
await $props.promise();
}
</script>
<template>