Commit d1f163c0 authored by zhengke's avatar zhengke

修改增加链接

parent 0cef192f
<style> <style>
.comCheckHotel>div { .comCheckHotel .comCheckHotel {
width: 100%; width: 100%;
height: 150px; height: 150px;
overflow: auto overflow: auto
} }
.comCk_list { .comCheckHotel .comCk_list {
cursor: pointer;
padding: 0 20px; padding: 0 20px;
margin: 0 15px 5px 0; margin: 0 15px 5px 0;
} }
.cm_Inventory { .comCheckHotel .cm_Inventory {
margin-left: 20px; margin-left: 20px;
color: red; color: red;
display: inline-block; display: inline-block;
} }
.cm_hotelTitle { .comCheckHotel .cm_hotelTitle {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
...@@ -26,15 +25,15 @@ ...@@ -26,15 +25,15 @@
padding: 0 20px 10px 20px; padding: 0 20px 10px 20px;
} }
.com_SaveBtn { .comCheckHotel .com_SaveBtn {
margin: 10px 20px 0 45%; margin: 10px 20px 0 45%;
} }
.ckedList { .comCheckHotel .ckedList {
background-color: #E95252; background-color: #E95252;
color: #fff; color: #fff;
} }
.Ck_hotelInfo{ .comCheckHotel .Ck_hotelInfo{
width:100%; width:100%;
height:40px; height:40px;
background-color: #F6F8FB; background-color: #F6F8FB;
...@@ -42,10 +41,15 @@ ...@@ -42,10 +41,15 @@
line-height: 40px; line-height: 40px;
margin-bottom:10px; margin-bottom:10px;
} }
.comCheckHotel .ck_goUrl{
color:blue;
cursor: pointer;
margin-left:10px;
}
</style> </style>
<template> <template>
<div> <div class="comCheckHotel">
<div class="Ck_hotelInfo"> <div class="Ck_hotelInfo">
<span style="color:red">{{UseDate}}</span> 酒店库存信息 <span style="color:red">{{UseDate}}</span> 酒店库存信息
</div> </div>
...@@ -61,13 +65,11 @@ ...@@ -61,13 +65,11 @@
<el-tabs type="border-card" v-loading="loading" v-if="IsShow" > <el-tabs type="border-card" v-loading="loading" v-if="IsShow" >
<el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" > <el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" >
<div class="clearfix comCheckHotel"> <div class="clearfix comCheckHotel">
<div>
<div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList"> <div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList">
<input type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)" <input type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)"/>
style="" />
{{subItem.Name}}<span class="cm_Inventory">{{subItem.Inventory}}</span> {{subItem.Name}}<span class="cm_Inventory">{{subItem.Inventory}}</span>
<span class="ck_goUrl" @click="goUrl(subItem.ID)">新增库存</span>
</div> </div>
</div>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -85,6 +87,7 @@ ...@@ -85,6 +87,7 @@
ProvinceList: [], ProvinceList: [],
ProvinceId: 0, //选择个省份编号 ProvinceId: 0, //选择个省份编号
IsShow:false, IsShow:false,
ckedHotel:{}
}; };
}, },
methods: { methods: {
...@@ -119,6 +122,7 @@ ...@@ -119,6 +122,7 @@
hotelList.forEach((x, subIndex) => { hotelList.forEach((x, subIndex) => {
if (index == subIndex) { if (index == subIndex) {
x.isChecked = !x.isChecked; x.isChecked = !x.isChecked;
this.ckedHotel = x;
} else { } else {
x.isChecked = false; x.isChecked = false;
} }
...@@ -128,18 +132,14 @@ ...@@ -128,18 +132,14 @@
//向父组件传递选中酒店 //向父组件传递选中酒店
sendCkedHotel() { sendCkedHotel() {
var ckHotelObj = {}; var ckHotelObj = {};
this.dataList.forEach((x, index) => { if(this.ckedHotel){
x.HotelList.forEach(subItem => { ckHotelObj.ID = this.ckedHotel.ID;
if (subItem.isChecked) { ckHotelObj.Address = this.ckedHotel.Address;
ckHotelObj.ID = subItem.ID; ckHotelObj.Inventory = this.ckedHotel.Inventory;
ckHotelObj.Address = subItem.Address; ckHotelObj.Name = this.ckedHotel.Name;
ckHotelObj.Inventory = subItem.Inventory; ckHotelObj.PayStyle = this.ckedHotel.PayStyle;
ckHotelObj.Name = subItem.Name; ckHotelObj.Tel = this.ckedHotel.Tel;
ckHotelObj.PayStyle = subItem.PayStyle; }
ckHotelObj.Tel = subItem.Tel;
}
});
})
this.$emit("childHotel", ckHotelObj); this.$emit("childHotel", ckHotelObj);
}, },
//获取日本下面的市->下拉框用 //获取日本下面的市->下拉框用
...@@ -157,6 +157,19 @@ ...@@ -157,6 +157,19 @@
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();
......
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