作者 何书鹏

订单详情显示退款金额

... ... @@ -272,6 +272,9 @@ class Order extends Base
// 处理未支付 item status_code
$row = $this->model->setOrderItemStatusByOrder($row);
// 退款金额
$row['refund_fee_total'] = array_sum(array_column($row['item'],'refund_fee'));
return $this->success('获取成功', null, [
'order' => $row,
'item' => $row['item'],
... ...
... ... @@ -814,6 +814,9 @@
<div class="order-msg-right-item"><span
class="order-msg-right-title color-444 title-span-width">订单金额:</span><span
class="order-msg-right-money">¥{{orderDetail.pay_fee}}</span></div>
<div class="order-msg-right-item" v-if="orderDetail.status_code=='refund_finish'"><span
class="order-msg-right-title color-444 title-span-width">退款金额:</span><span
class="order-msg-right-money">¥{{orderDetail.refund_fee_total}}</span></div>
</div>
</el-col>
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="14">
... ...