From 0458b859259b5806f4923b0ea791893bdffbf771 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 22 九月 2025 13:14:09 +0800
Subject: [PATCH] fix: bug

---
 src/views/TaskManage/components/SelltementDetailView.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/TaskManage/components/SelltementDetailView.vue b/src/views/TaskManage/components/SelltementDetailView.vue
index 0033543..0387e62 100644
--- a/src/views/TaskManage/components/SelltementDetailView.vue
+++ b/src/views/TaskManage/components/SelltementDetailView.vue
@@ -17,14 +17,19 @@
 import * as taskUserServices from '@/services/api/taskUser';
 import { useQuery } from '@tanstack/vue-query';
 import { SettlementReceiveStatusText } from '@/constants';
-import { paginateList } from '@/utils';
+import { downloadFileByUrl, paginateList, setOSSLink } from '@/utils';
 
 defineOptions({
   name: 'SelltementDetailView',
 });
 
 const operationBtnMap: Record<string, OperationBtnType> = {
-  'settle-downloadBtn': { emits: { onClick: (role) => handleDownload(role) } },
+  'settle-downloadBtn': {
+    emits: { onClick: (role) => handleDownload(role) },
+    extraProps: {
+      hide: (row: API.GetSettlementTaskUsersQueryResultItem) => !row.ereceiptDownloadOssUrl,
+    },
+  },
 };
 
 const { checkSubModuleItemShow, column, operationBtns } = useAccess({
@@ -105,5 +110,7 @@
   }
 );
 
-function handleDownload(row) {}
+function handleDownload(row: API.GetSettlementTaskUsersQueryResultItem) {
+  downloadFileByUrl(setOSSLink(row.ereceiptDownloadOssUrl), '缁撶畻鍥炲崟');
+}
 </script>

--
Gitblit v1.9.1