refactor: handle goTo DebitNote
This commit is contained in:
parent
b4a98ae283
commit
4aa27d834f
3 changed files with 43 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue