From a0a3035f5822585549a5204c7f9a385abfecbf79 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期三, 16 七月 2025 17:39:59 +0800
Subject: [PATCH] 1

---
 src/views/system/packages/index.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/views/system/packages/index.vue b/src/views/system/packages/index.vue
index 838fbe1..da4b16c 100644
--- a/src/views/system/packages/index.vue
+++ b/src/views/system/packages/index.vue
@@ -7,6 +7,7 @@
       :inline="true"
       v-show="showSearch"
       label-width="68px"
+      @submit.native.prevent
     >
       <el-form-item label="缁勫悎鍚嶇О" prop="zhmc">
         <el-input
@@ -262,6 +263,8 @@
               :span-method="objectSpanMethod"
             >
               <el-table-column prop="propinName" label="妫�鏌ラ」鐩�">
+              </el-table-column>
+              <el-table-column prop="sl" label="鏁伴噺" width="56px">
               </el-table-column>
               <el-table-column prop="proPrice" label="鍘熶环" width="56px">
               </el-table-column>
@@ -589,7 +592,10 @@
                       });
                       this.pics = 0;
                       this.DataList.forEach((item) => {
-                        this.pics += item.proPrice;
+                        console.log(this.DataList,8888);
+                        
+                        this.pics += item.proPrice * item.sl;
+                        // this.pics += item.proPrice;
                       });
                     }
                   });
@@ -612,7 +618,7 @@
               });
               this.pics = 0;
               this.DataList.forEach((item) => {
-                this.pics += item.proPrice;
+                this.pics += item.proPrice * item.sl;
               });
             });
           });
@@ -623,6 +629,8 @@
     handleCurrentChecked(data, checked, checkedNodes) {
       this.dataObj = data;
       this.checkedObj = checked;
+      console.log(checked,555);
+      
       if (checked == true) {
         // this.$refs.tree.setCheckedKeys([data.proId]);
         let proId = data.proId;
@@ -635,7 +643,7 @@
             this.spliceData();
             this.pics = 0;
             this.DataList.forEach((item1) => {
-              this.pics += item1.proPrice;
+              this.pics += item1.proPrice * item1.sl;
               if (item1.proParentId == data.proId) {
                 item1.propinName = data.proName;
                 item1.propinPrice = this.dataObj.proPrice;
@@ -648,7 +656,7 @@
             this.list1 = false;
             this.DataList.forEach((item) => {
               this.TotalPrice1 = item.proPrice + this.TotalPrice1;
-              this.pics += item.proPrice;
+              this.pics += item.proPrice * item.sl;
             });
           }
         });
@@ -667,7 +675,7 @@
           });
           this.pics = 0;
           this.DataList.forEach((item, index) => {
-            this.pics += item.proPrice;
+            this.pics += item.proPrice * item.sl;
           });
         });
       }
@@ -695,7 +703,7 @@
             this.TotalPrice1 = 0;
             this.pics = 0;
             this.DataList.forEach((item1) => {
-              this.pics += item1.proPrice;
+              this.pics + item1.proPrice * item1.sl;
               // this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
             });
           }
@@ -704,7 +712,7 @@
         this.DataList.push(data);
         this.pics = 0;
         this.DataList.forEach((item1) => {
-          this.pics += item1.proPrice;
+          this.pics += item1.proPrice * item1.sl;
           if (item1.proParentId == this.dataObj.proId) {
             item1.propinName = this.dataObj.proName;
             item1.propinPrice = this.dataObj.proPrice;
@@ -715,7 +723,7 @@
         this.pics = 0;
         this.DataList.forEach((item1) => {
           // this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
-          this.pics += item1.proPrice;
+          this.pics += item1.proPrice * item1.sl;
         });
       }
     },

--
Gitblit v1.8.0