Commit 5f4a56bd authored by 黄奎's avatar 黄奎

11

parent bdcf956b
...@@ -435,17 +435,17 @@ ...@@ -435,17 +435,17 @@
<el-input type="text" class="w210" v-model="addMsg.CostPrice" <el-input type="text" class="w210" v-model="addMsg.CostPrice"
@keyup.native="checkPrice(addMsg,'CostPrice')"></el-input> @keyup.native="checkPrice(addMsg,'CostPrice')"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_SalesPrice')" > <el-form-item :label="$t('hotel.hotel_SalesPrice')">
<el-input type="text" class="w210" v-model="addMsg.SalesPrice" <el-input type="text" class="w210" v-model="addMsg.SalesPrice"
@keyup.native="checkPrice(addMsg,'SalesPrice')"></el-input> @keyup.native="checkPrice(addMsg,'SalesPrice')"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="resDiv"> <div class="resDiv">
<el-form-item :label="$t('hotel.hotel_B2BPrice')" > <el-form-item :label="$t('hotel.hotel_B2BPrice')">
<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')" > <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>
...@@ -466,7 +466,7 @@ ...@@ -466,7 +466,7 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="resDiv"> <div class="resDiv">
<el-form-item :label="$t('hotel.hotel_Supplier')" v-if="IsSelfBook" > <el-form-item :label="$t('hotel.hotel_Supplier')" v-if="IsSelfBook">
<el-select v-model="addMsg.Supplier" class="w210" filterable :placeholder="$t('hotel.hotel_inputholder')"> <el-select v-model="addMsg.Supplier" class="w210" filterable :placeholder="$t('hotel.hotel_inputholder')">
<el-option :label='$t("hotel.hotel_inputholder")' :value='defaultSelect'></el-option> <el-option :label='$t("hotel.hotel_inputholder")' :value='defaultSelect'></el-option>
<el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
......
...@@ -867,13 +867,13 @@ ...@@ -867,13 +867,13 @@
<el-form-item :label="$t('restaurant.res_WhetherToConfirm')"> <el-form-item :label="$t('restaurant.res_WhetherToConfirm')">
<el-switch v-model="addMsg.Sure" active-value="1" inactive-value="0"></el-switch> <el-switch v-model="addMsg.Sure" active-value="1" inactive-value="0"></el-switch>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item label="预订方式">
<el-switch v-model="isBook" active-color="#13ce66" inactive-color="#ff4949" <el-radio v-model="addMsg.IsSelfBook" :label="0">自订</el-radio>
:active-text="$t('hotel.hotel_Supplier')" :inactive-text="$t('ground.ziding')"></el-switch> <el-radio v-model="addMsg.IsSelfBook" :label="1">供应商预订</el-radio>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item label="是否推荐">
<el-switch v-model="isRecommend" active-color="#13ce66" inactive-color="#ff4949" <el-radio v-model="addMsg.IsRecommend" :label="1">推荐</el-radio>
:active-text="$t('visaT.Recommend')" :inactive-text="$t('ground.butuijian')"></el-switch> <el-radio v-model="addMsg.IsRecommend" :label="0">不推荐</el-radio>
</el-form-item> </el-form-item>
</div> </div>
<span class="resource-lititle">{{$t('hotel.hotel_imgintroduce')}}</span> <span class="resource-lititle">{{$t('hotel.hotel_imgintroduce')}}</span>
...@@ -969,8 +969,6 @@ ...@@ -969,8 +969,6 @@
inputValue: "", inputValue: "",
inputVisible2: false, inputVisible2: false,
inputValue2: "", inputValue2: "",
isBook: true,
isRecommend: true,
//下拉框默认值 //下拉框默认值
SelectDefaultValue: 0, SelectDefaultValue: 0,
//国家列表 //国家列表
...@@ -1022,19 +1020,19 @@ ...@@ -1022,19 +1020,19 @@
Lng: "", Lng: "",
Lat: "", Lat: "",
PicPath: "", PicPath: "",
IsSelfBook: "", IsSelfBook: 0,
Fax: "", Fax: "",
Country: 0, Country: 0,
Province: 0, Province: 0,
City: 0, City: 0,
DiningImageList: [], //现在的图片 DiningImageList: [], //现在的图片
DeleteImageList: [], //要删除的图片 DeleteImageList: [], //要删除的图片
IsRecommend: 0, //是否推荐 0:否,1:是 IsRecommend: 1, //是否推荐 0:否,1:是
//是否预约 //是否预约
AppointmentStyle: 0, AppointmentStyle: 0,
//支付方式 //支付方式
PayStyle: 0, PayStyle: 0,
UnitPrice:0,//餐标/人 UnitPrice: 0, //餐标/人
}, },
rules: { rules: {
//表单必填验证 //表单必填验证
...@@ -1117,7 +1115,6 @@ ...@@ -1117,7 +1115,6 @@
var item = this.DiningImageArray[index]; var item = this.DiningImageArray[index];
this.DeleteImageArray.push(item); this.DeleteImageArray.push(item);
this.DiningImageArray.splice(index, 1); this.DiningImageArray.splice(index, 1);
//this.updatePic();
}, },
addImgOpen() { addImgOpen() {
this.addimg = true; this.addimg = true;
...@@ -1142,17 +1139,6 @@ ...@@ -1142,17 +1139,6 @@
this.$viewer.show() this.$viewer.show()
}, },
saveResource() { saveResource() {
//保存餐厅信息
if (this.isBook) {
this.addMsg.IsSelfBook = 1;
} else {
this.addMsg.IsSelfBook = 0;
}
if (this.isRecommend) {
this.addMsg.IsRecommend = 1;
} else {
this.addMsg.IsRecommend = 0;
}
this.addMsg.OpenPlatform = this.openplatString.toString(); this.addMsg.OpenPlatform = this.openplatString.toString();
if (this.ID != "undefined") { if (this.ID != "undefined") {
this.addMsg.ID = this.ID; this.addMsg.ID = this.ID;
...@@ -1254,8 +1240,6 @@ ...@@ -1254,8 +1240,6 @@
this.Geographic = res.data.data.GeographicTag.split(","); this.Geographic = res.data.data.GeographicTag.split(",");
} }
this.addMsg.Sure = res.data.data.Sure.toString(); this.addMsg.Sure = res.data.data.Sure.toString();
this.isBook = this.addMsg.IsSelfBook;
this.isRecommend = this.addMsg.IsRecommend;
res.data.data.PicPath.split(",").forEach(x => { res.data.data.PicPath.split(",").forEach(x => {
if (x != "") { if (x != "") {
var obj = this.$DMCUtils.DMCImageObj(); var obj = this.$DMCUtils.DMCImageObj();
......
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