Commit c715bf5c authored by 黄奎's avatar 黄奎

地接总表新增权限验证

parent 7d953326
...@@ -162,10 +162,10 @@ ...@@ -162,10 +162,10 @@
<th width="75">出发地</th> <th width="75">出发地</th>
<th width="80">航班时间</th> <th width="80">航班时间</th>
<th width="140">公司团号</th> <th width="140">公司团号</th>
<th width="90">同业<br/>会员价</th> <th width="90">同业<br />会员价</th>
<th width="75">线路<br />负责人</th> <th width="75">线路<br />负责人</th>
<th width="75">进出点</th> <th width="75">进出点</th>
<th width="50">订单<br/>人数</th> <th width="50">订单<br />人数</th>
<th width="100">机位总数<br />(Y/E/F/单地接)</th> <th width="100">机位总数<br />(Y/E/F/单地接)</th>
<th width="60">领队</th> <th width="60">领队</th>
<th width="60">导游</th> <th width="60">导游</th>
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</td> </td>
<td> <td>
<div class="link"> <div class="link">
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}<br/>({{item.TCID}})</p> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')">{{item.TCNUMS}}<br />({{item.TCID}})</p>
</div> </div>
</td> </td>
<td style="color: #47BF8C;white-space: nowrap;"> <td style="color: #47BF8C;white-space: nowrap;">
...@@ -290,8 +290,8 @@ ...@@ -290,8 +290,8 @@
<a style="text-decoration:underline;cursor:pointer;" title="点击下载旅客名单" <a style="text-decoration:underline;cursor:pointer;" title="点击下载旅客名单"
@click="DownLoadGuestList(item,outItem,index)">出境名单</a> @click="DownLoadGuestList(item,outItem,index)">出境名单</a>
<a style="text-decoration:underline;cursor:pointer;margin-top:5px;display:inline-block;" title="点击下载电话名单" <a style="text-decoration:underline;cursor:pointer;margin-top:5px;display:inline-block;"
@click="DownLoadGuestTelList(item,outItem,index)">电话名单</a> title="点击下载电话名单" @click="DownLoadGuestTelList(item,outItem,index)">电话名单</a>
</td> </td>
<td> <td>
<div class="fz16 fbold linkspan"> <div class="fz16 fbold linkspan">
...@@ -338,7 +338,7 @@ ...@@ -338,7 +338,7 @@
</div> </div>
</td> </td>
<td> <td>
<div class="fz16 fbold linkspan" @click="goUrl('bookDinnerStatisticsDetails',item,outItem,'餐厅详情')"> <div class="fz16 fbold linkspan" @click="goDinnerUrl(item,outItem)">
<span style="color: #4BCA81;" v-if="item.FoodsResult==1"></span> <span style="color: #4BCA81;" v-if="item.FoodsResult==1"></span>
<span class="colorE95252" v-else>{{item.FoodsResult=='-1'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.FoodsResult=='-1'?"x":"O"}}</span>
</div> </div>
...@@ -454,7 +454,8 @@ ...@@ -454,7 +454,8 @@
<el-button @click='openChart(item)' icon="iconfont icon-wechat" type="primary" <el-button @click='openChart(item)' icon="iconfont icon-wechat" type="primary"
style="background:#6DD875; border-color:#6DD875"></el-button> style="background:#6DD875; border-color:#6DD875"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="酒店操作" placement="top-start" v-if="item.LineId==14"> <el-tooltip class="item" effect="dark" content="酒店操作" placement="top-start"
v-if="item.LineId==14 && IsDMCIsOpenHotel==1">
<el-popover placement="bottom" width="300" trigger="click" v-model="item.isShowPop"> <el-popover placement="bottom" width="300" trigger="click" v-model="item.isShowPop">
<table class="dmcSetTable"> <table class="dmcSetTable">
<tr> <tr>
...@@ -491,39 +492,6 @@ ...@@ -491,39 +492,6 @@
style="background:green; border-color:green"></el-button> style="background:green; border-color:green"></el-button>
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content=" 领队/导游配置" placement="top-start"
v-if="item.LineId==14&&outItem.PriceCommonList.length>1" style="display:none;">
<el-popover placement="bottom" width="800" trigger="click">
<table class="dmcSetTable">
<template v-if="TeamHotelList&&TeamHotelList.length>0">
<tr>
<th>团号/时间</th>
<template v-for="(hItem,hIndex) in TeamHotelList">
<th>
{{hItem.TCNUM}}<br />({{hItem.TCID}})
</th>
</template>
</tr>
</template>
<template v-for="(hItem,hIndex) in TeamHotelList">
<template v-for="(hSubItem,hSubIndex) in hItem.dayList">
<tr>
<td>{{hSubItem.UseTime}}</td>
<td>
<template v-if="hSubItem.subList&&hSubItem.subList.length>0">
{{hSubItem.subList[0].NewHotelName}}
</template>
</td>
</tr>
</template>
</template>
</table>
<el-button @click="GetTeamHotelList(outItem.TCIDS)" slot="reference"
icon="iconfont icon-guanli2" type="primary" style="background:green; border-color:green">
</el-button>
</el-popover>
</el-tooltip>
</el-button-group> </el-button-group>
</div> </div>
</td> </td>
...@@ -579,6 +547,8 @@ ...@@ -579,6 +547,8 @@
export default { export default {
data() { data() {
return { return {
IsDMCIsOpenHotel: 0, //1-有权限开启或关闭酒店操作
IsEditDinner: 0, //1有权限操作餐配
loading: false, loading: false,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
...@@ -699,6 +669,28 @@ ...@@ -699,6 +669,28 @@
commonTeamInfo commonTeamInfo
}, },
methods: { methods: {
goDinnerUrl(obj, outItem) {
if (this.IsEditDinner == 1) {
this.$router.push({
name: 'bookDinnerStatisticsDetails',
query: {
"id": obj.TCIDS,
'TCNUM': obj.TCNUMS,
'flightTotal': obj.TotalSeat,
'GuestNum': obj.OrderGuestNum,
'NewCombinationNum': outItem.NewCombinationNum,
'LeaderName': obj.LeaderName,
'GuideName': obj.GuideName,
'IsCombine': outItem.PriceCommonList.length > 1,
'NewTCIDs': outItem.TCIDS,
blank: 'y',
tab: "餐厅详情"
}
})
} else {
this.Error("请联系地接部操作!");
}
},
getLeaderTypeStr: function (clas) { getLeaderTypeStr: function (clas) {
if (clas == 1) { if (clas == 1) {
return "(同行领队)" return "(同行领队)"
...@@ -1125,12 +1117,22 @@ ...@@ -1125,12 +1117,22 @@
this.loading = false; this.loading = false;
}); });
}, },
goRoomTip() goRoomTip() {
{
this.Error("请联系组团OP提供分房表文件!"); this.Error("请联系组团OP提供分房表文件!");
},
GetAuth() {
this.apipost('dmcstatistics_get_GetGetDmcTotalTablePageAuth', {}, res => {
if (res.data.resultCode == 1) {
this.IsDMCIsOpenHotel = res.data.data.IsDMCIsOpenHotel;
this.IsEditDinner = res.data.data.IsEditDinner;
} else {
this.$message.error(res.data.message);
}
}, err => {})
} }
}, },
mounted() { mounted() {
this.GetAuth();
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
......
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