From 53bc8cc8fd330d5e2a4a3698967548a0b74a395a Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 23 十月 2026 18:09:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/business/productOrder/index.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue
index 6b1dde0..72952d9 100644
--- a/src/views/business/productOrder/index.vue
+++ b/src/views/business/productOrder/index.vue
@@ -379,6 +379,7 @@
               clickFun: (row) => {
                 this.download(row);
               },
+              disabled: (row) => !this.canDownloadReport(row),
               showHide: (row) => {
                 return this.tabIndex === 2 || this.tabIndex === 3 || this.tabIndex === 7
               }
@@ -871,12 +872,14 @@
       })
     },
     // 涓嬭浇鎶ュ憡
+    canDownloadReport(row) {
+      return !!(row && row.reportId && (row.urlS || row.url))
+    },
     download(row) {
-      let url = row.urlS ? row.urlS : row.url;
-      if (!url) {
-        this.$message.warning('璇ュ鎵樺崟鏆傛棤鍙笅杞界殑鎶ュ憡')
+      if (!this.canDownloadReport(row)) {
         return
       }
+      let url = row.urlS ? row.urlS : row.url;
       url = url.split('.')[0] + '.pdf'
       const link = document.createElement('a');
       link.href = this.javaApi + url;

--
Gitblit v1.9.3