Commit ffb47658 authored by zhangjianguo's avatar zhangjianguo

优惠券的新增 修改 和删除

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