From c410e752ddb5f07c9e4d9fa100b7f8cf6365ee2b Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Mon, 17 Mar 2025 18:28:14 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E5=9B=9E=E9=80=80=E6=AC=BE=E5=88=B0?=
=?UTF-8?q?=E8=A1=A8=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/index.vue | 20 +++++++++++++++++---
src/views/product/indexconfig/content.ts | 7 +++++++
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index c216a92..0a68625 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -25,6 +25,10 @@
+
+
+
@@ -92,10 +96,10 @@
{{ haocaiData.name }}
-
+
@@ -247,10 +251,20 @@ function handleSwitchChangeTwo(data: any) {
};
UserAPI.markIsSoldOut(obj);
}
+function handleSwitchChangethree(data: any) {
+ let obj = {
+ type: data.type == "sku" ? "sku" : "product",
+ id: data.id,
+ isSoldOut: data.isSoldStock,
+ };
+ UserAPI.markIsSoldOut(obj);
+}
+
// 退款退回
async function handleSwitchhaocai(row: IObject) {
- let res = await UserAPI.refundToStock({ isReturn: row, id: haocaiData.value.id })
+ let res = await UserAPI.refundToStock({ isReturn: row.isRefundStock, id: row.id })
ElMessage.success('成功')
+ handleResetClick()
// myDialogRefhaocai.value.close()
}
diff --git a/src/views/product/indexconfig/content.ts b/src/views/product/indexconfig/content.ts
index 476f2e1..a826a65 100644
--- a/src/views/product/indexconfig/content.ts
+++ b/src/views/product/indexconfig/content.ts
@@ -92,6 +92,13 @@ const contentConfig: IContentConfig = {
templet: "custom",
slotName: "sellOut",
},
+ {
+ label: "退款退回库存",
+ align: "center",
+ prop: "isRefundStock",
+ templet: "custom",
+ slotName: "tuikuantuihui",
+ },
{
label: "操作",
align: "center",