From a5f1b080956017388e5d87e7d9d1cbb5632b6cd2 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 28 五月 2024 18:05:48 +0800
Subject: [PATCH] qxtj

---
 src/views/system/Checkout/index.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/views/system/Checkout/index.vue b/src/views/system/Checkout/index.vue
index 46b4bf8..ab8b5a5 100644
--- a/src/views/system/Checkout/index.vue
+++ b/src/views/system/Checkout/index.vue
@@ -324,7 +324,7 @@
         <el-table-column label="寮冩" prop="type2" width="86" align="center">
           <template slot-scope="scope">
             <el-checkbox
-              @change="handelcheckbox"
+              @change="handelcheckbox(scope.row)"
               v-model="scope.row.type2"
               :disabled="leave"
             >
@@ -335,7 +335,7 @@
         <el-table-column label="寤舵湡" prop="type3" width="86" align="center">
           <template slot-scope="scope">
             <el-checkbox
-              @change="handelcheck"
+              @change="handelcheck(scope.row)"
               v-model="scope.row.type3"
               :disabled="leave"
             >
@@ -774,11 +774,15 @@
       //   }
       // })
       for (let i = 0; i <= this.numberList.length; i++) {
+        if(val.proId == this.numberList[i].proId){
         if (this.numberList[i].type2 === true) {
           this.numberList[i].type3 = false;
           this.tcShow = false;
           return;
+        }else{
+          return
         }
+      }
       }
       // this.type2 = val
       // this.numberList.forEach(item => {
@@ -796,6 +800,7 @@
     },
 
     handelcheck(val) {
+      
       // this.numberList.forEach(item => {
       //   if(item.type3 === true){
       //     item.type2 = false
@@ -804,12 +809,21 @@
       //     this.tcShow = false
       //   }
       // })
+     
       for (let i = 0; i <= this.numberList.length; i++) {
-        if (this.numberList[i].type3 === true) {
+        if(val.proId == this.numberList[i].proId){
+          if(this.numberList[i].type3){
+          if (this.numberList[i].type3 === true) {
           this.numberList[i].type2 = false;
           this.tcShow = true;
           return;
         }
+        }else{
+          return
+        }
+        }
+       
+       
       }
       // this.numberList.forEach(item => {
       //   if (item.type === true) {

--
Gitblit v1.8.0