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/ViewDeviceDialog.vue |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/views/CNAS/process/method/methodVerification/component/ViewDeviceDialog.vue b/src/views/CNAS/process/method/methodVerification/component/ViewDeviceDialog.vue
index e92c63b..d214852 100644
--- a/src/views/CNAS/process/method/methodVerification/component/ViewDeviceDialog.vue
+++ b/src/views/CNAS/process/method/methodVerification/component/ViewDeviceDialog.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-model="viewDeviceDialog" title="鏌ョ湅璁惧" width="80%" @close="closeDia">
-      <div style="text-align: right;margin-bottom: 10px">
+      <div v-if="!readOnly" style="text-align: right;margin-bottom: 10px">
         <el-button size="small" type="primary" @click="addRow">娣诲姞</el-button>
         <el-button size="small" type="danger" @click="clearTable">娓呯┖</el-button>
       </div>
@@ -18,7 +18,7 @@
                          clearable
                          filterable
                          placeholder="璁惧鍚嶇О"
-                         size="small" @change="(val)=>changeMachineName(val, scope.$index)">
+                         size="small" :disabled="readOnly" @change="(val)=>changeMachineName(val, scope.$index)">
                 <el-option v-for="item in equipOptions" :key="item.value"  :label="item.label" :value="item.value">
                   {{item.label + item.value}}
                 </el-option>
@@ -30,7 +30,7 @@
               <p>鍨嬪彿瑙勬牸</p>
             </template>
             <template #default="{row}">
-              <el-input v-model="row.machineSpecification" size="small"/>
+              <el-input v-model="row.machineSpecification" size="small" :disabled="readOnly"/>
             </template>
           </el-table-column>
           <el-table-column header-align="center" label="娴嬮噺鑼冨洿" prop="machineMeasuringRange">
@@ -38,7 +38,7 @@
               <p>娴嬮噺鑼冨洿</p>
             </template>
             <template #default="{row}">
-              <el-input v-model="row.machineMeasuringRange" size="small" type="textarea"/>
+              <el-input v-model="row.machineMeasuringRange" size="small" type="textarea" :disabled="readOnly"/>
             </template>
           </el-table-column>
           <el-table-column header-align="center" label="鈶犳墿灞曚笉纭畾搴︹憽鏈�澶у厑宸憿鍑嗙‘搴︾瓑绾�" prop="other">
@@ -46,14 +46,14 @@
               <p>鈶犳墿灞曚笉纭畾搴︹憽鏈�澶у厑宸憿鍑嗙‘搴︾瓑绾�</p>
             </template>
             <template #default="{row}">
-              <el-input v-model="row.other" size="small" type="textarea"/>
+              <el-input v-model="row.other" size="small" type="textarea" :disabled="readOnly"/>
             </template>
           </el-table-column>
         </el-table>
       </div>
       <template #footer><span  class="dialog-footer">
         <el-button @click="closeDia">鍙� 娑�</el-button>
-        <el-button type="primary" @click="handleDeviceInfo">纭� 瀹�</el-button>
+        <el-button v-if="!readOnly" type="primary" @click="handleDeviceInfo">纭� 瀹�</el-button>
       </span></template>
     </el-dialog>
   </div>
@@ -64,6 +64,7 @@
 
 export default {
   name: 'ViewDeviceDialog',
+  props: { readOnly: { type: Boolean, default: false } },
   // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
   components: {},
   data() {
@@ -83,6 +84,7 @@
     },
     // 澧炲姞琛ㄦ牸琛屾暟鎹�
     addRow () {
+      if (this.readOnly) return
       this.machineAttachmentList.push({
         machineName: '',
         machineSpecification: '',
@@ -92,10 +94,12 @@
     },
     // 娓呯┖琛ㄦ牸鏁版嵁
     clearTable () {
+      if (this.readOnly) return
       this.machineAttachmentList = []
     },
     // 閫夋嫨璁惧鐨勫洖璋�
     changeMachineName (val, index) {
+      if (this.readOnly) return
       const index1 = this.equipOptions.findIndex(item => item.value === val);
       if (index1 !== -1) {
         this.machineAttachmentList[index].deviceId = this.equipOptions[index1].id;
@@ -105,6 +109,7 @@
     },
     // 鎻愪氦璁惧淇℃伅
     handleDeviceInfo () {
+      if (this.readOnly) return
       if (this.machineAttachmentList.length === 0) {
         this.$message.warning('璇锋坊鍔犱俊鎭�')
         return

--
Gitblit v1.9.3