support adding / deleting sub account after account created (#77)

This commit is contained in:
MaysWind
2025-04-26 23:36:23 +08:00
parent e7e2cc8081
commit 78ba43480b
20 changed files with 520 additions and 76 deletions
@@ -91,6 +91,10 @@ export function useAccountEditPageBaseBase() {
}
}
function isNewAccount(account: Account): boolean {
return account.id === '' || account.id === '0';
}
function isInputEmpty(): boolean {
const isAccountEmpty = !!getInputEmptyProblemMessage(account.value, false);
@@ -172,6 +176,7 @@ export function useAccountEditPageBaseBase() {
isAccountSupportCreditCardStatementDate,
// functions
getAccountCreditCardStatementDate,
isNewAccount,
isInputEmpty,
getAccountOrSubAccountProblemMessage,
addSubAccount,