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/CNAS/process/method/methodVerification/component/ViewTestRecord.vue | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/views/CNAS/process/method/methodVerification/component/ViewTestRecord.vue b/src/views/CNAS/process/method/methodVerification/component/ViewTestRecord.vue
index 309eba1..02b4ad2 100644
--- a/src/views/CNAS/process/method/methodVerification/component/ViewTestRecord.vue
+++ b/src/views/CNAS/process/method/methodVerification/component/ViewTestRecord.vue
@@ -1,7 +1,7 @@
<template>
<div>
- <el-dialog v-model="filesDialogVisible" title="闄勪欢涓婁紶" width="80%" @closed="closeFilesLook">
- <div style="display: flex;justify-content: space-between;">
+ <el-dialog v-model="filesDialogVisible" :title="readOnly ? '鏌ョ湅闄勪欢' : '闄勪欢涓婁紶'" width="80%" @closed="closeFilesLook">
+ <div v-if="!readOnly" style="display: flex;justify-content: space-between;">
<el-upload ref='upload'
:action="fileAction"
:auto-upload="true"
@@ -17,7 +17,7 @@
<div>
<lims-table
ref="yearTable"
- :column="columnData"
+ :column="readOnly ? readonlyColumnData : columnData"
:height="'calc(100vh - 47em)'"
:highlightCurrentRow="true"
:table-data="tableData"
@@ -36,8 +36,16 @@
export default {
name: 'ViewTestRecord',
+ props: { readOnly: { type: Boolean, default: false } },
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
components: { limsTable },
+ computed: {
+ readonlyColumnData() {
+ return this.columnData.map(column => column.dataType === 'action'
+ ? { ...column, operation: column.operation.filter(item => item.name !== '鍒犻櫎') }
+ : column)
+ }
+ },
data() {
// 杩欓噷瀛樻斁鏁版嵁
return {
@@ -122,6 +130,7 @@
},
// 鍒犻櫎
delete (row) {
+ if (this.readOnly) return
this.tableLoading = true
delVerifyMethodFileList({methodFileId:row.methodFileId}).then(res => {
this.tableLoading = false
@@ -137,6 +146,7 @@
},
// 涓婁紶楠岃瘉
fileBeforeUpload(file) {
+ if (this.readOnly) return false
let flag = true
if (file.size > 1024 * 1024 * 10) {
this.$message.error('涓婁紶鏂囦欢涓嶈秴杩�10M');
--
Gitblit v1.9.3