From 5c8aaba66c16b1a143fdec27e29ad36eaefd1e3a Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 31 十二月 2024 14:33:25 +0800
Subject: [PATCH] 无源器件检验开发

---
 src/components/view/a7-sample-disposal.vue |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/components/view/a7-sample-disposal.vue b/src/components/view/a7-sample-disposal.vue
index b454bdb..2a01a48 100644
--- a/src/components/view/a7-sample-disposal.vue
+++ b/src/components/view/a7-sample-disposal.vue
@@ -8,7 +8,7 @@
     </el-row>
     <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick">
       <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1">
-        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.examineState!='閫氳繃'">鏂板</el-button>
+        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.submitState!='宸叉彁浜�'">鏂板</el-button>
         <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'">
           <ValueTable ref="ValueTable0" :url="$api.processTotaldeal.pageProcessDeal"
       :componentData="componentData0" :key="upIndex0" :delUrl="$api.processTotaldeal.delProcessDeal" />
@@ -206,7 +206,7 @@
   name: "SampleDisposal",
   data() {
     return {
-      activeName:'濉啓',
+      activeName:'鍘嗗彶璁板綍',
       title:'鏂板',
       addDialogVisible:false,
       addLoading:false,
@@ -299,12 +299,12 @@
             id: 'handleAdd0',
             font: '淇敼',
             type: 'text',
-            method: 'handleAdd0'
+            method: 'handleAdd0',
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
-            method: 'doDiy'
+            method: 'doDiy',
           }],
           tagField: {},
           selectField: {},
@@ -325,6 +325,17 @@
       addPower:false,
     };
   },
+  watch: {
+    'activeName' (val1, val2) {
+      if(val1=='濉啓'){
+        this.componentData0.do.forEach((item)=>{
+          item.disabFun = (row, index) => {
+            return !this.addPower||this.currentInfo.submitState=='宸叉彁浜�'
+          }
+        })
+      }
+    }
+  },
   mounted() {
     this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getCustomPageList()

--
Gitblit v1.9.3