| | |
| | | <span v-if="row.couponType ===1"> 折扣券</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="优惠规则" align="center" min-width="150px" show-overflow-tooltip> |
| | | <el-table-column label="优惠规则" align="center" min-width="200px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.couponType ===0"> {{ `订单满${row.limitPrice||0}元,减${row.price||0}` }}元</span> |
| | | <span v-if="row.couponType ===1"> {{ `订单满${row.limitPrice||0}元,享${row.price||0}折` }}</span> |
| | | <span v-if="row.couponType ===1"> {{ `订单满${row.limitPrice||0}元,享${row.price||0}折,`}}</span><br> |
| | | <span v-if="row.couponType ===1"> {{ `优惠金额上限${row.maxPrice||0}元 `}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="发放总量" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column label="已发送数量" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="showCouponUse(row.id)">{{ row.received||0 }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="发放总量" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.num "> {{ row.num}}</span> |
| | | <span v-if="!row.num ||row.num<=0 ">不限</span><br> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="剩余数量" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ (row.num||0) - (row.received||0) }} |
| | | <span v-if="row.num "> {{ (row.num||0) - (row.received||0) }}</span> |
| | | <span v-if="!row.num ||row.num<=0 ">不限</span><br> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaCouponWindow.open('编辑优惠券', row)" icon="el-icon-edit" v-permissions="['business:coupon:update']">编辑</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:coupon:delete']">删除</el-button> |
| | | <el-button type="text" style="color: red;" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:coupon:delete']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.$refs.operaCouponDetail.open('优惠券详情', row) |
| | | }, |
| | | showCouponUse(id) { |
| | | |
| | | this.$refs.operaCouponUsedDetail.open('优惠券领取详情', id) |
| | | }, |
| | | statusChange(row) { |