Commit 92b41698 authored by 沈良进's avatar 沈良进

save

parent 1edbe564
...@@ -1027,6 +1027,7 @@ ...@@ -1027,6 +1027,7 @@
}, err => {}) }, err => {})
}, },
calculationPrice(obj) { calculationPrice(obj) {
console.log('chacalculationPrice>>>nge', obj)
let totalPrice = 0; let totalPrice = 0;
//获取当前选中的对象 //获取当前选中的对象
let currentObj = {}; let currentObj = {};
...@@ -1040,25 +1041,23 @@ ...@@ -1040,25 +1041,23 @@
let jpaObj = this.allCurrencyList.find(item => { let jpaObj = this.allCurrencyList.find(item => {
return item.ID === 3; //筛选出匹配数据 return item.ID === 3; //筛选出匹配数据
}); });
// obj.OrderDetailsList.forEach((item, index) => { obj.OrderDetailsList.forEach((item, index) => {
// var tempPrice = 0; var tempPrice = 0;
// var coefficient = 1; var coefficient = 1;
// //税别 //税别
// if (obj.TaxType == 2) { if (obj.TaxType == 2) {
// coefficient = 1 + this.XiaoFeiTaxFee; coefficient = 1 + this.XiaoFeiTaxFee;
// } }
// if (index == 4 && obj.DMCPayType == 9) { if (index == 4 && obj.DMCPayType == 9) {
// tempPrice = 0; tempPrice = 0;
// } else { } else {
// tempPrice = item.UnitPrice * (item.BookNum - item.HotelDiscount) * (coefficient - item.RebateRatio / tempPrice = item.UnitPrice * (item.BookNum - item.HotelDiscount) * (coefficient - item.RebateRatio /
// 100); 100);
// } }
// totalPrice += tempPrice; totalPrice += tempPrice;
// }) })
// totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax; totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax;
const item = obj.OrderDetailsList.find(item => item.HouseType === 2) || {TotalPrice: 0} obj.TotalPrice = totalPrice;
console.log(item, obj.OrderDetailsList)
obj.TotalPrice = item.TotalPrice.toFixed(2);
if (this.LineId == 14) { if (this.LineId == 14) {
if (currentObj && currentObj.ID > 0) { if (currentObj && currentObj.ID > 0) {
//人民币 //人民币
......
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