From bcfb98cb37a63166cd198b14762f200fe4e90164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=85=86=E7=90=A6?= <1361001127@qq.com> Date: Thu, 15 Aug 2024 16:28:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E8=AF=A6=E6=83=85-=E5=94=AE=E5=90=8E?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/user/detail/UserAftersaleList.vue | 271 ++++++++++++++++++ src/views/member/user/detail/index.vue | 5 +- 2 files changed, 275 insertions(+), 1 deletion(-) create mode 100644 src/views/member/user/detail/UserAftersaleList.vue diff --git a/src/views/member/user/detail/UserAftersaleList.vue b/src/views/member/user/detail/UserAftersaleList.vue new file mode 100644 index 00000000..46a172df --- /dev/null +++ b/src/views/member/user/detail/UserAftersaleList.vue @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + 重置 + + + + + + + + + + + + + + + + {{ row.orderNo }} + + + + + + + + {{ row.spuName }} + + {{ property.propertyName }}: {{ property.valueName }} + + + + + + + {{ fenToYuan(scope.row.refundPrice) }} 元 + + + + + + {{ formatDate(scope.row.createTime) }} + + + + + + + + + + + + + + + 处理退款 + + + + + + + + diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue index 6237cca6..52862c3c 100644 --- a/src/views/member/user/detail/index.vue +++ b/src/views/member/user/detail/index.vue @@ -47,7 +47,9 @@ - 售后管理(WIP) + + + @@ -79,6 +81,7 @@ import UserOrderList from './UserOrderList.vue' import UserPointList from './UserPointList.vue' import UserSignList from './UserSignList.vue' import UserFavoriteList from './UserFavoriteList.vue' +import UserAfterSaleList from './UserAftersaleList.vue' import { CardTitle } from '@/components/Card/index' import { ElMessage } from 'element-plus' From 61fb71c010dbafd437afcee011c71c56aad9a486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=85=86=E7=90=A6?= <1361001127@qq.com> Date: Fri, 16 Aug 2024 09:15:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0TODO=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/member/user/detail/UserAftersaleList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/member/user/detail/UserAftersaleList.vue b/src/views/member/user/detail/UserAftersaleList.vue index 46a172df..d13e243b 100644 --- a/src/views/member/user/detail/UserAftersaleList.vue +++ b/src/views/member/user/detail/UserAftersaleList.vue @@ -198,7 +198,7 @@ const queryFormRef = ref() // 搜索的表单 const queryParams = ref({ pageNo: 1, pageSize: 10, - userId: userId, + userId, no: null, status: '0', orderNo: null, @@ -217,6 +217,7 @@ const getList = async () => { delete data.status } // 执行查询 + // TODO @芋艿:接口需要通过userId进行筛选返回值 const res = (await AfterSaleApi.getAfterSalePage(data)) as AfterSaleApi.TradeAfterSaleVO[] list.value = res.list total.value = res.total