From 7f4ffe2c19004403bb3190f25879b2074f4d3932 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 16 十月 2026 17:16:43 +0800
Subject: [PATCH] fix:1. 过程要求 - 样品接收:列表样式优化。     2. 过程要求 - 方法验证:点击详情还能修改,导出格式优化,按客户给的文档来。     3. 业务管理 - 检验任务:删除不合格相关的检测。     4. 业务管理 - 报告结果:按照发送日期倒序排列。     5. 基础配置 - 行业管理:删除印章管理。     6. 体系管理要求 - 客户满意度:附件上传报错,精简上传逻辑。

---
 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