Commit 05645f28 authored by zhengke's avatar zhengke

增加票务阿米巴

parent 99771078
<style>
.TicketAmiba .TA_Tongji{
margin:20px 0;
font-size:14px;
}
.TicketAmiba .TA_Tongji span{
display:inline-block;
margin-right:20px;
}
.TicketAmiba .TA_TotalCost{
color:red;
}
.TicketAmiba .TA_GreenSale{
color:green;
}
</style>
<template>
<div class="flexOne TicketAmiba">
<div class="query-box">
<ul>
<li>
<span>
<em>团号</em>
<el-input v-model='queryMsg.TCNUM' :placeholder="$t('pub.pleaseImport')" @keyup.enter.native="getList"></el-input>
</span>
</li>
<li>
<span>
<em>发团开始日期</em>
<el-date-picker class="w150" type="date" v-model="queryMsg.StartTime"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span>
</li>
<li>
<span>
<em>发团结束日期</em>
<el-date-picker class="w150" type="date" v-model="queryMsg.EndTime"
:picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" @click="getList()" :value="$t('pub.searchBtn')" />
</li>
</ul>
</div>
<div class="TA_Tongji">
<span>总成本:<span class="TA_TotalCost">{{TotalCost}}</span></span>
<span>总收入:<span class="TA_GreenSale">{{TotalSale}}</span></span>
<span>总利润:<span class="TA_GreenSale">{{TotalProfit}}</span></span>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading" style="margin-bottom:30px;">
<tr>
<th width="20%">团号</th>
<th width="20%">成本</th>
<th width="20%">收入</th>
<th width="20%">利润</th>
<th width="20%">业务员</th>
</tr>
<tr v-for="(item,index) in dataList">
<td>{{item.TCNUM}}</td>
<td>{{item.CostPrice}}</td>
<td>{{item.SalePrice}}</td>
<td>{{item.Profit}}</td>
<td>{{item.EmName}}</td>
</tr>
</table>
</div>
</template>
<script>
export default {
data() {
return {
dataList: [],
loading:false,
//总成本
TotalCost:0,
//总收入
TotalSale:0,
//总利润
TotalProfit:0,
queryMsg: {
StartTime:'',
EndTime: '',
TCNUM: ''
},
pickerBeginDateBefore: {
disabledDate: time => {
if (this.queryMsg.EndTime == null) {
return false;
} else {
let endTime = new Date(this.queryMsg.EndTime)
return endTime.getTime() < time.getTime()
}
}
},
pickerBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.queryMsg.StartTime)
return startTime.getTime() >= time.getTime()
}
}
}
},
mounted() {
//默认查询当月第一个到最后一天日期
var now = new Date();
var month = now.getMonth() + 1;//js获取到的是月份是 0-11 所以要加1
var year = now.getFullYear();
var nextMonthFirstDay = new Date([year,month + 1,1].join('-')).getTime();
var oneDay = 1000 * 24 * 60 * 60;
var monthLast = new Date(nextMonthFirstDay - oneDay).getDate()
this.queryMsg.StartTime = [year,month,1].join('-');
this.queryMsg.EndTime = [year,month,monthLast].join('-');
this.getList()
},
methods: {
getList() { //获取列表数据
this.loading = true;
this.apipost("sellorder_post_GetAirTicketSettlement", this.queryMsg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.Rlist;
this.TotalCost = res.data.data.TotalCost;
this.TotalSale = res.data.data.TotalSale;
this.TotalProfit = res.data.data.TotalProfit;
} else {
this.Error(res.data.message);
}
}, err => {})
}
}
}
</script>
......@@ -833,6 +833,14 @@ export default {
title: '收损订单'
},
},
{
path: '/TicketAmiba', //机票-阿米巴结算
name: 'TicketAmiba',
component: resolve => require(['@/components/Ticketing/TicketAmiba'], resolve),
meta: {
title: '阿米巴结算'
},
},
{
path: '/flightChild', //航班子表管理
name: 'flightChild',
......
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