From a6c14c75e5a5f677c2a3571cad426d50cb106e3d Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 09 八月 2024 09:02:59 +0800
Subject: [PATCH] 修改检验任务、下单bug

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

diff --git a/src/components/do/b1-ins-order/fiberoptic-config.vue b/src/components/do/b1-ins-order/fiberoptic-config.vue
index 543547e..ad78730 100644
--- a/src/components/do/b1-ins-order/fiberoptic-config.vue
+++ b/src/components/do/b1-ins-order/fiberoptic-config.vue
@@ -476,7 +476,7 @@
               this.fiberList.push(b)
             })
             }
-            
+
           }else{
             a.fiber.forEach(b=>{
               this.fiberList.push(b)
@@ -484,7 +484,7 @@
           }
         })
       }
-      
+
       this.getTypeDicts1()
       this.getStandTreeBySampleType()
       this.getStandTreeBySampleType2()
@@ -577,7 +577,7 @@
         this.fiberList = []
         this.fibersList = []
         this.detectionItems = []
-        
+
         // 椤甸潰鏄惁鍚湁鍏夌氦甯�
         if(this.packageInfo.ismiers) {
           // 鍏ㄦ
@@ -621,8 +621,8 @@
           }
         }
 
-        
-        
+
+
       },
       upNum() {
         this.fiberList = []
@@ -683,7 +683,7 @@
                 }
                 a.fibers.push(fibers)
                 this.fibersList.push(fibers)
-              } 
+              }
         })
       } else {
           this.bushing = []
@@ -757,7 +757,7 @@
         //     this.addFiber()
         //   }, 200)
         // })
-        
+
           // 灏嗕笅鎷夋鍊艰祴鍊肩粰鍏夌氦  鐩戝惉鍘婚櫎
           if(this.multiFiberList.length == 0) {
             this.$message.error('璇烽�夋嫨鏁版嵁')
@@ -794,7 +794,7 @@
           this.detectionType = 0
            this.$set(this.detectionItems,'type',0)
           }
-          
+
         })
       },
       methodChange2(val) {
@@ -892,7 +892,7 @@
                 fibersIdent: a.ident,
                 productList: []
               }
-              this.fiberList.push(fiber) 
+              this.fiberList.push(fiber)
             }
           })
         } else {
@@ -912,7 +912,7 @@
           })
         }
       }else {
-        this.fiberList = [] 
+        this.fiberList = []
         let flag = true
         // 鎸夌収椤哄簭鐢熸垚鍏夌氦鑹叉爣
         let colors2 = []
@@ -954,7 +954,7 @@
         //   this.$message.error('鏈�夋嫨濂楃')
         //   return
         // }
-        // this.fiberList = [] 
+        // this.fiberList = []
         // let flag = true
         // // 鎸夌収椤哄簭鐢熸垚鍏夌氦鑹叉爣
         // let colors2 = []
@@ -1158,16 +1158,16 @@
             this.detectionType = 1
             this.$set(this.detectionItems,'type',1)
 
-            if (row.productList != null && row.productList.length > 0) {  
+            if (row.productList != null && row.productList.length > 0) {
               setTimeout(() => {
-                row.productList.forEach(product => {  
-                let rowToSelect = this.detectionItems.find(item => item.id === product.id); 
-                if (rowToSelect) {  
-                  this.toggleSelection(rowToSelect);  
-                }  
-              });  
+                row.productList.forEach(product => {
+                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
+                if (rowToSelect) {
+                  this.toggleSelection(rowToSelect);
+                }
+              });
               },200)
-              
+
             }
           }
         })
@@ -1183,7 +1183,7 @@
         }
         this.$axios.post(this.$api.standardTree.selectStandardProductList, {
           model: this.mireModel.split(' - ')[1],
-          standardMethodListId: this.mireStandard,  
+          standardMethodListId: this.mireStandard,
           factory: ''
         }, {
           headers: {
@@ -1199,18 +1199,18 @@
           this.detectionType = 0
           this.$set(this.detectionItems,'type',0)
 
-          if (row.productList != null && row.productList.length > 0) {  
+          if (row.productList != null && row.productList.length > 0) {
             setTimeout(() => {
-              row.productList.forEach(product => {  
-                let rowToSelect = this.detectionItems.find(item => item.id === product.id);  
-                if (rowToSelect) {  
-                  this.toggleSelection(rowToSelect);  
-                }  
-              });  
+              row.productList.forEach(product => {
+                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
+                if (rowToSelect) {
+                  this.toggleSelection(rowToSelect);
+                }
+              });
             },200)
             }
           }
-          
+
         })
         },1000);
       }

--
Gitblit v1.9.3