Skip to content

Commit 2a8e8e8

Browse files
committed
promotion:增加优惠劵的回收操作
1 parent cb3eda1 commit 2a8e8e8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/views/mall/promotion/coupon/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
5858
<template slot-scope="scope">
5959
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
60-
v-hasPermi="['promotion:coupon:delete']">删除</el-button>
60+
v-hasPermi="['promotion:coupon:delete']">回收</el-button>
6161
</template>
6262
</el-table-column>
6363
</el-table>
@@ -145,11 +145,11 @@ export default {
145145
/** 删除按钮操作 */
146146
handleDelete(row) {
147147
const id = row.id;
148-
this.$modal.confirm('是否确认删除优惠劵编号为"' + id + '"的数据项?').then(function() {
148+
this.$modal.confirm('回收将会收回会员领取的待使用的优惠券,已使用的将无法回收,确定要回收所选优惠券吗?').then(function() {
149149
return deleteCoupon(id);
150150
}).then(() => {
151151
this.getList();
152-
this.$modal.msgSuccess("删除成功");
152+
this.$modal.msgSuccess("回收成功");
153153
}).catch(() => {});
154154
},
155155
/** tab 切换 */

src/views/mall/promotion/couponTemplate/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<el-col :span="1.5">
3434
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
3535
v-hasPermi="['promotion:coupon-template:create']">新增</el-button>
36+
<el-button type="info" plain icon="el-icon-s-operation" size="mini"
37+
@click="() => this.$router.push('/promotion/coupon')"
38+
v-hasPermi="['promotion:coupon:query']">会员优惠劵</el-button>
3639
</el-col>
3740
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
3841
</el-row>

0 commit comments

Comments
 (0)