| | |
| | | <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.unused + row.used }}</el-button> |
| | | <el-button type="text" @click="showCouponUse(row.id)">{{ row.received||0 }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="剩余数量" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.num - row.unused - row.used }} |
| | | {{ (row.num||0) - (row.received||0) }} |
| | | </template> |
| | | </el-table-column> |
| | | <!-- |
| | | <el-table-column prop="used" label="使用数量" align="center" min-width="100px"></el-table-column> |
| | | --> |
| | | <el-table-column prop="validDays" label="使用有效期" align="center" min-width="210px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.useType ===0"><li> 起:{{ row.startDate}}</li> <li>止:{{row.endDate }}</li></span> |
| | |
| | | > |
| | | <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> |