Commit 1355e8c5 authored by 黄奎's avatar 黄奎

11

parent 06957208
<style> <style>
.comCheckHotel .comCheckHotel { .comCheckHotel .comCheckHotel {
width: 100%; width: 100%;
height: 150px; height: 150px;
...@@ -33,19 +32,22 @@ ...@@ -33,19 +32,22 @@
background-color: #E95252; background-color: #E95252;
color: #fff; color: #fff;
} }
.comCheckHotel .Ck_hotelInfo{
width:100%; .comCheckHotel .Ck_hotelInfo {
height:40px; width: 100%;
height: 40px;
background-color: #F6F8FB; background-color: #F6F8FB;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
margin-bottom:10px; margin-bottom: 10px;
} }
.comCheckHotel .ck_goUrl{
color:blue; .comCheckHotel .ck_goUrl {
color: blue;
cursor: pointer; cursor: pointer;
margin-left:10px; margin-left: 10px;
} }
</style> </style>
<template> <template>
...@@ -64,19 +66,21 @@ ...@@ -64,19 +66,21 @@
</div> </div>
<div style="float:left;margin-left:10px;"> <div style="float:left;margin-left:10px;">
{{$t('objFill.v101.traveltrip.jiudmcdh')}}: {{$t('objFill.v101.traveltrip.jiudmcdh')}}:
<el-input type="text" v-model="qMsg.Name" class="w120" @keyup.native.enter="getCheckHotel()" :placeholder="$t('objFill.jiudianhdh')"></el-input> <el-input type="text" v-model="qMsg.Name" class="w120" @keyup.native.enter="getCheckHotel()"
:placeholder="$t('objFill.jiudianhdh')"></el-input>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getCheckHotel()" /> <input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getCheckHotel()" />
</div> </div>
</div> </div>
<div v-loading="hotelLoading" > <div v-loading="hotelLoading">
<el-tabs type="border-card" v-if="IsShow" > <el-tabs type="border-card" v-if="IsShow">
<el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" :key="item.subCode"> <el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" :key="item.subCode">
<div class="clearfix comCheckHotel"> <div class="clearfix comCheckHotel">
<div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList"> <div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList" :key="`d_2`+index+ `s_`+subIndex">
<input :id="'H'+index+'_'+subIndex" type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)"/> <input :id="'H'+index+'_'+subIndex" type="checkbox" v-model="subItem.isChecked"
@click="getCheck(item.HotelList,subIndex)" />
<label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}} <label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}}
<template v-if="subItem.Supplier>0"> <template v-if="subItem.HotelRealName&&subItem.HotelRealName!=''">
{{subItem.SupplierName}} <font style="color:green;">{{subItem.HotelRealName}}</font>
</template> </template>
</label> </label>
<span class="cm_Inventory">{{subItem.Inventory}}</span> <span class="cm_Inventory">{{subItem.Inventory}}</span>
...@@ -87,31 +91,31 @@ ...@@ -87,31 +91,31 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<br/> <br />
<br/> <br />
<input type="button" class="normalBtn com_SaveBtn" @click="sendCkedHotel()" :value="$t('pub.saveBtn')" /> <input type="button" class="normalBtn com_SaveBtn" @click="sendCkedHotel()" :value="$t('pub.saveBtn')" />
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ["UseDate","Country"], props: ["UseDate", "Country"],
data() { data() {
return { return {
hotelLoading:false, hotelLoading: false,
dataList: [], dataList: [],
ProvinceList: [], ProvinceList: [],
qMsg:{ qMsg: {
ProvinceId: 0, //选择个省份编号 ProvinceId: 0, //选择个省份编号
Name:"",//酒店名称 Name: "", //酒店名称
}, },
IsShow:false, IsShow: false,
ckedHotel:{} ckedHotel: {}
}; };
}, },
methods: { methods: {
getCheckHotel() { getCheckHotel() {
this.hotelLoading=true; this.hotelLoading = true;
this.IsShow=false; this.IsShow = false;
this.dataList = []; this.dataList = [];
this.HotelList = []; this.HotelList = [];
this.apipost('hotel_post_GetHasStockHotelList_V2', { this.apipost('hotel_post_GetHasStockHotelList_V2', {
...@@ -120,11 +124,11 @@ ...@@ -120,11 +124,11 @@
Country: this.Country, Country: this.Country,
IsAllHotel: 1, IsAllHotel: 1,
Province: this.qMsg.ProvinceId, Province: this.qMsg.ProvinceId,
Name:this.qMsg.Name, Name: this.qMsg.Name,
sDate: this.UseDate sDate: this.UseDate
}, res => { }, res => {
this.hotelLoading=false; this.hotelLoading = false;
this.IsShow=true; this.IsShow = true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
this.dataList.forEach(x => { this.dataList.forEach(x => {
...@@ -132,6 +136,7 @@ ...@@ -132,6 +136,7 @@
y.isChecked = false; y.isChecked = false;
}) })
}) })
console.log(" this.dataList", this.dataList);
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
...@@ -151,17 +156,17 @@ ...@@ -151,17 +156,17 @@
//向父组件传递选中酒店 //向父组件传递选中酒店
sendCkedHotel() { sendCkedHotel() {
var ckHotelObj = {}; var ckHotelObj = {};
if(this.ckedHotel){ if (this.ckedHotel) {
ckHotelObj.ID = this.ckedHotel.ID; ckHotelObj.ID = this.ckedHotel.ID;
ckHotelObj.Address = this.ckedHotel.Address; ckHotelObj.Address = this.ckedHotel.Address;
ckHotelObj.Inventory = this.ckedHotel.Inventory; ckHotelObj.Inventory = this.ckedHotel.Inventory;
ckHotelObj.Name = this.ckedHotel.Name; ckHotelObj.Name = this.ckedHotel.Name;
ckHotelObj.PayStyle = this.ckedHotel.PayStyle; ckHotelObj.PayStyle = this.ckedHotel.PayStyle;
ckHotelObj.Tel = this.ckedHotel.Tel; ckHotelObj.Tel = this.ckedHotel.Tel;
ckHotelObj.RebateRatio=this.ckedHotel.RebateRatio; ckHotelObj.RebateRatio = this.ckedHotel.RebateRatio;
ckHotelObj.RebateCount=this.ckedHotel.RebateCount; ckHotelObj.RebateCount = this.ckedHotel.RebateCount;
ckHotelObj.CostPrice=this.ckedHotel.CostPrice; ckHotelObj.CostPrice = this.ckedHotel.CostPrice;
ckHotelObj.Supplier=this.ckedHotel.Supplier; ckHotelObj.Supplier = this.ckedHotel.Supplier;
} }
this.$emit("childHotel", ckHotelObj); this.$emit("childHotel", ckHotelObj);
}, },
...@@ -180,7 +185,7 @@ ...@@ -180,7 +185,7 @@
err => {} err => {}
); );
}, },
goUrl(ID){ goUrl(ID) {
this.$router.push({ this.$router.push({
path: 'HotelProductManage2', path: 'HotelProductManage2',
query: { query: {
...@@ -197,4 +202,5 @@ ...@@ -197,4 +202,5 @@
this.getProvinceList(); this.getProvinceList();
} }
}; };
</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