优惠劵
This commit is contained in:
parent
460e3b7201
commit
094a8fc102
|
|
@ -38,8 +38,9 @@
|
|||
<el-table-column label="赠送积分" prop="giftPoints"></el-table-column>
|
||||
<el-table-column label="是否使用优惠券" prop="isUseCoupon">
|
||||
<template v-slot="scope">
|
||||
<el-switch v-model="scope.row.isUseCoupon" :active-value="1" :inactive-value="0"
|
||||
@change="statusChange($event, scope.row)"></el-switch>
|
||||
<!-- <el-switch v-model="scope.row.isUseCoupon" :active-value="1" :inactive-value="0"
|
||||
@change="statusChange($event, scope.row)" disabled></el-switch> -->
|
||||
{{ scope.row.isUseCoupon == 1 ? '是':'否'}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120">
|
||||
|
|
|
|||
|
|
@ -40,8 +40,7 @@
|
|||
</el-form-item> -->
|
||||
|
||||
<el-form-item label="是否使用优惠券">
|
||||
<el-switch v-model="form.isUseCoupon" @change="statusChange($event, form.isUseCoupon)"
|
||||
:active-value="1" :inactive-value="0"></el-switch>
|
||||
<el-switch v-model="form.isUseCoupon" :active-value="1" :inactive-value="0"></el-switch>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量">
|
||||
<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)
|
||||
// this.productIds = res
|
||||
if (obj.couponId) {
|
||||
this.productIds = [{ title: obj.couponName }]
|
||||
this.productIds = [{ title: obj.couponName,id:obj.couponId }]
|
||||
}
|
||||
console.log(obj, '调试1')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue