From 994e4c953813dd237576269479cedd627e1e38fc Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 16 Jul 2025 09:35:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=A2=E5=8D=95):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=80=80=E8=BF=98=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5=E5=8F=8A?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在订单DTO中新增退还状态字段,并在订单列表页面添加退还状态的表格列展示。退还状态分为未退还(0)和已退还(1)两种状态,分别用不同样式的标签显示。 --- src/api/shop/order.ts | 6 ++++++ src/views/shop/order/index.vue | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/api/shop/order.ts b/src/api/shop/order.ts index f45ae3b..888dfd6 100644 --- a/src/api/shop/order.ts +++ b/src/api/shop/order.ts @@ -105,6 +105,12 @@ export interface OrderDTO { * 多个商品封面图用逗号分隔 */ coverImgs?: string; + /** + * 退还状态 + * @remarks + * 0-未退还 | 1-已退还 + */ + returnStatus?: number; } export const getOrderListApi = (params?: OrderQuery) => { diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index 3d31ccb..2ce2b68 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -232,6 +232,13 @@ getList(); + + +