From f374238e56ddde2bd4e2eb2c464d319467a58ea1 Mon Sep 17 00:00:00 2001
From: 15820893422 <1978476055@qq.com>
Date: Tue, 18 Jun 2024 16:22:59 +0800
Subject: [PATCH] 1
---
src/api/order.js | 6 ++++++
src/views/order/refund/index.vue | 16 ++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/src/api/order.js b/src/api/order.js
index d228152..37e4662 100644
--- a/src/api/order.js
+++ b/src/api/order.js
@@ -62,6 +62,12 @@ export function cardListApi(data) {
export function orderUpdateApi(id) {
return request.get(`store/order/update/${id}/form`)
}
+/**
+ * @description 订单 -- 手动退款
+ */
+export function onOrdermanualApi(id) {
+ return request.get(`order/refund/manual/${id}`)
+}
/**
* @description 订单 -- 发货
diff --git a/src/views/order/refund/index.vue b/src/views/order/refund/index.vue
index c52d239..3f4f92a 100644
--- a/src/views/order/refund/index.vue
+++ b/src/views/order/refund/index.vue
@@ -189,6 +189,7 @@
@click="onOrderDetail(scope.row.order.order_sn)"
>订单详情
退款
+ 手动退款
退款单详情
@@ -234,6 +235,7 @@ import {
refundorderStatusApi,
refundorderDetailApi,
refundorderExpressApi,
+ onOrdermanualApi,
orderDeliveryApi, exportRefundOrderApi
} from "@/api/order";
import createWorkBook from '@/utils/newToExcel.js';
@@ -316,6 +318,20 @@ export default {
// 退款
onOrderStatus(id) {
this.$modalForm(refundorderStatusApi(id)).then(() => this.getList(''))
+ },
+ onOrdermanual(id){
+ this.$confirm('请确认该订单已线下退款,请谨慎操作', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ onOrdermanualApi(id).then((res)=>{
+ this.$message.success(res.message)
+ this.getList('');
+ }).catch(({ message }) => {
+ this.$message.error(message)
+ });
+ })
},
// 详情
onRefundOrderDetail(id) {