Commit 81b2fc28 authored by 黄奎's avatar 黄奎

11

parent 258fac50
......@@ -150,7 +150,7 @@
<text style="margin-right: 30rpx">房间{{subItem.RoomOccupancy.RoomNum}}</text>
</view>
<view style="text-align: right">
{{(subItem.PriceList.length*subItem.PriceList[0].Price).toFixed(2)}}
{{getRoomPrice(subItem.PriceList).toFixed(2)}}
</view>
</view>
</template>
......@@ -414,6 +414,17 @@
});
},
methods: {
//获取房间价格
getRoomPrice(priceList)
{
let totalPrice=0;
if(priceList&&priceList.length>0){
priceList.forEach(item=>{
totalPrice+=Number(item.Price);
})
}
return totalPrice;
},
getGroupData() {
this.orderMsg.GuestList = [];
this.searchObj.searchroomGroup.forEach((item, index) => {
......
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