diff --git a/src/api/mall/trade/afterSale/index.ts b/src/api/mall/trade/afterSale/index.ts
index 8eb673b1..ba94df0a 100644
--- a/src/api/mall/trade/afterSale/index.ts
+++ b/src/api/mall/trade/afterSale/index.ts
@@ -1,6 +1,5 @@
import request from '@/config/axios'
-// 定义 TradeAfterSaleDTO 接口,映射 TradeAfterSaleDO
export interface TradeAfterSaleVO {
id?: number | null // 售后编号,主键自增
no?: string // 售后单号
@@ -44,8 +43,27 @@ export interface ProductPropertiesVO {
export const getAfterSalePage = async (params) => {
return await request.get({ url: `/trade/after-sale/page`, params })
}
-
// 获得交易售后详情
-export const getAfterSale = async (id) => {
+export const getAfterSale = async (id: any) => {
return await request.get({ url: `/trade/after-sale/get-detail?id=${id}` })
}
+// 同意售后
+export const agree = async (id: any) => {
+ return await request.put({ url: `/trade/after-sale/agree?id=${id}` })
+}
+// 拒绝售后
+export const disagree = async (data: any) => {
+ return await request.put({ url: `/trade/after-sale/disagree`, data })
+}
+// 确认收货
+export const receive = async (id: any) => {
+ return await request.put({ url: `/trade/after-sale/receive?id=${id}` })
+}
+// 拒绝收货
+export const refuse = async (id: any) => {
+ return await request.put({ url: `/trade/after-sale/refuse?id=${id}` })
+}
+// 确认退款
+export const refund = async (id: any) => {
+ return await request.put({ url: `/trade/after-sale/refund?id=${id}` })
+}
diff --git a/src/views/mall/trade/afterSale/components/UpdateAuditReasonForm.vue b/src/views/mall/trade/afterSale/components/UpdateAuditReasonForm.vue
new file mode 100644
index 00000000..266135e3
--- /dev/null
+++ b/src/views/mall/trade/afterSale/components/UpdateAuditReasonForm.vue
@@ -0,0 +1,70 @@
+
+
+
+
diff --git a/src/views/mall/trade/afterSale/detail/index.vue b/src/views/mall/trade/afterSale/detail/index.vue
index d651db8a..cd551a39 100644
--- a/src/views/mall/trade/afterSale/detail/index.vue
+++ b/src/views/mall/trade/afterSale/detail/index.vue
@@ -2,61 +2,61 @@
- {{ orderInfo.orderNo }}
+ {{ formData.orderNo }}
-
+
-
+
- {{ orderInfo.order.receiverName }}
+ {{ formData.order.receiverName }}
- {{ orderInfo.order.userRemark }}
+ {{ formData.order.userRemark }}
-
+
- {{ orderInfo.order.receiverMobile }}
+ {{ formData.order.receiverMobile }}
- {{ orderInfo.order.remark }}
+ {{ formData.order.remark }}
- {{ orderInfo.order.payOrderId }}
+ {{ formData.order.payOrderId }}
-
+
-
+
- {{ orderInfo.no }}
+ {{ formData.no }}
- {{ formatDate(orderInfo.auditTime) }}
+ {{ formatDate(formData.auditTime) }}
-
+
-
+
- {{ orderInfo.refundPrice }}
- {{ orderInfo.applyReason }}
+ {{ formData.refundPrice }}
+ {{ formData.applyReason }}
- {{ orderInfo.applyDescription }}
+ {{ formData.applyDescription }}
- {{ orderInfo.applyPicUrls }}
+ {{ formData.applyPicUrls }}
-
+
同意售后
@@ -64,9 +64,6 @@
确认收货
拒绝收货
确认退款
-
- 更新售后订单为已退款
-
提醒:
@@ -81,7 +78,7 @@
-
+
{{ row.spuName }}
@@ -114,40 +111,56 @@
+
+
+