From 8bc6fff33ac1eb45c3413c93627607e470ad32f5 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 18 十一月 2025 13:22:43 +0800
Subject: [PATCH] feat: 新增出账投保人数

---
 src/views/BalanceManage/components/ConsumeRecordView.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/src/views/BalanceManage/components/ConsumeRecordView.vue b/src/views/BalanceManage/components/ConsumeRecordView.vue
index 2bc95a3..bb9c7d4 100644
--- a/src/views/BalanceManage/components/ConsumeRecordView.vue
+++ b/src/views/BalanceManage/components/ConsumeRecordView.vue
@@ -2,14 +2,15 @@
   <LoadingLayout :loading="state.loading">
     <AppContainer>
       <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns">
-        <template #operationBtn-checkBtn="{ data, row }">
+        <!-- <template #operationBtn-checkBtn="{ data, row }">
           <PreviewBtnV2
             class="pro-table-operation-btn"
             :url="convertApi2FormUrlBySeparator(row.payFileUrl ?? '')"
             preview-btn-text="鏌ョ湅鍑瘉"
           />
-        </template>
+        </template> -->
       </ProTableV2>
+      <ParkBountyTradeDetailFileDialog v-bind="dialogProps" />
     </AppContainer>
   </LoadingLayout>
 </template>
@@ -21,10 +22,16 @@
   PreviewBtnV2,
   ProTableV2,
   defineOperationBtns,
+  useFormDialog,
+  UploadUserFile,
 } from '@bole-core/components';
 import { OrderInputType } from '@bole-core/core';
 import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
-import { convertApi2FormUrlBySeparator } from '@/utils';
+import {
+  convertApi2FormUrlBySeparator,
+  convertApi2FormUrlObjectBySeparator,
+  convertApi2FormUrlOnlyOne,
+} from '@/utils';
 import { FinanceTypeEnumText } from '@/constants';
 
 defineOptions({
@@ -48,6 +55,11 @@
     name: '娑堣垂绫诲瀷',
   },
   {
+    id: '3-1',
+    enCode: 'incomeCompanyName',
+    name: '杩涜处鍗曚綅',
+  },
+  {
     id: '4',
     enCode: 'financeType',
     name: '璧勯噾绫诲瀷',
@@ -59,6 +71,7 @@
       enCode: 'checkBtn',
       name: '鏌ョ湅鍑瘉',
     },
+    emits: { onClick: (role) => openDialog(role) },
   },
 ]);
 
@@ -111,6 +124,26 @@
   await getList();
   state.loading = false;
 });
+
+function openDialog(row: API.GetParkBountyTradeDetailOutput) {
+  handleAdd({
+    payAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.payAuditFileUrl),
+    financeAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.financeAuditFileUrl),
+    selfAuditFileUrl: convertApi2FormUrlObjectBySeparator(row.selfAuditFileUrl),
+    payFileUrl: convertApi2FormUrlObjectBySeparator(row.payFileUrl),
+    insureBillUrl: convertApi2FormUrlObjectBySeparator(row.insureBillUrl),
+  });
+}
+
+const { dialogProps, handleAdd } = useFormDialog({
+  defaultFormParams: {
+    payAuditFileUrl: [] as UploadUserFile[],
+    financeAuditFileUrl: [] as UploadUserFile[],
+    selfAuditFileUrl: [] as UploadUserFile[],
+    payFileUrl: [] as UploadUserFile[],
+    insureBillUrl: [] as UploadUserFile[],
+  },
+});
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.1