Commit 2e7a9c0b authored by 罗超's avatar 罗超

解决计算问题

parent 27bf307a
...@@ -625,11 +625,11 @@ ...@@ -625,11 +625,11 @@
} }
if (option.seat) { if (option.seat) {
let t = JSON.parse(decodeURIComponent(option.seat)); let t = JSON.parse(decodeURIComponent(option.seat));
this.orderMsg.ManNum = t.crCount; this.orderMsg.ManNum = Number(t.crCount);
this.orderMsg.ChirdNeedBedNum = t.etCount; this.orderMsg.ChirdNeedBedNum = Number(t.etCount);
this.orderMsg.ChirdNoBedNum = t.etbCount; this.orderMsg.ChirdNoBedNum = Number(t.etbCount);
this.orderMsg.BabyNum = t.yeCount; this.orderMsg.BabyNum = Number(t.yeCount);
this.orderMsg.VisaNum = t.crCount + t.etCount + t.etbCount + t.yeCount; this.orderMsg.VisaNum = this.orderMsg.ManNum + this.orderMsg.ChirdNeedBedNum + this.orderMsg.ChirdNoBedNum + this.orderMsg.BabyNum;
this.calcMoney(); this.calcMoney();
} }
if (option.tcid) { if (option.tcid) {
...@@ -1115,6 +1115,9 @@ ...@@ -1115,6 +1115,9 @@
if(this.useCouponIds.length>0){ if(this.useCouponIds.length>0){
CouponAllotIds = this.useCouponIds.join(',') CouponAllotIds = this.useCouponIds.join(',')
} }
const guestCount = parseInt(this.orderMsg.ManNum) +
parseInt(this.orderMsg.ChirdNum) +
parseInt(this.orderMsg.BabyNum)
let msg = { let msg = {
OrderId: 0, OrderId: 0,
TCID: this.currentPriceInfo.tcid, TCID: this.currentPriceInfo.tcid,
...@@ -1143,9 +1146,7 @@ ...@@ -1143,9 +1146,7 @@
BrandId: 0, BrandId: 0,
TradeWay: 0, TradeWay: 0,
PlatformOrder: "", PlatformOrder: "",
GuestNum: parseInt(this.orderMsg.ManNum) + GuestNum: guestCount,
parseInt(this.orderMsg.ChirdNum) +
parseInt(this.orderMsg.BabyNum),
IsChildrenTour: this.currentPriceInfo.isSupportChildren, IsChildrenTour: this.currentPriceInfo.isSupportChildren,
IsBirdDiscount: this.zaoniao > 0 ? 1 : 2, IsBirdDiscount: this.zaoniao > 0 ? 1 : 2,
PredictRoomNum: 1, PredictRoomNum: 1,
...@@ -1154,8 +1155,8 @@ ...@@ -1154,8 +1155,8 @@
TradeDate: this.currentPriceInfo.startDate, TradeDate: this.currentPriceInfo.startDate,
CostType: 0, CostType: 0,
MinOrderPrice: 0, MinOrderPrice: 0,
VisaNum: this.orderMsg.ManNum + this.orderMsg.ChirdNum + this.orderMsg.BabyNum, VisaNum: guestCount,
SafeNum: this.orderMsg.ManNum + this.orderMsg.ChirdNum + this.orderMsg.BabyNum, SafeNum: guestCount,
AirticketNum: 0, AirticketNum: 0,
ReturnArriveCityId: 0, ReturnArriveCityId: 0,
IsReturnIntermodal: 2, IsReturnIntermodal: 2,
......
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