Commit c297895b authored by huangyuanyuan's avatar huangyuanyuan
parents 6a39ea91 d5eb8249
...@@ -3419,7 +3419,7 @@ ...@@ -3419,7 +3419,7 @@
Number(this.addMsg.BabyNum) + Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum); Number(this.addMsg.OldPeopleNum);
var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum))- var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.BabyNum) )-
(Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum)); (Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum));
this.addMsg.YSeatNum = SeatNum<0?0:SeatNum; this.addMsg.YSeatNum = SeatNum<0?0:SeatNum;
}, },
......
...@@ -3028,7 +3028,7 @@ ...@@ -3028,7 +3028,7 @@
Number(this.addMsg.BabyNum) + Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum) Number(this.addMsg.OldPeopleNum)
var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) - var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)+ Number(this.addMsg.BabyNum) ) -
(Number(this.addMsg.ESeatNum) + Number(this.addMsg.FSeatNum)); (Number(this.addMsg.ESeatNum) + Number(this.addMsg.FSeatNum));
this.addMsg.YSeatNum = SeatNum < 0 ? 0 : SeatNum; this.addMsg.YSeatNum = SeatNum < 0 ? 0 : SeatNum;
}, },
......
...@@ -1610,7 +1610,7 @@ ...@@ -1610,7 +1610,7 @@
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.addMsg.SafeNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + this.addMsg.SafeNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum))- var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)+ Number(this.addMsg.BabyNum))-
(Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum)); (Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum));
this.addMsg.YSeatNum = SeatNum<0?0:SeatNum; this.addMsg.YSeatNum = SeatNum<0?0:SeatNum;
this.autoRemarks("VisaNum", "不要签证数量") this.autoRemarks("VisaNum", "不要签证数量")
......
<template> <template>
<div class="roomQuery"> <div class="roomQuery" ref="wrap">
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul style="position:relative;"> <ul style="position:relative;">
<li> <li>
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<div style="display:inline-block;color:red;display:none">注意事项:每次导出数据最好不要超过一个月。</div> <div style="display:inline-block;color:red;display:none">注意事项:每次导出数据最好不要超过一个月。</div>
<div class="rq_comSpan" style="display:inline-block;">颜色说明: <div class="rq_comSpan" style="display:inline-block;">颜色说明:
<span class="rq_span1">新增团体</span><span class="rq_span2">取消团体</span> <span class="rq_span1">新增团体</span><span class="rq_span2">取消团体</span>
<span class="rq_span3">酒店提醒</span>
</div> </div>
</div><br /> </div><br />
<table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'>
...@@ -92,14 +93,15 @@ ...@@ -92,14 +93,15 @@
{{subItem.UseTimeStr}} {{subItem.UseTimeStr}}
</td> </td>
<td> <td>
<template v-if="childItem.SupplierId==0||childItem.SupplierId==UserInfo.SupplierId"> <template v-if="(childItem.DMCState==1 || childItem.OPState==1) && childItem.SupplierId!=UserInfo.SupplierId">业者自理</template>
<template v-else>
{{childItem.HotelName}}<br/> {{childItem.HotelName}}<br/>
<div class="rq_changeName">{{childItem.NewHotelName!=childItem.HotelName?'更换为:'+childItem.NewHotelName:""}}</div> <div class="rq_changeName">{{childItem.NewHotelName!=childItem.HotelName?'更换为:'+childItem.NewHotelName:""}}</div>
</template> </template>
<template v-else>业者自理</template>
</td> </td>
<td> <td>
<template v-if="childItem.SupplierId==0||childItem.SupplierId==UserInfo.SupplierId"> <template v-if="(childItem.DMCState==1 || childItem.OPState==1) && childItem.SupplierId!=UserInfo.SupplierId"></template>
<template v-else>
<template v-for="(detailsItem,detailsIndex) in childItem.OrderDetailsList" <template v-for="(detailsItem,detailsIndex) in childItem.OrderDetailsList"
v-if="detailsItem.HouseTypeCount>0"> v-if="detailsItem.HouseTypeCount>0">
<template v-if="detailsItem.HouseType==1">单间</template> <template v-if="detailsItem.HouseType==1">单间</template>
...@@ -115,13 +117,15 @@ ...@@ -115,13 +117,15 @@
</template> </template>
</td> </td>
<td> <td>
<template v-if="childItem.SupplierId==0||childItem.SupplierId==UserInfo.SupplierId"> <template v-if="(childItem.DMCState==1 || childItem.OPState==1) && childItem.SupplierId!=UserInfo.SupplierId"></template>
<template v-else>
<template v-if="childItem.TaxType==1">税入</template> <template v-if="childItem.TaxType==1">税入</template>
<template v-if="childItem.TaxType==2">税别</template> <template v-if="childItem.TaxType==2">税别</template>
</template> </template>
</td> </td>
<td> <td>
<template v-if="childItem.SupplierId==0||childItem.SupplierId==UserInfo.SupplierId"> <template v-if="(childItem.DMCState==1 || childItem.OPState==1) && childItem.SupplierId!=UserInfo.SupplierId"></template>
<template v-else>
<select class="rq_status" v-model='childItem.SupplierToDmcHotelStatus' <select class="rq_status" v-model='childItem.SupplierToDmcHotelStatus'
:placeholder="$t('pub.pleaseSel')"> :placeholder="$t('pub.pleaseSel')">
<option label='请选择' :value='0'></option> <option label='请选择' :value='0'></option>
...@@ -131,7 +135,8 @@ ...@@ -131,7 +135,8 @@
</template> </template>
</td> </td>
<td> <td>
<template v-if="childItem.SupplierId==0||childItem.SupplierId==UserInfo.SupplierId"> <template v-if="(childItem.DMCState==1 || childItem.OPState==1) && childItem.SupplierId!=UserInfo.SupplierId"></template>
<template v-else>
<textarea class="w135" cols="25" rows="5" v-model='childItem.SupplierToDmcRemarks'></textarea> <textarea class="w135" cols="25" rows="5" v-model='childItem.SupplierToDmcRemarks'></textarea>
</template> </template>
</td> </td>
...@@ -192,7 +197,7 @@ ...@@ -192,7 +197,7 @@
</div> </div>
<div class="rq_remark" v-if="item.SupplierHotelStatus==1||item.SupplierHotelStatus==2&&item.Numbers>=0"> <div class="rq_remark" v-if="item.SupplierHotelStatus==1||item.SupplierHotelStatus==2&&item.Numbers>=0">
<span class="rq_reSpan">酒店提醒</span> <span class="rq_reSpan">酒店提醒</span>
<span class="rQ_HtList"> <span class="rQ_HTremark">
<span v-for="subItem in item.Numbers"></span> <span v-for="subItem in item.Numbers"></span>
</span> </span>
</div> </div>
...@@ -207,7 +212,11 @@ ...@@ -207,7 +212,11 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<transition name="el-zoom-in-top">
<div class="page-component-up" v-show="top>100" @click="goTop">
<i class="el-icon-arrow-up"></i>
</div>
</transition>
</div> </div>
</template> </template>
<script> <script>
...@@ -217,6 +226,7 @@ ...@@ -217,6 +226,7 @@
loading: false, loading: false,
hotelLoading: false, hotelLoading: false,
total: 0, total: 0,
top:0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
...@@ -303,6 +313,7 @@ ...@@ -303,6 +313,7 @@
} }
}) })
} }
console.log(this.dataList,'data');
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
...@@ -371,6 +382,13 @@ ...@@ -371,6 +382,13 @@
//提取年月日 //提取年月日
getDateYear(date) { getDateYear(date) {
return date.split(' ')[0]; return date.split(' ')[0];
},
goTop(){
document.documentElement.scrollTop = 0
this.top=0
},
handleScroll(){
this.top=document.documentElement.scrollTop
} }
}, },
mounted() { mounted() {
...@@ -379,7 +397,7 @@ ...@@ -379,7 +397,7 @@
var nowMonth = (new Date().getMonth() + 1).toString() var nowMonth = (new Date().getMonth() + 1).toString()
var nowDay = new Date().getDate().toString(); var nowDay = new Date().getDate().toString();
this.todayDate = new Date().getFullYear() + '-' + this.timeAdd0(nowMonth) + '-' + this.timeAdd0(nowDay); this.todayDate = new Date().getFullYear() + '-' + this.timeAdd0(nowMonth) + '-' + this.timeAdd0(nowDay);
document.addEventListener('scroll', this.handleScroll);
this.getList(); this.getList();
}, },
} }
...@@ -453,7 +471,9 @@ ...@@ -453,7 +471,9 @@
.roomQuery .rq_span2 { .roomQuery .rq_span2 {
background-color: red; background-color: red;
} }
.roomQuery .rq_span3 {
background-color: #fb5f7a;
}
.roomQuery .hotelLink { .roomQuery .hotelLink {
color: blue; color: blue;
text-decoration: underline; text-decoration: underline;
...@@ -558,18 +578,23 @@ ...@@ -558,18 +578,23 @@
font-size: 12px; font-size: 12px;
} }
.rQ_HtList { .rQ_HtList,.rQ_HTremark {
position: relative; position: relative;
top:3px; top:3px;
} }
.rQ_HTremark span{
display: inline-block;
width: 15px;
height: 15px;
margin-right: 5px;
background-color: #fb5f7a;
}
.rQ_HtList span { .rQ_HtList span {
display: inline-block; display: inline-block;
width: 15px; width: 15px;
height: 15px; height: 15px;
margin-right: 5px; margin-right: 5px;
background-color: red; background-color: red;
border: 1px solid #d1d1d1;
} }
.rq_importNote { .rq_importNote {
...@@ -594,4 +619,27 @@ ...@@ -594,4 +619,27 @@
width:75px; width:75px;
text-align: right; text-align: right;
} }
.roomQuery .page-component-up {
background-color: #fff;
position: fixed;
right: calc(8.3% - 60px);
bottom: 150px;
width: 40px;
height: 40px;
cursor: pointer;
transition: .3s;
z-index: 5;
border:1px solid #ddd;
box-sizing: border-box;
line-height: 40px;
text-align: center;
}
.roomQuery .page-component-up i{font-size: 36px;color: #bbb;}
.roomQuery .page-component-up:hover{
background-color: #EF4455;
border:1px solid #ec3346;
}
.roomQuery .page-component-up:hover i{
color: #F1f1f1;
}
</style> </style>
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