|
@@ -28,6 +28,7 @@
|
|
|
<el-table-column label="名称" align="center" prop="name" />
|
|
|
<el-table-column label="种类" align="center" prop="categoryText" />
|
|
|
<el-table-column label="可兑换群体" align="center" prop="tags" />
|
|
|
+ <el-table-column label="发放数量" align="center" prop="count" />
|
|
|
<el-table-column label="面额" align="center" prop="money" />
|
|
|
<el-table-column label="需要积分" align="center" prop="integral" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
@@ -153,20 +154,22 @@ export default {
|
|
|
methods: {
|
|
|
// 减发
|
|
|
handleReduce(e) {
|
|
|
+ const _this = this;
|
|
|
this.$modal.prompt('请输入减发数量').then(({ value }) => {
|
|
|
- return updateNumber({ discountId: e.discountId, type: 'plus', count: value });
|
|
|
+ return updateNumber({ discountId: e.discountId, type: 'minus', count: value });
|
|
|
}).then(() => {
|
|
|
- this.query();
|
|
|
- this.$modal.msgSuccess("减发成功");
|
|
|
+ _this.getList();
|
|
|
+ _this.$modal.msgSuccess("减发成功");
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
// 增发
|
|
|
handleIncrease(e) {
|
|
|
+ const _this = this;
|
|
|
this.$modal.prompt('请输入增发数量').then(({ value }) => {
|
|
|
- return updateNumber({ discountId: e.discountId, type: 'minus', count: value });
|
|
|
- }).then(() => {
|
|
|
- this.query();
|
|
|
- this.$modal.msgSuccess("增发成功");
|
|
|
+ return updateNumber({ discountId: e.discountId, type: 'plus', count: value });
|
|
|
+ }).then((res) => {
|
|
|
+ _this.getList();
|
|
|
+ _this.$modal.msgSuccess("增发成功");
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
/** 查询检测代金券管理列表 */
|