Commit ffb47658 authored by zhangjianguo's avatar zhangjianguo

优惠券的新增 修改 和删除

parent 62832c9f
......@@ -147,11 +147,12 @@
this.apipost("/api/Coupon/GetCouponDetail",{'ID':ID} , res => {
if (res.data.resultCode == 1) {
this.msg = res.data.data
this.msg.value = ''
this.msg.value = []
if(res.data.data.IndateType==2){
this.msg.value.push(res.data.data.StartDate)
this.msg.value.push(res.data.data.EndDate)
this.msg.value.push(res.data.data.StartDate.replace("T", " "))
this.msg.value.push(res.data.data.EndDate.replace("T", " "))
}
console.log(this.msg.value)
if(res.data.data.TotalNum!=-1){
this.checked=false
}
......
This diff is collapsed.
......@@ -160,7 +160,7 @@
},
Edit(row){
this.$router.push({
name: 'addCardTicket',
name: 'addCoupon',
query: {
ID:row.ID,
blank: "y"
......@@ -171,7 +171,7 @@
let that=this;
that.Confirm("是否删除?", function () {
that.apipost(
"/api/Coupon/DelRules",
"/api/Coupon/DelDiscountCoupon",
{Id:row.ID},
res => {
if (res.data.resultCode == 1) {
......
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