Commit 93a56499 by 吕明尚

赠送优惠卷只显示有效期内的

parent ae7c9094
...@@ -194,6 +194,7 @@ ...@@ -194,6 +194,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
v-hasPermi="['system:consumer:give']"
@click="give(scope.row)" @click="give(scope.row)"
>赠送优惠卷 >赠送优惠卷
</el-button> </el-button>
...@@ -314,7 +315,7 @@ ...@@ -314,7 +315,7 @@
type="text" type="text"
icon="el-icon-circle-plus" icon="el-icon-circle-plus"
@click="submitcouponGive(scope.row)" @click="submitcouponGive(scope.row)"
>选择 >赠送
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -549,9 +550,16 @@ export default { ...@@ -549,9 +550,16 @@ export default {
this.couponTitle = "优惠卷列表"; this.couponTitle = "优惠卷列表";
}, },
submitcouponGive(row) { submitcouponGive(row) {
give({consumerId: this.consumerId, couponId: row.id}).then(response => { const consumerId = this.consumerId;
this.$modal.msgSuccess("赠送成功"); this.$modal.confirm('是否赠送' + row.name + '优惠卷').then(function () {
this.couponOpen = false; }).then(() => {
console.log(consumerId)
give({consumerId: consumerId, couponId: row.id}).then(response => {
this.$modal.msgSuccess("赠送成功");
this.couponOpen = false;
});
this.getList();
}).catch(() => {
}); });
this.consumerId = null; this.consumerId = null;
this.couponOpen = false; this.couponOpen = false;
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
plain plain
icon="el-icon-edit" icon="el-icon-edit"
size="mini" size="mini"
v-hasPermi="['system:consumerCoupon:empower']"
@click="onEmpower" @click="onEmpower"
>美团授权 >美团授权
</el-button> </el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment