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",