Commit 0c76a79d authored by youjie's avatar youjie

no message

parent 9a7ca8b8
......@@ -6,22 +6,28 @@
</style>
<template>
<div class="AirTicketApp" style="padding-bottom:20px">
<div class="Header">
<el-col :span="8" style="margin:10px 0">
<el-date-picker
v-model="value1"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-col>
<button style="margin-top:15px" class="normalBtn" @click="getList">查询</button>
<button style="margin-top:15px" class="hollowFixedBtn" @click="Export">导出</button>
<div class="Header" style="display: flex;flex-wrap: nowrap; justify-content: space-between;padding: 10px 0;">
<div style="flex-shrink: 0; display: flex;align-items: center; flex-wrap: nowrap;">
<el-date-picker
v-model="value1"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
<button class="normalBtn" @click="getList">查询</button>
<button class="hollowFixedBtn" @click="Export">导出</button>
</div>
<div v-if="LossIncomeList&&LossIncomeList.length>0" style="display: flex;flex-wrap: wrap;flex-grow: 1;margin-left: 20px;justify-content: end;">
<div>
<span style="line-height: 60px;font-size: 13px;">机损增收:</span>
<el-tag v-for="(x,index) in LossIncomeList" :key="index" @click="goUrl(x)"
style="margin-left: 5px;margin-top: 2px;margin-bottom: 2px; cursor: pointer;">{{x.LineName}}/{{x.AirLossIncome}}</el-tag>
</div>
</div>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
......@@ -47,6 +53,7 @@
export default {
data(){
return{
LossIncomeList:[],
loading:false,
ColNameList:[],
LossList:[],
......@@ -62,6 +69,17 @@ export default {
},created(){
this.userInfo = this.getLocalStorage();
},methods:{
goUrl(x){
this.$router.push({
name: 'TeamRevenueReport',
query: {
StartTime:this.msg.StartTime,
EndTime:this.msg.EndTime,
LineId:x.LineId,
blank: "y",
}
})
},
Export(){
let msg=this.msg;
......@@ -80,7 +98,7 @@ export default {
}
this.loading = true;
this.apipost('financestatistics_post_GetCompamyAirTicketRatioList',this.msg, res => {
this.apipost('financestatistics_post_GetCompamyAirTicketRatioList',this.msg, res => {
this.loading = false;
if(res.data.resultCode == 1) {
......@@ -88,8 +106,9 @@ export default {
this.Rlist=res.data.data.Rlist;
this.LossList=res.data.data.LossList[0].LossTL;
this.SunMoney = res.data.data.LossList[0].TotalMoney;
this.LossIncomeList = res.data.data.LossIncomeList
} else {
this.$message.error(res.data.message);
this.$message.error(res.data.message);
}
this.loading = false;
}, err => {})
......@@ -119,10 +138,10 @@ export default {
}
});
}
}
}
},mounted(){
//默认查询当月第一个到最后一天日期
if(this.$route.query.startDate && this.$route.query.endDate){
......@@ -144,7 +163,7 @@ export default {
this.value1.push(startDate,endDate);
}
this.getList();
}
}
......
......@@ -2132,9 +2132,12 @@ export default {
mounted() {
let STime = this.getBeforeDate(31,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")))
let ETime = this.getBeforeDate(0,this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")))
this.productionDate = [STime,ETime]
this.msg.startDate = this.productionDate[0];
this.msg.endDate = this.productionDate[1];
if(!this.msg.startDate){
this.productionDate = [STime,ETime]
this.msg.startDate = this.productionDate[0];
this.msg.endDate = this.productionDate[1];
}
let allH, allW, cH, cW;
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
......
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