按实际纯币金额计算租客优惠与积分
This commit is contained in:
@@ -25,6 +25,22 @@ const checkout = computed(() => props.order.checkout)
|
||||
title="实际结算租金"
|
||||
:value="`¥${money(amountYuan(checkout.display_amount_cent))}`"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="props.isRenter"
|
||||
title="实际纯币原价"
|
||||
:value="`¥${money(amountYuan(checkout.pure_coin_amount_cent))}`"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="props.isRenter && Number(checkout.pure_coin_discount_cent || 0) > 0"
|
||||
title="成长等级优惠"
|
||||
:value="`-¥${money(amountYuan(checkout.pure_coin_discount_cent))}`"
|
||||
value-class="green-text"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="props.isRenter"
|
||||
title="折后纯币金额"
|
||||
:value="`¥${money(amountYuan(checkout.pure_coin_payable_cent))}`"
|
||||
/>
|
||||
<van-cell
|
||||
title="押金总额"
|
||||
:label="
|
||||
@@ -43,10 +59,7 @@ const checkout = computed(() => props.order.checkout)
|
||||
:value="`¥${money(amountYuan(checkout.deposit_deduct_amount_cent))}`"
|
||||
value-class="red-text"
|
||||
/>
|
||||
<van-cell
|
||||
title="哈夫币实际消耗"
|
||||
:value="`${checkout.coin_consumed_m}M`"
|
||||
/>
|
||||
<van-cell title="哈夫币实际消耗" :value="`${checkout.coin_consumed_m}M`" />
|
||||
<van-cell
|
||||
v-if="Number(checkout.overshoot_amount_cent || 0) > 0"
|
||||
title="打超金额(从押金)"
|
||||
@@ -77,6 +90,13 @@ const checkout = computed(() => props.order.checkout)
|
||||
:value="`¥${money(amountYuan(checkout.owner_income_amount_cent))}`"
|
||||
value-class="green-text"
|
||||
/>
|
||||
<van-cell
|
||||
v-if="props.isRenter && props.order.status === 'completed'"
|
||||
title="本单成长积分"
|
||||
:label="`积分基数 ¥${money(amountYuan(props.order.growth_points_basis_cent))}`"
|
||||
:value="`+${Number(props.order.growth_points_awarded || 0)}`"
|
||||
value-class="green-text"
|
||||
/>
|
||||
<van-cell v-if="checkout.content" title="结账备注" :label="checkout.content" />
|
||||
<van-cell
|
||||
v-if="checkout.owner_adjustment_reason"
|
||||
@@ -95,6 +115,21 @@ const checkout = computed(() => props.order.checkout)
|
||||
<span>实际结算租金</span>
|
||||
<strong>¥{{ money(amountYuan(checkout.display_amount_cent)) }}</strong>
|
||||
</div>
|
||||
<div v-if="props.isRenter" class="summary-row">
|
||||
<span>实际纯币原价</span>
|
||||
<strong>¥{{ money(amountYuan(checkout.pure_coin_amount_cent)) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
v-if="props.isRenter && Number(checkout.pure_coin_discount_cent || 0) > 0"
|
||||
class="summary-row"
|
||||
>
|
||||
<span>成长等级优惠</span>
|
||||
<strong class="amount">-¥{{ money(amountYuan(checkout.pure_coin_discount_cent)) }}</strong>
|
||||
</div>
|
||||
<div v-if="props.isRenter" class="summary-row">
|
||||
<span>折后纯币金额</span>
|
||||
<strong>¥{{ money(amountYuan(checkout.pure_coin_payable_cent)) }}</strong>
|
||||
</div>
|
||||
<div class="summary-row">
|
||||
<span>预收押金</span>
|
||||
<strong>
|
||||
@@ -138,6 +173,15 @@ const checkout = computed(() => props.order.checkout)
|
||||
<span>号主最终收入(租金 + 押金赔付)</span>
|
||||
<strong class="amount">¥{{ money(amountYuan(checkout.owner_income_amount_cent)) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
v-if="props.isRenter && props.order.status === 'completed'"
|
||||
class="summary-row highlight"
|
||||
>
|
||||
<span>
|
||||
本单成长积分(基数 ¥{{ money(amountYuan(props.order.growth_points_basis_cent)) }})
|
||||
</span>
|
||||
<strong class="amount">+{{ Number(props.order.growth_points_awarded || 0) }}</strong>
|
||||
</div>
|
||||
<div v-if="checkout.content" class="summary-note">
|
||||
<label>说明:</label>
|
||||
<p>{{ checkout.content }}</p>
|
||||
|
||||
Reference in New Issue
Block a user