From 8932133e2ee2e5708e3506bee3d01d59bff5f1d2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 12 一月 2025 11:30:52 +0800
Subject: [PATCH] bug
---
wx/pages/addition_subtraction/addition_subtraction.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/wx/pages/addition_subtraction/addition_subtraction.vue b/wx/pages/addition_subtraction/addition_subtraction.vue
index 0795fed..6271aa5 100644
--- a/wx/pages/addition_subtraction/addition_subtraction.vue
+++ b/wx/pages/addition_subtraction/addition_subtraction.vue
@@ -157,7 +157,12 @@
// 鎬婚噾棰�
totalPrice() {
// return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
- return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
+ var totalReductPrice = 0;
+ this.del.forEach(item =>{
+ totalReductPrice = totalReductPrice+item.fee
+ })
+ // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
+ return ((this.cyclePrice * this.add.length) +totalReductPrice).toFixed(2)
}
},
methods: {
@@ -193,7 +198,7 @@
memberName: item.name,
workTypeName: item.gzName,
worktypeId: item.gzId,
- fee: this.cyclePrice
+ fee: item.fee
}
})
this.$u.api.applyChangeCreate({
--
Gitblit v1.9.3