From 5d437a0ad1bfcdbb3b388358bd8bd0dc4954f259 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 08 八月 2024 09:30:18 +0800
Subject: [PATCH] 修改

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 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..54643da 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1051,7 +1051,8 @@
           }
         ],
         getDataIndex:[],
-        getDataIndexLoading:false
+        getDataIndexLoading:false,
+        changeType:null,
       }
     },
     computed: {
@@ -1143,6 +1144,15 @@
       },
       currentTable(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&&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:{
@@ -2094,6 +2099,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