完善功能

This commit is contained in:
wangxiaowei
2025-12-13 00:32:46 +08:00
parent 8c2803eebc
commit f29756ac58
13 changed files with 118 additions and 69 deletions

View File

@ -53,11 +53,11 @@
<price-format color="#303133" :subscript-size="30" :first-size="30" :second-size="30" :price="bill.dgf.total"></price-format>
</view>
</view>
<view class="title2 d-b-c">
<!-- <view class="title2 d-b-c"> -->
<!-- <view>灯光费(¥{{ bill.dgf.price }}元/小时)</view> -->
<view>小时</view>
<!-- <view>小时</view>
<view>x{{ bill.dgf.nums }}</view>
</view>
</view> -->
</view>
<view class="line"></view>
@ -602,11 +602,16 @@ export default {
});
});
// 保留2位小数不四舍五入
totalPrice = Number(totalPrice.toFixed(2));
totalLightPrice = Number(totalLightPrice.toFixed(2));
const total = Number((totalPrice + totalLightPrice).toFixed(2));
this.selectedReserveTime = room_list;
// 计算场地费用
self.bill = {
total: Number(totalPrice) + Number(totalLightPrice),
total: total,
cdf: {
nums: this.countSelectedTime,
price: 0,