Commit 1a40dfee authored by 黄奎's avatar 黄奎

机票业绩下载修改

parent 2902fd79
......@@ -25,12 +25,16 @@
<td>{{item.TotalPersion}}</td>
<td>{{item.CommissionMoney}}</td>
<td>{{item.Periods}}</td>
<td><a @click="goUrl(item)" style="color:blue;text-decoration:underline;cursor:pointer;">详情</a></td>
<td>
<a @click="goUrl(item)" style="color:blue;text-decoration:underline;cursor:pointer;">详情</a>&nbsp;&nbsp;
<a
@click="DownLoadAirticketCommission(item)"
style="color:blue;text-decoration:underline;cursor:pointer; display:none;">下载差异</a>
</td>
</tr>
</table>
</div>
</template>
<script>
export default {
data() {
......@@ -41,14 +45,30 @@
loading: false,
//数据源
dataList: [],
CurrentUserInfo: {}, //当前登录对象
}
},
mounted() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.msg.MainId = this.$route.query.ID;
this.getList();
},
methods: {
//下载票务提成差异
DownLoadAirticketCommission(item) {
this.loading = true;
//导出报表
let msg = {
UserId: item.UserId,
Periods: item.Periods
};
var fileName = item.UName + "【" + item.Periods + "】" + "提成差异.xls";
this.GetLocalFile("airticket_get_DownloadAirticketCommission", msg, fileName,
res => {
this.loading = false;
});
},
//获取数据
getList() {
this.loading = true;
......@@ -70,8 +90,8 @@
this.$router.push({
path: "flightPerformance",
query: {
UserId:item.UserId,
Periods:item.Periods,
UserId: item.UserId,
Periods: item.Periods,
blank: 'y',
tab: '票务业绩详情'
}
......@@ -79,4 +99,5 @@
}
},
}
</script>
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