From 21230681ce497427ec17b93e1c66dc58ae739446 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期三, 22 一月 2025 15:19:52 +0800 Subject: [PATCH] 111 --- src/views/system/packages/index.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/views/system/packages/index.vue b/src/views/system/packages/index.vue index 838fbe1..c427a25 100644 --- a/src/views/system/packages/index.vue +++ b/src/views/system/packages/index.vue @@ -263,6 +263,8 @@ > <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> <el-table-column prop="proName" label="鏄庣粏椤圭洰" width="260px"> @@ -589,7 +591,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 +617,7 @@ }); this.pics = 0; this.DataList.forEach((item) => { - this.pics += item.proPrice; + this.pics += item.proPrice * item.sl; }); }); }); @@ -623,6 +628,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 +642,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 +655,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 +674,7 @@ }); this.pics = 0; this.DataList.forEach((item, index) => { - this.pics += item.proPrice; + this.pics += item.proPrice * item.sl; }); }); } @@ -695,7 +702,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 +711,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 +722,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