From ae671e401db4b158b6bd4292fb99fab58e40844c Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 11 四月 2025 09:14:04 +0800
Subject: [PATCH] feat: 接口

---
 src/views/MaterialReview/MaterialReviewDetail.vue |   36 ++++++++++++++++++++++++++++++++++--
 1 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/src/views/MaterialReview/MaterialReviewDetail.vue b/src/views/MaterialReview/MaterialReviewDetail.vue
index cc0fb29..d63cedd 100644
--- a/src/views/MaterialReview/MaterialReviewDetail.vue
+++ b/src/views/MaterialReview/MaterialReviewDetail.vue
@@ -23,11 +23,19 @@
               :extra-param-state="extraParamState"
               :pro-table-props="proTableProps"
               :reset="reset"
+              :open-dialog="openDialog"
             ></DeclareEnterpriseTableView>
+            <MateriaDetailDialog
+              v-bind="dialogProps"
+              :show-upload-btn="false"
+              :show-delete-btn="false"
+              :show-check-btn="false"
+              downloadBtnText="鏌ョ湅"
+            />
           </ChunkCellV2>
         </DetailView>
         <template #footer>
-          <el-button @click="handleBack">鍏抽棴</el-button>
+          <el-button @click="handleBack" type="primary">纭</el-button>
         </template>
       </PageFormLayout>
     </AppContainer>
@@ -41,9 +49,11 @@
   UploadUserFile,
   PageFormLayout,
   useTable,
+  useFormDialog,
 } from '@bole-core/components';
 import ChunkCellV2 from '@/components/Layout/ChunkCellV2.vue';
 import DetailView from '@/components/commonView/DetailView.vue';
+import MateriaDetailDialog from '@/components/commonView/MateriaDetailDialog.vue';
 import DeclareEnterpriseTableView from '@/components/commonView/DeclareEnterpriseTableView.vue';
 import { useQuery } from '@tanstack/vue-query';
 import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
@@ -51,6 +61,9 @@
 import { useRouteView } from '@/hooks';
 import { OrderInputType } from '@bole-core/core';
 import { AuthTypeText, BountyCheckStatusEnum, BountyCheckStatusEnumText } from '@/constants';
+import { FourStreamsMaterialFileTableItem } from '@/components/commonView/types';
+import { FourStreamsMaterialUtils } from '@/components/commonView/utils';
+import { useIndustrialParkDropDownList } from '@/hooks/industrialPark';
 
 defineOptions({
   name: 'MaterialReviewDetail',
@@ -128,7 +141,7 @@
   },
   {
     defaultExtraParams: {
-      orderInput: [{ property: 'enterpriseId', order: OrderInputType.Desc }],
+      orderInput: [{ property: 'parkBountyApplyId', order: OrderInputType.Desc }],
       searchKeyWord: '',
     },
     columnsRenderProps: {
@@ -143,6 +156,25 @@
   }
 );
 
+const { dialogProps, handleAdd, editForm } = useFormDialog({
+  defaultFormParams: {
+    list: [] as FourStreamsMaterialFileTableItem[],
+    companyId: '',
+  },
+});
+
+const { getIndustrialParkTypeNameById } = useIndustrialParkDropDownList();
+
+function openDialog(row: API.ParkBountyApplyDetailInfo) {
+  handleAdd({
+    list: FourStreamsMaterialUtils.initFourStreamsMaterialFileList(
+      row,
+      getIndustrialParkTypeNameById(detail.value?.parkId)
+    ),
+    companyId: row.enterpriseId,
+  });
+}
+
 function handleBack() {
   closeViewPush(route, {
     name: 'MaterialReviewList',

--
Gitblit v1.9.1