Commit 46288525 authored by 黄奎's avatar 黄奎

新增机票业绩页面

parent ab534e82
This diff is collapsed.
...@@ -23,25 +23,26 @@ ...@@ -23,25 +23,26 @@
<li> <li>
<span> <span>
<em>月份</em> <em>月份</em>
<el-date-picker v-model='msg.QMonth' value-format="yyyy-MM" type="month"></el-date-picker> <el-date-picker v-model='msg.QMonth' value-format="yyyy-MM" type="month"></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" @click="getList()" <input type="button" class="hollowFixedBtn" @click="getList()" :value="$t('pub.searchBtn')" />
:value="$t('pub.searchBtn')" /> <input type="button" class="hollowFixedBtn" @click="DownLoad()" value="导出" />
</li> </li>
</ul> </ul>
</div> </div>
<table class="singeRowTable fpTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable fpTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>团期</th> <th>团期</th>
<th>出团公司</th> <th>出团公司</th>
<th>线路</th> <th>线路</th>
<th>人数</th> <th>人数</th>
<th>操作人员</th> <th>操作人员</th>
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.TCNUM}}</td> <td> <a style="color:blue;cursor:pointer" @click='goUrlT("RegistrationList",item.TCID,"报名清单")'>
({{item.TCID}}){{item.TCNUM}} </a></td>
<td>{{item.OutBranchName}}</td> <td>{{item.OutBranchName}}</td>
<td>{{item.LineName}}</td> <td>{{item.LineName}}</td>
<td>{{item.TicketNum}}</td> <td>{{item.TicketNum}}</td>
...@@ -61,8 +62,8 @@ ...@@ -61,8 +62,8 @@
CreateBy: 0, //操作人 CreateBy: 0, //操作人
QMonth: '', //月份 QMonth: '', //月份
}, },
value1:'', loading: false,
dataList:[], dataList: [],
//航空公司下拉 //航空公司下拉
airlineList: [], airlineList: [],
//操作人下拉 //操作人下拉
...@@ -71,22 +72,35 @@ ...@@ -71,22 +72,35 @@
}, },
mounted() { mounted() {
let date = new Date(), let date = new Date(),
y = date.getFullYear(), y = date.getFullYear(),
m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
this.msg.QMonth = y + '-' + m ; this.msg.QMonth = y + '-' + m;
this.initAirlines(); this.initAirlines();
this.getEmployeeList(); this.getEmployeeList();
this.getList() this.getList()
}, },
methods: { methods: {
getList() { //获取列表数据 //页面跳转
goUrlT(path, obj, title) {
this.$router.push({
name: path,
query: {
"id": obj,
blank: 'y',
tab: title
}
})
},
//获取列表数据
getList() {
this.loading = true;
this.apipost("AirTicket_get_GetTicketPerformance", this.msg, res => { this.apipost("AirTicket_get_GetTicketPerformance", this.msg, res => {
this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
} }
}); });
}, },
//初始化航空公司下拉 //初始化航空公司下拉
initAirlines() { initAirlines() {
this.apipost( this.apipost(
...@@ -111,6 +125,15 @@ ...@@ -111,6 +125,15 @@
err => {} err => {}
); );
}, },
//下载业绩数据
DownLoad() {
this.loading = true;
var fileName = "机票业绩下载" + this.msg.QMonth + ".xls";
this.GetLocalFile("AirTicket_get_DownLoadGetTicketPerformance", this.msg, fileName,
res => {
this.loading = false;
});
}
} }
} }
......
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