Commit 69aa5f80 authored by 黄奎's avatar 黄奎

页面修改

parent c3b9f83f
...@@ -280,6 +280,7 @@ ...@@ -280,6 +280,7 @@
<el-option :key="1" label="税入R0" :value="1"></el-option> <el-option :key="1" label="税入R0" :value="1"></el-option>
<el-option :key="2" label="税别R10" :value="2"></el-option> <el-option :key="2" label="税别R10" :value="2"></el-option>
<el-option :key="3" label="税别R0" :value="3"></el-option> <el-option :key="3" label="税别R0" :value="3"></el-option>
<el-option :key="4" label="税入R10" :value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -527,6 +528,7 @@ ...@@ -527,6 +528,7 @@
<el-option :key="1" label="税入R0" :value="1"></el-option> <el-option :key="1" label="税入R0" :value="1"></el-option>
<el-option :key="2" label="税别R10" :value="2"></el-option> <el-option :key="2" label="税别R10" :value="2"></el-option>
<el-option :key="3" label="税别R0" :value="3"></el-option> <el-option :key="3" label="税别R0" :value="3"></el-option>
<el-option :key="4" label="税入R10" :value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -3,25 +3,38 @@ ...@@ -3,25 +3,38 @@
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
border-right: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1;
background: #E6E6E6; background: #E6E6E6;
height:40px; height: 40px;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
} }
.flightPerformance .fpTable{
width:1000px; .flightPerformance .fpTable {
margin-bottom:30px; width: 1000px;
border-collapse:collapse; margin-bottom: 30px;
border-collapse: collapse;
} }
.flightPerformance .creatName{
color:green; .flightPerformance .creatName {
color: green;
font-weight: bold; font-weight: bold;
margin-right:10px; margin-right: 10px;
}
.flightPerformance .fpTable tr {
background: #fff;
text-align: center;
height: 40px;
}
.flightPerformance .fpTable tr td {
font-size: 12px;
border: 1px solid #E5E5E5;
} }
.flightPerformance .fpTable tr{background: #fff;text-align: center; height: 40px;}
.flightPerformance .fpTable tr td{font-size: 12px;border: 1px solid #E5E5E5;}
.flightPerformance .fpTable tbody tr:last-child { .flightPerformance .fpTable tbody tr:last-child {
border-bottom: 2px solid #333; border-bottom: 2px solid #333;
} }
</style> </style>
<template> <template>
...@@ -50,7 +63,8 @@ ...@@ -50,7 +63,8 @@
</li> </li>
</ul> </ul>
</div> </div>
<table class="fpTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading" v-for="(item,index) in dataList.resultList"> <table class="fpTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"
v-for="(item,index) in dataList.resultList">
<tbody v-for="(subItem,subIndex) in item.TicketList"> <tbody v-for="(subItem,subIndex) in item.TicketList">
<tr v-if="subIndex==0"> <tr v-if="subIndex==0">
<td colspan="6"> <td colspan="6">
...@@ -71,7 +85,8 @@ ...@@ -71,7 +85,8 @@
<td width="10%"> <td width="10%">
{{childIndex+1}} {{childIndex+1}}
</td> </td>
<td width="20%" :rowspan="subItem.SubList.length+1" style="border-bottom:2px solid black" v-if="childIndex==0"> <td width="20%" :rowspan="subItem.SubList.length+1" style="border-bottom:2px solid black"
v-if="childIndex==0">
{{subItem.OutBranchName}} {{subItem.OutBranchName}}
</td> </td>
<td width="30%"> <td width="30%">
...@@ -85,7 +100,8 @@ ...@@ -85,7 +100,8 @@
</template> </template>
</td> </td>
<td width="10%">{{childItem.TicketNum}}</td> <td width="10%">{{childItem.TicketNum}}</td>
<td width="10%" :rowspan="subItem.SubList.length+1" style="border-bottom:2px solid black" v-if="childIndex==0">{{dataList.UnitPrice}}</td> <td width="10%" :rowspan="subItem.SubList.length+1" style="border-bottom:2px solid black"
v-if="childIndex==0">{{dataList.UnitPrice}}</td>
<td width="10%">{{childItem.TicketNum*dataList.UnitPrice}}</td> <td width="10%">{{childItem.TicketNum*dataList.UnitPrice}}</td>
</tr> </tr>
<tr v-if="childIndex==subItem.SubList.length-1"> <tr v-if="childIndex==subItem.SubList.length-1">
...@@ -168,41 +184,43 @@ ...@@ -168,41 +184,43 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
} else {
this.Error(res.data.message);
} }
}); });
}, },
//获取没个的人数 //获取没个的人数
getPeopleCount(subList){ getPeopleCount(subList) {
let count=0; let count = 0;
subList.forEach(x => { subList.forEach(x => {
count+=x.TicketNum; count += x.TicketNum;
}); });
return count; return count;
}, },
//计算小计 //计算小计
getCount(list){ getCount(list) {
let count=0; let count = 0;
list.forEach(x => { list.forEach(x => {
count+=x.TicketNum; count += x.TicketNum;
}); });
return count*this.dataList.UnitPrice; return count * this.dataList.UnitPrice;
}, },
//计算总计 //计算总计
getTotalCount(list){ getTotalCount(list) {
let count=0; let count = 0;
list.forEach(x=>{ list.forEach(x => {
x.SubList.forEach(y=>{ x.SubList.forEach(y => {
count+=y.TicketNum count += y.TicketNum
}) })
}) })
return count*this.dataList.UnitPrice; return count * this.dataList.UnitPrice;
}, },
//获取总计人数 //获取总计人数
getTotalNum(list){ getTotalNum(list) {
let count=0; let count = 0;
list.forEach(x=>{ list.forEach(x => {
x.SubList.forEach(y=>{ x.SubList.forEach(y => {
count+=y.TicketNum count += y.TicketNum
}) })
}) })
return count; return count;
......
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