Commit 25f97862 authored by zhengke's avatar zhengke

修改

parent 770da4f4
......@@ -178,8 +178,12 @@
},
//计算价格
calcMoney() {
console.log("orderMsg", this.orderMsg)
var price = this.currentPriceInfo.b2BMemberPrice;
var price=0;
if(this.$utils.getretailer()){
price = this.currentPriceInfo.b2BMemberPrice;
}else{
price = this.currentPriceInfo.b2CMemberPrice;
}
this.orderMsg.ChirdNum = parseInt(this.orderMsg.ChirdNoBedNum) + parseInt(this.orderMsg.ChirdNeedBedNum);
//计算总人数
this.total = parseInt(this.orderMsg.ManNum) + parseInt(this.orderMsg.ChirdNum);
......@@ -203,25 +207,29 @@
var CustomerId = 0;
var ContactName = '';
var ContactMobile = '';
var CustomerType = 3;
var price=0;
if(this.$utils.getretailer()){
CustomerId = this.basedataObj.virtualB2BCustomerId
CustomerId = this.basedataObj.virtualB2BCustomerId;
CustomerType = 1;
price = this.currentPriceInfo.b2BMemberPrice;
}else{
ContactName = this.basedataObj.virtualB2CCustomerName;
ContactMobile = this.basedataObj.virtualB2CCustomerTel;
price = this.currentPriceInfo.b2CMemberPrice;
}
return;
let msg = {
OrderId: 0,
TCID: this.currentPriceInfo.tcid,
CustomerType: 1,
CustomerType: CustomerType,
GroupType: 1,
ContactName: ContactName,
ContactMobile: ContactMobile,
CustomerId: CustomerId,
DepartureCityId: 262,
IsIntermodal: 2,
Unit_Price: this.currentPriceInfo.b2BMemberPrice,
TC_Price: this.currentPriceInfo.b2BMemberPrice,
Unit_Price: price,
TC_Price: price,
ManNum: this.orderMsg.ManNum,
ChirdNum: this.orderMsg.ChirdNum,
ChirdNeedBedNum: this.orderMsg.ChirdNeedBedNum,
......
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