From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交

---
 wx/pages/addition_subtraction/addition_subtraction.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/wx/pages/addition_subtraction/addition_subtraction.vue b/wx/pages/addition_subtraction/addition_subtraction.vue
index 34dd380..48808c4 100644
--- a/wx/pages/addition_subtraction/addition_subtraction.vue
+++ b/wx/pages/addition_subtraction/addition_subtraction.vue
@@ -50,6 +50,7 @@
 							<view class="top_a_tips" v-else>鍔犱繚</view>
 						</view>
 						<view class="top_b">韬唤璇佸彿锛歿{item.idCard}}</view>
+						<view class="top_b" v-if="type ===0">澶囨敞锛歿{item.remark||''}}</view>
 					</view>
 					<view class="center"></view>
 					<view class="bottom">
@@ -137,6 +138,11 @@
 			this.code = options.code
 			this.startDate = options.startDate
 			this.cyclePrice = options.cyclePrice
+			if (options.title) {
+				uni.setNavigationBarTitle({
+					title: options.title
+				});
+			}
 			this.getDetails()
 			uni.$on('add', (res) => {
 				if (JSON.stringify(this.add).indexOf(res.model.idCard) !== -1) {
@@ -156,7 +162,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: {
@@ -192,7 +203,7 @@
 						memberName: item.name,
 						workTypeName: item.gzName,
 						worktypeId: item.gzId,
-						fee: this.cyclePrice
+						fee: item.fee
 					}
 				})
 				this.$u.api.applyChangeCreate({

--
Gitblit v1.9.3