From b9c2d311ba0b70ee76a0c60b9b19507fde09d11d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 19 Aug 2024 10:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91MALL:=20?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E8=AF=A6=E6=83=85=E5=A2=9E=E5=8A=A0=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/trade/afterSale/index.vue | 13 ++++++++++--- src/views/member/user/detail/index.vue | 5 ++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/mall/trade/afterSale/index.vue b/src/views/mall/trade/afterSale/index.vue index 52051c35..2378ad1c 100644 --- a/src/views/mall/trade/afterSale/index.vue +++ b/src/views/mall/trade/afterSale/index.vue @@ -156,7 +156,7 @@ - + @@ -181,6 +181,9 @@ import { cloneDeep } from 'lodash-es' import { fenToYuan } from '@/utils' defineOptions({ name: 'TradeAfterSale' }) +const props = defineProps<{ + userId?: number +}>() const { push } = useRouter() // 路由跳转 @@ -204,7 +207,8 @@ const queryParams = reactive({ spuName: null, createTime: [], way: null, - type: null + type: null, + userId: null }) /** 查询列表 */ const getList = async () => { @@ -215,8 +219,11 @@ const getList = async () => { if (data.status === '0') { delete data.status } + if (props.userId) { + data.userId = props.userId + } // 执行查询 - const res = (await AfterSaleApi.getAfterSalePage(data)) as AfterSaleApi.TradeAfterSaleVO[] + const res = await AfterSaleApi.getAfterSalePage(data) list.value = res.list total.value = res.total } finally { diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue index 060568fd..9f404686 100644 --- a/src/views/member/user/detail/index.vue +++ b/src/views/member/user/detail/index.vue @@ -48,7 +48,9 @@ - 售后管理(WIP) + + + @@ -81,6 +83,7 @@ import UserPointList from './UserPointList.vue' import UserSignList from './UserSignList.vue' import UserFavoriteList from './UserFavoriteList.vue' import WalletTransactionList from '@/views/pay/wallet/transaction/WalletTransactionList.vue' +import TradeAfterSale from '@/views/mall/trade/afterSale/index.vue' import { CardTitle } from '@/components/Card/index' import { ElMessage } from 'element-plus'