- 이체 입금 계좌 종류에서 카드·대출 제외(계좌→카드/대출은 상환) - 계좌 선택 칩을 고정 2열→자동 줄바꿈(이름 길이/폭에 맞춰 채움, 잘림 없음) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -356,6 +356,10 @@ const fromWalletKinds = computed(() =>
|
||||
return true
|
||||
}),
|
||||
)
|
||||
// 이체 입금 계좌 종류: 카드·대출은 이체가 아니라 '상환' 대상이므로 제외
|
||||
const toWalletKinds = computed(() =>
|
||||
WALLET_KINDS.filter((k) => k.value !== 'CARD' && k.value !== 'LOAN'),
|
||||
)
|
||||
const TYPES = [
|
||||
{ value: 'EXPENSE', label: '지출', cls: 'chip-expense' },
|
||||
{ value: 'INCOME', label: '수입', cls: 'chip-income' },
|
||||
@@ -1170,7 +1174,6 @@ onMounted(async () => {
|
||||
v-if="form.walletKind"
|
||||
v-model="form.walletId"
|
||||
:options="fromWalletOptions"
|
||||
:cols="2"
|
||||
:disabled="submitting"
|
||||
:empty-text="`등록된 ${walletKindLabel}이(가) 없습니다`"
|
||||
/>
|
||||
@@ -1187,7 +1190,7 @@ onMounted(async () => {
|
||||
<div class="field">
|
||||
<span class="field-label">입금 종류</span>
|
||||
<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 }"
|
||||
:disabled="submitting" @click="form.toWalletKind = k.value; onToWalletKindChange()">
|
||||
{{ k.label }}
|
||||
@@ -1197,7 +1200,6 @@ onMounted(async () => {
|
||||
v-if="form.toWalletKind"
|
||||
v-model="form.toWalletId"
|
||||
:options="toWalletOptions"
|
||||
:cols="2"
|
||||
:disabled="submitting"
|
||||
empty-text="등록된 계좌가 없습니다"
|
||||
/>
|
||||
@@ -1211,7 +1213,6 @@ onMounted(async () => {
|
||||
<ChipSelect
|
||||
v-model="form.toWalletId"
|
||||
:options="repayTargetOptions"
|
||||
:cols="2"
|
||||
:disabled="submitting"
|
||||
empty-text="등록된 대출/카드가 없습니다"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user