From 3a19d8a4a3f841e279c4c00fcd08c5f3faafd2b2 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sun, 12 Jan 2025 16:45:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=A6=E6=88=B7=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=8C=E7=BC=96=E8=BE=91bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/work/accounts/accountDealRecord/addEdit.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/work/accounts/accountDealRecord/addEdit.vue b/src/pages/work/accounts/accountDealRecord/addEdit.vue index 35bc6de..1aeda53 100644 --- a/src/pages/work/accounts/accountDealRecord/addEdit.vue +++ b/src/pages/work/accounts/accountDealRecord/addEdit.vue @@ -195,17 +195,19 @@ onLoad((option) => { form.value = res.data if (form.value.dealCategory === '1') { childCategoryShow.value = true + // 交易类别 +getDicts('daily_expenses').then(result => { + form.value.childCategoryName=dictStr(form.value.childCategory, result.data) + }) } else { + form.value.childCategoryName = form.value.childCategory childCategoryShow.value = false } // 交易类别 getDicts('deal_category').then(result => { form.value.dealCategoryName=dictStr(form.value.dealCategory, result.data) }) - // 交易类别 -getDicts('daily_expenses').then(result => { - form.value.childCategoryName=dictStr(form.value.childCategory, result.data) - }) + // 记账类型 getDicts('account_type').then(result => { form.value.typeName=dictStr(form.value.type, result.data)