From 4e89136677c9fd3dabeffadbfd20fccd6ec42cef Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 21 六月 2024 12:04:55 +0800
Subject: [PATCH] su

---
 src/views/system/Checkout/index.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/system/Checkout/index.vue b/src/views/system/Checkout/index.vue
index 11d0613..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"
             >
@@ -409,7 +409,7 @@
       leave: false,
       checked: false,
       radioId1: false,
-      createTimeList: "",
+      createTimeList: [],
       cusId: "",
       payType: "0",
       dialogVisible: false,
@@ -523,7 +523,7 @@
   },
   created() {
     // this.getNowTime();
-    this.getList();
+  
     this.getdate();
   },
   mounted() {
@@ -538,6 +538,7 @@
           moment(res.data).format("YYYY-MM-DD 00:00:00"),
           moment(res.data).format("YYYY-MM-DD 23:59:00"),
         ];
+        this.getList();
       });
     },
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
@@ -567,10 +568,14 @@
       if (this.startTime) {
         this.queryParams.djbeginTime = this.startTime[0];
         this.queryParams.djendTime = this.startTime[1];
-      } else {
+      } else if(this.createTimeList){
         this.queryParams.djbeginTime = this.createTimeList[0];
         this.queryParams.djendTime = this.createTimeList[1];
+      } else if(this.createTimeList == null){
+        this.queryParams.djbeginTime = null;
+        this.queryParams.djendTime = null;
       }
+      
 
       this.loading = true;
       getQianLiList(this.queryParams).then((response) => {
@@ -667,6 +672,8 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList = []
+      this.startTime= []
       this.resetForm("queryForm");
       this.handleQuery();
     },
@@ -767,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 => {
@@ -789,6 +800,7 @@
     },
 
     handelcheck(val) {
+      
       // this.numberList.forEach(item => {
       //   if(item.type3 === true){
       //     item.type2 = false
@@ -797,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