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()
})
}