Commit 269b909b authored by 黄奎's avatar 黄奎

页面修改

parent 3d8128d8
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
.Gnhotel_Right { .Gnhotel_Right {
float: left; float: left;
width:600px; width: 600px;
} }
.InnerHotelDiv { .InnerHotelDiv {
...@@ -29,16 +29,18 @@ ...@@ -29,16 +29,18 @@
.InnerHoImgDiv { .InnerHoImgDiv {
width: 100px; width: 100px;
height: 100px; height: 100px;
margin:0 5px 5px 0; margin: 0 5px 5px 0;
} }
.InnerHoImgDiv img { .InnerHoImgDiv img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.changInfo .el-form-item__error{
left:0; .changInfo .el-form-item__error {
left: 0;
} }
</style> </style>
<template> <template>
<div class="flexOne changInfo"> <div class="flexOne changInfo">
...@@ -58,6 +60,13 @@ ...@@ -58,6 +60,13 @@
<el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300" <el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300"
placeholder="请填写酒店名称:xx酒店"></el-input> placeholder="请填写酒店名称:xx酒店"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="供应商">
<el-select v-model="addMsg.HSupplierId" class='multiple_input w300' multiple placeholder="请选择供应商">
<el-option v-for="item in dropdownObj.SupplierList" :key="item.ID" :label="item.Name"
:value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_openplatform')"> <el-form-item :label="$t('hotel.hotel_openplatform')">
<el-select v-model="chooseObj.openplatString" class='multiple_input w300' multiple <el-select v-model="chooseObj.openplatString" class='multiple_input w300' multiple
placeholder="请选择开放平台"> placeholder="请选择开放平台">
...@@ -102,7 +111,8 @@ ...@@ -102,7 +111,8 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_detailinfo')"> <el-form-item :label="$t('hotel.hotel_detailinfo')">
<el-input type="text" class="w300" v-model="addMsg.Address" size="small" placeholder="例如:四川省成都市锦江区阳光新业中心"> <el-input type="text" class="w300" v-model="addMsg.Address" size="small"
placeholder="例如:四川省成都市锦江区阳光新业中心">
<el-button slot="append" @click="getMapShow">地图</el-button> <el-button slot="append" @click="getMapShow">地图</el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -120,7 +130,8 @@ ...@@ -120,7 +130,8 @@
</div> </div>
</div> </div>
<el-form-item label="地址说明"> <el-form-item label="地址说明">
<el-input type="text" class="w300" v-model="addMsg.AddressDes" size="small" placeholder="例如:距离XX2公里,步行大约需要10分钟."> <el-input type="text" class="w300" v-model="addMsg.AddressDes" size="small"
placeholder="例如:距离XX2公里,步行大约需要10分钟.">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="标签"> <el-form-item label="标签">
...@@ -164,7 +175,8 @@ ...@@ -164,7 +175,8 @@
<el-input placeholder="2017年装修" class="w300" v-model="addMsg.HotelInfo.DecorationTime"></el-input> <el-input placeholder="2017年装修" class="w300" v-model="addMsg.HotelInfo.DecorationTime"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="房间数量"> <el-form-item label="房间数量">
<el-input placeholder="房间数量" class="w300" @keyup.native="checkInteger(addMsg,'RoomNumber')" v-model="addMsg.RoomNumber"></el-input> <el-input placeholder="房间数量" class="w300" @keyup.native="checkInteger(addMsg,'RoomNumber')"
v-model="addMsg.RoomNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系方式"> <el-form-item label="联系方式">
<el-input placeholder="联系方式" class="w300" v-model="addMsg.Tel"></el-input> <el-input placeholder="联系方式" class="w300" v-model="addMsg.Tel"></el-input>
...@@ -218,10 +230,10 @@ ...@@ -218,10 +230,10 @@
<el-button type="primary" @click="addTraffic()" title="添加交通" style="float:right;margin:-53px 165px 50px 0" <el-button type="primary" @click="addTraffic()" title="添加交通" style="float:right;margin:-53px 165px 50px 0"
icon="el-icon-plus" circle></el-button> icon="el-icon-plus" circle></el-button>
<div style="margin-top:60px;"> <div style="margin-top:60px;">
<div v-for="(item,index) in addMsg.TrafficInfo" :key="index" style="position:relative;margin-bottom:20px;"> <div v-for="(item,index) in addMsg.TrafficInfo" :key="index"
style="position:relative;margin-bottom:20px;">
<el-form-item label="地点名称"> <el-form-item label="地点名称">
<el-input type="text" v-model="item.TTitle" class="w400" <el-input type="text" v-model="item.TTitle" class="w400" placeholder="比如:牛王庙地铁站">
placeholder="比如:牛王庙地铁站">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="地点介绍"> <el-form-item label="地点介绍">
...@@ -248,7 +260,8 @@ ...@@ -248,7 +260,8 @@
</el-dialog> </el-dialog>
<div class="btn-list"> <div class="btn-list">
<span class="common-lefttit"></span> <span class="common-lefttit"></span>
<button @click="submitForm('addMsg')" style="width:80px;" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}" <button @click="submitForm('addMsg')" style="width:80px;"
:class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled='isDisable'>{{comBtnText}}</button> :disabled='isDisable'>{{comBtnText}}</button>
<button class="cancel-Btn" @click="goUrl('GnHotelManagement')">{{$t('pub.cancelBtn')}}</button> <button class="cancel-Btn" @click="goUrl('GnHotelManagement')">{{$t('pub.cancelBtn')}}</button>
</div> </div>
...@@ -264,13 +277,12 @@ ...@@ -264,13 +277,12 @@
export default { export default {
data() { data() {
let validateStar = (rule, value, callback) => { let validateStar = (rule, value, callback) => {
if (this.addMsg.Star ==0) { if (this.addMsg.Star == 0) {
return callback(new Error('请选择星级')); return callback(new Error('请选择星级'));
} else { } else {
callback(); callback();
} }
} }
return { return {
imageOptions: { imageOptions: {
navbar: false, navbar: false,
...@@ -350,10 +362,10 @@ ...@@ -350,10 +362,10 @@
IsSelfBook: "", IsSelfBook: "",
IsUseDinner: "0", IsUseDinner: "0",
UseDinnerType: "", UseDinnerType: "",
Country: 2, Country: 0,
Province: 261, Province: 0,
City: 5571, City: 0,
District:5572, District: 0,
//是否预约 //是否预约
AppointmentStyle: 0, AppointmentStyle: 0,
//支付方式 //支付方式
...@@ -379,10 +391,11 @@ ...@@ -379,10 +391,11 @@
DecorationTime: "", //装修时间 DecorationTime: "", //装修时间
Into: "", //酒店介绍 Into: "", //酒店介绍
}, },
AddressDes: '' //地址说明 AddressDes: '', //地址说明
HSupplierId: 0, //供应商编号
}, },
isDisable: false, isDisable: false,
comBtnText:'保存', comBtnText: '保存',
//酒店图片 //酒店图片
HotelImgArr: [], HotelImgArr: [],
//酒店标签列表 //酒店标签列表
...@@ -408,6 +421,7 @@ ...@@ -408,6 +421,7 @@
isShowHotelImg: false, isShowHotelImg: false,
checkedRoom: [], checkedRoom: [],
HotelActive: 1, // HotelActive: 1, //
}; };
}, },
components: { components: {
...@@ -416,6 +430,8 @@ ...@@ -416,6 +430,8 @@
comImgList: comImgList comImgList: comImgList
}, },
methods: { methods: {
//获取酒店供应商
//获取子组件新增分类和图片 //获取子组件新增分类和图片
getHotelImg(data) { getHotelImg(data) {
this.addMsg.InnerHotelImaList = data; this.addMsg.InnerHotelImaList = data;
...@@ -478,14 +494,14 @@ ...@@ -478,14 +494,14 @@
inited(viewer) { inited(viewer) {
this.$viewer = viewer this.$viewer = viewer
}, },
showImg(src){ showImg(src) {
src = src.indexOf('http') != -1 ? src : this.domainManager().ViittoFileUrl + src; src = src.indexOf('http') != -1 ? src : this.domainManager().ViittoFileUrl + src;
let isExsit=false let isExsit = false
this.images.forEach(x=>{ this.images.forEach(x => {
if(x==src) if (x == src)
isExsit=true isExsit = true
}) })
if(!isExsit) { if (!isExsit) {
this.images.push(src) this.images.push(src)
} else { } else {
this.$viewer.view(this.images.indexOf(src)) this.$viewer.view(this.images.indexOf(src))
...@@ -690,7 +706,7 @@ ...@@ -690,7 +706,7 @@
if (isClear != 1) { if (isClear != 1) {
this.addMsg.City = 0; this.addMsg.City = 0;
} }
} else if(type==3){ } else if (type == 3) {
if (isClear != 1) { if (isClear != 1) {
this.addMsg.District = 0; this.addMsg.District = 0;
} }
...@@ -701,7 +717,7 @@ ...@@ -701,7 +717,7 @@
this.dropdownObj.ProvinceList = res.data.data; this.dropdownObj.ProvinceList = res.data.data;
} else if (type == 2) { } else if (type == 2) {
this.dropdownObj.CityList = res.data.data; this.dropdownObj.CityList = res.data.data;
} else if(type==3){ } else if (type == 3) {
this.dropdownObj.DistrictList = res.data.data; this.dropdownObj.DistrictList = res.data.data;
} }
}); });
...@@ -747,22 +763,20 @@ ...@@ -747,22 +763,20 @@
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
//有权限操作的部门
if (userInfo.RB_Department_Id == 240 || userInfo.RB_Department_Id == 1 || userInfo.RB_Department_Id == 3 ||
userInfo.RB_Branch_id == 49) {
this.IsHaveAuth = 1; this.IsHaveAuth = 1;
}
if (this.$route.query && this.$route.query.id) { if (this.$route.query && this.$route.query.id) {
this.hotelID = this.$route.query.id; this.hotelID = this.$route.query.id;
} }
this.getHotelConfig(); this.getHotelConfig();
this.initStarAndPlatform(); //初始化星级和开放平台 this.initStarAndPlatform(); //初始化星级和开放平台
this.getSuplier(); //初始化供应商 this.getSuplier(); //初始化供应商
this.GetSubAreaList(this.addMsg.Country, 1, 1); this.GetSubAreaList(this.addMsg.Country, 1, 1);
if(this.addMsg.Province>0){ if (this.addMsg.Province > 0) {
this.GetSubAreaList(this.addMsg.Province, 2, 1); this.GetSubAreaList(this.addMsg.Province, 2, 1);
} }
if(this.addMsg.City>0){ if (this.addMsg.City > 0) {
this.GetSubAreaList(this.addMsg.City, 3, 1); this.GetSubAreaList(this.addMsg.City, 3, 1);
} }
if (this.hotelID > 0) { if (this.hotelID > 0) {
......
...@@ -1039,21 +1039,22 @@ ...@@ -1039,21 +1039,22 @@
}, },
//添加 //添加
addGroupGuide() { addGroupGuide() {
var that=this;
this.apipost( this.apipost(
"leader_post_Set", "leader_post_Set",
this.addMsg, that.addMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.success(this.$t('tips.saveYes')); that.Success(that.$t('tips.saveYes'));
this.getList(); that.getList();
this.outerVisible = false; that.outerVisible = false;
this.initAddMsg(); that.initAddMsg();
if (res.data.data.PassWord) { if (res.data.data.PassWord) {
this.regMsgVisible = true; that.regMsgVisible = true;
this.regMsg = res.data.data; that.regMsg = res.data.data;
} }
} else { } else {
this.Error(res.data.message); that.Error(res.data.message);
} }
}, },
err => {} err => {}
......
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