From 2caafed814dbbaf0905e77db91ed7835d8d854d9 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 16 六月 2025 13:08:37 +0800
Subject: [PATCH] fix: bug

---
 src/views/MaterialReview/MaterialReviewDetail.vue |   40 ++++++++++++++++++++++------------------
 1 files changed, 22 insertions(+), 18 deletions(-)

diff --git a/src/views/MaterialReview/MaterialReviewDetail.vue b/src/views/MaterialReview/MaterialReviewDetail.vue
index b6d0263..9e02b32 100644
--- a/src/views/MaterialReview/MaterialReviewDetail.vue
+++ b/src/views/MaterialReview/MaterialReviewDetail.vue
@@ -89,12 +89,13 @@
   parkTypeName: '',
   applyMonth: '',
   applySumAmount: 0,
-  enterpriseTaxSubFileUrl: [] as UploadUserFile[],
-  enterpriseOperateFileUrl: [] as UploadUserFile[],
-  enterpriseRelateFileUrl: [] as UploadUserFile[],
+  // enterpriseTaxSubFileUrl: [] as UploadUserFile[],
+  // enterpriseOperateFileUrl: [] as UploadUserFile[],
+  // enterpriseRelateFileUrl: [] as UploadUserFile[],
+  // bountyAssignFileUlr: [] as UploadUserFile[],
+  // bountyCollectFileUrl: [] as UploadUserFile[],
   parkCollectFileList: [] as CustomerApplyFileTypeListItem[],
-  bountyAssignFileUlr: [] as UploadUserFile[],
-  bountyCollectFileUrl: [] as UploadUserFile[],
+  calculationFileList: [] as CustomerApplyFileTypeListItem[],
 
   outCheckStatus: '' as any as BountyCheckStatusEnum,
   outCheckRemark: '',
@@ -121,19 +122,22 @@
     form.applySumAmount = data.applySumAmount;
     form.outCheckStatus = data.outCheckStatus;
     form.outCheckRemark = data.outCheckRemark;
-    form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator(
-      data?.enterpriseTaxSubFileUrl
-    );
-    form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator(
-      data?.enterpriseOperateFileUrl
-    );
-    form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr);
-    form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl);
-    form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator(
-      data?.enterpriseRelateFileUrl
-    );
+    // form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator(
+    //   data?.enterpriseTaxSubFileUrl
+    // );
+    // form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator(
+    //   data?.enterpriseOperateFileUrl
+    // );
+    // form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr);
+    // form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl);
+    // form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator(
+    //   data?.enterpriseRelateFileUrl
+    // );
     form.parkCollectFileList = EnterpriseApplyFileUtils.convertApiFileToParkCollectFileList(
       data.listFiles
+    );
+    form.calculationFileList = EnterpriseApplyFileUtils.convertApiFileToParkCollectFileList(
+      data.collectCountListFiles
     );
 
     getList();
@@ -184,7 +188,7 @@
 const queryClient = useQueryClient();
 async function openDialog(row: API.ParkBountyApplyDetailInfo) {
   try {
-    const applyFiles = await queryClient.ensureQueryData({
+    const applyFilesRes = await queryClient.ensureQueryData({
       queryKey: [
         'enterpriseApplyFileServices/getCustomerUploadApplyFiles',
         row.enterpriseId,
@@ -213,7 +217,7 @@
     handleAdd({
       list: EnterpriseApplyFileUtils.initParkCollectFileListApplyFiles(
         applyUploadFiles,
-        applyFiles,
+        applyFilesRes.items,
         lastUploadEnterPactFile
       ),
       companyId: row.enterpriseId,

--
Gitblit v1.9.1