Commit 4060cd5b authored by 黄奎's avatar 黄奎

11

parent 1b067ae0
<style scoped>
.bookDinnerStatisticsTalbe {
table-layout: fixed;
}
.bookDinnerStatisticsTalbe thead tr th {
position: sticky;
top: 0;
z-index: 10;
}
</style>
<template> <template>
<div> <div>
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
...@@ -15,8 +26,10 @@ ...@@ -15,8 +26,10 @@
</li> </li>
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"
:style="{height: boxHeight + 'px'}">
<table border="0" cellspacing="1" cellpadding="0" class="bookDinnerStatisticsTalbe" v-loading="loading"> <table border="0" cellspacing="1" cellpadding="0" class="bookDinnerStatisticsTalbe" v-loading="loading">
<thead>
<tr> <tr>
<th> <th>
{{$t('salesModule.CompanyNum')}} {{$t('salesModule.CompanyNum')}}
...@@ -42,6 +55,8 @@ ...@@ -42,6 +55,8 @@
<th width="210">{{$t('ground.fkfsdcfsdth')}}</th> <th width="210">{{$t('ground.fkfsdcfsdth')}}</th>
<th width="170">{{$t('pub.pubRemark')}}</th> <th width="170">{{$t('pub.pubRemark')}}</th>
</tr> </tr>
</thead>
<tbody>
<template v-for="(item,index) in dinnerList"> <template v-for="(item,index) in dinnerList">
<template v-for="(subItem,subIndex) in item.DiningSummaryList"> <template v-for="(subItem,subIndex) in item.DiningSummaryList">
<tr v-for="(childItem,childIndex) in subItem.DiningPriceList" :key="`d_`+index+subIndex+childIndex"> <tr v-for="(childItem,childIndex) in subItem.DiningPriceList" :key="`d_`+index+subIndex+childIndex">
...@@ -59,7 +74,7 @@ ...@@ -59,7 +74,7 @@
</span> </span>
</td> </td>
</tr> </tr>
<tr> <tr v-if="subItem.Tel&&subItem.Tel!=''">
<td width="40"> <td width="40">
{{$t('hotel.table_tel')}} {{$t('hotel.table_tel')}}
</td> </td>
...@@ -250,15 +265,15 @@ ...@@ -250,15 +265,15 @@
<td style="text-align:left;"> <td style="text-align:left;">
<!--午餐--> <!--午餐-->
<template v-if="subItem.UseDinnerType==2"> <template v-if="subItem.UseDinnerType==2">
<el-time-select class='w135' :placeholder="$t('objFill.yuyuetime')" v-model="subItem.BookTime" <el-time-select class='w135' :placeholder="$t('objFill.yuyuetime')"
:picker-options="{ start: '11:00',step: '00:15',end: '14:00'}" v-model="subItem.BookTime" :picker-options="{ start: '11:00',step: '00:15',end: '14:00'}"
@keyup.native="checkTime(subItem,'BookTime')"> @keyup.native="checkTime(subItem,'BookTime')">
</el-time-select> </el-time-select>
</template> </template>
<!--晚餐--> <!--晚餐-->
<template v-if="subItem.UseDinnerType==3"> <template v-if="subItem.UseDinnerType==3">
<el-time-select class='w135' :placeholder="$t('objFill.yuyuetime')" v-model="subItem.BookTime" <el-time-select class='w135' :placeholder="$t('objFill.yuyuetime')"
:picker-options="{ start: '17:00',step: '00:15', end: '20:00'}" v-model="subItem.BookTime" :picker-options="{ start: '17:00',step: '00:15', end: '20:00'}"
@keyup.native="checkTime(subItem,'BookTime')"> @keyup.native="checkTime(subItem,'BookTime')">
</el-time-select> </el-time-select>
</template> </template>
...@@ -304,6 +319,7 @@ ...@@ -304,6 +319,7 @@
</tr> </tr>
</template> </template>
</template> </template>
</tbody>
<tfoot> <tfoot>
<tr> <tr>
<td> <td>
...@@ -364,6 +380,7 @@ ...@@ -364,6 +380,7 @@
LineId: 0, LineId: 0,
currentUserInfo: {}, currentUserInfo: {},
sTotalPrice: 0, //合计 sTotalPrice: 0, //合计
boxHeight: 0,
}; };
}, },
components: { components: {
...@@ -581,6 +598,8 @@ ...@@ -581,6 +598,8 @@
this.allCurrencyList = res.data.data; this.allCurrencyList = res.data.data;
} }
}, err => {}); }, err => {});
let height = window.innerHeight - 65 - 55;
this.boxHeight = height;
} }
}; };
...@@ -635,4 +654,5 @@ ...@@ -635,4 +654,5 @@
.bookDinnerStatisticsTalbe .dinnerTable tr td { .bookDinnerStatisticsTalbe .dinnerTable tr td {
border: none; border: none;
} }
</style> </style>
<style scoped>
.admissionStatisticsDetailsTalbe {
table-layout: fixed;
}
.admissionStatisticsDetailsTalbe thead tr th {
position: sticky;
top: 0;
z-index: 10;
}
</style>
<template> <template>
<div> <div>
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
...@@ -15,8 +27,10 @@ ...@@ -15,8 +27,10 @@
</li> </li>
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-y: auto;padding-bottom: 10px; height: 100%; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"
:style="{height: boxHeight + 'px'}">
<table border="0" cellspacing="1" cellpadding="0" class="admissionStatisticsDetailsTalbe" v-loading="loading"> <table border="0" cellspacing="1" cellpadding="0" class="admissionStatisticsDetailsTalbe" v-loading="loading">
<thead>
<tr> <tr>
<th> <th>
{{$t('salesModule.CompanyNum')}} {{$t('salesModule.CompanyNum')}}
...@@ -41,6 +55,8 @@ ...@@ -41,6 +55,8 @@
<th width="210">{{$t('ground.fkfsdth')}}</th> <th width="210">{{$t('ground.fkfsdth')}}</th>
<th width="200">{{$t('pub.pubRemark')}}</th> <th width="200">{{$t('pub.pubRemark')}}</th>
</tr> </tr>
</thead>
<tbody>
<template v-for="(item,index) in DataList"> <template v-for="(item,index) in DataList">
<template v-for="(subItem,subIndex) in item.ScenicStatisticsList"> <template v-for="(subItem,subIndex) in item.ScenicStatisticsList">
<tr v-for="(childItem,childIndex) in subItem.TicketPriceList" :key="`s_`+index+subIndex+childIndex"> <tr v-for="(childItem,childIndex) in subItem.TicketPriceList" :key="`s_`+index+subIndex+childIndex">
...@@ -103,8 +119,8 @@ ...@@ -103,8 +119,8 @@
{{childItem.PeopleNum}} {{childItem.PeopleNum}}
</td> </td>
<td> <td>
<el-input class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number" @input='calculationPrice()' <el-input class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number"
@keyup.native="checkInteger(childItem,'UsePeopleNum')"></el-input> @input='calculationPrice()' @keyup.native="checkInteger(childItem,'UsePeopleNum')"></el-input>
</td> </td>
<td> <td>
<el-input class='w50 tcenter' maxlength='2' v-model='childItem.Discount' type="number" <el-input class='w50 tcenter' maxlength='2' v-model='childItem.Discount' type="number"
...@@ -187,6 +203,7 @@ ...@@ -187,6 +203,7 @@
</tr> </tr>
</template> </template>
</template> </template>
</tbody>
<tfoot> <tfoot>
<tr> <tr>
<td> <td>
...@@ -241,6 +258,7 @@ ...@@ -241,6 +258,7 @@
LineId: 0, //线路编号 LineId: 0, //线路编号
currentUserInfo: {}, currentUserInfo: {},
sTotalPrice: 0, //合计 sTotalPrice: 0, //合计
boxHeight: 0,
} }
}, },
methods: { methods: {
...@@ -381,6 +399,9 @@ ...@@ -381,6 +399,9 @@
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
this.getList(); this.getList();
this.getCurrencyList(); this.getCurrencyList();
let height = window.innerHeight - 65 - 55;
this.boxHeight = height;
}, },
} }
......
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