refactor: handle goTo DebitNote

This commit is contained in:
Thanaphon Frappet 2025-02-21 13:59:25 +07:00
parent b4a98ae283
commit 4aa27d834f
3 changed files with 43 additions and 8 deletions

View file

@ -879,6 +879,14 @@ onMounted(async () => {
pageState.mode = route.query['mode'] as 'create' | 'edit' | 'info';
}
if (typeof route.query['tab'] === 'string') {
view.value =
{
payment: QuotationStatus.PaymentPending,
receipt: QuotationStatus.PaymentSuccess,
}[route.query['tab']] || null;
}
await useConfigStore().getConfig();
});
</script>