Commit 93a56499 by 吕明尚

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

parent ae7c9094
......@@ -194,6 +194,7 @@
size="mini"
type="text"
icon="el-icon-delete"
v-hasPermi="['system:consumer:give']"
@click="give(scope.row)"
>赠送优惠卷
</el-button>
......@@ -314,7 +315,7 @@
type="text"
icon="el-icon-circle-plus"
@click="submitcouponGive(scope.row)"
>选择
>赠送
</el-button>
</template>
</el-table-column>
......@@ -549,10 +550,17 @@ export default {
this.couponTitle = "优惠卷列表";
},
submitcouponGive(row) {
give({consumerId: this.consumerId, couponId: row.id}).then(response => {
const consumerId = this.consumerId;
this.$modal.confirm('是否赠送' + row.name + '优惠卷').then(function () {
}).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.couponOpen = false;
},
......
......@@ -129,6 +129,7 @@
plain
icon="el-icon-edit"
size="mini"
v-hasPermi="['system:consumerCoupon:empower']"
@click="onEmpower"
>美团授权
</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