From 560199944dcd6622f6dc783cb278393b467457a6 Mon Sep 17 00:00:00 2001 From: 15386982806 Date: Fri, 5 Jan 2024 14:00:22 +0800 Subject: [PATCH] =?UTF-8?q?PC=E7=AB=AF=E8=AE=A2=E5=8D=95=E8=B4=A7=E7=89=A9?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=80=80=E6=AC=BE=E7=8A=B6=E6=80=81=E4=B8=8E?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/home/orderCenter/MyOrder.vue | 24 +++++++++++---- .../pages/home/orderCenter/OrderDetail.vue | 29 +++++++++++++++---- 2 files changed, 42 insertions(+), 11 deletions(-) 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("¥") }}