2026-01-06 20:55:11 +08:00
|
|
|
|
<template>
|
2026-01-07 14:36:30 +08:00
|
|
|
|
<div class="page-container-flex">
|
2026-01-07 15:00:55 +08:00
|
|
|
|
<van-nav-bar title="预算管理" placeholder>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<template #right>
|
2026-01-07 20:31:12 +08:00
|
|
|
|
<van-icon
|
|
|
|
|
|
v-if="activeTab !== BudgetCategory.Savings"
|
|
|
|
|
|
name="plus"
|
|
|
|
|
|
size="20"
|
|
|
|
|
|
@click="budgetEditRef.open({ category: activeTab })"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<van-icon
|
|
|
|
|
|
v-else
|
|
|
|
|
|
name="info-o"
|
|
|
|
|
|
size="20"
|
|
|
|
|
|
@click="savingsConfigRef.open()"
|
|
|
|
|
|
/>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</van-nav-bar>
|
|
|
|
|
|
|
2026-01-08 14:41:50 +08:00
|
|
|
|
<van-tabs v-model:active="activeTab" type="card" class="budget-tabs">
|
|
|
|
|
|
<van-tab title="支出" :name="BudgetCategory.Expense">
|
2026-01-08 15:16:25 +08:00
|
|
|
|
<BudgetSummary
|
|
|
|
|
|
v-if="activeTab !== BudgetCategory.Savings"
|
|
|
|
|
|
:stats="overallStats"
|
|
|
|
|
|
:title="activeTabTitle"
|
|
|
|
|
|
:get-value-class="getValueClass"
|
|
|
|
|
|
/>
|
2026-01-08 14:41:50 +08:00
|
|
|
|
<div class="scroll-content">
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<div class="budget-list">
|
|
|
|
|
|
<template v-if="expenseBudgets?.length > 0">
|
|
|
|
|
|
<van-swipe-cell v-for="budget in expenseBudgets" :key="budget.id">
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<BudgetCard
|
|
|
|
|
|
:budget="budget"
|
|
|
|
|
|
:progress-color="getProgressColor(budget)"
|
|
|
|
|
|
:percent-class="{ 'warning': (budget.current / budget.limit) > 0.8 }"
|
|
|
|
|
|
:period-label="getPeriodLabel(budget.type)"
|
|
|
|
|
|
@toggle-stop="handleToggleStop"
|
|
|
|
|
|
@switch-period="(dir) => handleSwitchPeriod(budget, dir)"
|
2026-01-07 19:19:53 +08:00
|
|
|
|
@click="budgetEditRef.open({
|
|
|
|
|
|
data: budget,
|
|
|
|
|
|
isEditFlag: true,
|
|
|
|
|
|
category: budget.category
|
|
|
|
|
|
})"
|
2026-01-07 17:33:50 +08:00
|
|
|
|
>
|
|
|
|
|
|
<template #amount-info>
|
|
|
|
|
|
<div class="info-item">
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<div class="label">已支出</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="value expense">¥{{ formatMoney(budget.current) }}</div>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="info-item">
|
|
|
|
|
|
<div class="label">预算</div>
|
|
|
|
|
|
<div class="value">¥{{ formatMoney(budget.limit) }}</div>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="info-item">
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<div class="label">余额</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="value" :class="budget.limit - budget.current >= 0 ? 'income' : 'expense'">
|
|
|
|
|
|
¥{{ formatMoney(budget.limit - budget.current) }}
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</BudgetCard>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<template #right>
|
|
|
|
|
|
<van-button square text="删除" type="danger" class="delete-button" @click="handleDelete(budget)" />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</van-swipe-cell>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<van-empty v-else description="暂无支出预算" />
|
|
|
|
|
|
</div>
|
2026-01-08 14:41:50 +08:00
|
|
|
|
<div style="height: calc(50px + env(safe-area-inset-bottom, 0px))"></div>
|
|
|
|
|
|
</div>
|
2026-01-09 15:42:59 +08:00
|
|
|
|
</van-tab>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<van-tab title="收入" :name="BudgetCategory.Income">
|
|
|
|
|
|
<BudgetSummary
|
|
|
|
|
|
v-if="activeTab !== BudgetCategory.Savings"
|
|
|
|
|
|
:stats="overallStats"
|
|
|
|
|
|
:title="activeTabTitle"
|
|
|
|
|
|
:get-value-class="getValueClass"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<div class="scroll-content">
|
|
|
|
|
|
<div class="budget-list">
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<template v-if="incomeBudgets?.length > 0">
|
|
|
|
|
|
<van-swipe-cell v-for="budget in incomeBudgets" :key="budget.id">
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<BudgetCard
|
|
|
|
|
|
:budget="budget"
|
|
|
|
|
|
:progress-color="getIncomeProgressColor(budget)"
|
|
|
|
|
|
:percent-class="{ 'income': (budget.current / budget.limit) >= 1 }"
|
|
|
|
|
|
:period-label="getPeriodLabel(budget.type)"
|
|
|
|
|
|
@toggle-stop="handleToggleStop"
|
|
|
|
|
|
@switch-period="(dir) => handleSwitchPeriod(budget, dir)"
|
2026-01-07 19:57:43 +08:00
|
|
|
|
@click="budgetEditRef.open({
|
|
|
|
|
|
data: budget,
|
|
|
|
|
|
isEditFlag: true,
|
|
|
|
|
|
category: budget.category
|
|
|
|
|
|
})"
|
2026-01-07 17:33:50 +08:00
|
|
|
|
>
|
|
|
|
|
|
<template #amount-info>
|
|
|
|
|
|
<div class="info-item">
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<div class="label">已收入</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="value income">¥{{ formatMoney(budget.current) }}</div>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="info-item">
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<div class="label">目标</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="value">¥{{ formatMoney(budget.limit) }}</div>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<div class="info-item">
|
|
|
|
|
|
<div class="label">差额</div>
|
|
|
|
|
|
<div class="value" :class="budget.current >= budget.limit ? 'income' : 'expense'">
|
|
|
|
|
|
¥{{ formatMoney(Math.abs(budget.limit - budget.current)) }}
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-07 17:33:50 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</BudgetCard>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<template #right>
|
|
|
|
|
|
<van-button square text="删除" type="danger" class="delete-button" @click="handleDelete(budget)" />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</van-swipe-cell>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<van-empty v-else description="暂无收入预算" />
|
|
|
|
|
|
</div>
|
2026-01-08 14:41:50 +08:00
|
|
|
|
<div style="height: calc(50px + env(safe-area-inset-bottom, 0px))"></div>
|
|
|
|
|
|
</div>
|
2026-01-09 15:42:59 +08:00
|
|
|
|
</van-tab>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-09 15:42:59 +08:00
|
|
|
|
<van-tab title="存款" :name="BudgetCategory.Savings">
|
|
|
|
|
|
<div class="scroll-content" style="padding-top:4px">
|
|
|
|
|
|
<div class="budget-list">
|
2026-01-06 20:55:11 +08:00
|
|
|
|
<template v-if="savingsBudgets?.length > 0">
|
2026-01-08 15:16:25 +08:00
|
|
|
|
<BudgetCard
|
2026-01-09 15:42:59 +08:00
|
|
|
|
v-for="budget in savingsBudgets"
|
|
|
|
|
|
:key="budget.id"
|
|
|
|
|
|
:budget="budget"
|
|
|
|
|
|
progress-color="#07c160"
|
|
|
|
|
|
:percent-class="{ 'income': (budget.current / budget.limit) >= 1 }"
|
|
|
|
|
|
:period-label="getPeriodLabel(budget.type)"
|
|
|
|
|
|
style="margin: 0 12px 12px;"
|
|
|
|
|
|
@switch-period="(dir) => handleSwitchPeriod(budget, dir)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #amount-info>
|
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
|
<div class="label">已存</div>
|
|
|
|
|
|
<div class="value income">¥{{ formatMoney(budget.current) }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
|
<div class="label">目标</div>
|
|
|
|
|
|
<div class="value">¥{{ formatMoney(budget.limit) }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
|
<div class="label">还差</div>
|
|
|
|
|
|
<div class="value expense">
|
|
|
|
|
|
¥{{ formatMoney(Math.max(0, budget.limit - budget.current)) }}
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
2026-01-09 15:42:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
2026-01-08 15:16:25 +08:00
|
|
|
|
</BudgetCard>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<van-empty v-else description="暂无存款计划" />
|
|
|
|
|
|
</div>
|
2026-01-08 14:41:50 +08:00
|
|
|
|
<div style="height: calc(50px + env(safe-area-inset-bottom, 0px))"></div>
|
|
|
|
|
|
</div>
|
2026-01-09 15:42:59 +08:00
|
|
|
|
</van-tab>
|
|
|
|
|
|
</van-tabs>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-07 17:33:50 +08:00
|
|
|
|
<BudgetEditPopup
|
|
|
|
|
|
ref="budgetEditRef"
|
|
|
|
|
|
@success="fetchBudgetList"
|
|
|
|
|
|
/>
|
2026-01-07 20:31:12 +08:00
|
|
|
|
<SavingsConfigPopup
|
|
|
|
|
|
ref="savingsConfigRef"
|
|
|
|
|
|
@success="fetchBudgetList"
|
|
|
|
|
|
/>
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-01-07 19:19:53 +08:00
|
|
|
|
import { ref, computed, onMounted, watch } from 'vue'
|
2026-01-06 20:55:11 +08:00
|
|
|
|
import { showToast, showConfirmDialog } from 'vant'
|
2026-01-09 15:42:59 +08:00
|
|
|
|
import { getBudgetList, deleteBudget, toggleStopBudget, getBudgetStatistics, getCategoryStats } from '@/api/budget'
|
2026-01-06 21:15:02 +08:00
|
|
|
|
import { BudgetPeriodType, BudgetCategory } from '@/constants/enums'
|
2026-01-07 17:33:50 +08:00
|
|
|
|
import BudgetCard from '@/components/Budget/BudgetCard.vue'
|
|
|
|
|
|
import BudgetSummary from '@/components/Budget/BudgetSummary.vue'
|
|
|
|
|
|
import BudgetEditPopup from '@/components/Budget/BudgetEditPopup.vue'
|
2026-01-07 20:31:12 +08:00
|
|
|
|
import SavingsConfigPopup from '@/components/Budget/SavingsConfigPopup.vue'
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const activeTab = ref(BudgetCategory.Expense)
|
2026-01-07 17:33:50 +08:00
|
|
|
|
const budgetEditRef = ref(null)
|
2026-01-07 20:31:12 +08:00
|
|
|
|
const savingsConfigRef = ref(null)
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const expenseBudgets = ref([])
|
|
|
|
|
|
const incomeBudgets = ref([])
|
|
|
|
|
|
const savingsBudgets = ref([])
|
2026-01-09 15:42:59 +08:00
|
|
|
|
const overallStats = ref({
|
|
|
|
|
|
month: { rate: '0.0', current: 0, limit: 0, count: 0 },
|
|
|
|
|
|
year: { rate: '0.0', current: 0, limit: 0, count: 0 }
|
|
|
|
|
|
})
|
2026-01-06 20:55:11 +08:00
|
|
|
|
|
2026-01-06 21:23:04 +08:00
|
|
|
|
const activeTabTitle = computed(() => {
|
|
|
|
|
|
if (activeTab.value === BudgetCategory.Expense) return '使用'
|
|
|
|
|
|
return '达成'
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2026-01-09 15:42:59 +08:00
|
|
|
|
watch(activeTab, async () => {
|
|
|
|
|
|
await fetchCategoryStats()
|
2026-01-06 21:23:04 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const getValueClass = (rate) => {
|
|
|
|
|
|
const numRate = parseFloat(rate)
|
|
|
|
|
|
if (numRate === 0) return ''
|
|
|
|
|
|
if (activeTab.value === BudgetCategory.Expense) {
|
|
|
|
|
|
if (numRate >= 100) return 'expense'
|
|
|
|
|
|
if (numRate >= 80) return 'warning'
|
|
|
|
|
|
return 'income'
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if (numRate >= 100) return 'income'
|
|
|
|
|
|
if (numRate >= 80) return 'warning'
|
|
|
|
|
|
return 'expense'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const fetchBudgetList = async () => {
|
2026-01-06 20:55:11 +08:00
|
|
|
|
try {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const res = await getBudgetList()
|
2026-01-06 20:55:11 +08:00
|
|
|
|
if (res.success) {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const data = res.data || []
|
|
|
|
|
|
expenseBudgets.value = data.filter(b => b.category === BudgetCategory.Expense)
|
|
|
|
|
|
incomeBudgets.value = data.filter(b => b.category === BudgetCategory.Income)
|
|
|
|
|
|
savingsBudgets.value = data.filter(b => b.category === BudgetCategory.Savings)
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
console.error('加载预算列表失败', err)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-09 15:42:59 +08:00
|
|
|
|
const fetchCategoryStats = async () => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await getCategoryStats(activeTab.value)
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
// 转换后端返回的数据格式为前端需要的格式
|
|
|
|
|
|
const data = res.data
|
|
|
|
|
|
overallStats.value = {
|
|
|
|
|
|
month: {
|
|
|
|
|
|
rate: data.month?.rate?.toFixed(1) || '0.0',
|
|
|
|
|
|
current: data.month?.current || 0,
|
|
|
|
|
|
limit: data.month?.limit || 0,
|
|
|
|
|
|
count: data.month?.count || 0
|
|
|
|
|
|
},
|
|
|
|
|
|
year: {
|
|
|
|
|
|
rate: data.year?.rate?.toFixed(1) || '0.0',
|
|
|
|
|
|
current: data.year?.current || 0,
|
|
|
|
|
|
limit: data.year?.limit || 0,
|
|
|
|
|
|
count: data.year?.count || 0
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
console.error('加载分类统计失败', err)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
onMounted(async () => {
|
|
|
|
|
|
try {
|
2026-01-07 17:33:50 +08:00
|
|
|
|
await fetchBudgetList()
|
2026-01-09 15:42:59 +08:00
|
|
|
|
await fetchCategoryStats()
|
2026-01-06 20:55:11 +08:00
|
|
|
|
} catch (err) {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
console.error('获取初始化数据失败', err)
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const formatMoney = (val) => {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
return parseFloat(val || 0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const getPeriodLabel = (type) => {
|
|
|
|
|
|
const map = {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
[BudgetPeriodType.Month]: '本月',
|
2026-01-08 14:41:50 +08:00
|
|
|
|
[BudgetPeriodType.Year]: '本年'
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
return map[type] || '周期'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const getProgressColor = (budget) => {
|
|
|
|
|
|
const ratio = budget.current / budget.limit
|
2026-01-09 15:42:59 +08:00
|
|
|
|
if (ratio >= 1) return '#ee0a24'
|
|
|
|
|
|
if (ratio > 0.8) return '#ff976a'
|
|
|
|
|
|
return '#1989fa'
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const getIncomeProgressColor = (budget) => {
|
|
|
|
|
|
const ratio = budget.current / budget.limit
|
2026-01-09 15:42:59 +08:00
|
|
|
|
if (ratio >= 1) return '#07c160'
|
|
|
|
|
|
return '#1989fa'
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const refDateMap = {}
|
|
|
|
|
|
|
|
|
|
|
|
const handleSwitchPeriod = async (budget, direction) => {
|
|
|
|
|
|
let currentRefDate = refDateMap[budget.id] || new Date()
|
|
|
|
|
|
const date = new Date(currentRefDate)
|
|
|
|
|
|
|
2026-01-08 14:41:50 +08:00
|
|
|
|
if (budget.type === BudgetPeriodType.Month) {
|
2026-01-06 21:15:02 +08:00
|
|
|
|
date.setMonth(date.getMonth() + direction)
|
|
|
|
|
|
} else if (budget.type === BudgetPeriodType.Year) {
|
|
|
|
|
|
date.setFullYear(date.getFullYear() + direction)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await getBudgetStatistics(budget.id, date.toISOString())
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
refDateMap[budget.id] = date
|
|
|
|
|
|
Object.assign(budget, res.data)
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
showToast('加载历史统计失败')
|
|
|
|
|
|
console.error('加载预算历史统计失败', err)
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const handleDelete = (budget) => {
|
|
|
|
|
|
showConfirmDialog({
|
|
|
|
|
|
title: '确认删除',
|
|
|
|
|
|
message: `确定要删除预算 "${budget.name}" 吗?`,
|
2026-01-06 21:15:02 +08:00
|
|
|
|
}).then(async () => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await deleteBudget(budget.id)
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
showToast('已删除')
|
|
|
|
|
|
fetchBudgetList()
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
showToast('删除失败')
|
|
|
|
|
|
console.error('删除预算失败', err)
|
|
|
|
|
|
}
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}).catch(() => {})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-06 21:15:02 +08:00
|
|
|
|
const handleToggleStop = async (budget) => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await toggleStopBudget(budget.id)
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
showToast(budget.isStopped ? '已恢复' : '已停止')
|
|
|
|
|
|
fetchBudgetList()
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
showToast('操作失败')
|
|
|
|
|
|
console.error('切换预算状态失败', err)
|
2026-01-06 20:55:11 +08:00
|
|
|
|
}
|
2026-01-06 21:15:02 +08:00
|
|
|
|
}
|
2026-01-06 20:55:11 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-01-08 14:41:50 +08:00
|
|
|
|
.budget-tabs {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
overflow: hidden;
|
2026-01-08 15:16:25 +08:00
|
|
|
|
margin-top: 12px;
|
2026-01-08 14:41:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.van-tabs__content) {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.van-tab__panel) {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-06 20:55:11 +08:00
|
|
|
|
.budget-list {
|
|
|
|
|
|
padding-top: 8px;
|
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.budget-list :deep(.van-swipe-cell) {
|
|
|
|
|
|
margin: 0 12px 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.delete-button {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.van-tabs__nav--card) {
|
|
|
|
|
|
margin: 0 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|