From 404a6138ba3594a66d1b66e2bc79b9b3132836c5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 17 四月 2025 17:20:36 +0800
Subject: [PATCH] feat: 页面

---
 src/views/EnterpriseInfo/components/RewardGrantRecordView.vue |   60 ++++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 42 insertions(+), 18 deletions(-)

diff --git a/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue b/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue
index b3e4419..35a804c 100644
--- a/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue
+++ b/src/views/EnterpriseInfo/components/RewardGrantRecordView.vue
@@ -2,15 +2,30 @@
   <LoadingLayout :loading="state.loading">
     <AppContainer>
       <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns">
+        <template #operationBtn-checkBtn="{ data, row }">
+          <PreviewBtnV2
+            class="pro-table-operation-btn"
+            :url="convertApi2FormUrlBySeparator(row.transferToFileUrl ?? '')"
+            preview-btn-text="鏌ョ湅鍑瘉"
+          />
+        </template>
       </ProTableV2>
     </AppContainer>
   </LoadingLayout>
 </template>
 
 <script setup lang="ts">
-import { AppContainer, useTable, ProTableV2, defineOperationBtns } from '@bole-core/components';
+import {
+  AppContainer,
+  useTable,
+  ProTableV2,
+  defineOperationBtns,
+  PreviewBtnV2,
+} from '@bole-core/components';
+import { convertApi2FormUrlBySeparator } from '@/utils';
 import { OrderInputType } from '@bole-core/core';
-import * as informationServices from '@/services/api/Information';
+import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
+import { IncomeStatusEnumText } from '@/constants';
 
 defineOptions({
   name: 'RewardGrantRecordView',
@@ -19,39 +34,41 @@
 const column: API.CustomModuleColumnDto[] = [
   {
     id: '1',
-    enCode: 'batchBillNo',
+    enCode: 'batchNo',
     name: '鐢虫姤鎵规鍙�',
   },
   {
     id: '2',
-    enCode: 'changeType',
-    name: '濂栧姳閲戝彂鏀炬棩鏈�',
+    enCode: 'batchNo',
+    name: '鐢虫姤鎬婚',
   },
   {
     id: '3',
-    enCode: 'creationTime',
-    name: '濂栧姳閲戝埌璐︽棩鏈�',
+    enCode: 'applySumAmount',
+    name: '璐㈡斂鎷ㄤ粯閲戦',
   },
   {
     id: '4',
-    enCode: 'effectTime',
-    name: '鍙戞斁閲戦',
+    enCode: 'settleTime',
+    name: '璐㈡斂鎷ㄤ粯鏃ユ湡',
   },
   {
     id: '5',
-    enCode: 'insurePersonNumber',
-    name: '鍒拌处纭缁撴灉',
+    enCode: 'applySumAmount',
+    name: '骞冲彴鍏呭�奸噾棰�',
+  },
+  {
+    id: '6',
+    enCode: 'incomeTime',
+    name: '骞冲彴鍏呭�兼棩鏈�',
   },
 ];
 
 const operationBtns = defineOperationBtns([
   {
     data: {
-      enCode: 'previewBtn',
+      enCode: 'checkBtn',
       name: '鏌ョ湅鍑瘉',
-    },
-    emits: {
-      onClick: (role) => handlePreview(role),
     },
   },
 ]);
@@ -74,14 +91,15 @@
 } = useTable(
   async ({ pageIndex, pageSize }, extraParamState) => {
     try {
-      let params: API.GetInformationForManageInput = {
+      let params: API.QueryParkCustomerBountyApplyInput = {
         pageModel: {
           rows: pageSize,
           page: pageIndex,
           orderInput: extraParamState.orderInput,
         },
+        id: id,
       };
-      let res = await informationServices.getInformationForManage(params, {
+      let res = await parkBountyApplyServices.getParkCustomerBountyGrantList(params, {
         showLoading: !state.loading,
       });
       return res;
@@ -89,7 +107,13 @@
   },
   {
     defaultExtraParams: {
-      orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }],
+      orderInput: [{ property: 'id', order: OrderInputType.Desc }],
+    },
+    columnsRenderProps: {
+      settleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
+      incomeTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
+      applySumAmount: { type: 'money' },
+      incomeStatus: { type: 'enum', valueEnum: IncomeStatusEnumText },
     },
   }
 );

--
Gitblit v1.9.1