优惠劵

This commit is contained in:
魏啾
2024-11-14 14:04:31 +08:00
parent 460e3b7201
commit 094a8fc102
2 changed files with 5 additions and 5 deletions

View File

@@ -38,8 +38,9 @@
<el-table-column label="赠送积分" prop="giftPoints"></el-table-column> <el-table-column label="赠送积分" prop="giftPoints"></el-table-column>
<el-table-column label="是否使用优惠券" prop="isUseCoupon"> <el-table-column label="是否使用优惠券" prop="isUseCoupon">
<template v-slot="scope"> <template v-slot="scope">
<el-switch v-model="scope.row.isUseCoupon" :active-value="1" :inactive-value="0" <!-- <el-switch v-model="scope.row.isUseCoupon" :active-value="1" :inactive-value="0"
@change="statusChange($event, scope.row)"></el-switch> @change="statusChange($event, scope.row)" disabled></el-switch> -->
{{ scope.row.isUseCoupon == 1 ? '是':'否'}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">

View File

@@ -40,8 +40,7 @@
</el-form-item> --> </el-form-item> -->
<el-form-item label="是否使用优惠券"> <el-form-item label="是否使用优惠券">
<el-switch v-model="form.isUseCoupon" @change="statusChange($event, form.isUseCoupon)" <el-switch v-model="form.isUseCoupon" :active-value="1" :inactive-value="0"></el-switch>
:active-value="1" :inactive-value="0"></el-switch>
</el-form-item> </el-form-item>
<el-form-item label="数量"> <el-form-item label="数量">
<el-input-number v-model="form.num" controls-position="right" :min="1"></el-input-number> <el-input-number v-model="form.num" controls-position="right" :min="1"></el-input-number>
@@ -221,7 +220,7 @@ export default {
// let res = await activate(obj.id) // let res = await activate(obj.id)
// this.productIds = res // this.productIds = res
if (obj.couponId) { if (obj.couponId) {
this.productIds = [{ title: obj.couponName }] this.productIds = [{ title: obj.couponName,id:obj.couponId }]
} }
console.log(obj, '调试1') console.log(obj, '调试1')
} }