fix: 积分商品启用禁用改为使用编辑接口

This commit is contained in:
lzhizhao 2025-08-17 01:06:01 +08:00
parent a171d541a3
commit 74fdbd41c4
1 changed files with 10 additions and 2 deletions

View File

@ -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();