Commit df5351bb authored by zhengke's avatar zhengke

修改

parent 65cf5b25
......@@ -45,6 +45,7 @@
<tr v-if="subIndex==0">
<td colspan="6">
<span class="creatName">{{item.CreateByName}}</span>
{{msg.QMonth}}
提成数据</td>
</tr>
<tr v-if="index==0&&subIndex==0">
......@@ -88,9 +89,14 @@
</td>
</tr>
<tr v-if="subIndex==item.TicketList.length-1">
<td colspan="6">
总计:<span style="color:red;">{{getTotalCount(item.TicketList)}}</span>
<td></td>
<td></td>
<td style="font-weight:bold;">总计</td>
<td>
<span style="color:red;">{{getTotalNum(item.TicketList)}}</span>
</td>
<td>{{dataList.UnitPrice}}</td>
<td><span style="color:red;">{{getTotalCount(item.TicketList)}}</span></td>
</tr>
</tbody>
</table>
......@@ -180,6 +186,16 @@
})
return count*this.dataList.UnitPrice;
},
//获取总计人数
getTotalNum(list){
let count=0;
list.forEach(x=>{
x.SubList.forEach(y=>{
count+=y.TicketNum
})
})
return count;
},
//初始化航空公司下拉
initAirlines() {
this.apipost(
......
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