From 9dd95cc0cde6664d1cfcb4e14f402981c57c2585 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 30 十月 2025 17:58:25 +0800
Subject: [PATCH] fix: s
---
src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue | 35 ++++++++++++++++++++++++++++++++---
1 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue b/src/views/EnterpriseInfo/components/RewardConsumeRecordView.vue
index 3b093dd..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',
@@ -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