From 84581333b74d8ac1b0867e5b8c276f6fc332e4eb Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 19 九月 2025 14:06:21 +0800
Subject: [PATCH] fix: bug

---
 src/views/FinanceManage/components/FinanceDetailDialog.vue |   53 +++++++++++++++++++++++++++++------------------------
 1 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/src/views/FinanceManage/components/FinanceDetailDialog.vue b/src/views/FinanceManage/components/FinanceDetailDialog.vue
index ffa1459..b05ba85 100644
--- a/src/views/FinanceManage/components/FinanceDetailDialog.vue
+++ b/src/views/FinanceManage/components/FinanceDetailDialog.vue
@@ -12,6 +12,9 @@
 <script setup lang="ts">
 import { ProDialog, toThousand } from '@bole-core/components';
 import { usePortraitTable } from '@/hooks';
+import * as userServices from '@/services/api/user';
+import { useQuery } from '@tanstack/vue-query';
+import { EnumWalletTransactionStatusText } from '@/constants';
 
 defineOptions({
   name: 'FinanceDetailDialog',
@@ -29,68 +32,70 @@
   (e: 'onCancel'): void;
 }>();
 
+const { data: detail } = useQuery({
+  queryKey: ['userResumeServices/getUserResume', form.value.id],
+  queryFn: async () => {
+    return await userServices.getPersonalUserTransaction({ id: form.value.id });
+  },
+  placeholderData: () => ({} as API.GetPersonalUserTransactionQueryResult),
+  enabled: computed(() => !!form.value.id),
+});
+
 const { portraitTableProps } = usePortraitTable({
-  data: form,
+  data: detail,
   columns: [
     {
       label: '浠樻浜鸿处鎴�',
-      key: 'id',
-      type: 'text',
+      key: 'payerAccount',
     },
     {
       label: '鏀舵浜鸿处鎴�',
-      key: 'id',
-      type: 'text',
+      key: 'receiveAccount',
     },
     {
       label: '浠樻浜哄悕绉�',
-      key: 'id',
-      type: 'text',
+      key: 'payerName',
     },
     {
       label: '鏀舵浜哄悕绉�',
-      key: 'id',
-      type: 'text',
+      key: 'receiveName',
     },
     {
       label: '浠樻浜哄紑鎴疯',
-      key: 'id',
-      type: 'text',
+      key: 'payerBank',
     },
     {
       label: '鏀舵浜哄紑鎴疯',
-      key: 'id',
-      type: 'text',
+      key: 'receiveBank',
     },
     {
       label: '甯佺',
-      key: 'id',
-      type: 'text',
+      key: 'currency',
     },
     {
       label: '浜ゆ槗閲戦',
-      key: 'id',
+      key: 'actualAmount',
       type: 'money',
     },
     {
       label: '鐢ㄩ��',
-      key: 'id',
-      type: 'text',
+      key: 'purpose',
     },
     {
       label: '鎽樿',
-      key: 'id',
-      type: 'text',
+      key: 'failReason',
     },
     {
       label: '浜ゆ槗鏃堕棿',
-      key: 'id',
-      type: 'text',
+      key: 'transDate',
+      type: 'date',
+      format: 'YYYY-MM-DD HH:mm:ss',
     },
     {
       label: '浜ゆ槗鐘舵��',
-      key: 'id',
-      type: 'text',
+      key: 'transactionStatus',
+      type: 'enum',
+      valueEnum: EnumWalletTransactionStatusText,
     },
   ],
 });

--
Gitblit v1.9.1