Commit 8b64baa1 authored by 黄奎's avatar 黄奎

机位统计修改

parent db4d35c1
...@@ -75,14 +75,6 @@ ...@@ -75,14 +75,6 @@
text-align: center; text-align: center;
} }
.seatStatistics .days li:nth-child(7n-1) p {
color: #e95252 !important;
}
.seatStatistics .days li:nth-child(7n) p {
color: #e95252 !important;
}
.seatStatistics .days { .seatStatistics .days {
width: 100%; width: 100%;
padding: 0; padding: 0;
...@@ -93,39 +85,7 @@ ...@@ -93,39 +85,7 @@
justify-content: space-around; justify-content: space-around;
} }
.seatStatistics .days>li {
list-style-type: none;
width: 14.2857%;
height: 140px;
text-align: center;
position: relative;
font-size: 12px;
float: left;
color: #000;
box-sizing: border-box;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.seatStatistics .days li>div {
height: 112px;
width: 100%;
overflow-y: auto;
text-align: left;
}
.seatStatistics .days li>div>p {
border-bottom: 1px dashed #ccc;
height: 28px;
line-height: 28px;
width: 100%;
text-indent: 10px;
background: #fff;
}
.seatStatistics .days li>div>p:nth-child(2n) {
background: #f5f5f5;
}
.seatStatistics .currentInput { .seatStatistics .currentInput {
width: 120px; width: 120px;
...@@ -216,6 +176,56 @@ ...@@ -216,6 +176,56 @@
margin: 20px 0; margin: 20px 0;
} }
.seatStatistics .flightTab {
border-collapse: collapse;
border: 1px solid #ddd
}
.seatStatistics .flightTab tr td,
.seatStatistics .flightTab tr th {
border: 1px solid #ddd
}
.seatStatistics .flightTab tr th {
margin: 0;
padding: 3px 0;
background-color: #3fa783;
width: 100%;
flex-wrap: wrap;
color: #fff;
}
.seatStatistics .flightTab tr td>div>p {
width: 100%;
padding-left: 3px;
font-size: 12px;
cursor: pointer;
}
.seatStatistics .flightTab tr td>div>p {
border-bottom: 1px dashed #ccc;
height: 28px;
line-height: 28px;
width: 100%;
text-indent: 10px;
background: #fff;
}
.seatStatistics .flightTab tr td>div>p:nth-child(2n) {
background: #f5f5f5;
}
.seatStatistics .flightTab tr td:nth-child(7n-6) p {
color: #e95252 !important;
}
.seatStatistics .flightTab tr td:nth-child(7n) p {
color: #e95252 !important;
}
/* 日期样式结束*/ /* 日期样式结束*/
</style> </style>
...@@ -292,32 +302,63 @@ ...@@ -292,32 +302,63 @@
</li> </li>
</ul> </ul>
</div> </div>
<table class="flightTab" style="table-layout: fixed; width: 100%;" v-loading="loading">
<ul class="weekdays"> <tr>
<li>{{$t('hotel.hotel_Monday')}}</li> <th width="15%">
<li>{{$t('hotel.hotel_Tuesday')}}</li> {{$t('hotel.hotel_Sunday')}}
<li>{{$t('hotel.hotel_Wednesday')}}</li> </th>
<li>{{$t('hotel.hotel_Thursday')}}</li> <th width="14%">
<li>{{$t('hotel.hotel_Friday')}}</li> {{$t('hotel.hotel_Monday')}}
<li class="weekendDay">{{$t('hotel.hotel_Saturday')}}</li> </th>
<li class="weekendDay">{{$t('hotel.hotel_Sunday')}}</li> <th width="14%">
</ul> {{$t('hotel.hotel_Tuesday')}}
<ul class="days clearfix" v-loading="loading"> </th>
<li v-for="(dayobject,index) in days" :key="dayobject.index"> <th width="14%">
<p class="ckStyle" :class="{ckStyleOther:dayobject.day.getMonth()+1 != currentMonth}"> {{$t('hotel.hotel_Wednesday')}}
{{dayobject.day.getDate()}} ({{dayobject.TotalCount}})</p> </th>
<div class="ownScrollbarStyle"> <th width="14%">
<p class="over_ellipsis" v-for="item in dayobject.listArr" @click="goUrl('TicketManager',item,'票务管理')"> {{$t('hotel.hotel_Thursday')}}
{{item.AirLineTicketId}} </th>
{{item.DepartureName}} <th width="14%">
- {{$t('hotel.hotel_Friday')}}
{{item.AlCode}} </th>
- <th width="15%">
{{item.InOut}} {{$t('hotel.hotel_Saturday')}}
</p> </th>
</div> </tr>
</li> <tbody v-for="(rItem,rIndex) in totalRows" :key="`d_`+rIndex">
</ul> <tr>
<template v-for="(cItem,cIndex) in ColCount">
<td style="vertical-align:top;" :key="`d_`+rIndex+`C_`+cIndex">
<template v-if="getDataObj(rIndex,cIndex)">
<p class="ckStyle" :class="{ckStyleOther:getDataObj(rIndex,cIndex).day.getMonth()+1 != currentMonth}">
{{getDataObj(rIndex,cIndex).day.getDate()}}
<template v-if="getDataObj(rIndex,cIndex)&&getDataObj(rIndex,cIndex).TotalCount">
({{getDataObj(rIndex,cIndex).TotalCount}})
</template>
</p>
<div class="ownScrollbarStyle">
<p class="over_ellipsis" v-for="(item,index) in getDataObj(rIndex,cIndex).listArr"
:key="`d_`+rIndex+`C_`+cIndex+`I_`+index" @click="goUrl('TravelticketManager',item,'票务管理')">
{{item.AirLineTicketId}}
{{item.DepartureName}}
-
{{item.AlCode}}
-
{{item.InOut}}
<template v-if="item.OutBranchName&&item.OutBranchName!=''">
[{{ item.OutBranchName}}]
</template>
</p>
</div>
</template>
</td>
</template>
</tr>
</tbody>
</table>
<br />
<br />
</div> </div>
</template> </template>
<script> <script>
...@@ -355,9 +396,19 @@ ...@@ -355,9 +396,19 @@
loading: false, loading: false,
//航空公司 //航空公司
AirlineList: [], AirlineList: [],
totalRows: 0, //总行数
ColCount: 7, //列数
}; };
}, },
methods: { methods: {
getDataObj(rowIndex, colIndex) {
var obj = {};
var newIndex = rowIndex * 7 + colIndex;
if (this.days && this.days.length > 0) {
obj = this.days[newIndex];
}
return obj;
},
//获取航空公司 //获取航空公司
getAirlineList() { getAirlineList() {
this.apipost( this.apipost(
...@@ -402,7 +453,7 @@ ...@@ -402,7 +453,7 @@
this.GetHoltelInventory(); this.GetHoltelInventory();
}, },
initCalendar: function (cur) { initCalendar: function (cur) {
var newDays = this.$calendarUtils.createCalendar(cur); var newDays = this.$calendarUtils.createCalendar_V2(cur);
this.currentDay = newDays.CurrentDay; this.currentDay = newDays.CurrentDay;
this.currentYear = newDays.CurrentYear; this.currentYear = newDays.CurrentYear;
this.currentMonth = newDays.CurrentMonth; this.currentMonth = newDays.CurrentMonth;
...@@ -415,6 +466,11 @@ ...@@ -415,6 +466,11 @@
dayobject.day = d; dayobject.day = d;
this.days.push(dayobject); this.days.push(dayobject);
} }
if (this.days.length % 7 == 0) {
this.totalRows = this.days.length / 7
} else {
this.totalRows = parseInt(this.days.length / 7) + 1;
}
}, },
//点击左箭头切换年月 //点击左箭头切换年月
pickPre: function (year, month) { pickPre: function (year, month) {
...@@ -508,7 +564,6 @@ ...@@ -508,7 +564,6 @@
res => { res => {
this.loading = false; this.loading = false;
}); });
}, },
}, },
mounted() { mounted() {
......
...@@ -687,7 +687,8 @@ ...@@ -687,7 +687,8 @@
<li> <li>
<span> <span>
<em>{{$t('op.Procurement')}}</em> <em>{{$t('op.Procurement')}}</em>
<el-select class="w150" v-model="Query.PurchaseCreateBy" filterable :placeholder="$t('pub.pleaseSel')" clearable> <el-select class="w150" v-model="Query.PurchaseCreateBy" filterable :placeholder="$t('pub.pleaseSel')"
clearable>
<el-option :label="$t('pub.unlimitedSel')" :value="0"> <el-option :label="$t('pub.unlimitedSel')" :value="0">
</el-option> </el-option>
<el-option v-for="(item, index) in AllEmployeeList" :label="item.EmName" :value="item.EmployeeId" <el-option v-for="(item, index) in AllEmployeeList" :label="item.EmName" :value="item.EmployeeId"
...@@ -1189,6 +1190,11 @@ ...@@ -1189,6 +1190,11 @@
created() { created() {
this.getCompanyList(); this.getCompanyList();
this.getAllEmployeeList(); this.getAllEmployeeList();
if (this.$route.query) {
if (this.$route.query.id) {
this.Query.ID = this.$route.query.id
}
}
}, },
mounted() { mounted() {
this.Query.QFlightDateStart = this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")); this.Query.QFlightDateStart = this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"));
......
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