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

11

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