Commit df5351bb authored by zhengke's avatar zhengke

修改

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