|
@@ -132,14 +132,33 @@
|
|
|
<text class="kv-label">红包减免</text>
|
|
<text class="kv-label">红包减免</text>
|
|
|
<text class="kv-value kv-value--minus">-¥{{ money(data.hbAmount) }}</text>
|
|
<text class="kv-value kv-value--minus">-¥{{ money(data.hbAmount) }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- 当天退款影响 actPrice,放在实付前展示 -->
|
|
|
|
|
+ <view v-if="Number(data.tkPrice) > 0" class="kv-row">
|
|
|
|
|
+ <text class="kv-label">当天退款</text>
|
|
|
|
|
+ <text class="kv-value kv-value--minus">
|
|
|
|
|
+ <text v-if="Number(data.refundSendCost) > 0">(含运费{{ money(data.refundSendCost) }}元)</text>
|
|
|
|
|
+ <text v-if="Number(data.refundPackCost) > 0">(含包装费{{ money(data.refundPackCost) }}元)</text>
|
|
|
|
|
+ -¥{{ money(data.tkPrice) }}
|
|
|
|
|
+ </text>
|
|
|
|
|
+ </view>
|
|
|
<view class="kv-row kv-row--strong">
|
|
<view class="kv-row kv-row--strong">
|
|
|
<text class="kv-label">实付合计</text>
|
|
<text class="kv-label">实付合计</text>
|
|
|
- <text class="kv-value kv-value--pay">¥{{ money(data.mainPay) }}</text>
|
|
|
|
|
|
|
+ <text class="kv-value kv-value--pay">¥{{ money(data.actPrice) }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="Number(data.remainDebtPrice) > 0" class="kv-row">
|
|
<view v-if="Number(data.remainDebtPrice) > 0" class="kv-row">
|
|
|
<text class="kv-label">订单待结</text>
|
|
<text class="kv-label">订单待结</text>
|
|
|
<text class="kv-value kv-value--debt">¥{{ money(data.remainDebtPrice) }}</text>
|
|
<text class="kv-value kv-value--debt">¥{{ money(data.remainDebtPrice) }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- 隔天退款不改 actPrice;最终金额 = 实付 - 隔天退款 -->
|
|
|
|
|
+ <view v-if="Number(data.nextDayTkPrice) > 0" class="kv-row">
|
|
|
|
|
+ <text class="kv-label">隔天退款</text>
|
|
|
|
|
+ <text class="kv-value kv-value--minus">-¥{{ money(data.nextDayTkPrice) }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="Number(data.nextDayTkPrice) > 0" class="kv-row kv-row--strong">
|
|
|
|
|
+ <text class="kv-label kv-label--final">最终金额</text>
|
|
|
|
|
+ <text class="kv-value kv-value--pay">¥{{ finalPriceAfterNextDayRefund }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -267,6 +286,16 @@ export default {
|
|
|
const date = this.data.reachDate || ''
|
|
const date = this.data.reachDate || ''
|
|
|
const period = this.reachPeriodInfo || this.data.reachPeriod || ''
|
|
const period = this.reachPeriodInfo || this.data.reachPeriod || ''
|
|
|
return (date + ' ' + period).trim() || '--'
|
|
return (date + ' ' + period).trim() || '--'
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 最终金额:实付 actPrice - 隔天退款 nextDayTkPrice
|
|
|
|
|
+ * 隔天退款不改 actPrice,用差值展示净额(对齐 ghs 封账后退款口径)
|
|
|
|
|
+ */
|
|
|
|
|
+ finalPriceAfterNextDayRefund() {
|
|
|
|
|
+ const act = Number(this.data.actPrice) || 0
|
|
|
|
|
+ const next = Number(this.data.nextDayTkPrice) || 0
|
|
|
|
|
+ const final = act - next
|
|
|
|
|
+ return parseFloat((final > 0 ? final : 0).toFixed(2))
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
@@ -707,6 +736,11 @@ export default {
|
|
|
color: $greenColor;
|
|
color: $greenColor;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.kv-label--final {
|
|
|
|
|
+ color: $greenColor;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.kv-value--debt {
|
|
.kv-value--debt {
|
|
|
color: #e62e45;
|
|
color: #e62e45;
|
|
|
font-weight: 700;
|
|
font-weight: 700;
|