From 32a95699e59c5c65e18c08643266c9cbfa380ee4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 07 六月 2024 09:56:05 +0800
Subject: [PATCH] 优化设备明细、检验任务附件权限

---
 src/components/do/b1-ins-order/fiberoptic-config.vue |   40 ++++++++++++++++++++++++----------------
 1 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/src/components/do/b1-ins-order/fiberoptic-config.vue b/src/components/do/b1-ins-order/fiberoptic-config.vue
index 4f1c1b3..c20a16e 100644
--- a/src/components/do/b1-ins-order/fiberoptic-config.vue
+++ b/src/components/do/b1-ins-order/fiberoptic-config.vue
@@ -91,8 +91,8 @@
               </el-table-column>
               <el-table-column prop="unit" label="鍗曚綅" width="70" show-overflow-tooltip>
               </el-table-column>
-              <el-table-column prop="manDay" label="棰勮鏃堕棿" width="90" show-overflow-tooltip>
-              </el-table-column>
+              <!-- <el-table-column prop="manDay" label="棰勮鏃堕棿" width="90" show-overflow-tooltip>
+              </el-table-column> -->
               <el-table-column prop="ask" label="妫�娴嬭姹�" show-overflow-tooltip width="200px">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.ask" placeholder="璇疯緭鍏�" size="small" :disabled="active!=1" v-if="!isAskOnlyRead"></el-input>
@@ -289,7 +289,7 @@
         }
       })
       this.models = this.models.replace(',', '')
-      this.packageInfo.ismiers = this.models.split(',').every(e=>e.indexOf('d')>-1)
+      this.packageInfo.ismiers = this.models.split(',').every(e=>(e.indexOf('d')>-1||e.indexOf('D')>-1))
       if(this.sample[0].bushing === undefined || this.sample[0].bushing === null){
         this.bushing = []
       }else{
@@ -546,19 +546,27 @@
         })
       },
       rowClickFiber(row, column, event,type){
-        if(type==0){
-          let standard = this.miresStandards.find(a => a.id == this.miresStandard)
-          if(standard&&standard.code=='濮旀墭瑕佹眰'){
-            this.isAskOnlyRead = false;
+        if(this.active===1){
+          if(type==0){
+            let standard = null;
+            try{
+              standard = this.miresStandards.find(a => a.id == this.miresStandards)
+            }catch(e){}
+            if(standard&&standard.code=='濮旀墭瑕佹眰'){
+              this.isAskOnlyRead = false;
+            }else{
+              this.isAskOnlyRead = true;
+            }
           }else{
-            this.isAskOnlyRead = true;
-          }
-        }else{
-          let standard = this.mireStandards.find(a => a.id == this.mireStandard)
-          if(standard&&standard.code=='濮旀墭瑕佹眰'){
-            this.isAskOnlyRead = false;
-          }else{
-            this.isAskOnlyRead = true;
+            let standard = null;
+            try{
+              standard = this.mireStandards.find(a => a.id == this.mireStandard)
+            }catch(e){}
+            if(standard&&standard.code=='濮旀墭瑕佹眰'){
+              this.isAskOnlyRead = false;
+            }else{
+              this.isAskOnlyRead = true;
+            }
           }
         }
         this.currentDetectionItems = row
@@ -682,7 +690,7 @@
           a.bushing = this.bushing
         })
         this.$message.success('宸蹭繚瀛�')
-        console.log(this.bushing);
+        this.$emit('saveFiberopticConfig')
       }
     }
   }

--
Gitblit v1.9.3