Commit 7dff8461 authored by 黄奎's avatar 黄奎

新增餐标字段

parent 69ddb3b6
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
<input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" <input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)"
:disabled="IsDisabled" /> :disabled="IsDisabled" />
<input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;" <input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;"
:value="$t('ground.baocuncaogao')" @click="saveList(1)" :disabled="IsDisabled" /> :value="$t('ground.baocuncaogao')" @click="saveList()" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span> <span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span>
<input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" <input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30"
:value="$t('pub.saveBtn')" @click="saveList(1)" /> :value="$t('pub.saveBtn')" @click="saveList()" />
</template> </template>
</li> </li>
</ul> </ul>
...@@ -215,6 +215,18 @@ ...@@ -215,6 +215,18 @@
</el-select> </el-select>
</td> </td>
</tr> </tr>
<tr>
<td width="60" style="text-align:right;">
订餐状态:
</td>
<td style="text-align:left;">
<el-select v-model='subItem.OrderState' class='w135 sel' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.pleaseSel')" :value='-1'></el-option>
<el-option :label='$t("pub.sureBtn")' :value='1'></el-option>
<el-option :label='$t("visa.v_zanding")' :value='2'></el-option>
</el-select>
</td>
</tr>
<tr v-show="subItem.PayStyle==6"> <tr v-show="subItem.PayStyle==6">
<td width="60" style="text-align:right;"> <td width="60" style="text-align:right;">
{{$t('ground.fukuanth')}}: {{$t('ground.fukuanth')}}:
...@@ -411,7 +423,6 @@ ...@@ -411,7 +423,6 @@
if (currentObj && currentObj.ID > 0) { if (currentObj && currentObj.ID > 0) {
//人民币 //人民币
if (currentObj.ID == 1) { if (currentObj.ID == 1) {
obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2); obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2);
} }
//日元 //日元
...@@ -432,22 +443,22 @@ ...@@ -432,22 +443,22 @@
} }
this.$forceUpdate(); this.$forceUpdate();
}, },
saveList(type) { saveList() {
this.IsDisabled = true; this.IsDisabled = true;
if (type == 0) { // if (type == 0) {
this.list.forEach(item => { // this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { // item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 0; // insideItem.OrderState = 0;
}) // })
}) // })
} // }
if (type == 1) { // if (type == 1) {
this.list.forEach(item => { // this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { // item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 1; // insideItem.OrderState = 1;
}) // })
}) // })
} // }
this.list.forEach(item => { this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { item.DiningSummaryList.forEach(insideItem => {
if (insideItem.DiningPriceList) { if (insideItem.DiningPriceList) {
......
<style> <style>
.restaurantInfo .resourceImgAdd { .restaurantInfo .resourceImgAdd {
width: 620px; width: 620px;
margin: auto; margin: auto;
} }
.restaurantInfo .clearfix:after { .restaurantInfo .clearfix:after {
content: "\0020"; content: "\0020";
display: block; display: block;
height: 0; height: 0;
clear: both; clear: both;
} }
.restaurantInfo .resource-content { .restaurantInfo .resource-content {
width: 100%; width: 100%;
margin-top: 30px; margin-top: 30px;
font-size: 12px; font-size: 12px;
min-width: 1200px; min-width: 1200px;
} }
.restaurantInfo .resource-baseinfo { .restaurantInfo .resource-baseinfo {
float: left; float: left;
height: auto; height: auto;
width: 600px; width: 600px;
margin: 0 0 20px 30px; margin: 0 0 20px 30px;
} }
.restaurantInfo .resource-imginfo { .restaurantInfo .resource-imginfo {
float: left; float: left;
width: 510px; width: 510px;
margin-top: 35px; margin-top: 35px;
} }
.restaurantInfo .resource-lititle { .restaurantInfo .resource-lititle {
display: block; display: block;
border-left: 4px solid #e95252; border-left: 4px solid #e95252;
padding-left: 10px; padding-left: 10px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.restaurantInfo .resource-baseinfo span { .restaurantInfo .resource-baseinfo span {
display: inline-block; display: inline-block;
} }
.restaurantInfo .resource-name { .restaurantInfo .resource-name {
width: 300px; width: 300px;
height: 34px; height: 34px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
outline: none; outline: none;
border: 1px solid #d6d6d6; border: 1px solid #d6d6d6;
padding-left: 10px; padding-left: 10px;
} }
.restaurantInfo .common-lefttit { .restaurantInfo .common-lefttit {
width: 80px; width: 80px;
text-align: right; text-align: right;
margin: 0 7px 0 8px; margin: 0 7px 0 8px;
display: inline-block; display: inline-block;
} }
.restaurantInfo .resource-net { .restaurantInfo .resource-net {
position: relative; position: relative;
} }
.restaurantInfo .resource-http { .restaurantInfo .resource-http {
position: absolute; position: absolute;
color: #999999; color: #999999;
width: 70px !important; width: 70px !important;
background-color: #f5f7fa; background-color: #f5f7fa;
border-right: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1;
height: 32px; height: 32px;
top: 5px; top: 5px;
left: 1px; left: 1px;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
} }
.restaurantInfo .R1 { .restaurantInfo .R1 {
width: 300px; width: 300px;
padding: 0 15px 0 80px; padding: 0 15px 0 80px;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
.restaurantInfo .areaInput { .restaurantInfo .areaInput {
width: 300px; width: 300px;
padding-right: 120px; padding-right: 120px;
} }
.restaurantInfo .areaInput:focus { .restaurantInfo .areaInput:focus {
border: 1px solid #e95252; border: 1px solid #e95252;
} }
.restaurantInfo .map-icon { .restaurantInfo .map-icon {
position: absolute; position: absolute;
right: 1px; right: 1px;
top: 1px; top: 1px;
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
border-top-right-radius: 17px; border-top-right-radius: 17px;
border-bottom-right-radius: 17px; border-bottom-right-radius: 17px;
padding-right: 15px; padding-right: 15px;
padding-left: 10px; padding-left: 10px;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
height: 32px; height: 32px;
background-color: #f5f7fa; background-color: #f5f7fa;
} }
.restaurantInfo .map-icon i { .restaurantInfo .map-icon i {
margin: 0 5px; margin: 0 5px;
position: relative; position: relative;
top: 1px; top: 1px;
} }
.restaurantInfo .save-Btn { .restaurantInfo .save-Btn {
width: 90px; width: 90px;
height: 30px; height: 30px;
background: rgba(233, 82, 82, 1); background: rgba(233, 82, 82, 1);
border-radius: 15px; border-radius: 15px;
color: #fff; color: #fff;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
margin-right: 20px; margin-right: 20px;
} }
.restaurantInfo .cancel-Btn, .restaurantInfo .cancel-Btn,
.save-Btn:hover { .save-Btn:hover {
opacity: 0.8; opacity: 0.8;
} }
.restaurantInfo .cancel-Btn { .restaurantInfo .cancel-Btn {
width: 90px; width: 90px;
height: 30px; height: 30px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 15px; border-radius: 15px;
color: #e95252; color: #e95252;
outline: none; outline: none;
cursor: pointer; cursor: pointer;
border: 1px solid #e95252; border: 1px solid #e95252;
} }
.restaurantInfo .re-img { .restaurantInfo .re-img {
width: 140px; width: 140px;
height: 93px; height: 93px;
border-radius: 10px; border-radius: 10px;
float: left; float: left;
margin: 0 30px 30px 0; margin: 0 30px 30px 0;
position: relative; position: relative;
} }
.restaurantInfo .re-img:first-child { .restaurantInfo .re-img:first-child {
margin-left: 0; margin-left: 0;
} }
.restaurantInfo .resource-imglist { .restaurantInfo .resource-imglist {
width: 100%; width: 100%;
height: auto; height: auto;
margin-top: 20px; margin-top: 20px;
} }
.restaurantInfo .resource-imglist img { .restaurantInfo .resource-imglist img {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 10px; border-radius: 10px;
} }
.restaurantInfo .add-img { .restaurantInfo .add-img {
margin-top: 20px; margin-top: 20px;
} }
.restaurantInfo .reimg-add { .restaurantInfo .reimg-add {
width: 140px; width: 140px;
height: 93px; height: 93px;
background: rgba(236, 236, 236, 1); background: rgba(236, 236, 236, 1);
border-radius: 10px; border-radius: 10px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
z-index: 999; z-index: 999;
} }
.restaurantInfo .ad-one { .restaurantInfo .ad-one {
display: none; display: none;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 10px; border-radius: 10px;
position: absolute; position: absolute;
top: 0; top: 0;
} }
.restaurantInfo .bigAdd { .restaurantInfo .bigAdd {
font-size: 50px; font-size: 50px;
color: #d1d1d1; color: #d1d1d1;
position: relative; position: relative;
left: 45px; left: 45px;
top: 10px; top: 10px;
} }
.restaurantInfo .imgzhe { .restaurantInfo .imgzhe {
display: none; display: none;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 10px; border-radius: 10px;
position: absolute; position: absolute;
text-align: center; text-align: center;
line-height: 93px; line-height: 93px;
top: 0; top: 0;
} }
.restaurantInfo .reimg-add:hover .ad-one { .restaurantInfo .reimg-add:hover .ad-one {
display: block; display: block;
} }
.restaurantInfo .re-img:hover .imgzhe { .restaurantInfo .re-img:hover .imgzhe {
display: block; display: block;
} }
.restaurantInfo .ad-one div { .restaurantInfo .ad-one div {
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
background: gray; background: gray;
color: #fff; color: #fff;
} }
.restaurantInfo .ad-one div:hover { .restaurantInfo .ad-one div:hover {
background-color: #fff; background-color: #fff;
color: #e95252; color: #e95252;
} }
.restaurantInfo .re-upload { .restaurantInfo .re-upload {
position: absolute; position: absolute;
top: 30px; top: 30px;
left: 30px; left: 30px;
z-index: 999; z-index: 999;
} }
.restaurantInfo .re-find { .restaurantInfo .re-find {
position: absolute; position: absolute;
top: 30px; top: 30px;
right: 30px; right: 30px;
z-index: 999; z-index: 999;
} }
.restaurantInfo .search-imgicon { .restaurantInfo .search-imgicon {
padding-right: 20px; padding-right: 20px;
margin-left: -40px; margin-left: -40px;
} }
.restaurantInfo .resAddImg { .restaurantInfo .resAddImg {
width: 520px; width: 520px;
padding-right: 45px; padding-right: 45px;
} }
.restaurantInfo .addimgContent { .restaurantInfo .addimgContent {
height: 290px; height: 290px;
overflow: auto; overflow: auto;
margin: 30px 0 30px 25px; margin: 30px 0 30px 25px;
width: 545px; width: 545px;
} }
.restaurantInfo .addimgDiv { .restaurantInfo .addimgDiv {
width: 160px; width: 160px;
height: 155px; height: 155px;
float: left; float: left;
margin: 0 20px 15px 0; margin: 0 20px 15px 0;
overflow: hidden; overflow: hidden;
} }
.restaurantInfo .addimgContent div:first-child { .restaurantInfo .addimgContent div:first-child {
margin-left: 0; margin-left: 0;
} }
.addimgContent div:nth-child(3n) { .addimgContent div:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
.restaurantInfo .itemImgdiv { .restaurantInfo .itemImgdiv {
width: 160px; width: 160px;
height: 106px; height: 106px;
position: relative; position: relative;
} }
.restaurantInfo .itemImgdiv img { .restaurantInfo .itemImgdiv img {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 10px; border-radius: 10px;
} }
.restaurantInfo .imgseclet { .restaurantInfo .imgseclet {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
border-radius: 10px; border-radius: 10px;
position: absolute; position: absolute;
top: 0; top: 0;
text-align: center; text-align: center;
line-height: 106px; line-height: 106px;
color: #e95252; color: #e95252;
} }
.icon-dagouyouquan { .icon-dagouyouquan {
font-size: 25px; font-size: 25px;
} }
.restaurantInfo .test-1::-webkit-scrollbar { .restaurantInfo .test-1::-webkit-scrollbar {
width: 0px; width: 0px;
height: 0px; height: 0px;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.restaurantInfo .test-1::-webkit-scrollbar-track { .restaurantInfo .test-1::-webkit-scrollbar-track {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.restaurantInfo .test-1::-webkit-scrollbar-thumb { .restaurantInfo .test-1::-webkit-scrollbar-thumb {
border-radius: 20px; border-radius: 20px;
background-color: #aaa; background-color: #aaa;
margin-bottom: 24px; margin-bottom: 24px;
} }
.restaurantInfo .test-1:hover::-webkit-scrollbar { .restaurantInfo .test-1:hover::-webkit-scrollbar {
width: 4px; width: 4px;
height: 4px; height: 4px;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.restaurantInfo .addimg-btnlist { .restaurantInfo .addimg-btnlist {
text-align: center; text-align: center;
} }
.restaurantInfo .addimg-select { .restaurantInfo .addimg-select {
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
float: right; float: right;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
bottom: 20px; bottom: 20px;
} }
.restaurantInfo .re-delte { .restaurantInfo .re-delte {
width: 32px; width: 32px;
height: 32px; height: 32px;
background: gray; background: gray;
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
display: inline-block; display: inline-block;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
} }
.restaurantInfo .re-delte:hover { .restaurantInfo .re-delte:hover {
color: #e95252; color: #e95252;
background: #fff; background: #fff;
} }
.restaurantInfo .imgDescription { .restaurantInfo .imgDescription {
font-size: 12px; font-size: 12px;
margin-top: 12px; margin-top: 12px;
color: #333333; color: #333333;
width: 100%; width: 100%;
line-height: 20px; line-height: 20px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.restaurantInfo .el-upload-dragger { .restaurantInfo .el-upload-dragger {
border: none; border: none;
} }
.restaurantInfo .res-span span:last-child { .restaurantInfo .res-span span:last-child {
display: inline; display: inline;
} }
.restaurantInfo .resourcerightTop span { .restaurantInfo .resourcerightTop span {
display: inline-block; display: inline-block;
} }
.restaurantInfo .sheshi { .restaurantInfo .sheshi {
margin-bottom: 20px; margin-bottom: 20px;
} }
.restaurantInfo .dialog-footer { .restaurantInfo .dialog-footer {
padding-bottom: 30px; padding-bottom: 30px;
} }
.restaurantInfo .btn-list { .restaurantInfo .btn-list {
margin: 20px 0 40px 30px; margin: 20px 0 40px 30px;
} }
.restaurantInfo .input-with-select .el-input-group__prepend { .restaurantInfo .input-with-select .el-input-group__prepend {
background-color: #fff; background-color: #fff;
} }
.restaurantInfo .el-textarea__inner { .restaurantInfo .el-textarea__inner {
resize: none; resize: none;
height: 120px; height: 120px;
font-family: "微软雅黑"; font-family: "微软雅黑";
} }
.restaurantInfo .R1:focus { .restaurantInfo .R1:focus {
border: 1px solid #e95252; border: 1px solid #e95252;
} }
.restaurantInfo .el-form-item__label { .restaurantInfo .el-form-item__label {
width: 96px; width: 96px;
font-size: 12px; font-size: 12px;
} }
.restaurantInfo .el-form-item__error { .restaurantInfo .el-form-item__error {
left: 100px; left: 100px;
} }
.restaurantInfo .hotelDay { .restaurantInfo .hotelDay {
margin-left: 10px; margin-left: 10px;
} }
.restaurantInfo .searchImgIcon { .restaurantInfo .searchImgIcon {
cursor: pointer; cursor: pointer;
} }
.restaurantInfo .el-dialog--center .el-dialog__body { .restaurantInfo .el-dialog--center .el-dialog__body {
padding: 25px 25px 0; padding: 25px 25px 0;
} }
.restaurantInfo .addressInput .el-input-group__append { .restaurantInfo .addressInput .el-input-group__append {
border-top-right-radius: 17px; border-top-right-radius: 17px;
border-bottom-right-radius: 17px; border-bottom-right-radius: 17px;
} }
.restaurantInfo ::-webkit-input-placeholder { .restaurantInfo ::-webkit-input-placeholder {
color: #d1d1d1; color: #d1d1d1;
} }
.restaurantInfo :-moz-placeholder { .restaurantInfo :-moz-placeholder {
color: #d1d1d1; color: #d1d1d1;
} }
.restaurantInfo ::-moz-placeholder { .restaurantInfo ::-moz-placeholder {
color: #d1d1d1; color: #d1d1d1;
} }
.restaurantInfo :-ms-input-placeholder { .restaurantInfo :-ms-input-placeholder {
color: #d1d1d1; color: #d1d1d1;
} }
.restaurantInfo .el-switch.is-checked .el-switch__core { .restaurantInfo .el-switch.is-checked .el-switch__core {
border-color: #4bca81; border-color: #4bca81;
background-color: #4bca81; background-color: #4bca81;
} }
.restaurantInfo .orderAdd { .restaurantInfo .orderAdd {
position: relative; position: relative;
width: 340px; width: 340px;
} }
.restaurantInfo .minus:hover { .restaurantInfo .minus:hover {
background-color: #cccccc; background-color: #cccccc;
cursor: pointer; cursor: pointer;
} }
.restaurantInfo .footabs { .restaurantInfo .footabs {
width: 300px; width: 300px;
min-height: 34px; min-height: 34px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
margin-left: 10px; margin-left: 10px;
display: inline-block; display: inline-block;
background-color: #fff; background-color: #fff;
padding: 5px 10px; padding: 5px 10px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.restaurantInfo .foodtips { .restaurantInfo .foodtips {
display: inline-block; display: inline-block;
padding: 3px 5px; padding: 3px 5px;
background-color: #efefef; background-color: #efefef;
margin: 3px; margin: 3px;
position: relative; position: relative;
} }
.restaurantInfo .toolOne { .restaurantInfo .toolOne {
margin: 0 0 28px 38px; margin: 0 0 28px 38px;
display: flex; display: flex;
} }
.restaurantInfo .foodTipsDiv { .restaurantInfo .foodTipsDiv {
max-width: 200px; max-width: 200px;
display: inline; display: inline;
} }
.restaurantInfo .wInput { .restaurantInfo .wInput {
border: none; border: none;
height: 30px; height: 30px;
} }
.restaurantInfo .wInput .el-input__inner { .restaurantInfo .wInput .el-input__inner {
border: none !important; border: none !important;
height: 28px; height: 28px;
padding: 0; padding: 0;
border-radius: 0; border-radius: 0;
margin-top: 2px; margin-top: 2px;
} }
.restaurantInfo .delTips { .restaurantInfo .delTips {
position: absolute; position: absolute;
right: -5px; right: -5px;
top: -5px; top: -5px;
cursor: pointer; cursor: pointer;
color: #999; color: #999;
font-size: 14px; font-size: 14px;
} }
.restaurantInfo .delTips:hover { .restaurantInfo .delTips:hover {
color: #e95252; color: #e95252;
} }
.restaurantInfo .fanyong { .restaurantInfo .fanyong {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
margin-right: 10px; margin-right: 10px;
} }
.restaurantInfo .footabs .el-tag { .restaurantInfo .footabs .el-tag {
margin: 0 5px 5px 0; margin: 0 5px 5px 0;
} }
.restaurantInfo .footabs .el-input__inner { .restaurantInfo .footabs .el-input__inner {
height: 30px; height: 30px;
position: relative; position: relative;
} }
.restaurantInfo .button-new-tag { .restaurantInfo .button-new-tag {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
} }
.restaurantInfo .input-new-tag { .restaurantInfo .input-new-tag {
width: 90px; width: 90px;
margin-left: 10px; margin-left: 10px;
vertical-align: bottom; vertical-align: bottom;
} }
.restaurantInfo .toolSpan { .restaurantInfo .toolSpan {
margin-top: 5px; margin-top: 5px;
} }
.restaurantInfo .RabateDiv { .restaurantInfo .RabateDiv {
margin-left: 6px; margin-left: 6px;
} }
.restaurantInfo .RebateCount { .restaurantInfo .RebateCount {
height: 34px; height: 34px;
float: left; float: left;
} }
.restaurantInfo .leftPnum { .restaurantInfo .leftPnum {
float: left; float: left;
width: 50px; width: 50px;
background-color: #f5f7fa; background-color: #f5f7fa;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
position: absolute; position: absolute;
left: 1px; left: 1px;
top: 1px; top: 1px;
} }
.restaurantInfo .fanNum { .restaurantInfo .fanNum {
float: left; float: left;
width: 50px; width: 50px;
background-color: #f5f7fa; background-color: #f5f7fa;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
position: absolute; position: absolute;
left: 1px; left: 1px;
top: 1px; top: 1px;
} }
.restaurantInfo .toolInput { .restaurantInfo .toolInput {
height: 34px; height: 34px;
padding-left: 5px; padding-left: 5px;
border: none; border: none;
} }
.restaurantInfo .inpuOne { .restaurantInfo .inpuOne {
width: 130px; width: 130px;
padding-left: 55px; padding-left: 55px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
border-right: none; border-right: none;
} }
.restaurantInfo .reOne, .restaurantInfo .reOne,
.restaurantInfo .reTwo, .restaurantInfo .reTwo,
.restaurantInfo .dayNum { .restaurantInfo .dayNum {
position: relative; position: relative;
} }
.restaurantInfo .tiqianDay { .restaurantInfo .tiqianDay {
position: absolute; position: absolute;
left: 1px; left: 1px;
top: 1px; top: 1px;
width: 30px; width: 30px;
height: 32px; height: 32px;
background-color: #f5f7fa; background-color: #f5f7fa;
z-index: 999; z-index: 999;
width: 100px; width: 100px;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
border-right: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1;
} }
.restaurantInfo .dayNum { .restaurantInfo .dayNum {
width: 300px; width: 300px;
padding: 0 45px 0 110px; padding: 0 45px 0 110px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
height: 34px; height: 34px;
} }
.restaurantInfo .inpuTwo { .restaurantInfo .inpuTwo {
width: 170px; width: 170px;
padding: 0 45px 0 55px; padding: 0 45px 0 55px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.restaurantInfo .fanbili { .restaurantInfo .fanbili {
margin-top: 8px; margin-top: 8px;
} }
.restaurantInfo .percentCon { .restaurantInfo .percentCon {
float: right; float: right;
width: 40px; width: 40px;
height: 32px; height: 32px;
text-align: center; text-align: center;
background-color: #f5f7fa; background-color: #f5f7fa;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
line-height: 32px; line-height: 32px;
position: absolute; position: absolute;
right: 1px; right: 1px;
top: 1px; top: 1px;
} }
.restaurantInfo .dayLi { .restaurantInfo .dayLi {
left: 90px; left: 90px;
} }
.restaurantInfo .el-dialog--center .el-dialog__body { .restaurantInfo .el-dialog--center .el-dialog__body {
padding: 15px 25px 0 !important; padding: 15px 25px 0 !important;
} }
.restaurantInfo .mapList { .restaurantInfo .mapList {
width: 850px !important; width: 850px !important;
height: 510px !important; height: 510px !important;
} }
.restaurantInfo .addAddress .el-input__inner { .restaurantInfo .addAddress .el-input__inner {
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border: 1px solid #d1d1d1 !important; border: 1px solid #d1d1d1 !important;
} }
.restaurantInfo .el-input-group__append { .restaurantInfo .el-input-group__append {
border-top-right-radius: 0 !important; border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
} }
</style> </style>
<template> <template>
<div class="flexOne restaurantInfo"> <div class="flexOne restaurantInfo">
...@@ -690,6 +691,11 @@ ...@@ -690,6 +691,11 @@
<el-form-item :label="$t('ground.cantzsmc')" prop="RealName"> <el-form-item :label="$t('ground.cantzsmc')" prop="RealName">
<el-input type="text" v-model="addMsg.RealName" maxlength="100" class="w300"></el-input> <el-input type="text" v-model="addMsg.RealName" maxlength="100" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="餐标">
<el-input type="text" v-model="addMsg.UnitPrice" maxlength="100" class="w300">
<template slot="append">/人</template>
</el-input>
</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">
...@@ -699,28 +705,36 @@ ...@@ -699,28 +705,36 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system.table_country')"> <el-form-item :label="$t('system.table_country')">
<el-select :placeholder="$t('visaT.qxzguojia')" filterable v-model="addMsg.Country" class='multiple_input w300' @change="GetSubAreaList(addMsg.Country,1),addMsg.Province=0,addMsg.City=0,addMsg.District=0"> <el-select :placeholder="$t('visaT.qxzguojia')" filterable v-model="addMsg.Country"
class='multiple_input w300'
@change="GetSubAreaList(addMsg.Country,1),addMsg.Province=0,addMsg.City=0,addMsg.District=0">
<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 CountryList" :key="childItem.ID" :label="childItem.Name" :value="childItem.ID"> <el-option v-for="childItem in CountryList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_province')"> <el-form-item :label="$t('hotel.hotel_province')">
<el-select :placeholder="$t('pub.pleaseSel')" filterable class='multiple_input w300' v-model="addMsg.Province" @change="GetSubAreaList(addMsg.Province,2),addMsg.City=0,addMsg.District=0"> <el-select :placeholder="$t('pub.pleaseSel')" filterable class='multiple_input w300'
v-model="addMsg.Province" @change="GetSubAreaList(addMsg.Province,2),addMsg.City=0,addMsg.District=0">
<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 ProvinceList" :key="childItem.ID" :label="childItem.Name" :value="childItem.ID"> <el-option v-for="childItem in ProvinceList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option> </el-option>
</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="$t('pub.pleaseSel')" filterable class='multiple_input w300' v-model="addMsg.City" @change="GetSubAreaList(addMsg.City,3),addMsg.District=0"> <el-select :placeholder="$t('pub.pleaseSel')" filterable class='multiple_input w300' v-model="addMsg.City"
@change="GetSubAreaList(addMsg.City,3),addMsg.District=0">
<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 CityList" :key="childItem.ID" :label="childItem.Name" :value="childItem.ID"> <el-option v-for="childItem in CityList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_area')"> <el-form-item :label="$t('hotel.hotel_area')">
<el-select v-model="addMsg.District" class="w300" @change="getArea" filterable :placeholder="$t('hotel.hotel_area')"> <el-select v-model="addMsg.District" class="w300" @change="getArea" filterable
:placeholder="$t('hotel.hotel_area')">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in district" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in district" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
...@@ -756,15 +770,18 @@ ...@@ -756,15 +770,18 @@
<div class="RabateDiv clearfix"> <div class="RabateDiv clearfix">
<div class="RebateCount reTwo dayLi"> <div class="RebateCount reTwo dayLi">
<div class="tiqianDay">{{$t('restaurant.res_advanceDays')}}</div> <div class="tiqianDay">{{$t('restaurant.res_advanceDays')}}</div>
<input type="text" class="dayNum" v-model="addMsg.DieLine" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')"> <input type="text" class="dayNum" v-model="addMsg.DieLine" maxlength="10"
onkeyup="value=value.replace(/[^\d]/g,'')">
<div class="percentCon">{{$t('hotel.hotel_day')}}</div> <div class="percentCon">{{$t('hotel.hotel_day')}}</div>
</div> </div>
</div> </div>
<el-form-item :label="$t('ground.shifouyuyue')"> <el-form-item :label="$t('ground.shifouyuyue')">
<el-switch v-model="addMsg.AppointmentStyle" :active-value="inActive" :inactive-value="notInActive"></el-switch> <el-switch v-model="addMsg.AppointmentStyle" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
</el-form-item> </el-form-item>
<el-form-item :label="$t('ground.zhifufangshi')"> <el-form-item :label="$t('ground.zhifufangshi')">
<el-select v-model="addMsg.PayStyle" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')" :disabled="IsHaveAuth==1?false:true"> <el-select v-model="addMsg.PayStyle" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')"
:disabled="IsHaveAuth==1?false:true">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in PayList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in PayList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
...@@ -799,13 +816,13 @@ ...@@ -799,13 +816,13 @@
<div class="RabateDiv clearfix"> <div class="RabateDiv clearfix">
<div class="RebateCount reOne"> <div class="RebateCount reOne">
<div class="leftPnum">{{$t('admin.admin_personNumber')}}</div> <div class="leftPnum">{{$t('admin.admin_personNumber')}}</div>
<input type="text" class="toolInput inpuOne" v-model="addMsg.RebateCount" onkeyup="value=value.replace(/[^\d]/g,'')" <input type="text" class="toolInput inpuOne" v-model="addMsg.RebateCount"
maxlength="20"> onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
</div> </div>
<div class="RebateCount reTwo"> <div class="RebateCount reTwo">
<div class="fanNum">{{$t('restaurant.res_return')}}</div> <div class="fanNum">{{$t('restaurant.res_return')}}</div>
<input type="text" class="toolInput inpuTwo" v-model="addMsg.RebateRatio" onkeyup="value=value.replace(/[^\d]/g,'')" <input type="text" class="toolInput inpuTwo" v-model="addMsg.RebateRatio"
maxlength="20"> onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
<div class="percentCon">%</div> <div class="percentCon">%</div>
</div> </div>
</div> </div>
...@@ -814,7 +831,8 @@ ...@@ -814,7 +831,8 @@
<div class="toolOne"> <div class="toolOne">
<span class="toolSpan">{{$t('scen.sc_fdTag')}}</span> <span class="toolSpan">{{$t('scen.sc_fdTag')}}</span>
<div class="footabs"> <div class="footabs">
<el-tag :key="tag" v-for="tag in tipsList" closable :disable-transitions="false" @close="handleClose(tag)">{{tag}} <el-tag :key="tag" v-for="tag in tipsList" closable :disable-transitions="false"
@close="handleClose(tag)">{{tag}}
</el-tag> </el-tag>
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small" <el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small"
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"> @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm">
...@@ -826,10 +844,11 @@ ...@@ -826,10 +844,11 @@
<div class="toolOne"> <div class="toolOne">
<span class="toolSpan">{{$t('scen.sc_dlTag')}}</span> <span class="toolSpan">{{$t('scen.sc_dlTag')}}</span>
<div class="footabs"> <div class="footabs">
<el-tag :key="tag" v-for="tag in Geographic" closable :disable-transitions="false" @close="handleClose2(tag)">{{tag}} <el-tag :key="tag" v-for="tag in Geographic" closable :disable-transitions="false"
@close="handleClose2(tag)">{{tag}}
</el-tag> </el-tag>
<el-input class="input-new-tag" v-if="inputVisible2" v-model="inputValue2" ref="saveTagInput" size="small" <el-input class="input-new-tag" v-if="inputVisible2" v-model="inputValue2" ref="saveTagInput"
@keyup.enter.native="handleInputConfirm2" @blur="handleInputConfirm2"> size="small" @keyup.enter.native="handleInputConfirm2" @blur="handleInputConfirm2">
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput2">+ {{$t('pub.addBtn')}} <el-button v-else class="button-new-tag" size="small" @click="showInput2">+ {{$t('pub.addBtn')}}
</el-button> </el-button>
...@@ -837,25 +856,28 @@ ...@@ -837,25 +856,28 @@
</div> </div>
</div> </div>
<el-form-item :label="$t('restaurant.res_special')"> <el-form-item :label="$t('restaurant.res_special')">
F
<el-input type="textarea" class="w300" v-model="addMsg.Feature"></el-input> <el-input type="textarea" class="w300" v-model="addMsg.Feature"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('Operation.Op_Warmprompt')" prop="About"> <el-form-item :label="$t('Operation.Op_Warmprompt')" prop="About">
A
<el-input type="textarea" maxlength="1000" v-model="addMsg.About" class="w300"></el-input> <el-input type="textarea" maxlength="1000" v-model="addMsg.About" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('restaurant.res_bookInformation')" prop="BookingInfo"> <el-form-item :label="$t('restaurant.res_bookInformation')" prop="BookingInfo">
B
<el-input type="textarea" maxlength="1000" v-model="addMsg.BookingInfo" class="w300"></el-input> <el-input type="textarea" maxlength="1000" v-model="addMsg.BookingInfo" class="w300"></el-input>
</el-form-item> </el-form-item>
<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>
<el-switch v-model="isBook" active-color="#13ce66" inactive-color="#ff4949" :active-text="$t('hotel.hotel_Supplier')" <el-switch v-model="isBook" active-color="#13ce66" inactive-color="#ff4949"
:inactive-text="$t('ground.ziding')"></el-switch> :active-text="$t('hotel.hotel_Supplier')" :inactive-text="$t('ground.ziding')"></el-switch>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-switch v-model="isRecommend" active-color="#13ce66" inactive-color="#ff4949" :active-text="$t('visaT.Recommend')" <el-switch v-model="isRecommend" active-color="#13ce66" inactive-color="#ff4949"
:inactive-text="$t('ground.butuijian')"></el-switch> :active-text="$t('visaT.Recommend')" :inactive-text="$t('ground.butuijian')"></el-switch>
</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>
...@@ -865,13 +887,14 @@ ...@@ -865,13 +887,14 @@
<img v-if="!item" src="../../assets/img/bg_c3@3x.png"> <img v-if="!item" src="../../assets/img/bg_c3@3x.png">
<img :src="item.ShowPath" :onerror='defaultImg' /> <img :src="item.ShowPath" :onerror='defaultImg' />
<div class="imgzhe"> <div class="imgzhe">
<div class="re-delte" ><i @click.stop="showImg(item.ShowPath)" class="iconfont icon-img_cz"></i></div> <div class="re-delte"><i @click.stop="showImg(item.ShowPath)" class="iconfont icon-img_cz"></i></div>
<div class="re-delte" @click="delImg(index)"><i class="iconfont icon-xingzhuang"></i></div> <div class="re-delte" @click="delImg(index)"><i class="iconfont icon-xingzhuang"></i></div>
<div class="re-delte" @click.stop="ExchangeImg(index,0)" v-if="index!=0&&item.ShowPath"> <div class="re-delte" @click.stop="ExchangeImg(index,0)" v-if="index!=0&&item.ShowPath">
<i class="iconfont icon-zuoyi"></i> <i class="iconfont icon-zuoyi"></i>
</div> </div>
<div class="re-delte" @click.stop="ExchangeImg(index,1)" v-if="index!=DiningImageArray.length-1&&item.ShowPath"> <div class="re-delte" @click.stop="ExchangeImg(index,1)"
v-if="index!=DiningImageArray.length-1&&item.ShowPath">
<i class="iconfont icon-youyi"></i> <i class="iconfont icon-youyi"></i>
</div> </div>
</div> </div>
...@@ -882,8 +905,8 @@ ...@@ -882,8 +905,8 @@
<i class="iconfont icon-img_haha bigAdd"></i> <i class="iconfont icon-img_haha bigAdd"></i>
<div class="ad-one"> <div class="ad-one">
<div class="re-upload"> <div class="re-upload">
<el-upload :http-request="UploadImage" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp" <el-upload :http-request="UploadImage" :multiple="true"
:show-file-list="false" action=""> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false" action="">
<i class="iconfont icon-img_bdsc"></i> <i class="iconfont icon-img_bdsc"></i>
</el-upload> </el-upload>
</div> </div>
...@@ -896,7 +919,8 @@ ...@@ -896,7 +919,8 @@
</el-form> </el-form>
</div> </div>
<el-dialog custom-class="resourceImgAdd" :title="$t('pub.addImg')" center :visible.sync="addimg"> <el-dialog custom-class="resourceImgAdd" :title="$t('pub.addImg')" center :visible.sync="addimg">
<DMCchooseImg @closeImg="closeDMCchooseImg" ref="DMCchooseImg1" @headCallBack="getDMCimg" v-bind:imgType="2"></DMCchooseImg> <DMCchooseImg @closeImg="closeDMCchooseImg" ref="DMCchooseImg1" @headCallBack="getDMCimg" v-bind:imgType="2">
</DMCchooseImg>
</el-dialog> </el-dialog>
<el-dialog custom-class="mapList" :title="$t('hotel.hotel_mapLocation')" center :visible.sync="selectAddress"> <el-dialog custom-class="mapList" :title="$t('hotel.hotel_mapLocation')" center :visible.sync="selectAddress">
<googleMap @refList="googleMap" v-on:headCallBack="headCall" v-bind:address="addMsg.Address"></googleMap> <googleMap @refList="googleMap" v-on:headCallBack="headCall" v-bind:address="addMsg.Address"></googleMap>
...@@ -919,11 +943,11 @@ ...@@ -919,11 +943,11 @@
export default { export default {
data() { data() {
return { return {
imageOptions:{ imageOptions: {
navbar:false, navbar: false,
title:false title: false
}, },
//是否有权限操作支付方式 //是否有权限操作支付方式
IsHaveAuth: 0, IsHaveAuth: 0,
images: [], images: [],
selectAddress: false, selectAddress: false,
...@@ -1013,7 +1037,8 @@ ...@@ -1013,7 +1037,8 @@
//是否预约 //是否预约
AppointmentStyle: 0, AppointmentStyle: 0,
//支付方式 //支付方式
PayStyle: 0 PayStyle: 0,
UnitPrice:0,//餐标/人
}, },
rules: { rules: {
//表单必填验证 //表单必填验证
...@@ -1102,18 +1127,18 @@ ...@@ -1102,18 +1127,18 @@
this.addimg = true; this.addimg = true;
this.initimgList(); this.initimgList();
}, },
inited (viewer){ inited(viewer) {
this.$viewer = viewer this.$viewer = viewer
}, },
showImg: function (src) { showImg: function (src) {
let srcArr = src.split('?') let srcArr = src.split('?')
src = srcArr[0] src = srcArr[0]
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))
...@@ -1215,7 +1240,7 @@ ...@@ -1215,7 +1240,7 @@
if (this.addMsg.Province > 0) { if (this.addMsg.Province > 0) {
this.GetSubAreaList(this.addMsg.Province, 2); this.GetSubAreaList(this.addMsg.Province, 2);
} }
if(this.addMsg.City > 0){ if (this.addMsg.City > 0) {
this.GetSubAreaList(this.addMsg.City, 3); this.GetSubAreaList(this.addMsg.City, 3);
} }
if (this.addMsg.OpenPlatform != null) { if (this.addMsg.OpenPlatform != null) {
...@@ -1380,12 +1405,12 @@ ...@@ -1380,12 +1405,12 @@
res => { res => {
if (type == 1) { if (type == 1) {
this.ProvinceList = res.data.data; this.ProvinceList = res.data.data;
this.CityList=[]; this.CityList = [];
this.district=[]; this.district = [];
} else if (type == 2) { } else if (type == 2) {
this.CityList = res.data.data; this.CityList = res.data.data;
this.district=[]; this.district = [];
}else if (type == 3) { } else if (type == 3) {
this.district = res.data.data; this.district = res.data.data;
} }
}, },
...@@ -1466,7 +1491,7 @@ ...@@ -1466,7 +1491,7 @@
this.$set(this.DiningImageArray, index, downItem); this.$set(this.DiningImageArray, index, downItem);
} }
}, },
getArea(){ getArea() {
this.$forceUpdate(); this.$forceUpdate();
} }
}, },
......
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