Commit 8de8ec29 authored by huangyuanyuan's avatar huangyuanyuan
parents 5317c31f eab260eb
...@@ -185,8 +185,8 @@ ...@@ -185,8 +185,8 @@
<el-radio :label="1" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.gongzhang')}}</el-radio> <el-radio :label="1" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.gongzhang')}}</el-radio>
<el-radio :label="0" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.sizhang')}}</el-radio> <el-radio :label="0" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.sizhang')}}</el-radio>
<el-radio :label="2" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.rmbxianjin')}}</el-radio> <el-radio :label="2" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.rmbxianjin')}}</el-radio>
<el-radio :label="3" v-if='msg.TemplateId!==36 && msg.TemplateId!==37'>{{$t('fnc.wbxianjin')}}</el-radio> <el-radio :label="3" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48'>{{$t('fnc.wbxianjin')}}</el-radio>
<el-radio :label="4" v-if='msg.TemplateId===36 || msg.TemplateId===37 || msg.TemplateId===43'>{{$t('fnc.zjinchi')}}</el-radio> <el-radio :label="4" v-if='(msg.TemplateId===36 || msg.TemplateId===37) && msg.TemplateId!==43'>{{$t('fnc.zjinchi')}}</el-radio>
<el-radio :label="5" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.ptxnzhanghu')}}</el-radio> <el-radio :label="5" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.ptxnzhanghu')}}</el-radio>
<el-radio :label="6" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.djxnzhanghu')}}</el-radio> <el-radio :label="6" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.djxnzhanghu')}}</el-radio>
<el-radio :label="7" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.szxiangdi')}}</el-radio> <el-radio :label="7" v-if='msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==43'>{{$t('fnc.szxiangdi')}}</el-radio>
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
<td width="80">实际用房数</td> <td width="80">实际用房数</td>
<td width="">房间类型</td> <td width="">房间类型</td>
<td width="">房间数</td> <td width="">房间数</td>
<td width="80">预定人数</td>
<td width="80">免费人数</td> <td width="80">免费人数</td>
<td width="">单价/人</td> <td width="">单价/人</td>
<td width="">金额小计</td> <td width="">金额小计</td>
...@@ -172,6 +173,15 @@ ...@@ -172,6 +173,15 @@
</div> </div>
</div> </div>
</td> </td>
<td>
<div class="alcenter">
<div v-for="subItem in outItem.HotelOrderList">
<p v-for="childItem in subItem.OrderDetailsList">
{{childItem.BookNum}}
</p>
</div>
</div>
</td>
<td> <td>
<div class="alcenter"> <div class="alcenter">
<div v-for="subItem in outItem.HotelOrderList"> <div v-for="subItem in outItem.HotelOrderList">
...@@ -218,8 +228,9 @@ ...@@ -218,8 +228,9 @@
<td> <td>
<div v-for="subItem in outItem.HotelOrderList"> <div v-for="subItem in outItem.HotelOrderList">
<span v-if="subItem.PayStyle === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
<span v-else-if="subItem.PayStyle === 2">公司结算</span> <span v-else-if="subItem.PayStyle === 2">签单</span>
<span v-else-if="subItem.PayStyle === 3">预付</span> <span v-else-if="subItem.PayStyle === 4">预付</span>
<span v-else-if="subItem.PayStyle === 5">实物抵扣</span>
<span v-else>暂无</span> <span v-else>暂无</span>
</div> </div>
</td> </td>
...@@ -239,7 +250,7 @@ ...@@ -239,7 +250,7 @@
{{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <td>签单/预付/抵扣总金额</td>
<td colspan="6"> <td colspan="7">
{{moneyFormat(TotalNav.reimburseTotalPrice.BalanceTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.BalanceTotalPrice)}}
</td> </td>
</tr> </tr>
...@@ -530,7 +541,7 @@ ...@@ -530,7 +541,7 @@
Money: obj.LeaderGetPriceT, Money: obj.LeaderGetPriceT,
TCNUMS: obj.TCNUMS TCNUMS: obj.TCNUMS
} }
let id = [43] let id = [43,48]
this.$router.push({ this.$router.push({
name: 'ChoiceAddFinancialDocuments', name: 'ChoiceAddFinancialDocuments',
query:{ query:{
......
...@@ -180,11 +180,12 @@ ...@@ -180,11 +180,12 @@
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
._TravelPricePopover .jiDiv{ ._TravelPricePopover .jiDiv {
width:650px; width: 650px;
max-height:400px; max-height: 400px;
overflow: auto; overflow: auto;
} }
._TravelPricePopover table { ._TravelPricePopover table {
padding: 10px 0 0 20px; padding: 10px 0 0 20px;
background-color: #ededed; background-color: #ededed;
...@@ -334,12 +335,14 @@ ...@@ -334,12 +335,14 @@
cursor: default !important; cursor: default !important;
box-shadow: none !important; box-shadow: none !important;
} }
.lessPriceRule{
font-size:14px; .lessPriceRule {
margin-left:40px; font-size: 14px;
margin-left: 40px;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
</style> </style>
<template> <template>
...@@ -443,7 +446,8 @@ ...@@ -443,7 +446,8 @@
<el-checkbox v-model="priceData.IsLessPrice" :true-label="CheckedVaule" <el-checkbox v-model="priceData.IsLessPrice" :true-label="CheckedVaule"
:false-label="UnCheckedVaule">可少价 :false-label="UnCheckedVaule">可少价
</el-checkbox> </el-checkbox>
<input type="button" class="normalBtn" value="酒店使用情况" @click="outerVisible=true" v-if="PostConfig.LineId==14 && priceData.PriceHotelList&&priceData.PriceHotelList.length>0" /> <input type="button" class="normalBtn" value="酒店使用情况" @click="outerVisible=true"
v-if="PostConfig.LineId==14 && priceData.PriceHotelList&&priceData.PriceHotelList.length>0" />
</div> </div>
<el-form-item prop="B2BMemberPrice"> <el-form-item prop="B2BMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice"
...@@ -693,13 +697,16 @@ ...@@ -693,13 +697,16 @@
<el-checkbox v-model="fitem.IsSelected===true" @change="getSelect(fitem)"></el-checkbox> <el-checkbox v-model="fitem.IsSelected===true" @change="getSelect(fitem)"></el-checkbox>
</td> </td>
<td> <td>
<span class="TP_Airticktid" @click="goUrl('TicketManager',fitem.AirticketId)">{{fitem.FlightNumber}}</span> / {{fitem.AlName}} / {{fitem.DepartureName}}-{{fitem.ArrivalCityName}} <span class="TP_Airticktid"
@click="goUrl('TicketManager',fitem.AirticketId)">{{fitem.FlightNumber}}</span> /
{{fitem.AlName}} / {{fitem.DepartureName}}-{{fitem.ArrivalCityName}}
</td> </td>
<td>{{fitem.FlightDate}} {{fitem.Departure_time}}</td> <td>{{fitem.FlightDate}} {{fitem.Departure_time}}</td>
<td>{{fitem.PNR}}</td> <td>{{fitem.PNR}}</td>
<td>{{fitem.TicketNum}} / {{fitem.UseAmount}}</td> <td>{{fitem.TicketNum}} / {{fitem.UseAmount}}</td>
<td> <td>
<el-input class="w80" placeholder="机位数" @keyup.native="getFlightBindNum(fitem)" v-model="fitem.BindNum"></el-input> <el-input class="w80" placeholder="机位数" @keyup.native="getFlightBindNum(fitem)"
v-model="fitem.BindNum"></el-input>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -775,7 +782,8 @@ ...@@ -775,7 +782,8 @@
</div> </div>
</div> </div>
<div class="TPright"> <div class="TPright">
<span v-if="priceData.IsLessPrice==1" @click="getLessPriceInfo(),lessPriceVisible=true" class="lessPriceRule">少价规则</span> <span v-if="priceData.IsLessPrice==1" @click="getLessPriceInfo(),lessPriceVisible=true"
class="lessPriceRule">少价规则</span>
</div> </div>
</div> </div>
</el-form> </el-form>
...@@ -789,6 +797,12 @@ ...@@ -789,6 +797,12 @@
</div> </div>
<el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center> <el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center>
<table class="TphotelTable" border="0" cellspacing='1' v-if="priceData.TCID>0"> <table class="TphotelTable" border="0" cellspacing='1' v-if="priceData.TCID>0">
<tr>
<th>日期</th>
<th>酒店</th>
<th>占房时间</th>
<th>更换酒店</th>
</tr>
<tr v-if="priceData.PriceHotelList" v-for="item in priceData.PriceHotelList"> <tr v-if="priceData.PriceHotelList" v-for="item in priceData.PriceHotelList">
<td style="background-color:#E6E6E6;color:#333;" width="120">{{item.UseDay}}</td> <td style="background-color:#E6E6E6;color:#333;" width="120">{{item.UseDay}}</td>
<td> <td>
...@@ -797,9 +811,10 @@ ...@@ -797,9 +811,10 @@
{{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp; {{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp;
<span v-if="subItem.UseCount>0 && item.SubList.length==1"> <span v-if="subItem.UseCount>0 && item.SubList.length==1">
<a style="color:green">{{subItem.RemainingInventory>-3?"【OK】":"【暂定】"}}</a> <a style="color:green">{{subItem.RemainingInventory>-3?"【OK】":"【暂定】"}}</a>
<span style="color:green">本团使用库存:{{subItem.UseCount}} {{subItem.CostPrice!=0?"价格:"+subItem.CostPrice:""}}</span></span> <span style="color:green">本团使用库存:{{subItem.UseCount}}
<span {{subItem.CostPrice!=0?"价格:"+subItem.CostPrice:""}}</span>
style="color:#E95252;">剩余库存:{{subItem.RemainingInventory}} <template v-if="subItem.CreateDateStr">占房时间:{{subItem.CreateDateStr}}</template> </span>
<span style="color:#E95252;">剩余库存:{{subItem.RemainingInventory}}
</span> </span>
&nbsp;&nbsp; &nbsp;&nbsp;
<el-checkbox v-if="item.SubList.length>1" v-model="item.CheckList[index].CheckStatus" <el-checkbox v-if="item.SubList.length>1" v-model="item.CheckList[index].CheckStatus"
...@@ -807,13 +822,23 @@ ...@@ -807,13 +822,23 @@
</div> </div>
</div> </div>
</td> </td>
<td>
<div class="tp_divList" v-for="(subItem,index) in item.SubList">
<div>
<span v-if="subItem.UseCount>0 && item.SubList.length==1">
<span style="color:green;white-space:nowrap;">{{subItem.CreateDateStr}}</span>
</span>
</div>
</div>
</td>
<td> <td>
<el-select class="w180" v-model="item.NewHotelId" @visible-change="getHotelList(item,$event)" <el-select class="w180" v-model="item.NewHotelId" @visible-change="getHotelList(item,$event)"
@change="changeHotelList()" filterable> @change="changeHotelList()" filterable>
<el-option :key="0" label="请选择" :value="0"></el-option> <el-option :key="0" label="请选择" :value="0"></el-option>
<el-option v-for="subItem in item.HotelList" :key="subItem.ID" :label="subItem.Name" :value="subItem.ID"> <el-option v-for="subItem in item.HotelList" :key="subItem.ID" :label="subItem.Name" :value="subItem.ID">
<span style="float: left">{{subItem.Name}}</span> <span style="float: left">{{subItem.Name}}</span>
<span style="float: right; color:red; font-size: 13px">剩余库存:{{subItem.Inventory}} / 价格:{{subItem.CostPrice}}</span> <span style="float: right; color:red; font-size: 13px">剩余库存:{{subItem.Inventory}} /
价格:{{subItem.CostPrice}}</span>
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
...@@ -822,7 +847,8 @@ ...@@ -822,7 +847,8 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="saveHoteluseDetail()" <button class="normalBtn" type="primary" @click="saveHoteluseDetail()"
:class="{'disClick':!isSaved}">{{btnText}}</button> &nbsp; :class="{'disClick':!isSaved}">{{btnText}}</button> &nbsp;
<button class="hollowFixedBtn" :class="{'disClick':!isSaved}" @click="cancelHotelUseDetail()">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" :class="{'disClick':!isSaved}"
@click="cancelHotelUseDetail()">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -835,13 +861,16 @@ ...@@ -835,13 +861,16 @@
</tr> </tr>
<tr v-for="item in lessPriceData"> <tr v-for="item in lessPriceData">
<td> <td>
<span v-if="item.LessMoney!=null" style="margin-right:30px;">{{item.LessMoney}}元</span><span v-if="item.LessPercent!=null">{{item.LessPercent}}%</span> <span v-if="item.LessMoney!=null" style="margin-right:30px;">{{item.LessMoney}}元</span><span
v-if="item.LessPercent!=null">{{item.LessPercent}}%</span>
</td> </td>
<td> <td>
<span v-if="item.DeptLessMoney!=null" style="margin-right:30px;">{{item.DeptLessMoney}}元</span><span v-if="item.DeptLessPercent!=null">{{item.DeptLessPercent}}%</span> <span v-if="item.DeptLessMoney!=null" style="margin-right:30px;">{{item.DeptLessMoney}}元</span><span
v-if="item.DeptLessPercent!=null">{{item.DeptLessPercent}}%</span>
</td> </td>
<td> <td>
<span v-if="item.FilialeLessMoney!=null" style="margin-right:30px;">{{item.FilialeLessMoney}}元</span><span v-if="item.FilialeLessPercent!=null">{{item.FilialeLessPercent}}%</span> <span v-if="item.FilialeLessMoney!=null" style="margin-right:30px;">{{item.FilialeLessMoney}}元</span><span
v-if="item.FilialeLessPercent!=null">{{item.FilialeLessPercent}}%</span>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -945,8 +974,8 @@ ...@@ -945,8 +974,8 @@
} }
}, },
//少价规则 //少价规则
lessPriceVisible:false, lessPriceVisible: false,
lessPriceData:[], lessPriceData: [],
}; };
}, },
methods: { methods: {
...@@ -1160,7 +1189,7 @@ ...@@ -1160,7 +1189,7 @@
QFlightDateEnd: this.QFlightDateEnd, QFlightDateEnd: this.QFlightDateEnd,
CreateBy: createBy, CreateBy: createBy,
AirTicketId: this.priceData.AirTicketId, AirTicketId: this.priceData.AirTicketId,
TCID:this.priceData.TCID TCID: this.priceData.TCID
}; };
let that = this; let that = this;
...@@ -1437,10 +1466,9 @@ ...@@ -1437,10 +1466,9 @@
parseInt(this.priceData.YSeat) + parseInt(this.priceData.YSeat) +
parseInt(this.priceData.CSeat) + parseInt(this.priceData.CSeat) +
parseInt(this.priceData.FSeat); parseInt(this.priceData.FSeat);
if(Number(fitem.TicketNum)-Number(fitem.OtherTeamUseNum)<Number(fitem.BindNum)) if (Number(fitem.TicketNum) - Number(fitem.OtherTeamUseNum) < Number(fitem.BindNum)) {
{ fitem.BindNum = 0;
fitem.BindNum=0; this.Error("最多只能绑定" + (Number(fitem.TicketNum) - Number(fitem.OtherTeamUseNum)) + "个机位");
this.Error("最多只能绑定"+(Number(fitem.TicketNum)-Number(fitem.OtherTeamUseNum))+"个机位");
} }
this.selectFilghtList.forEach((x, index) => { this.selectFilghtList.forEach((x, index) => {
if (x.IsSelected) { if (x.IsSelected) {
...@@ -1522,8 +1550,8 @@ ...@@ -1522,8 +1550,8 @@
}, },
//保存酒店使用情况 //保存酒店使用情况
saveHoteluseDetail() { saveHoteluseDetail() {
var that=this; var that = this;
this.Confirm("是否确定提交选中的酒店?",function(){ this.Confirm("是否确定提交选中的酒店?", function () {
if (that.isSaved) { if (that.isSaved) {
that.isSaved = false; that.isSaved = false;
that.$emit("saveMsg"); that.$emit("saveMsg");
...@@ -1570,16 +1598,16 @@ ...@@ -1570,16 +1598,16 @@
} }
}, },
//获取少价信息 //获取少价信息
getLessPriceInfo(){ getLessPriceInfo() {
let msg = { let msg = {
RB_Branch_id:this.priceData.OutBranchId, RB_Branch_id: this.priceData.OutBranchId,
LineID:this.PostConfig.LineId, LineID: this.PostConfig.LineId,
LineTeamId:this.PostConfig.LineteamId LineTeamId: this.PostConfig.LineteamId
} }
this.apipost("sell_get_GetNewTCIDLessprice", msg,res => { this.apipost("sell_get_GetNewTCIDLessprice", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.lessPriceData = res.data.data; this.lessPriceData = res.data.data;
}else{ } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
...@@ -1650,4 +1678,5 @@ ...@@ -1650,4 +1678,5 @@
TravelPriceFlightList: TravelPriceFlightList TravelPriceFlightList: TravelPriceFlightList
} }
}; };
</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