Commit 1e00c0d4 authored by 黄奎's avatar 黄奎

页面修改

parent 5bc0fc22
......@@ -241,7 +241,7 @@
</template>
</td>
<td v-if="childIndex==0" :rowspan="6">
{{hotelTotalPrice(subItem.OrderDetailsList,subItem)}}
{{hotelTotalPrice(subItem)}}
</td>
<td v-if="childIndex==0" :rowspan="6">
<span v-if="subItem.PayStyle === 1">现付</span>
......@@ -697,24 +697,29 @@
})
return this.moneyFormat(totalPrice)
},
hotelTotalPrice(obj, subItem) {
let totalPrice = 0
obj.forEach(x => {
if (subItem.TaxType == 2) {
if (x.PayStyle === 1) {
totalPrice += x.UnitPrice * (x.BookNum - x.HotelDiscount) * (1 + 0.08 - x.RebateRatio / 100)
hotelTotalPrice(obj) {
let totalPrice = 0;
obj.OrderDetailsList.forEach((item, index) => {
//税别
if (obj.TaxType == 2) {
if (index == 4) {
if (obj.DriverGuideIsRebate == 1) {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio / 100);
} else {
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
}
} else {
totalPrice += 0
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 + 0.08 - item.RebateRatio /
100);
}
} else {
if (x.PayStyle === 1) {
totalPrice += x.UnitPrice * (x.BookNum - x.HotelDiscount) * (1 - x.RebateRatio / 100)
} else {
totalPrice += 0
}
totalPrice += item.UnitPrice * (item.BookNum - item.HotelDiscount) * (1 - item.RebateRatio / 100);
}
})
return this.moneyFormat(totalPrice)
totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax;
//obj.TotalPrice = totalPrice.toFixed(2);
return this.moneyFormat(totalPrice);
},
diningTotalPrice(sObj, obj) {
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