From d2b4aa604dc1557fad2179316fe17a2a03e493aa Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 01 七月 2024 18:01:05 +0800
Subject: [PATCH] qxtj“

---
 src/views/system/tijian/index.vue |  103 ++++++++++++++++++++++++++-------------------------
 1 files changed, 52 insertions(+), 51 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index fe73944..a77240f 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -2549,8 +2549,6 @@
     // 鐐瑰嚮澶氶�夋鑾峰彇閫変腑鏁版嵁
     handleSelectionChange(selection, row) {
       this.tableData = selection;
-      console.log(this.tableData);
-      console.log(this.tableData1);
       if (selection.length > 1) {
         let del_row = selection.shift();
         this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
@@ -2561,7 +2559,8 @@
         this.tableData.forEach((item) => {
           this.tableData1.forEach((item1) => {
             item.tjProjectList.forEach((item2) => {
-              if (item2.proId == item1.proPrantId) {
+              console.log(item1)
+              if (item2.proId == item1.proPrantId && item1.pacName == "鍗曢」") {
                 this.$confirm(
                   "璇ュ椁愬寘鍚簡宸查�夊崟椤癸紝鏄惁纭閫夋嫨璇ュ椁愶紵",
                   "纭淇℃伅",
@@ -2633,39 +2632,41 @@
     handleClick(tab, event) {
       if (this.activeNames == "second") {
         this.DataList = [];
+        this.checkedkey= [];
         this.getDataList();
       } else if (this.activeNames == "third") {
         this.DataLists = [];
+        this.checkedkeys= [];
         getZhList().then((response) => {
           if (response.data) {
             this.packageList = response.data;
-            this.checkedkeys.push(this.packageList[0].id);
-            let datas = {
-              zhId: this.packageList[0].id,
-            };
-            getlistByZhId(datas).then((res) => {
-              this.packagedataList = res.data.tjProjectList;
-              for (var i = 0; i < this.packagedataList.length; i++) {
-                let proId = this.packagedataList[i].proId;
-                getProSonDxList(proId).then((res) => {
-                  this.TreedataList = res.data.list;
-                  this.TreedataList.forEach((item) => {
-                    this.DataLists.push(item);
-                    if (this.DataLists.length >= 1) {
-                      this.marryalls = 0;
-                      this.DataLists.forEach((item1) => {
-                        this.marryalls += item1.proPrice;
-                        this.packagedataList.forEach((item3) => {
-                          if (item1.proParentId == item3.proId) {
-                            item1.propinName = item3.proName;
-                          }
-                        });
-                      });
-                    }
-                  });
-                });
-              }
-            });
+            // this.checkedkeys.push(this.packageList[0].id);
+            // let datas = {
+            //   zhId: this.packageList[0].id,
+            // };
+            // getlistByZhId(datas).then((res) => {
+            //   this.packagedataList = res.data.tjProjectList;
+            //   for (var i = 0; i < this.packagedataList.length; i++) {
+            //     let proId = this.packagedataList[i].proId;
+            //     getProSonDxList(proId).then((res) => {
+            //       this.TreedataList = res.data.list;
+            //       this.TreedataList.forEach((item) => {
+            //         this.DataLists.push(item);
+            //         if (this.DataLists.length >= 1) {
+            //           this.marryalls = 0;
+            //           this.DataLists.forEach((item1) => {
+            //             this.marryalls += item1.proPrice;
+            //             this.packagedataList.forEach((item3) => {
+            //               if (item1.proParentId == item3.proId) {
+            //                 item1.propinName = item3.proName;
+            //               }
+            //             });
+            //           });
+            //         }
+            //       });
+            //     });
+            //   }
+            // });
           }
           this.loading = false;
         });
@@ -2701,27 +2702,27 @@
         //     });
         //   });
         // }
-        this.checkedkey.push(this.Treedata[0].proId);
-        let proId = this.Treedata[0].proId;
-        getProSonDxList(proId).then((res) => {
-          this.TreedataList = res.data.list;
-          this.TreedataList.forEach((item) => {
-            this.checkedListkey.push(item.proId);
-            this.DataList.push(item);
-            this.DataList.forEach((item) => {
-              item.propinName = this.Treedata[0].proName;
-            });
-          });
-          this.TotalPrice1 = 0;
-          this.marryall = 0;
-          if (this.DataList.length != 0) {
-            this.list1 = false;
-            this.DataList.forEach((item) => {
-              this.TotalPrice1 = item.proPrice + this.TotalPrice1;
-              this.marryall += item.proPrice;
-            });
-          }
-        });
+        // this.checkedkey.push(this.Treedata[0].proId);
+        // let proId = this.Treedata[0].proId;
+        // getProSonDxList(proId).then((res) => {
+        //   this.TreedataList = res.data.list;
+        //   this.TreedataList.forEach((item) => {
+        //     this.checkedListkey.push(item.proId);
+        //     this.DataList.push(item);
+        //     this.DataList.forEach((item) => {
+        //       item.propinName = this.Treedata[0].proName;
+        //     });
+        //   });
+        //   this.TotalPrice1 = 0;
+        //   this.marryall = 0;
+        //   if (this.DataList.length != 0) {
+        //     this.list1 = false;
+        //     this.DataList.forEach((item) => {
+        //       this.TotalPrice1 = item.proPrice + this.TotalPrice1;
+        //       this.marryall += item.proPrice;
+        //     });
+        //   }
+        // });
         this.loading = false;
       });
     },

--
Gitblit v1.8.0