mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
code refactor
This commit is contained in:
@@ -168,7 +168,7 @@
|
||||
:custom-selection-primary-text="sourceAccountName"
|
||||
:label="$t(sourceAccountTitle)"
|
||||
:placeholder="$t(sourceAccountTitle)"
|
||||
:items="categorizedAccounts"
|
||||
:items="allVisibleCategorizedAccounts"
|
||||
v-model="transaction.sourceAccountId">
|
||||
</two-column-select>
|
||||
</v-col>
|
||||
@@ -186,7 +186,7 @@
|
||||
:custom-selection-primary-text="destinationAccountName"
|
||||
:label="$t('Destination Account')"
|
||||
:placeholder="$t('Destination Account')"
|
||||
:items="categorizedAccounts"
|
||||
:items="allVisibleCategorizedAccounts"
|
||||
v-model="transaction.destinationAccountId">
|
||||
</two-column-select>
|
||||
</v-col>
|
||||
@@ -576,7 +576,7 @@ export default {
|
||||
allVisibleAccounts() {
|
||||
return this.accountsStore.allVisiblePlainAccounts;
|
||||
},
|
||||
categorizedAccounts() {
|
||||
allVisibleCategorizedAccounts() {
|
||||
return this.$locale.getCategorizedAccountsWithDisplayBalance(this.allVisibleAccounts, this.showAccountBalance, this.defaultCurrency, this.settingsStore, this.userStore, this.exchangeRatesStore);
|
||||
},
|
||||
allAccountsMap() {
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
:disabled="loading || submitting || !allVisibleAccounts.length"
|
||||
:custom-selection-primary-text="getSourceAccountDisplayName(item)"
|
||||
:placeholder="getSourceAccountTitle(item)"
|
||||
:items="categorizedAccounts"
|
||||
:items="allVisibleCategorizedAccounts"
|
||||
v-model="item.sourceAccountId"
|
||||
@update:model-value="updateTransactionData(item)">
|
||||
</two-column-select>
|
||||
@@ -242,7 +242,7 @@
|
||||
:disabled="loading || submitting || !allVisibleAccounts.length"
|
||||
:custom-selection-primary-text="getDestinationAccountDisplayName(item)"
|
||||
:placeholder="$t('Destination Account')"
|
||||
:items="categorizedAccounts"
|
||||
:items="allVisibleCategorizedAccounts"
|
||||
v-model="item.destinationAccountId"
|
||||
@update:model-value="updateTransactionData(item)">
|
||||
</two-column-select>
|
||||
@@ -480,7 +480,7 @@ export default {
|
||||
allVisibleAccounts() {
|
||||
return this.accountsStore.allVisiblePlainAccounts;
|
||||
},
|
||||
categorizedAccounts() {
|
||||
allVisibleCategorizedAccounts() {
|
||||
return this.$locale.getCategorizedAccountsWithDisplayBalance(this.allVisibleAccounts, this.showAccountBalance, this.defaultCurrency, this.settingsStore, this.userStore, this.exchangeRatesStore);
|
||||
},
|
||||
allAccountsMap() {
|
||||
|
||||
Reference in New Issue
Block a user