Commit 085aff9d authored by liudong1993's avatar liudong1993

1 应收 显示 剔除 优惠券金额

parent aa26a390
...@@ -2906,7 +2906,8 @@ ...@@ -2906,7 +2906,8 @@
userInfo: {}, userInfo: {},
LessRule: [], LessRule: [],
LessNPrice: 0, LessNPrice: 0,
LessNAvgPrice: 0 LessNAvgPrice: 0,
DealDiscountMoney: 0
}; };
}, },
components: { components: {
...@@ -3760,6 +3761,7 @@ ...@@ -3760,6 +3761,7 @@
this.apipost( this.apipost(
"sellorder_post_GetOrderEntity", { "sellorder_post_GetOrderEntity", {
ID: obj.orderId, ID: obj.orderId,
IsDealDiscount:1
}, },
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -3772,6 +3774,7 @@ ...@@ -3772,6 +3774,7 @@
this.addObj.OpSetLossMoney = x.OpSetLossMoney; this.addObj.OpSetLossMoney = x.OpSetLossMoney;
this.addMsg = x; this.addMsg = x;
this.DealDiscountMoney = this.addMsg.DiscountMoney+this.addMsg.RedEnvelopeMoney;
this.LessNPrice = this.addMsg.LessMaxPrice; //先初始化 最高少价 this.LessNPrice = this.addMsg.LessMaxPrice; //先初始化 最高少价
this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice; this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice;
if (this.addMsg.IsLessPrice == 1) { if (this.addMsg.IsLessPrice == 1) {
...@@ -4285,7 +4288,7 @@ ...@@ -4285,7 +4288,7 @@
this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;
} }
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} else { } else {
let chengren = let chengren =
Number(this.addMsg.ManNum) * Number(this.addMsg.Unit_Price); Number(this.addMsg.ManNum) * Number(this.addMsg.Unit_Price);
...@@ -4382,7 +4385,7 @@ ...@@ -4382,7 +4385,7 @@
this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;
} }
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} }
this.getTicheng(); this.getTicheng();
...@@ -4631,6 +4634,7 @@ ...@@ -4631,6 +4634,7 @@
Number(this.addMsg.AirticketNum); Number(this.addMsg.AirticketNum);
this.addMsg.IsChildrenTour = this.IsChildrenTour; this.addMsg.IsChildrenTour = this.IsChildrenTour;
this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount; this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
this.addMsg.IsDealDiscount = 1;
this.apipost( this.apipost(
"sellorder_post_SetOrderInfo_02", "sellorder_post_SetOrderInfo_02",
this.addMsg, this.addMsg,
......
...@@ -3699,7 +3699,8 @@ ...@@ -3699,7 +3699,8 @@
SQOrderId: "", SQOrderId: "",
LessRule:[], LessRule:[],
LessNPrice:0, LessNPrice:0,
LessNAvgPrice:0 LessNAvgPrice:0,
DealDiscountMoney:0
}; };
}, },
components: { components: {
...@@ -4568,6 +4569,7 @@ ...@@ -4568,6 +4569,7 @@
this.apipost( this.apipost(
"sellorder_post_GetOrderEntity", { "sellorder_post_GetOrderEntity", {
ID: obj.orderId, ID: obj.orderId,
IsDealDiscount:1
}, },
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -4576,6 +4578,7 @@ ...@@ -4576,6 +4578,7 @@
let modelPrice = res.data.data.modelPrice; let modelPrice = res.data.data.modelPrice;
this.addMsg = x; this.addMsg = x;
this.DealDiscountMoney = this.addMsg.DiscountMoney+this.addMsg.RedEnvelopeMoney;
this.LessNPrice = this.addMsg.LessMaxPrice;//先初始化 最高少价 this.LessNPrice = this.addMsg.LessMaxPrice;//先初始化 最高少价
this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice; this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice;
if(this.addMsg.IsLessPrice==1){ if(this.addMsg.IsLessPrice==1){
...@@ -5116,7 +5119,7 @@ ...@@ -5116,7 +5119,7 @@
if(this.LessNPrice==0){this.addMsg.LessPrice=0; this.addMsg.LessAvgPrice=0;} if(this.LessNPrice==0){this.addMsg.LessPrice=0; this.addMsg.LessAvgPrice=0;}
if(this.addMsg.LessAvgPrice>this.LessNAvgPrice){this.addMsg.LessAvgPrice=this.LessNAvgPrice; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;} if(this.addMsg.LessAvgPrice>this.LessNAvgPrice){this.addMsg.LessAvgPrice=this.LessNAvgPrice; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;}
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} else { } else {
let chengren = let chengren =
...@@ -5207,7 +5210,7 @@ ...@@ -5207,7 +5210,7 @@
if(this.LessNPrice==0){this.addMsg.LessPrice=0; this.addMsg.LessAvgPrice=0;} if(this.LessNPrice==0){this.addMsg.LessPrice=0; this.addMsg.LessAvgPrice=0;}
if(this.addMsg.LessAvgPrice>this.LessNAvgPrice){this.addMsg.LessAvgPrice=this.LessNAvgPrice; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;} if(this.addMsg.LessAvgPrice>this.LessNAvgPrice){this.addMsg.LessAvgPrice=this.LessNAvgPrice; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;}
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} }
} else { } else {
this.addMsg.PreferPrice = this.addMsg.PreferPrice =
...@@ -5468,7 +5471,7 @@ ...@@ -5468,7 +5471,7 @@
Number(this.addMsg.AirticketNum); Number(this.addMsg.AirticketNum);
this.addMsg.IsChildrenTour = this.IsChildrenTour; this.addMsg.IsChildrenTour = this.IsChildrenTour;
this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount; this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
this.addMsg.IsDealDiscount = 1;
this.apipost( this.apipost(
"sellorder_post_SetOrderInfo_02", "sellorder_post_SetOrderInfo_02",
this.addMsg, this.addMsg,
......
...@@ -4434,7 +4434,8 @@ ...@@ -4434,7 +4434,8 @@
}, },
LessRule: [], LessRule: [],
LessNPrice: 0, LessNPrice: 0,
LessNAvgPrice: 0 LessNAvgPrice: 0,
DealDiscountMoney: 0
}; };
}, },
components: { components: {
...@@ -4778,6 +4779,7 @@ ...@@ -4778,6 +4779,7 @@
this.apipost( this.apipost(
"sellorder_post_GetOrderEntity", { "sellorder_post_GetOrderEntity", {
ID: obj.OrderId, ID: obj.OrderId,
IsDealDiscount:1
}, },
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -4786,6 +4788,7 @@ ...@@ -4786,6 +4788,7 @@
this.addObj = res.data.data.modelPrice; this.addObj = res.data.data.modelPrice;
let x = res.data.data.model; let x = res.data.data.model;
this.addMsg = x; this.addMsg = x;
this.DealDiscountMoney = this.addMsg.DiscountMoney+this.addMsg.RedEnvelopeMoney;
this.LessNPrice = this.addMsg.LessMaxPrice; //先初始化 最高少价 this.LessNPrice = this.addMsg.LessMaxPrice; //先初始化 最高少价
this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice; this.LessNAvgPrice = this.addMsg.LessMaxAvgPrice;
if (this.addMsg.IsLessPrice == 1) { if (this.addMsg.IsLessPrice == 1) {
...@@ -5630,7 +5633,7 @@ ...@@ -5630,7 +5633,7 @@
this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;
} }
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} else { } else {
let chengren = let chengren =
Number(this.addMsg.ManNum) * Number(this.addMsg.Unit_Price); Number(this.addMsg.ManNum) * Number(this.addMsg.Unit_Price);
...@@ -5728,7 +5731,7 @@ ...@@ -5728,7 +5731,7 @@
this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum; this.addMsg.LessPrice = this.addMsg.LessAvgPrice * LessNum;
} }
} }
this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice; this.addMsg.PreferPrice = this.addMsg.PreferPrice - this.addMsg.LessPrice - this.DealDiscountMoney;
} }
} else { } else {
this.addMsg.PreferPrice = this.addMsg.PreferPrice =
...@@ -5992,6 +5995,7 @@ ...@@ -5992,6 +5995,7 @@
Number(this.addMsg.AirticketNum); Number(this.addMsg.AirticketNum);
this.addMsg.IsChildrenTour = this.IsChildrenTour; this.addMsg.IsChildrenTour = this.IsChildrenTour;
this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount; this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
this.addMsg.IsDealDiscount = 1;
this.apipost( this.apipost(
"sellorder_post_SetOrderInfo_02", "sellorder_post_SetOrderInfo_02",
this.addMsg, this.addMsg,
......
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