From f4e73f262cd8fe054b84d5e99f083fba913e7c94 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期四, 30 五月 2024 18:01:20 +0800
Subject: [PATCH] qxtj

---
 src/views/system/comp/index.vue |   33 ++++++++++++++++++---------------
 1 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/views/system/comp/index.vue b/src/views/system/comp/index.vue
index ab041e2..f1f039a 100644
--- a/src/views/system/comp/index.vue
+++ b/src/views/system/comp/index.vue
@@ -913,7 +913,6 @@
   ],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
-      console.log(value);
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
       if (value == "" && value == undefined && !value) {
         return callback("");
@@ -940,6 +939,7 @@
       pacList: [],
       dataList: [],
       groupList: [],
+      dataLists: [],
       // 闈炲崟涓鐢�
       single: true,
       singleg: true,
@@ -1339,6 +1339,7 @@
     // 鍗曢」閫夊畾鎸夐挳
     resetright() {
       this.queryParams.price = 0;
+      // this.dataLists=JSON.parse(JSON.stringify(this.dataList));
       this.dataList.forEach((item) => {
         this.$refs.tre.toggleRowSelection(item, false);
         this.OnenewpacName.push(item);
@@ -1372,23 +1373,25 @@
     // 濂楅鍗曢」鑾峰彇
     handleChangeOne(selection) {
       this.pacList = selection;
-      this.OnenewpacName = [];
+      this.OnenewpacName.forEach((item,index) => {
+        this.dataLists.forEach(item1 => {
+          if(item.proId == item1.proId){
+            this.OnenewpacName.splice(index,1)
+          }
+        })
+      })
+      this.dataLists = [];
       this.queryParams.price = 0;
       this.pacList.forEach((item) => {
-        item.tjProjectList.forEach(item2 => {
-          this.OnenewpacName.push(item2)
-        })
-        this.OnenewpacName.forEach((item) => {
-          this.queryParams.price += item.proPrice;
-        });
+        this.dataLists = item.tjProjectList;
       });
-      if(this.dataList.length >= 1){
-        console.log(11111)
-          this.dataList.forEach(item1 => {
-            this.OnenewpacName.push(item1)
-          })
-          
-        }
+      this.dataLists.forEach((item2) => {
+        this.OnenewpacName.push(item2);
+      });
+      this.OnenewpacName.forEach((item) => {
+        this.queryParams.price += item.proPrice;
+      });
+
       if (selection.length > 1) {
         let del_row = selection.shift();
         this.$refs.tbone.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑

--
Gitblit v1.8.0