From c263fb316fc23d9db98ce711fda30d81c28d2d9c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 08 八月 2024 19:02:10 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 2f55a89..cf1bc9f 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -943,6 +943,7 @@
           requiredUp: []
         },
         upIndex: 0,
+        changeType:null,
         getReportModelLoading:false,
         insOrder: {},
         sampleProduct: [],
@@ -1142,7 +1143,16 @@
         })
       },
       currentTable(val1, val0) {
-        if (val0 != null && val1 != val0) {
+        if(val0 !=null && val1 != val0){
+        if(this.tableLists.find(m=>m.templateId==val1)&&(this.tableLists.find(m=>m.templateId==val1).templateName=='鎴愬搧缂嗘楠屽師濮嬭褰�')){
+          if(this.casing.length>0){
+            this.handleChange(this.casing[0].id,3)
+          }
+          return
+        }
+        if(this.changeType && this.changeType>0){
+          return
+        }
           this.tableLists.forEach(async (m, i) => {
             if (m.templateId == val1) {
               let list = await this.getCurrentProduct(this.currentSample.id,0)
@@ -1185,11 +1195,6 @@
             }
           })
           this.handleCasing()
-          if(this.tableLists.find(m=>m.templateId==val1)&&(this.tableLists.find(m=>m.templateId==val1).templateName=='鎴愬搧缂嗘楠屽師濮嬭褰�')){
-            if(this.casing.length>0){
-              this.handleChange(this.casing[0].id,3)
-            }
-          }
         }
       },
       equipForm:{
@@ -1351,7 +1356,6 @@
                       maxNum = num
                     }
                   }
-                  console.log('data[i][j].equipName',data[i][j].equipName,'data[i][j].equipValue',data[i][j].equipValue,'m.v',m.v,'m.v.ps',m.v.ps,'m.v.ps.value',m.v.ps.value,'str0',str0,'str',str,'m.v.v',m.v.v)
                   if(data[i][j].equipName&&data[i][j].equipValue&&m.v&&m.v.ps&&m.v.ps.value=='璁惧缂栫爜'&&str0==str){
                     if(!m.v.v){
                       this.changeEquip(data[i][j].equipValue,m,data[i][j].equipName)
@@ -2094,6 +2098,7 @@
         })
       },
       async handleChange(m,type){
+        this.changeType = type;
         if(m){
           let list = await this.getCurrentProduct(m,type)
           if(list.length>0){

--
Gitblit v1.9.3