From 74fdbd41c43c3ebe520a9834a705e11fedc4d693 Mon Sep 17 00:00:00 2001 From: lzhizhao <790086754@qq.com> Date: Sun, 17 Aug 2025 01:06:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=AF=E5=88=86=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=90=AF=E7=94=A8=E7=A6=81=E7=94=A8=E6=94=B9=E4=B8=BA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=BC=96=E8=BE=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/marketing/points-mall/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index ded4900..5c6920d 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -173,9 +173,17 @@ export default { this.$refs.productSelector.show(shopIdList); }, handleEnableChange(row) { - // 调用启用状态切换接口 + // 使用编辑接口进行启用状态切换 + const updateData = { + id: row.id, + exchangeRequiredPoints: row.exchangeRequiredPoints, + increaseInventory: 0, // 默认为0 + exchangeRequiredAmount: row.exchangeRequiredAmount || 0, + enable: row.enable // 使用当前的启用状态 + }; + this.$api.marketing - .reverseEnableMemberUnitPointsProduct({ id: row.id }) + .updateMembershipPointsProduct(updateData) .then(() => { this.$message.success("状态切换成功"); this.$refs.oTable.reload();