Commit 2155010b authored by zhengke's avatar zhengke

修改

parent 708c7e9a
...@@ -84,13 +84,23 @@ ...@@ -84,13 +84,23 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_city')"> <el-form-item :label="$t('hotel.hotel_city')">
<el-select placeholder="请选择所属城市" filterable class='multiple_input w300' v-model="addMsg.City"> <el-select placeholder="请选择所属城市" filterable class='multiple_input w300' v-model="addMsg.City"
@change="GetSubAreaList(addMsg.City,3)">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in dropdownObj.CityList" :key="childItem.ID" :label="childItem.Name" <el-option v-for="childItem in dropdownObj.CityList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID"> :value="childItem.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="区/县">
<el-select placeholder="请选择所属地区" filterable class='multiple_input w300' v-model="addMsg.District">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in dropdownObj.DistrictList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option>
</el-select>
</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>
...@@ -290,6 +300,7 @@ ...@@ -290,6 +300,7 @@
openplatformList: [], //开放平台列表 openplatformList: [], //开放平台列表
ProvinceList: [], //省份列表 ProvinceList: [], //省份列表
CityList: [], //城市列表 CityList: [], //城市列表
DistrictList: [] //区列表
}, },
//选中对象 //选中对象
chooseObj: { chooseObj: {
...@@ -339,8 +350,9 @@ ...@@ -339,8 +350,9 @@
IsUseDinner: "0", IsUseDinner: "0",
UseDinnerType: "", UseDinnerType: "",
Country: 2, Country: 2,
Province: 0, Province: 261,
City: 0, City: 5571,
District:5572,
//是否预约 //是否预约
AppointmentStyle: 0, AppointmentStyle: 0,
//支付方式 //支付方式
...@@ -532,6 +544,7 @@ ...@@ -532,6 +544,7 @@
_self.addMsg.Country = tempMsg.Country; _self.addMsg.Country = tempMsg.Country;
_self.addMsg.Province = tempMsg.Province; _self.addMsg.Province = tempMsg.Province;
_self.addMsg.City = tempMsg.City; _self.addMsg.City = tempMsg.City;
_self.addMsg.District = tempMsg.District;
_self.addMsg.Address = tempMsg.Address; _self.addMsg.Address = tempMsg.Address;
_self.addMsg.Lng = tempMsg.Lng; _self.addMsg.Lng = tempMsg.Lng;
_self.addMsg.Lat = tempMsg.Lat; _self.addMsg.Lat = tempMsg.Lat;
...@@ -572,6 +585,10 @@ ...@@ -572,6 +585,10 @@
if (_self.addMsg.Province > 0) { if (_self.addMsg.Province > 0) {
this.GetSubAreaList(_self.addMsg.Province, 2, 1); this.GetSubAreaList(_self.addMsg.Province, 2, 1);
} }
if (_self.addMsg.City > 0) {
this.GetSubAreaList(_self.addMsg.City, 3, 1);
}
if (tempMsg.OpenPlatformList && tempMsg.OpenPlatformList.length > 0) { if (tempMsg.OpenPlatformList && tempMsg.OpenPlatformList.length > 0) {
this.chooseObj.openplatString = tempMsg.OpenPlatformList; this.chooseObj.openplatString = tempMsg.OpenPlatformList;
} }
...@@ -668,6 +685,10 @@ ...@@ -668,6 +685,10 @@
if (isClear != 1) { if (isClear != 1) {
this.addMsg.City = 0; this.addMsg.City = 0;
} }
} else if(type==3){
if (isClear != 1) {
this.addMsg.District = 0;
}
} }
if (this.addMsg.Country != 0) { if (this.addMsg.Country != 0) {
this.apipost("dict_post_Destination_GetChildList", msg, res => { this.apipost("dict_post_Destination_GetChildList", msg, res => {
...@@ -675,6 +696,9 @@ ...@@ -675,6 +696,9 @@
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){
this.dropdownObj.DistrictList = res.data.data;
console.log(res.data.data,'res.data.data');
} }
}); });
} }
...@@ -731,6 +755,12 @@ ...@@ -731,6 +755,12 @@
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){
this.GetSubAreaList(this.addMsg.Province, 2, 1);
}
if(this.addMsg.City>0){
this.GetSubAreaList(this.addMsg.City, 3, 1);
}
if (this.hotelID > 0) { if (this.hotelID > 0) {
this.initHotelData(); this.initHotelData();
} }
......
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
<el-input type="text" class="w210" v-model="addMsg.B2BPrice" <el-input type="text" class="w210" v-model="addMsg.B2BPrice"
@keyup.native="checkPrice(addMsg,'B2BPrice')"></el-input> @keyup.native="checkPrice(addMsg,'B2BPrice')"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_B2CPrice')" prop="B2CPrice"> <el-form-item :label="$t('hotel.hotel_B2CPrice')">
<el-input type="text" class="w210" v-model="addMsg.B2CPrice" <el-input type="text" class="w210" v-model="addMsg.B2CPrice"
@keyup.native="checkPrice(addMsg,'B2CPrice')"></el-input> @keyup.native="checkPrice(addMsg,'B2CPrice')"></el-input>
</el-form-item> </el-form-item>
...@@ -543,11 +543,11 @@ ...@@ -543,11 +543,11 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="resDiv RemarkDiv"> <!-- <div class="resDiv RemarkDiv">
<el-form-item :label="$t('hotel.hotel_remark')" prop="Remark"> <el-form-item :label="$t('hotel.hotel_remark')" prop="Remark">
<el-input type="textarea" class="w300" v-model="addMsg.Remark"></el-input> <el-input type="textarea" class="w300" v-model="addMsg.Remark"></el-input>
</el-form-item> </el-form-item>
</div> </div> -->
</el-form> </el-form>
<div class="noticeInfo"> <div class="noticeInfo">
<div>{{$t('hotel.hotel_attention')}}</div> <div>{{$t('hotel.hotel_attention')}}</div>
...@@ -604,7 +604,7 @@ ...@@ -604,7 +604,7 @@
Supplier: "", Supplier: "",
Inventory: "", Inventory: "",
B2BPrice: "", B2BPrice: "",
B2CPrice: "", B2CPrice: 0,
SalesPrice: "", SalesPrice: "",
DMCPrice: 0, DMCPrice: 0,
DateList: "", DateList: "",
...@@ -647,16 +647,16 @@ ...@@ -647,16 +647,16 @@
message: this.$t('ground.qingshurlwxs') message: this.$t('ground.qingshurlwxs')
} }
], ],
B2CPrice: [{ // B2CPrice: [{
required: true, // required: true,
message: this.$t('ground.qingshuruB2Cjg'), // message: this.$t('ground.qingshuruB2Cjg'),
trigger: "change" // trigger: "change"
}, // },
{ // {
pattern: this.$commonUtils.Regex.el_Isdecimal, // pattern: this.$commonUtils.Regex.el_Isdecimal,
message: this.$t('ground.qingshurlwxs') // message: this.$t('ground.qingshurlwxs')
} // }
], // ],
SalesPrice: [{ SalesPrice: [{
required: true, required: true,
message: this.$t('ground.qingshurnbjg'), message: this.$t('ground.qingshurnbjg'),
......
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