From 786c543590b010ecdcbd38062d2fd79523f6227e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 25 十二月 2024 11:22:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/cnas' into cnas

---
 src/components/view/a7-sample-registration.vue |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/components/view/a7-sample-registration.vue b/src/components/view/a7-sample-registration.vue
index 5d126ec..83360af 100644
--- a/src/components/view/a7-sample-registration.vue
+++ b/src/components/view/a7-sample-registration.vue
@@ -232,7 +232,7 @@
   name: "SampleDisposal",
   data() {
     return {
-      activeName:'濉啓',
+      activeName:'鍘嗗彶璁板綍',
       title:'鏂板',
       addDialogVisible:false,
       addLoading:false,
@@ -325,12 +325,18 @@
             id: 'handleAdd0',
             font: '淇敼',
             type: 'text',
-            method: 'handleAdd0'
+            method: 'handleAdd0',
+            disabFun:(row, index) => {
+              return !this.addPower||this.currentInfo.examineState=='閫氳繃'
+            }
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
-            method: 'doDiy'
+            method: 'doDiy',
+            disabFun:(row, index) => {
+              return !this.addPower||this.currentInfo.examineState=='閫氳繃'
+            }
           }],
           tagField: {},
           selectField: {},
@@ -351,6 +357,17 @@
       addPower:true,
     };
   },
+  watch: {
+    'activeName' (val1, val2) {
+      if(val1=='濉啓'){
+        this.componentData0.do.forEach((item)=>{
+          item.disabFun = (row, index) => {
+            return !this.addPower||this.currentInfo.examineState=='閫氳繃'
+          }
+        })
+      }
+    }
+  },
   mounted() {
     this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getCustomPageList()

--
Gitblit v1.9.3