|
|
|
@ -31,11 +31,13 @@
|
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="couponPrice" label="优惠券面值" /> |
|
|
|
|
<el-table-column prop="useMinPrice" label="优惠券最低消费" /> |
|
|
|
|
<el-table-column label="优惠券有效期限"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.couponTime }}天</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column label="优惠券有效期限">--> |
|
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
|
<!-- <span>{{ scope.row.couponTime }}天</span>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
<el-table-column prop="useStartTime" label="使用时间开始" width="200" /> |
|
|
|
|
<el-table-column prop="useEndTime" label="使用时间截止" width="200" /> |
|
|
|
|
<el-table-column prop="sort" label="排序" width="100" /> |
|
|
|
|
<el-table-column label="状态" width="100" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -156,6 +158,7 @@ export default {
|
|
|
|
|
this.$refs.form.dialog = true |
|
|
|
|
}, |
|
|
|
|
edit(data) { |
|
|
|
|
// console.log('data',typeof(data.useStartTime),data.useStartTime) |
|
|
|
|
this.isAdd = false |
|
|
|
|
const _this = this.$refs.form |
|
|
|
|
_this.form = { |
|
|
|
@ -164,7 +167,9 @@ export default {
|
|
|
|
|
integral: data.integral, |
|
|
|
|
couponPrice: data.couponPrice, |
|
|
|
|
useMinPrice: data.useMinPrice, |
|
|
|
|
couponTime: data.couponTime, |
|
|
|
|
useStartTime:new Date(data.useStartTime), |
|
|
|
|
useEndTime:new Date(data.useEndTime), |
|
|
|
|
// couponTime: data.couponTime, |
|
|
|
|
sort: data.sort, |
|
|
|
|
status: data.status, |
|
|
|
|
type: data.type, |
|
|
|
|