Commit 44e02d27 authored by 黄奎's avatar 黄奎

页面修改

parent 59e1be3e
...@@ -119,7 +119,6 @@ ...@@ -119,7 +119,6 @@
<label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}}</label> <label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}}</label>
<span class="cm_Inventory">{{subItem.Inventory}}</span> <span class="cm_Inventory">{{subItem.Inventory}}</span>
<span class="cm_Inventory">剩余:{{subItem.RemainingInventory}}</span> <span class="cm_Inventory">剩余:{{subItem.RemainingInventory}}</span>
<span class="ck_goUrl" @click="goUrl(subItem.ID)">新增库存</span>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -128,15 +127,16 @@ ...@@ -128,15 +127,16 @@
<table v-loading="loading" > <table v-loading="loading" >
<thead> <thead>
<tr> <tr>
<th>选择</th> <th style="width:70px">选择</th>
<th>酒店名称</th> <th style="width:200px">酒店名称</th>
<th>价格</th> <th style="width:100px">价格</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="item in ThirdHotelList"> <tr v-for="(item,index) in ThirdHotelList">
<td width="50"> <td width="50">
<input :id="item.hotelId" type="checkbox" /> <input :id="item.hotelId" type="checkbox" v-model="item.isChecked"
@click="getCheck(ThirdHotelList,index)" />
</td> </td>
<td width="150">{{item.hotelName}}</td> <td width="150">{{item.hotelName}}</td>
<td width="150">{{item.lowrateTotal}}</td> <td width="150">{{item.lowrateTotal}}</td>
...@@ -206,8 +206,7 @@ ...@@ -206,8 +206,7 @@
}, },
methods: { methods: {
getCheckHotel() { getCheckHotel() {
this.loading = true;
this.IsShow = false;
this.dataList = []; this.dataList = [];
this.HotelList = []; this.HotelList = [];
this.ThirdHotelList=[]; this.ThirdHotelList=[];
...@@ -222,6 +221,8 @@ ...@@ -222,6 +221,8 @@
}, },
//查询地接酒店 //查询地接酒店
GetDMCHotelList() { GetDMCHotelList() {
this.loading = true;
this.IsShow = false;
this.apipost('hotel_post_GetHasStockHotelList_V2', { this.apipost('hotel_post_GetHasStockHotelList_V2', {
//1-只查询有库存的酒店 //1-只查询有库存的酒店
IsMoreThanZero: 0, IsMoreThanZero: 0,
...@@ -229,7 +230,8 @@ ...@@ -229,7 +230,8 @@
IsAllHotel: 1, IsAllHotel: 1,
Province: this.qMsg.ProvinceId, Province: this.qMsg.ProvinceId,
Name: this.qMsg.Name, Name: this.qMsg.Name,
sDate: this.qMsg.UseDate sDate: this.qMsg.UseDate,
IsGetPic:true,//获取图片
}, res => { }, res => {
this.loading = false; this.loading = false;
this.IsShow = true; this.IsShow = true;
...@@ -247,7 +249,10 @@ ...@@ -247,7 +249,10 @@
}, },
//查询第三方酒店 //查询第三方酒店
GetThirdHotelList() { GetThirdHotelList() {
this.loading = true;
this.IsShow = false;
this.thirdHotelMsg.arrivalDate=this.qMsg.UseDate; this.thirdHotelMsg.arrivalDate=this.qMsg.UseDate;
this.ThirdHotelList=[];
if (this.thirdHotelMsg.arrivalDate == "") { if (this.thirdHotelMsg.arrivalDate == "") {
this.Info("请选择入住时间!"); this.Info("请选择入住时间!");
return; return;
...@@ -282,7 +287,14 @@ ...@@ -282,7 +287,14 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//总条数 //总条数
this.thirdHotelMsg.numberOfResultMatched = Number(res.data.data.numberOfResultMatched); this.thirdHotelMsg.numberOfResultMatched = Number(res.data.data.numberOfResultMatched);
this.ThirdHotelList = res.data.data.hotelSummary; var newArray= res.data.data.hotelSummary;
if(newArray!=null && newArray.length>0)
{
newArray.forEach(item=>{
item.isChecked=false;
});
}
this.ThirdHotelList =newArray;
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
...@@ -308,17 +320,27 @@ ...@@ -308,17 +320,27 @@
sendCkedHotel() { sendCkedHotel() {
var ckHotelObj = {}; var ckHotelObj = {};
if (this.ckedHotel) { if (this.ckedHotel) {
ckHotelObj.ID = this.ckedHotel.ID; //地接酒店
ckHotelObj.Address = this.ckedHotel.Address; if(this.qHotelType==1)
ckHotelObj.Inventory = this.ckedHotel.Inventory; {
ckHotelObj.Name = this.ckedHotel.Name; ckHotelObj.HotelId = this.ckedHotel.ID;
ckHotelObj.PayStyle = this.ckedHotel.PayStyle; ckHotelObj.HotelName = this.ckedHotel.Name;
ckHotelObj.Tel = this.ckedHotel.Tel; ckHotelObj.Description=this.ckedHotel.Descriptions;
ckHotelObj.RebateRatio = this.ckedHotel.RebateRatio; ckHotelObj.HotelProvideType=1;
ckHotelObj.RebateCount = this.ckedHotel.RebateCount; ckHotelObj.imgList=this.ckedHotel.ImgList;
ckHotelObj.CostPrice = this.ckedHotel.CostPrice; }
//第三方酒店
else if(this.qHotelType==2)
{
ckHotelObj.HotelId = this.ckedHotel.hotelId;
ckHotelObj.HotelName = this.ckedHotel.hotelName;
ckHotelObj.imgList=[];
ckHotelObj.imgList.push({Name:this.ckedHotel.hotelName,Url:this.ckedHotel.hotelImageUrl});
ckHotelObj.Description=this.ckedHotel.hotelDescription;
ckHotelObj.HotelProvideType=2;
}
} }
this.$emit("childHotel", ckHotelObj); this.$emit("childHotelChange", ckHotelObj);
}, },
//获取日本下面的市->下拉框用 //获取日本下面的市->下拉框用
getProvinceList() { getProvinceList() {
...@@ -335,22 +357,9 @@ ...@@ -335,22 +357,9 @@
err => {} err => {}
); );
}, },
goUrl(ID) {
this.$router.push({
path: 'HotelProductManage2',
query: {
id: ID,
Country: 651,
IsSelfBook: 1,
blank: 'y',
tab: '报价详情'
}
});
}
}, },
mounted() { mounted() {
this.getProvinceList(); this.getProvinceList();
} }
}; };
</script>
</script> \ No newline at end of file
...@@ -109,11 +109,11 @@ ...@@ -109,11 +109,11 @@
<span v-if="IsDirect==1"> <span v-if="IsDirect==1">
<hotelTrip v-bind:subItemObj="subItem" v-bind:DefaultList="hotelSameList" v-bind:subIndex="subIndex" <hotelTrip v-bind:subItemObj="subItem" v-bind:DefaultList="hotelSameList" v-bind:subIndex="subIndex"
v-bind:DinnerList="DinnerList" v-bind:index="index" :isOpenGroup="isOpenGroup" v-bind:DinnerList="DinnerList" v-bind:index="index" :isOpenGroup="isOpenGroup"
v-bind:subTotalIndex="item.dayArray.length" ></hotelTrip> v-bind:subTotalIndex="item.dayArray.length"></hotelTrip>
<!---->
<hotelTripV2 v-bind:subItemObj="subItem" v-bind:DefaultList="hotelSameList" v-bind:subIndex="subIndex" <hotelTripV2 v-bind:subItemObj="subItem" v-bind:DefaultList="hotelSameList" v-bind:subIndex="subIndex"
v-bind:DinnerList="DinnerList" v-bind:index="index" :isOpenGroup="isOpenGroup" v-bind:DinnerList="DinnerList" v-bind:index="index" :isOpenGroup="isOpenGroup"
v-bind:subTotalIndex="item.dayArray.length" style="display:none;"></hotelTripV2> v-bind:subTotalIndex="item.dayArray.length" style="display:none;"></hotelTripV2>
</span> </span>
<span v-else> <span v-else>
</span> </span>
......
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