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

页面修改

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