From 35a917ce148a495062add10677d819c4e760c9a2 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 28 四月 2025 14:25:12 +0800
Subject: [PATCH] feat: 接口

---
 src/views/MaterialReview/MaterialReviewAudit.vue |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/src/views/MaterialReview/MaterialReviewAudit.vue b/src/views/MaterialReview/MaterialReviewAudit.vue
index c13c80d..c4b4664 100644
--- a/src/views/MaterialReview/MaterialReviewAudit.vue
+++ b/src/views/MaterialReview/MaterialReviewAudit.vue
@@ -9,7 +9,14 @@
               :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"
+            />
           </ChunkCellV2>
           <ChunkCell>
             <ProForm :model="form" ref="formRef" label-width="120px">
@@ -69,6 +76,7 @@
   UploadUserFile,
   PageFormLayout,
   useTable,
+  useFormDialog,
 } from '@bole-core/components';
 import {
   EnterpriseTypeText,
@@ -78,12 +86,16 @@
 import ChunkCellV2 from '@/components/Layout/ChunkCellV2.vue';
 import DetailView from '@/components/commonView/DetailView.vue';
 import DeclareEnterpriseTableView from '@/components/commonView/DeclareEnterpriseTableView.vue';
+import MateriaDetailDialog from '@/components/commonView/MateriaDetailDialog.vue';
 import { useQuery, useQueryClient } from '@tanstack/vue-query';
 import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
 import { convertApi2FormUrlOnlyOne, setOSSLink } from '@/utils';
 import { useGlobalEventContext, useRouteView } from '@/hooks';
 import { FormInstance } from 'element-plus';
 import { Message, OrderInputType } from '@bole-core/core';
+import { FourStreamsMaterialFileTableItem } from '@/components/commonView/types';
+import { useIndustrialParkDropDownList } from '@/hooks/industrialPark';
+import { FourStreamsMaterialUtils } from '@/components/commonView/utils';
 
 defineOptions({
   name: 'MaterialReviewAudit',
@@ -103,6 +115,7 @@
   enterpriseOperateFileUrl: [] as UploadUserFile[],
   bountyAssignFileUlr: [] as UploadUserFile[],
   bountyCollectFileUrl: [] as UploadUserFile[],
+  enterpriseRelateFileUrl: [] as UploadUserFile[],
 
   status: '' as any as BountyCheckStatusEnum,
   remark: '',
@@ -129,6 +142,7 @@
     form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl);
     form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr);
     form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl);
+    form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl);
 
     getList();
   },
@@ -164,10 +178,8 @@
     columnsRenderProps: {
       authType: { type: 'enum', valueEnum: EnterpriseTypeText },
       licenseUrl: {
-        type: 'url',
+        type: 'urlV2',
         formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl),
-        modal: true,
-        showDownloadBtn: false,
       },
     },
   }
@@ -210,6 +222,23 @@
     }
   } catch (error) {}
 }
+
+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,
+  });
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.1