From 07a0530fc92021c4a7080a37402c9bb5242f4446 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 1 Sep 2023 10:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=AE=E5=90=8E=E9=80=80=E6=AC=BE=EF=BC=9A?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=94=AE=E5=90=8E=E7=AE=A1=E7=90=86=EF=BC=88?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E3=80=81=E8=AF=A6=E6=83=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/trade/afterSale/detail/index.vue | 45 +++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/src/views/mall/trade/afterSale/detail/index.vue b/src/views/mall/trade/afterSale/detail/index.vue index 360800ad..2fa6e01c 100644 --- a/src/views/mall/trade/afterSale/detail/index.vue +++ b/src/views/mall/trade/afterSale/detail/index.vue @@ -122,8 +122,36 @@ - - + + + + + + 用户类型: + + 售后状态(之前): + + 售后状态(之后): + + 操作明细:{{ saleLog.content }} + + + + + @@ -140,10 +168,12 @@ import { isArray } from '@/utils/is' defineOptions({ name: 'TradeOrderDetailForm' }) +const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 const { params } = useRoute() // 查询参数 const formData = ref({ - order: {} + order: {}, + afterSaleLog: [] }) const updateAuditReasonFormRef = ref() // 拒绝售后表单 Ref @@ -155,11 +185,12 @@ const getDetail = async () => { } } -// TODO @puhui999:操作后,需要提示和刷新哈。 /** 同意售后 */ const agree = () => { message.confirm('是否同意售后?').then(() => { AfterSaleApi.agree(formData.value.id) + message.success(t('common.success')) + getDetail() }) } @@ -172,6 +203,8 @@ const disagree = () => { const receive = () => { message.confirm('是否确认收货?').then(() => { AfterSaleApi.receive(formData.value.id) + message.success(t('common.success')) + getDetail() }) } @@ -179,6 +212,8 @@ const receive = () => { const refuse = () => { message.confirm('是否拒绝收货?').then(() => { AfterSaleApi.refuse(formData.value.id) + message.success(t('common.success')) + getDetail() }) } @@ -186,6 +221,8 @@ const refuse = () => { const refund = () => { message.confirm('是否确认退款?').then(() => { AfterSaleApi.refund(formData.value.id) + message.success(t('common.success')) + getDetail() }) }