From 5d9a3141d4b3677bf8155da16b435d2a8818793b Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 23 十月 2026 17:44:08 +0800
Subject: [PATCH] feat(report): 引入 SuperDoc 在线编辑器实现报告审核功能 支持审核页面直接编辑报告 - 新增检测报告与检验报告切换功能,切换时自动保存当前编辑内容 - 检测时间从单日选择改为日期范围选择,兼容历史单日数据回显 - 标准模型新增标准要求值字段,复制模板时携带完整表单数据 - 产品委托单下载报告按钮增加可用性状态控制
---
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