Commit e8f6d7d3 authored by 黄奎's avatar 黄奎

页面修改

parent 1e00c0d4
...@@ -700,11 +700,13 @@ ...@@ -700,11 +700,13 @@
hotelTotalPrice(obj) { hotelTotalPrice(obj) {
let totalPrice = 0; let totalPrice = 0;
obj.OrderDetailsList.forEach((item, index) => { obj.OrderDetailsList.forEach((item, index) => {
if (obj.PayStyle === 1) {
//税别 //税别
if (obj.TaxType == 2) { if (obj.TaxType == 2) {
if (index == 4) { if (index == 4) {
if (obj.DriverGuideIsRebate == 1) { if (obj.DriverGuideIsRebate == 1) {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item
.RebateRatio / 100);
} else { } else {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
} }
...@@ -712,14 +714,18 @@ ...@@ -712,14 +714,18 @@
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio / totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio /
100); 100);
} }
//税入
} else { } else {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100); totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
} }
} else {
totalPrice += 0
}
}) })
totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax; totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax;
//obj.TotalPrice = totalPrice.toFixed(2); //obj.TotalPrice = totalPrice.toFixed(2);
return this.moneyFormat(totalPrice); return this.moneyFormat(totalPrice)
}, },
diningTotalPrice(sObj, obj) { diningTotalPrice(sObj, obj) {
let totalPrice = 0 let totalPrice = 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