fix(account): 이체 입금 종류 카드·대출 제외 + 계좌 칩 자동 줄바꿈
Deploy / deploy (push) Failing after 13m59s

- 이체 입금 계좌 종류에서 카드·대출 제외(계좌→카드/대출은 상환)
- 계좌 선택 칩을 고정 2열→자동 줄바꿈(이름 길이/폭에 맞춰 채움, 잘림 없음)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-06 23:22:30 +09:00
parent 1b2d6a2c02
commit 951cbdce34
2 changed files with 5 additions and 6 deletions
+5 -4
View File
@@ -356,6 +356,10 @@ const fromWalletKinds = computed(() =>
return true return true
}), }),
) )
// 이체 입금 계좌 종류: 카드·대출은 이체가 아니라 '상환' 대상이므로 제외
const toWalletKinds = computed(() =>
WALLET_KINDS.filter((k) => k.value !== 'CARD' && k.value !== 'LOAN'),
)
const TYPES = [ const TYPES = [
{ value: 'EXPENSE', label: '지출', cls: 'chip-expense' }, { value: 'EXPENSE', label: '지출', cls: 'chip-expense' },
{ value: 'INCOME', label: '수입', cls: 'chip-income' }, { value: 'INCOME', label: '수입', cls: 'chip-income' },
@@ -1170,7 +1174,6 @@ onMounted(async () => {
v-if="form.walletKind" v-if="form.walletKind"
v-model="form.walletId" v-model="form.walletId"
:options="fromWalletOptions" :options="fromWalletOptions"
:cols="2"
:disabled="submitting" :disabled="submitting"
:empty-text="`등록된 ${walletKindLabel}() 없습니다`" :empty-text="`등록된 ${walletKindLabel}() 없습니다`"
/> />
@@ -1187,7 +1190,7 @@ onMounted(async () => {
<div class="field"> <div class="field">
<span class="field-label">입금 종류</span> <span class="field-label">입금 종류</span>
<div class="wallet-chips"> <div class="wallet-chips">
<button v-for="k in WALLET_KINDS" :key="k.value" type="button" <button v-for="k in toWalletKinds" :key="k.value" type="button"
class="chip" :class="{ active: form.toWalletKind === k.value }" class="chip" :class="{ active: form.toWalletKind === k.value }"
:disabled="submitting" @click="form.toWalletKind = k.value; onToWalletKindChange()"> :disabled="submitting" @click="form.toWalletKind = k.value; onToWalletKindChange()">
{{ k.label }} {{ k.label }}
@@ -1197,7 +1200,6 @@ onMounted(async () => {
v-if="form.toWalletKind" v-if="form.toWalletKind"
v-model="form.toWalletId" v-model="form.toWalletId"
:options="toWalletOptions" :options="toWalletOptions"
:cols="2"
:disabled="submitting" :disabled="submitting"
empty-text="등록된 계좌가 없습니다" empty-text="등록된 계좌가 없습니다"
/> />
@@ -1211,7 +1213,6 @@ onMounted(async () => {
<ChipSelect <ChipSelect
v-model="form.toWalletId" v-model="form.toWalletId"
:options="repayTargetOptions" :options="repayTargetOptions"
:cols="2"
:disabled="submitting" :disabled="submitting"
empty-text="등록된 대출/카드가 없습니다" empty-text="등록된 대출/카드가 없습니다"
/> />
-2
View File
@@ -315,7 +315,6 @@ onMounted(load)
v-if="form.walletKind" v-if="form.walletKind"
v-model="form.walletId" v-model="form.walletId"
:options="fromWalletOptions" :options="fromWalletOptions"
:cols="2"
:disabled="submitting" :disabled="submitting"
empty-text="등록된 계좌가 없습니다" empty-text="등록된 계좌가 없습니다"
/> />
@@ -336,7 +335,6 @@ onMounted(load)
v-if="form.toWalletKind" v-if="form.toWalletKind"
v-model="form.toWalletId" v-model="form.toWalletId"
:options="toWalletOptions" :options="toWalletOptions"
:cols="2"
:disabled="submitting" :disabled="submitting"
empty-text="등록된 계좌가 없습니다" empty-text="등록된 계좌가 없습니다"
/> />