From 368c72d678ec6a1f5b60f109911d190e9c2a2809 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 31 十月 2025 17:30:24 +0800
Subject: [PATCH] fix: 四流

---
 src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue b/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue
index 5766fec..fb4195a 100644
--- a/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue
+++ b/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue
@@ -3,13 +3,14 @@
     <AppContainer>
       <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns">
         <template #operationBtn-checkBtn="{ data, row }">
-          <PreviewBtnV2
+          <!-- <PreviewBtnV2
             class="pro-table-operation-btn"
             :url="convertApi2FormUrlBySeparator(row.payFileUrl ?? '')"
             preview-btn-text="鏌ョ湅鍑瘉"
-          />
+          /> -->
         </template>
       </ProTableV2>
+      <ParkBountyTradeDetailFileDialog v-bind="dialogProps" />
     </AppContainer>
   </LoadingLayout>
 </template>
@@ -21,11 +22,18 @@
   ProTableV2,
   defineOperationBtns,
   PreviewBtnV2,
+  useFormDialog,
+  UploadUserFile,
 } from '@bole-core/components';
-import { convertApi2FormUrlBySeparator } from '@/utils';
+import {
+  convertApi2FormUrlBySeparator,
+  convertApi2FormUrlObjectBySeparator,
+  convertApi2FormUrlOnlyOne,
+} from '@/utils';
 import { OrderInputType } from '@bole-core/core';
 import * as parkRewardServices from '@/services/api/ParkReward';
 import { EnterpriseBountyPayTypeEnumText } from '@/constants';
+import ParkBountyTradeDetailFileDialog from '../../Reward/components/ParkBountyTradeDetailFileDialog.vue';
 
 defineOptions({
   name: 'RewardConsumeRecordView',
@@ -50,7 +58,7 @@
   {
     id: '4',
     enCode: 'remianAmount',
-    name: '濂栧姳閲戜綑棰�',
+    name: '璧勯噾浣欓',
   },
 ];
 
@@ -60,6 +68,7 @@
       enCode: 'checkBtn',
       name: '鏌ョ湅鍑瘉',
     },
+    emits: { onClick: (role) => openDialog(role) },
   },
 ]);
 
@@ -111,6 +120,26 @@
   await getList();
   state.loading = false;
 });
+
+function openDialog(row: API.GetParkCustomerBountyConsumptionOutput) {
+  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