|
|
@@ -244,7 +244,7 @@
|
|
|
<view>累计退款:</view>
|
|
|
<view style="color:red;font-weight:bold;font-size:30upx;">{{ totalTkPrice }}</view>
|
|
|
<view class="price" v-if="detailInfo.refundLog==1">
|
|
|
- <button @click="pageTo({url: '/pagesOrder/refundList',query: {orderSn: detailInfo.orderSn}})" style="color:red;border: 1upx solid red;" class="admin-button-com">售后记录</button>
|
|
|
+ <button @click="pageTo({url: '/pagesOrder/refundList',query: {orderSn: detailInfo.orderSn}})" style="color:red;border: 1upx solid red;" class="admin-button-com">退款记录</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -265,10 +265,10 @@
|
|
|
|
|
|
<!-- 待付款/已取消不可售后;其余直接进售后页(未完成由后端提交时自动确认送达/完成) -->
|
|
|
<view class="flex" style="color: #3385ff;" v-if="detailInfo.status != 1 && detailInfo.status != 5">
|
|
|
- <button class="admin-button-com bule middle" @click.stop="goRefund()">发起售后</button>
|
|
|
+ <button class="admin-button-com bule middle" @click.stop="goRefund()">发起退款</button>
|
|
|
</view>
|
|
|
<view v-else class="flex">
|
|
|
- <button disabled="true" class="admin-button-com bule active middle" style="border:1rpx solid #ccc;">发起售后</button>
|
|
|
+ <button disabled="true" class="admin-button-com bule active middle" style="border:1rpx solid #ccc;">发起退款</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="module-com content-box">
|
|
|
@@ -404,6 +404,15 @@
|
|
|
<div class="tui-title" style="color:#3385FF;">实际金额</div>
|
|
|
<div class="detail-price_box" style="font-size: 34upx;color:#3385FF;">¥{{ parseFloat(detailInfo.realPrice)}}</div>
|
|
|
</tui-list-cell>
|
|
|
+ <!-- 封账退款:不改 realPrice,单独展示;最终金额 = 实际金额 - 封账退款 -->
|
|
|
+ <tui-list-cell v-if="Number(detailInfo.nextDayTkPrice) > 0" class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title" style="color:#e67e22;">封账退款</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 28upx;color:#e67e22;">-¥{{ parseFloat(detailInfo.nextDayTkPrice) }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell v-if="Number(detailInfo.nextDayTkPrice) > 0" class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title" style="color:#3385FF;font-weight:bold;">最终金额</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 34upx;color:#3385FF;font-weight:bold;">¥{{ finalPriceAfterSealRefund }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
|
|
|
<block v-if="detailInfo.staffFinance==1">
|
|
|
<tui-list-cell class="line-cell" :hover="false" @click="toggleFinanceInfo">
|
|
|
@@ -457,6 +466,23 @@
|
|
|
<div class="tui-title">实际金额</div>
|
|
|
<div class="detail-price_box" style="font-size: 32upx;">¥{{ parseFloat(detailInfo.realPrice)}}</div>
|
|
|
</tui-list-cell>
|
|
|
+ <!-- 封账退款 / 最终金额:与上方价格明细口径一致 -->
|
|
|
+ <tui-list-cell
|
|
|
+ v-if="(detailInfo.status==3 || detailInfo.status==4) && Number(detailInfo.nextDayTkPrice) > 0"
|
|
|
+ class="line-cell"
|
|
|
+ :hover="false"
|
|
|
+ >
|
|
|
+ <div class="tui-title" style="color:#e67e22;">封账退款</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 28upx;color:#e67e22;">-¥{{ parseFloat(detailInfo.nextDayTkPrice) }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell
|
|
|
+ v-if="(detailInfo.status==3 || detailInfo.status==4) && Number(detailInfo.nextDayTkPrice) > 0"
|
|
|
+ class="line-cell"
|
|
|
+ :hover="false"
|
|
|
+ >
|
|
|
+ <div class="tui-title" style="font-weight:bold;">最终金额</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 32upx;font-weight:bold;">¥{{ finalPriceAfterSealRefund }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
</div>
|
|
|
</view>
|
|
|
|
|
|
@@ -801,6 +827,16 @@ export default {
|
|
|
const next = Number(this.detailInfo.nextDayTkPrice) || 0
|
|
|
return parseFloat((day + next).toFixed(2))
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 最终金额:实际金额 realPrice - 封账退款 nextDayTkPrice
|
|
|
+ * 封账退款不改实付字段,用差值给店员看净额
|
|
|
+ */
|
|
|
+ finalPriceAfterSealRefund() {
|
|
|
+ const real = Number(this.detailInfo.realPrice) || 0
|
|
|
+ const seal = Number(this.detailInfo.nextDayTkPrice) || 0
|
|
|
+ const final = real - seal
|
|
|
+ return parseFloat((final > 0 ? final : 0).toFixed(2))
|
|
|
+ },
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
const purchaseId = this.detailInfo.purchaseId || 0
|