Commit d7181097 authored by 华国豪's avatar 华国豪 🙄

修改价格bug

parent 9689ed74
......@@ -13,6 +13,7 @@
<th>用餐人数</th>
<th>单价</th>
<th>金额</th>
<th>实付</th>
<th>币种</th>
<th>支付方式</th>
<th>备注</th>
......@@ -20,41 +21,6 @@
<tr>
<td v-show="dataList.length==0" colspan="16" align="center">暂无数据</td>
</tr>
<!-- <tbody v-for="(item,index) in dataList" :key="index">
<tr>
<td>{{item.UseTimeStr}}</td>
<td>
<p v-for="(i,index) in item.DiningSummaryList" :key="index">{{i.DiningName}}({{i.UseDinnerTypeStr}})</p>
</td>
<td>
<p v-for="(i,index) in item.DiningSummaryList" :key="index">{{i.TotalPrice}}</p>
</td>
<td>
<div v-for="(i,index) in item.DiningSummaryList" :key="index">
<p><span class="widthSpan">成人</span>人数:<span class="numSpan">{{i.DiningPriceList[0].PeopleNum}}</span>单价:{{i.DiningPriceList[0].PeoplePrice}}</p>
<p><span class="widthSpan">儿童</span>人数:<span class="numSpan">{{i.DiningPriceList[1].PeopleNum}}</span>单价:{{i.DiningPriceList[1].PeoplePrice}}</p>
<p><span class="widthSpan">婴儿</span>人数:<span class="numSpan">{{i.DiningPriceList[2].PeopleNum}}</span>单价:{{i.DiningPriceList[2].PeoplePrice}}</p>
</div>
</td>
<td>
<p v-for="(i,index) in item.DiningSummaryList" :key="index">
{{diningTotalPrice(i,i.DiningPriceList)}}
</p>
</td>
<td>
{{urrencyTypeObj[item.DiningSummaryList[0].ReimburseList.CurrencyId]}}
</td>
<td>
<span v-if="item.DiningSummaryList[0].PayStyle === 1">现付</span>
<span v-else-if="item.DiningSummaryList[0].PayStyle === 2">公司结算</span>
<span v-else-if="item.DiningSummaryList[0].PayStyle === 3">预付</span>
<span v-else-if="item.DiningSummaryList[0].PayStyle === 6">公司合团支付</span>
</td>
<td>{{item.Remarks}}</td>
</tr>
</tbody> -->
<template v-for='(item,index) in dataList'>
<template v-for="(subItem,subIndex) in item.DiningSummaryList">
<tr v-for="(childItem,childIndex) in subItem.DiningPriceList">
......@@ -79,6 +45,9 @@
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{diningTotalPrice(subItem, subItem.DiningPriceList)}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{diningTotalPrice2(subItem, subItem.ReimburseList.ReimburseDetailsList)}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
<span v-if="subItem.PayStyle === 1">现付</span>
<span v-else-if="subItem.PayStyle === 2">公司结算</span>
......@@ -150,6 +119,13 @@ export default {
}
return this.moneyFormat(totalPrice)
},
diningTotalPrice2(sObj, obj) {
let totalPrice = 0
obj.forEach(x => {
totalPrice += x.UnitPrice
})
return this.moneyFormat(totalPrice)
},
financeinfo_post_GetList(){ // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{
if(res.data.resultCode==1){
......
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