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

机票业绩下载修改

parent 2902fd79
...@@ -25,12 +25,16 @@ ...@@ -25,12 +25,16 @@
<td>{{item.TotalPersion}}</td> <td>{{item.TotalPersion}}</td>
<td>{{item.CommissionMoney}}</td> <td>{{item.CommissionMoney}}</td>
<td>{{item.Periods}}</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> </tr>
</table> </table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
...@@ -41,14 +45,30 @@ ...@@ -41,14 +45,30 @@
loading: false, loading: false,
//数据源 //数据源
dataList: [], dataList: [],
CurrentUserInfo: {}, //当前登录对象
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
this.msg.MainId = this.$route.query.ID; this.msg.MainId = this.$route.query.ID;
this.getList(); this.getList();
}, },
methods: { 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() { getList() {
this.loading = true; this.loading = true;
...@@ -70,8 +90,8 @@ ...@@ -70,8 +90,8 @@
this.$router.push({ this.$router.push({
path: "flightPerformance", path: "flightPerformance",
query: { query: {
UserId:item.UserId, UserId: item.UserId,
Periods:item.Periods, Periods: item.Periods,
blank: 'y', blank: 'y',
tab: '票务业绩详情' tab: '票务业绩详情'
} }
...@@ -79,4 +99,5 @@ ...@@ -79,4 +99,5 @@
} }
}, },
} }
</script>
\ No newline at end of file </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