Commit cc63b439 authored by 黄奎's avatar 黄奎

餐厅新增调整

parent 160399ed
...@@ -696,6 +696,13 @@ ...@@ -696,6 +696,13 @@
<template slot="append">/人</template> <template slot="append">/人</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="适用类型">
<el-select placeholder="适用类型" v-model="addMsg.UseTypeList" multiple class='multiple_input w300'>
<el-option v-for="childItem in DiningUseTypeList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_website')"> <el-form-item :label="$t('hotel.hotel_website')">
<div> <div>
<span class="resource-net"> <span class="resource-net">
...@@ -1033,7 +1040,10 @@ ...@@ -1033,7 +1040,10 @@
//支付方式 //支付方式
PayStyle: 0, PayStyle: 0,
UnitPrice: 0, //餐标/人 UnitPrice: 0, //餐标/人
UseType: 0, //适用类型字符串
UseTypeList: [], //适用类型
}, },
DiningUseTypeList: [],
rules: { rules: {
//表单必填验证 //表单必填验证
Name: [{ Name: [{
...@@ -1456,6 +1466,18 @@ ...@@ -1456,6 +1466,18 @@
err => {} err => {}
); );
}, },
//获取餐厅适用类型列表
GetDiningUseTypeList() {
this.apipost(
"dining_get_GetDiningUseType", {},
res => {
if (res.data.resultCode == 1) {
this.DiningUseTypeList = res.data.data;
}
},
err => {}
);
},
//图片左移右移 //图片左移右移
ExchangeImg(index, IsMove) { ExchangeImg(index, IsMove) {
var imgItem = this.DiningImageArray[index]; var imgItem = this.DiningImageArray[index];
...@@ -1482,6 +1504,7 @@ ...@@ -1482,6 +1504,7 @@
userInfo.RB_Branch_id == 49) { userInfo.RB_Branch_id == 49) {
this.IsHaveAuth = 1; this.IsHaveAuth = 1;
} }
this.GetDiningUseTypeList();
this.GetPayList(); this.GetPayList();
this.GetDiningTypeList(); this.GetDiningTypeList();
this.GetDiningPriceTypeList(); this.GetDiningPriceTypeList();
......
...@@ -79,6 +79,18 @@ ...@@ -79,6 +79,18 @@
margin-top: 5px; margin-top: 5px;
} }
.restaurantList .F1 {
color: #e95252;
}
.restaurantList .F2 {
color: #47bf8c;
}
.restaurantList .F3 {
color: #00c6ff;
}
.restaurantList .starSu { .restaurantList .starSu {
position: absolute; position: absolute;
bottom: 8px; bottom: 8px;
...@@ -339,13 +351,23 @@ ...@@ -339,13 +351,23 @@
<div class="hotelTitle fz12">{{item.Name}}</div> <div class="hotelTitle fz12">{{item.Name}}</div>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.RealName" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" :content="item.RealName" placement="top-start" popper-class="max-w250">
<div class="hotelTitle fz12">{{$t('ground.zhenshimingcheng')}}: {{item.RealName}}</div> <div class="hotelTitle fz12">{{$t('ground.zhenshimingcheng')}}:<font class="F1">{{item.RealName}}</font>
</div>
</el-tooltip> </el-tooltip>
<div class="brandList clearfix"> <el-tooltip class="item" effect="dark" :content="item.UseTypeListStr" placement="top-start"
popper-class="max-w250">
<div class="hotelTitle">适用类型:<font class="F2" v-for="(subItem,subIndex) in item.UseTypeList"
:key="`ut_`+index+subIndex">
{{subItem}}
</font>
</div>
</el-tooltip>
<div class="hotelTitle fz12">最低餐标: <font class="F3">{{item.MinDinnerPrice>0?item.MinDinnerPrice:"/"}}</font>
</div>
<!-- <div class="brandList clearfix">
<div class="brand"> <div class="brand">
<span class="SupportCount">{{item.SupportCount}}</span> <span class="SupportCount">{{item.UseTypeList}}</span>
{{$t('hotel.hotel_people')}} <div></div>
<div>{{$t('restaurant.res_bookCapacity')}}</div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class="dayNum"> <div class="dayNum">
...@@ -353,12 +375,11 @@ ...@@ -353,12 +375,11 @@
{{$t('hotel.hotel_people')}} {{$t('hotel.hotel_people')}}
<div>最低餐标</div> <div>最低餐标</div>
</div> </div>
</div> </div> -->
<div style="padding:0 0 15px 15px;margin-top: -5px;"> <div style="padding:0 0 15px 15px;margin-top: 5px;">
<i class="iconfont icon-renyuanguanli"></i> <i class="iconfont icon-renyuanguanli"></i>
<span v-if="item.UpdateName && item.UpdateName!=''">{{item.UpdateName}}</span> <span v-if="item.UpdateName && item.UpdateName!=''">{{item.UpdateName}}</span>
{{item.UpdateTimeStr}} {{item.UpdateTimeStr}}
</div> </div>
<div class="btnList"> <div class="btnList">
<button @click="goSubInfo('restaurantInfoManage',item.ID)" class="hotelBtn">{{$t('pub.updateMsg')}}</button> <button @click="goSubInfo('restaurantInfoManage',item.ID)" class="hotelBtn">{{$t('pub.updateMsg')}}</button>
......
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