Commit 83be1820 authored by youjie's avatar youjie
parents 90f1a43f 151182cf
...@@ -86,14 +86,18 @@ ...@@ -86,14 +86,18 @@
<el-option v-for='itemHotel in item.DinnerList' :label='itemHotel.RealName' :value='itemHotel.ID' <el-option v-for='itemHotel in item.DinnerList' :label='itemHotel.RealName' :value='itemHotel.ID'
:key='itemHotel.ID'></el-option> :key='itemHotel.ID'></el-option>
</el-select> </el-select>
<template v-if="subItem.NewDiningRealName">
<span style="color:green">{{subItem.NewDiningRealName}}</span><br /> <span style="color:green">{{subItem.NewDiningRealName}}</span><br />
<el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop"> </template>
<comCheckDinner :ref="'comCheckDinner'+index+subIndex+''" :UseDate="item.UseTimeStr" <template v-else-if="subItem.NewDiningName">
v-on:childDinner="childDinnerList" :Country="651"> <span style="color:green">{{subItem.NewDiningName}}</span><br />
</template>
<el-popover placement="right" width="540" trigger="click">
<comCheckDinner v-show="subItem.IsShowPop" :ref="'comCheckDinner'+index+subIndex+''"
:UseDate="item.UseTimeStr" v-on:childDinner="childDinnerList" :Country="651">
</comCheckDinner> </comCheckDinner>
<el-button size="small" type="danger" :data-index="'comCheckDinner'+index+subIndex+''" <el-button size="small" type="danger" :data-index="'comCheckDinner'+index+subIndex+''"
slot="reference" style="cursor:pointer;" slot="reference" style="cursor:pointer;" @click="getChildDinner(index,subIndex,subItem)">
@click="getChildDinner(index,subIndex),subItem.isShowPop=true">
{{$t('ground.cantingxuanz')}} {{$t('ground.cantingxuanz')}}
</el-button> </el-button>
</el-popover> </el-popover>
...@@ -172,8 +176,10 @@ ...@@ -172,8 +176,10 @@
<td style="text-align:left;"> <td style="text-align:left;">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')"> <el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.pleaseSel')" :value='0'></el-option> <el-option :label="$t('pub.pleaseSel')" :value='0'></el-option>
<el-option :label='$t("ground.xianfu")' :value='1' v-if="subItem.PayStyleExt==1||LineId==90"></el-option> <el-option :label='$t("ground.xianfu")' :value='1' v-if="subItem.PayStyleExt==1||LineId==90">
<el-option :label='$t("ground.qiandan")' :value='2' v-if="subItem.PayStyleExt==2||LineId==90"></el-option> </el-option>
<el-option :label='$t("ground.qiandan")' :value='2' v-if="subItem.PayStyleExt==2||LineId==90">
</el-option>
<el-option :label='$t("ground.shiwudk")' :value='3' v-if="subItem.PayStyleExt==3"></el-option> <el-option :label='$t("ground.shiwudk")' :value='3' v-if="subItem.PayStyleExt==3"></el-option>
<el-option :label='$t("ground.yufu")' :value='4' v-if="subItem.PayStyleExt==4"></el-option> <el-option :label='$t("ground.yufu")' :value='4' v-if="subItem.PayStyleExt==4"></el-option>
<el-option :label='$t("ground.yufukuandk")' :value='5' v-if="subItem.PayStyleExt==5"> <el-option :label='$t("ground.yufukuandk")' :value='5' v-if="subItem.PayStyleExt==5">
...@@ -267,11 +273,12 @@ ...@@ -267,11 +273,12 @@
comCheckDinner, comCheckDinner,
}, },
methods: { methods: {
getChildDinner(index, subIndex) { getChildDinner(index, subIndex, subItem) {
this.findex = index; this.findex = index;
this.childIndex = subIndex; this.childIndex = subIndex;
let str = `comCheckDinner${index}${subIndex}` let str = `comCheckDinner${index}${subIndex}`
this.$refs[str][0].getCheckDinner(); this.$refs[str][0].getCheckDinner();
subItem.IsShowPop = true;
}, },
//选中赋值 //选中赋值
childDinnerList(obj) { childDinnerList(obj) {
...@@ -285,7 +292,7 @@ ...@@ -285,7 +292,7 @@
oldData.NewDiningRealName = obj.RealName; oldData.NewDiningRealName = obj.RealName;
this.list.forEach(x => { this.list.forEach(x => {
x.DiningSummaryList.forEach(y => { x.DiningSummaryList.forEach(y => {
y.isShowPop = false; y.IsShowPop = false;
}) })
}); });
}, },
...@@ -343,7 +350,6 @@ ...@@ -343,7 +350,6 @@
resultArray.forEach(item => { resultArray.forEach(item => {
item.DinnerList = []; item.DinnerList = [];
item.DiningSummaryList.forEach(x => { item.DiningSummaryList.forEach(x => {
x.isShowPop = false;
x.DiningReserveType = x.DiningReserveType.toString(); x.DiningReserveType = x.DiningReserveType.toString();
this.calculationPrice(x); this.calculationPrice(x);
var str = x.NewDiningName; var str = x.NewDiningName;
...@@ -376,7 +382,6 @@ ...@@ -376,7 +382,6 @@
return item.ID === obj.CurrencyId; //筛选出匹配数据 return item.ID === obj.CurrencyId; //筛选出匹配数据
}); });
} }
//日元 //日元
let jpaObj = this.allCurrencyList.find(item => { let jpaObj = this.allCurrencyList.find(item => {
return item.ID === 3; //筛选出匹配数据 return item.ID === 3; //筛选出匹配数据
......
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