Commit 1efcd34c authored by 黄奎's avatar 黄奎

航班酒店修改

parent fe9c720c
...@@ -589,6 +589,7 @@ ...@@ -589,6 +589,7 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData",tempData);
if (tempData.Feature != null) { if (tempData.Feature != null) {
this.FeatureData.ID = tempData.Feature.ID; this.FeatureData.ID = tempData.Feature.ID;
this.FeatureData.ConfigId = tempData.Feature.ConfigId; this.FeatureData.ConfigId = tempData.Feature.ConfigId;
......
...@@ -398,10 +398,9 @@ ...@@ -398,10 +398,9 @@
<div class="TP_noneed"> <div class="TP_noneed">
<el-checkbox v-model="priceData.IsSupportChildren" :true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游 <el-checkbox v-model="priceData.IsSupportChildren" :true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游
</el-checkbox> </el-checkbox>
<el-checkbox v-model="priceData.IsBookTeam" style="display:none" :true-label="CheckedVaule" <el-checkbox v-model="priceData.IsBookTeam" :true-label="CheckedVaule" :false-label="UnCheckedVaule" style="display:none;">订团
:false-label="UnCheckedVaule">订团
</el-checkbox> </el-checkbox>
<input type="button" class="normalBtn" style="display:none;" value="酒店使用情况" @click="outerVisible=true" /> <input type="button" class="normalBtn" value="酒店使用情况" style="display:none;" @click="outerVisible=true" />
</div> </div>
<el-form-item prop="B2BMemberPrice"> <el-form-item prop="B2BMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" @keyup.native="checkPrice(priceData,'B2BMemberPrice')"> <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" @keyup.native="checkPrice(priceData,'B2BMemberPrice')">
...@@ -714,17 +713,20 @@ ...@@ -714,17 +713,20 @@
:AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :selectFilghtList="selectFilghtList"></TravelPriceFlightList> :AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :selectFilghtList="selectFilghtList"></TravelPriceFlightList>
</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'> <table class="TphotelTable" border="0" cellspacing='1' v-if="returnPriceList.length>0">
<!-- <tr v-if="returnPriceList" v-for="item in returnPriceList[0].PriceHotelList"> <tr v-if="returnPriceList[0].PriceHotelList" v-for="item in returnPriceList[0].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>
<div class="tp_divList" v-for="(subItem,index) in item.SubList"> <div class="tp_divList" v-for="(subItem,index) in item.SubList">
<div> <div>
{{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp;【<span style="color:#E95252;">库存:{{subItem.RemainingInventory}}</span>】&nbsp;&nbsp;<el-checkbox></el-checkbox> {{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp;<span style="color:#E95252;">库存:{{subItem.RemainingInventory}}</span>&nbsp;&nbsp;
{{item.CheckList[index].CheckStatus}}
<el-checkbox :checked="item.CheckList[index].CheckStatus===true" @change="changeHotelStatus(item,index,item.CheckList[index].CheckStatus)"></el-checkbox>
</div> </div>
</div> </div>
</td> </td>
</tr> --> </tr>
</table> </table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary">{{$t('pub.saveBtn')}}</button> &nbsp; <button class="normalBtn" type="primary">{{$t('pub.saveBtn')}}</button> &nbsp;
...@@ -1022,7 +1024,7 @@ ...@@ -1022,7 +1024,7 @@
QFlightDateStart: this.QFlightDateStart, QFlightDateStart: this.QFlightDateStart,
QFlightDateEnd: this.QFlightDateEnd, QFlightDateEnd: this.QFlightDateEnd,
CreateBy: createBy, CreateBy: createBy,
AirTicketId:this.priceData.AirTicketId AirTicketId: this.priceData.AirTicketId
}; };
let that = this; let that = this;
...@@ -1339,6 +1341,16 @@ ...@@ -1339,6 +1341,16 @@
this.Info("可销售机票数量不能超过本团机位数!") this.Info("可销售机票数量不能超过本团机位数!")
item.CanSellTicketNum = 0; item.CanSellTicketNum = 0;
} }
},
//每一天只能选择一个酒店
changeHotelStatus(item, index,flag) {
if (item.CheckList != null && item.CheckList.length > 0) {
item.CheckList.forEach(subItem => {
subItem.CheckStatus = false;
});
item.CheckList[index].CheckStatus = !flag;
}
console.log("CheckList",item.CheckList);
} }
}, },
mounted() { mounted() {
...@@ -1404,4 +1416,5 @@ ...@@ -1404,4 +1416,5 @@
TravelPriceFlightList: TravelPriceFlightList TravelPriceFlightList: TravelPriceFlightList
} }
}; };
</script>
\ No newline at end of file </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