Commit 683eda57 authored by 黄奎's avatar 黄奎

新增机票下载

parent 7eb9d3b3
<style> <style>
/* 日期样式开始 */ /* 日期样式开始 */
.seatStatistics .month ul { .seatStatistics .month ul {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
width: 100%; width: 100%;
height: 50px; height: 50px;
...@@ -9,47 +9,56 @@ ...@@ -9,47 +9,56 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: center; text-align: center;
} }
.seatStatistics .year-month {
.seatStatistics .year-month {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
} }
.seatStatistics .year-month > input {
.seatStatistics .year-month>input {
width: 100px; width: 100px;
float: left; float: left;
} }
.seatStatistics .arrow {
.seatStatistics .arrow {
padding: 10px; padding: 10px;
font-style: normal; font-style: normal;
cursor: pointer; cursor: pointer;
} }
.seatStatistics .monthminus {
.seatStatistics .monthminus {
position: absolute; position: absolute;
left: 0px; left: 0px;
top: 15px; top: 15px;
} }
.seatStatistics .monthadd {
.seatStatistics .monthadd {
position: absolute; position: absolute;
right: 21px; right: 21px;
top: 15px; top: 15px;
} }
.seatStatistics .month ul li {
.seatStatistics .month ul li {
font-size: 18px; font-size: 18px;
color: #fff; color: #fff;
position: relative; position: relative;
display: inline-block; display: inline-block;
letter-spacing: 3px; letter-spacing: 3px;
} }
.seatStatistics .month ul li i {
.seatStatistics .month ul li i {
font-size: 22px; font-size: 22px;
color: #ff7e7e; color: #ff7e7e;
cursor: pointer; cursor: pointer;
} }
.seatStatistics .month ul li > input {
.seatStatistics .month ul li>input {
text-align: center; text-align: center;
} }
.seatStatistics .weekdays {
.seatStatistics .weekdays {
margin: 0; margin: 0;
padding: 3px 0; padding: 3px 0;
background-color: #3fa783; background-color: #3fa783;
...@@ -58,19 +67,23 @@ ...@@ -58,19 +67,23 @@
flex-wrap: wrap; flex-wrap: wrap;
color: #fff; color: #fff;
justify-content: space-around; justify-content: space-around;
} }
.seatStatistics .weekdays li {
.seatStatistics .weekdays li {
display: inline-block; display: inline-block;
width: 14.2857%; width: 14.2857%;
text-align: center; text-align: center;
} }
.seatStatistics .days li:nth-child(7n-1) p {
.seatStatistics .days li:nth-child(7n-1) p {
color: #e95252 !important; color: #e95252 !important;
} }
.seatStatistics .days li:nth-child(7n) p {
.seatStatistics .days li:nth-child(7n) p {
color: #e95252 !important; color: #e95252 !important;
} }
.seatStatistics .days {
.seatStatistics .days {
width: 100%; width: 100%;
padding: 0; padding: 0;
margin: 0; margin: 0;
...@@ -78,8 +91,9 @@ ...@@ -78,8 +91,9 @@
flex-wrap: wrap; flex-wrap: wrap;
box-sizing: border-box; box-sizing: border-box;
justify-content: space-around; justify-content: space-around;
} }
.seatStatistics .days > li {
.seatStatistics .days>li {
list-style-type: none; list-style-type: none;
width: 14.2857%; width: 14.2857%;
height: 140px; height: 140px;
...@@ -91,25 +105,29 @@ ...@@ -91,25 +105,29 @@
box-sizing: border-box; box-sizing: border-box;
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.seatStatistics .days li > div {
.seatStatistics .days li>div {
height: 112px; height: 112px;
width: 100%; width: 100%;
overflow-y: auto; overflow-y: auto;
text-align: left; text-align: left;
} }
.seatStatistics .days li > div > p {
.seatStatistics .days li>div>p {
border-bottom: 1px dashed #ccc; border-bottom: 1px dashed #ccc;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
width: 100%; width: 100%;
text-indent: 10px; text-indent: 10px;
background: #fff; background: #fff;
} }
.seatStatistics .days li > div > p:nth-child(2n) {
.seatStatistics .days li>div>p:nth-child(2n) {
background: #f5f5f5; background: #f5f5f5;
} }
.seatStatistics .currentInput {
.seatStatistics .currentInput {
width: 120px; width: 120px;
height: 30px; height: 30px;
border-radius: 17px; border-radius: 17px;
...@@ -118,8 +136,9 @@ ...@@ -118,8 +136,9 @@
color: #fff; color: #fff;
background: transparent; background: transparent;
font-size: 18px; font-size: 18px;
} }
.seatStatistics .days li .other-month {
.seatStatistics .days li .other-month {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -130,11 +149,13 @@ ...@@ -130,11 +149,13 @@
line-height: 17px; line-height: 17px;
background-color: #cccccc; background-color: #cccccc;
color: #fff; color: #fff;
} }
.seatStatistics .addCompany {
.seatStatistics .addCompany {
width: 700px; width: 700px;
} }
.seatStatistics .ckStyle {
.seatStatistics .ckStyle {
width: 100%; width: 100%;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
...@@ -143,40 +164,49 @@ ...@@ -143,40 +164,49 @@
font-weight: bold; font-weight: bold;
background: #ccc; background: #ccc;
color: #000; color: #000;
} }
.seatStatistics .ckStyleOther {
.seatStatistics .ckStyleOther {
background: #dddddd !important; background: #dddddd !important;
font-weight: normal !important; font-weight: normal !important;
color: #999; color: #999;
} }
.seatStatistics .el-dialog--center .el-dialog__body {
.seatStatistics .el-dialog--center .el-dialog__body {
padding-top: 0; padding-top: 0;
} }
.HB_Inventor {
.HB_Inventor {
display: block; display: block;
text-align: left; text-align: left;
padding-top: 8px; padding-top: 8px;
} }
.HB_Inventor > span {
.HB_Inventor>span {
display: block; display: block;
padding-left: 10px; padding-left: 10px;
font-size: 12px; font-size: 12px;
height: 18px; height: 18px;
margin-bottom: 3px; margin-bottom: 3px;
} }
.seatStatistics .Owe_Room {
.seatStatistics .Owe_Room {
color: #e95252; color: #e95252;
} }
.seatStatistics .Used_room {
.seatStatistics .Used_room {
color: #13b0ae; color: #13b0ae;
} }
.seatStatistics .otherMoth {
.seatStatistics .otherMoth {
background: #f2f2f2; background: #f2f2f2;
} }
.seatStatistics .weekendDay {
.seatStatistics .weekendDay {
color: #e95252; color: #e95252;
} }
.seatStatistics .title {
.seatStatistics .title {
height: 14px; height: 14px;
line-height: 14px; line-height: 14px;
border-left: 3px solid #e95252; border-left: 3px solid #e95252;
...@@ -184,8 +214,10 @@ ...@@ -184,8 +214,10 @@
color: #333; color: #333;
text-indent: 10px; text-indent: 10px;
margin: 20px 0; margin: 20px 0;
} }
/* 日期样式结束*/
/* 日期样式结束*/
</style> </style>
<template> <template>
<div class="flexOne seatStatistics"> <div class="flexOne seatStatistics">
...@@ -196,12 +228,8 @@ ...@@ -196,12 +228,8 @@
<em>{{$t('advmanager.v_line')}}</em> <em>{{$t('advmanager.v_line')}}</em>
<el-select v-model="msg.QLineId" :placeholder="$t('pub.pleaseSel')" filterable> <el-select v-model="msg.QLineId" :placeholder="$t('pub.pleaseSel')" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option>
<el-option <el-option v-for="item in LineList" :key="item.LineID" :label="item.LineName" :value="item.LineID">
v-for="item in LineList" </el-option>
:key="item.LineID"
:label="item.LineName"
:value="item.LineID"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
...@@ -210,40 +238,23 @@ ...@@ -210,40 +238,23 @@
<em>{{$t('system.table_goCity')}}</em> <em>{{$t('system.table_goCity')}}</em>
<el-select v-model="msg.QCityId" :placeholder="$t('system.ph_in')" filterable> <el-select v-model="msg.QCityId" :placeholder="$t('system.ph_in')" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option>
<el-option <el-option v-for="item in cityList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
v-for="item in cityList"
:key="item.ID"
:label="item.Name"
:value="item.ID"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('admin.admin_czPerson')}}</em> <em>{{$t('admin.admin_czPerson')}}</em>
<el-select <el-select v-model="msg.QCreateBy" filterable :placeholder="$t('system.ph_in')" class="w120">
v-model="msg.QCreateBy"
filterable
:placeholder="$t('system.ph_in')"
class="w120"
>
<el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option>
<el-option <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
v-for="item in EmployeeList" :key="item.EmployeeId"></el-option>
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li style="margin-right:50px;"> <li style="margin-right:50px;">
<button <button class="normalBtn" type="button" @click="GetHoltelInventory()">{{$t('pub.searchBtn')}}</button>
class="normalBtn" <button class="normalBtn" type="button" @click="DownLoadAirticket()">下载</button>
type="button"
@click="GetHoltelInventory()"
>{{$t('pub.searchBtn')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -255,31 +266,15 @@ ...@@ -255,31 +266,15 @@
<div class="month"> <div class="month">
<ul> <ul>
<li> <li>
<i <i class="el-icon-caret-left monthminus" @click="currentYear-=1,getDateString(),initCalendar(dateString)"></i>
class="el-icon-caret-left monthminus" <input type="text" disabled="disabled" v-model="currentYear" class="currentInput"
@click="currentYear-=1,getDateString(),initCalendar(dateString)" @input="getDateString(),initCalendar(dateString)">
></i> <i class="el-icon-caret-right monthadd" @click="currentYear+=1,getDateString(),initCalendar(dateString)"></i>
<input
type="text"
disabled="disabled"
v-model="currentYear"
class="currentInput"
@input="getDateString(),initCalendar(dateString)"
>
<i
class="el-icon-caret-right monthadd"
@click="currentYear+=1,getDateString(),initCalendar(dateString)"
></i>
</li> </li>
<li> <li>
<i class="el-icon-caret-left monthminus" @click="pickPre(currentYear,currentMonth)"></i> <i class="el-icon-caret-left monthminus" @click="pickPre(currentYear,currentMonth)"></i>
<input <input type="text" disabled="disabled" v-model="currentMonth" class="currentInput"
type="text" @input="getDateString(),initCalendar(dateString)">
disabled="disabled"
v-model="currentMonth"
class="currentInput"
@input="getDateString(),initCalendar(dateString)"
>
<i class="el-icon-caret-right monthadd" @click="pickNext(currentYear,currentMonth)"></i> <i class="el-icon-caret-right monthadd" @click="pickNext(currentYear,currentMonth)"></i>
</li> </li>
</ul> </ul>
...@@ -294,18 +289,12 @@ ...@@ -294,18 +289,12 @@
<li class="weekendDay">{{$t('hotel.hotel_Saturday')}}</li> <li class="weekendDay">{{$t('hotel.hotel_Saturday')}}</li>
<li class="weekendDay">{{$t('hotel.hotel_Sunday')}}</li> <li class="weekendDay">{{$t('hotel.hotel_Sunday')}}</li>
</ul> </ul>
<ul class="days clearfix"> <ul class="days clearfix" v-loading="loading">
<li v-for="(dayobject,index) in days" :key="dayobject.index"> <li v-for="(dayobject,index) in days" :key="dayobject.index">
<p <p class="ckStyle" :class="{ckStyleOther:dayobject.day.getMonth()+1 != currentMonth}">
class="ckStyle" {{dayobject.day.getDate()}} ({{dayobject.TotalCount}})</p>
:class="{ckStyleOther:dayobject.day.getMonth()+1 != currentMonth}"
>{{dayobject.day.getDate()}} ({{dayobject.TotalCount}})</p>
<div class="ownScrollbarStyle"> <div class="ownScrollbarStyle">
<p <p class="over_ellipsis" v-for="item in dayobject.listArr" @click="goUrl('TicketManager',item,'票务管理')">
class="over_ellipsis"
v-for="item in dayobject.listArr"
@click="goUrl('TicketManager',item,'票务管理')"
>
{{item.AirLineTicketId}} {{item.AirLineTicketId}}
{{item.DepartureName}} {{item.DepartureName}}
- -
...@@ -319,7 +308,7 @@ ...@@ -319,7 +308,7 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg: { msg: {
...@@ -348,15 +337,15 @@ export default { ...@@ -348,15 +337,15 @@ export default {
//员工列表 //员工列表
EmployeeList: [], EmployeeList: [],
TotalCount: 0, TotalCount: 0,
TotalSeat: 0 TotalSeat: 0,
loading:false
}; };
}, },
methods: { methods: {
//获取线路列表 //获取线路列表
GetLineList() { GetLineList() {
this.apipost( this.apipost(
"line_post_GetAllList", "line_post_GetAllList", {},
{},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.LineList = res.data.data; this.LineList = res.data.data;
...@@ -376,7 +365,7 @@ export default { ...@@ -376,7 +365,7 @@ export default {
}); });
}, },
//格式化日期 //格式化日期
getDateString: function() { getDateString: function () {
this.dateString = this.$calendarUtils.formatDate( this.dateString = this.$calendarUtils.formatDate(
this.currentYear, this.currentYear,
this.currentMonth, this.currentMonth,
...@@ -384,7 +373,7 @@ export default { ...@@ -384,7 +373,7 @@ export default {
); );
this.GetHoltelInventory(); this.GetHoltelInventory();
}, },
initCalendar: function(cur) { initCalendar: function (cur) {
var newDays = this.$calendarUtils.createCalendar(cur); var newDays = this.$calendarUtils.createCalendar(cur);
this.currentDay = newDays.CurrentDay; this.currentDay = newDays.CurrentDay;
this.currentYear = newDays.CurrentYear; this.currentYear = newDays.CurrentYear;
...@@ -400,7 +389,7 @@ export default { ...@@ -400,7 +389,7 @@ export default {
} }
}, },
//点击左箭头切换年月 //点击左箭头切换年月
pickPre: function(year, month) { pickPre: function (year, month) {
var d = new Date(this.$calendarUtils.formatDate(year, month, 1)); var d = new Date(this.$calendarUtils.formatDate(year, month, 1));
d.setDate(0); d.setDate(0);
this.nowDate = d.getFullYear() + "-" + (d.getMonth() + 1) + "-1"; this.nowDate = d.getFullYear() + "-" + (d.getMonth() + 1) + "-1";
...@@ -410,7 +399,7 @@ export default { ...@@ -410,7 +399,7 @@ export default {
this.GetHoltelInventory(); this.GetHoltelInventory();
}, },
//点击右箭头切换年月 //点击右箭头切换年月
pickNext: function(year, month) { pickNext: function (year, month) {
var d = new Date(this.$calendarUtils.formatDate(year, month, 1)); var d = new Date(this.$calendarUtils.formatDate(year, month, 1));
d.setDate(35); d.setDate(35);
this.nowDate = d.getFullYear() + "-" + (d.getMonth() + 1) + "-1"; this.nowDate = d.getFullYear() + "-" + (d.getMonth() + 1) + "-1";
...@@ -421,11 +410,13 @@ export default { ...@@ -421,11 +410,13 @@ export default {
}, },
//点击获取机票库存数据 //点击获取机票库存数据
GetHoltelInventory() { GetHoltelInventory() {
this.loading=true;
this.msg.FlightDate = this.currentYear + "-" + this.currentMonth + "-01"; this.msg.FlightDate = this.currentYear + "-" + this.currentMonth + "-01";
this.apipost( this.apipost(
"AirTicket_get_GetMonthAirticketFlight", "AirTicket_get_GetMonthAirticketFlight",
this.msg, this.msg,
res => { res => {
this.loading=false;
this.DayData = res.data.data; this.DayData = res.data.data;
this.TotalCount = 0; this.TotalCount = 0;
this.TotalSeat = 0; this.TotalSeat = 0;
...@@ -455,8 +446,7 @@ export default { ...@@ -455,8 +446,7 @@ export default {
//获取中国下面的城市列表 //获取中国下面的城市列表
getCityList() { getCityList() {
this.apipost( this.apipost(
"Destination_get_GetCityListByCountryId", "Destination_get_GetCityListByCountryId", {
{
Id: 2 Id: 2
}, },
res => { res => {
...@@ -468,7 +458,9 @@ export default { ...@@ -468,7 +458,9 @@ export default {
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() { getEmployeeList() {
let UserInfo = this.getLocalStorage(); let UserInfo = this.getLocalStorage();
var msg = { GroupId: UserInfo.RB_Group_id }; var msg = {
GroupId: UserInfo.RB_Group_id
};
this.apipost( this.apipost(
"admin_get_EmployeeGetList", "admin_get_EmployeeGetList",
msg, msg,
...@@ -479,7 +471,17 @@ export default { ...@@ -479,7 +471,17 @@ export default {
}, },
err => {} err => {}
); );
} },
//机票导出
DownLoadAirticket() {
this.loading = true;
var fileName = "机票下载" + this.msg.Month + ".xls";
this.GetLocalFile("airticket_get_DownLoadAirticket", this.msg, fileName,
res => {
this.loading = false;
});
},
}, },
mounted() { mounted() {
//初始化日历 //初始化日历
...@@ -492,5 +494,6 @@ export default { ...@@ -492,5 +494,6 @@ export default {
this.initCalendar(); this.initCalendar();
this.GetHoltelInventory(); this.GetHoltelInventory();
} }
}; };
</script> </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