From 71a8e88eccd5626877c4ab2c93f523c4f71d79c1 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 09 八月 2024 10:38:28 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master

---
 src/components/do/b1-ins-order/add.vue               |    5 ++---
 src/components/do/b1-ins-order/fiberoptic-config.vue |    7 ++-----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index ceb28b6..f383120 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -620,8 +620,7 @@
         </el-row>
       </span>
     </el-dialog>
-    <fiberOpticConfig :currentId="currentId" @saveFiberopticConfig="getTotal()" v-if="configShow && examine == 0" :active="active" />
-    <fiberOpticConfigTwo :currentId="currentId" @saveFiberopticConfig="getTotal()" v-if="configShow && examine == 1" :active="active" />
+    <fiberOpticConfig :currentId="currentId" @saveFiberopticConfig="getTotal()" v-if="configShow" :active="active" />
     <equipConfig :currentId="currentId" v-if="equipConfigShow" :active="active" />
     <cableConfig v-if="cableConfigShow" :active="active" />
 <!--    鍗曢�夌壒娈婂�煎鐞嗘-->
@@ -3002,7 +3001,7 @@
         this.totalArr = []
         this.total = 0;
         this.sampleList.forEach(item => {
-          if (item.insProduct  && item.insProduct.length > 0) {
+          if (item.insProduct && item.insProduct.length > 0) {
             item.insProduct.forEach(a => {
               this.totalArr.push(a)
             })
diff --git a/src/components/do/b1-ins-order/fiberoptic-config.vue b/src/components/do/b1-ins-order/fiberoptic-config.vue
index 24e3d8c..17c6272 100644
--- a/src/components/do/b1-ins-order/fiberoptic-config.vue
+++ b/src/components/do/b1-ins-order/fiberoptic-config.vue
@@ -527,7 +527,8 @@
             })
           })
 
-          if(this.multiFiberList.length == 1) {
+          // 閫夋嫨鐨勬椂鍊欏氨灏唂iberList鐨勫�艰祴鍊肩粰瀵瑰簲鐨刦iberList
+          if(this.multiFiberList.length > 0) {
             this.multiFiberList.forEach(item => {
             this.fibersList.forEach(a => {
               if(a.ident == item.ident){
@@ -535,10 +536,6 @@
               }
             })
           })
-          }else if(this.multiFiberList.length > 1) {
-            this.fibersList.forEach(item => {
-              item.fiber = this.fiberList
-            })
           }
         }
       },

--
Gitblit v1.9.3