diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index a0293c1e..9fa6b5ff 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -51,12 +51,11 @@
{{ goods.name }}
- {{ goods.goodsPrice | unitPrice("¥") }} x {{ goods.num }} + {{ goods.goodsPrice | unitPrice("¥") }} x {{ goods.num }} + {{refundPriceList(goods.isRefund)}} {{ goods.refundPrice | unitPrice("¥") }}
- - + +
@@ -155,6 +154,21 @@ export default { this.getList(); }, methods: { + // 退款状态枚举 + refundPriceList(status) { + switch (status) { + case 'ALL_REFUND': + return "全部退款"; + case 'PART_REFUND': + return "部分退款"; + case 'NO_REFUND': + return "未退款"; + case 'REFUNDING': + return "退款中"; + default: + return "未退款"; + } + }, goodsDetail (skuId, goodsId) { // 跳转商品详情 let routeUrl = this.$router.resolve({ diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue index bd517086..5e00abe8 100644 --- a/buyer/src/pages/home/orderCenter/OrderDetail.vue +++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue @@ -106,17 +106,17 @@
- {{ - order.order.storeName - }} + {{order.order.storeName}}
- - + + - + + + @@ -141,6 +141,8 @@ + +
商品货号商品货号 单价数量数量退款状态实际退款金额 小计 操作
{{ goods.id }} {{ goods.goodsPrice | unitPrice("¥") }} {{ goods.num }}{{refundPriceList(goods.isRefund)}}{{ goods.refundPrice | unitPrice("¥") }} {{ (goods.goodsPrice * goods.num) | unitPrice("¥") }}