Commit 25f97862 authored by zhengke's avatar zhengke

修改

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