From 20054e5e163a33fff740851f030577dcf27bb696 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期四, 27 六月 2024 15:55:23 +0800
Subject: [PATCH] qxtj

---
 src/views/system/tijianall/index.vue |  100 +++++++++++++++++++++++++-------------------------
 1 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue
index 07335a6..00a73b2 100644
--- a/src/views/system/tijianall/index.vue
+++ b/src/views/system/tijianall/index.vue
@@ -627,7 +627,7 @@
                     </el-table-column>
                   </el-table>
 
-                  <el-collapse v-model="activeName" accordion v-if="list1">
+                  <!-- <el-collapse v-model="activeName" accordion v-if="list1">
                     <div>
                       <el-collapse-item title="璇烽�夋嫨椤圭洰">
                         <el-table
@@ -648,8 +648,8 @@
                         </el-table>
                       </el-collapse-item>
                     </div>
-                  </el-collapse>
-                  <h3 v-else style="font-weight: 600">
+                  </el-collapse> -->
+                  <h3  style="font-weight: 600">
                     鍚堣锛歿{ marryall }}鍏�
                   </h3>
                 </div>
@@ -1860,36 +1860,36 @@
             });
           });
         }
-        if (this.DataLists.length != 0) {
-          this.DataLists.forEach((selectionitem) => {
-            this.Treedata.forEach((item) => {
-              if (selectionitem.propinName == item.proName) {
-                item.disabled = true;
-              }
-            });
-          });
-        }
-        // 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;
+        // if (this.DataLists.length != 0) {
+        //   this.DataLists.forEach((selectionitem) => {
+        //     this.Treedata.forEach((item) => {
+        //       if (selectionitem.propinName == item.proName) {
+        //         item.disabled = true;
+        //       }
         //     });
         //   });
-        //   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;
       });
     },
@@ -1924,26 +1924,26 @@
           }
         });
       } else if (checked.checkedNodes.length == 0) {
-        for (var i = 0; i < data.tjProjectList.length; i++) {
-          let proId = data.tjProjectList[i].proId;
-          getProSonDxList(proId).then((res) => {
-            this.TreedataList = res.data.list;
-            this.TreedataList.forEach((item) => {
-              this.DataLists.forEach((item1, index) => {
-                if (item.proId == item1.proId) {
-                  this.DataLists.splice(index, 1);
+        // for (var i = 0; i < data.tjProjectList.length; i++) {
+        //   let proId = data.tjProjectList[i].proId;
+        //   getProSonDxList(proId).then((res) => {
+        //     this.TreedataList = res.data.list;
+        //     this.TreedataList.forEach((item) => {
+        //       this.DataLists.forEach((item1, index) => {
+        //         if (item.proId == item1.proId) {
+        //           this.DataLists.splice(index, 1);
                   
-                }
-              });
-            });
-            this.marryalls = 0
-            if(this.DataLists.length != 0){
-              this.DataLists.forEach((item1, index) => {
-              this.marryalls += item1.proPrice;
-              })
-            }
-          });
-        }
+        //         }
+        //       });
+        //     });
+        //     this.marryalls = 0
+        //     if(this.DataLists.length != 0){
+        //       this.DataLists.forEach((item1, index) => {
+        //       this.marryalls += item1.proPrice;
+        //       })
+        //     }
+        //   });
+        // }
       }
     },
 

--
Gitblit v1.8.0