Commit 22dc2c8a authored by 吴春's avatar 吴春

1

parent 6c9a4c8f
This diff is collapsed.
...@@ -374,9 +374,11 @@ ...@@ -374,9 +374,11 @@
L5: items.ID == 5, L5: items.ID == 5,
}">{{ items.Name }}</span> }">{{ items.Name }}</span>
</div> </div>
<template v-if="msg.IsRecommend==0" >
<div class="delScien" @click.stop="isdelete(item.ID)"> <div class="delScien" @click.stop="isdelete(item.ID)">
<i class="iconfont icon-xingzhuang"></i> <i class="iconfont icon-xingzhuang"></i>
</div> </div></template>
<div class="starSu"> <div class="starSu">
<div class="star" v-if="item.Star < 8"> <div class="star" v-if="item.Star < 8">
<i v-for="(items, index) in item.starArr" class="iconfont icon-star1" :key="index"></i> <i v-for="(items, index) in item.starArr" class="iconfont icon-star1" :key="index"></i>
...@@ -434,27 +436,36 @@ ...@@ -434,27 +436,36 @@
</el-tooltip> </el-tooltip>
<div class="btnList"> <div class="btnList">
<template v-if="userInfo.RB_Group_id==2"> <template v-if="userInfo.RB_Group_id==2">
<template v-if="msg.IsRecommend==0">
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan"> <button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }} {{ $t("pub.updateMsg") }}
</button> </button>
</template>
<button @click="goSubInfo('HotelInfoDetails', item.ID)" class="hotelBtnMan">
详情
</button>
<template v-if="msg.IsRecommend==0">
<button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()"> <button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()">
{{$t('objFill.copy')}} {{$t('objFill.copy')}}
</button> </button>
</template>
<template v-if="msg.IsRecommend==0">
<button @click="goproduct('HotelProductManage', item)" class="hotelBtnMan" <button @click="goproduct('HotelProductManage', item)" class="hotelBtnMan"
v-if="userInfo.RB_Group_id != QjGroupId()"> v-if="userInfo.RB_Group_id != QjGroupId()">
{{$t('hotel.hotel_roomType')}} {{$t('hotel.hotel_roomType')}}
</button> </button>
</template>
<br /> <br />
<button v-if="IsHotelPriceStock==1||userInfo.RB_Group_id!=2" style="width: 80px; margin-top: 10px" <button v-if="(IsHotelPriceStock==1||userInfo.RB_Group_id!=2)&&msg.IsRecommend==0" style="width: 80px; margin-top: 10px"
@click="goUrl('HotelProductManage2', item)" class="hotelBtnMan"> @click="goUrl('HotelProductManage2', item)" class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }} {{ $t("ground.baojiayukucun") }}
</button> </button>
<button v-if="IsHotelPriceStock==1" style="width: 80px; margin-top: 10px" @click="downloadFile(item)" <button v-if="IsHotelPriceStock==1&&msg.IsRecommend==0" style="width: 80px; margin-top: 10px" @click="downloadFile(item)"
class="hotelBtnMan"> class="hotelBtnMan">
{{$t('objFill.shangchuanbj')}} {{$t('objFill.shangchuanbj')}}
</button> </button>
<template v-if="item.MaxFileDate&&item.MaxFileDate!=''"> <template v-if="item.MaxFileDate&&item.MaxFileDate!=''&&msg.IsRecommend==0">
<span style="color:red">{{$t('objFill.zuijinscsij')}}:{{item.MaxFileDate}}</span> <span style="color:red">{{$t('objFill.zuijinscsij')}}:{{item.MaxFileDate}}</span>
</template> </template>
</template> </template>
...@@ -556,6 +567,8 @@ ...@@ -556,6 +567,8 @@
], ],
defaultImg: 'this.src="' + require("../../assets/img/bg_z1@2x.png") + '"', defaultImg: 'this.src="' + require("../../assets/img/bg_z1@2x.png") + '"',
loading: true, loading: true,
IsHotelPriceStock: 0, //1-有获取餐厅与报价添加修改权限
IsEditDmcSource: 0, //是否有新增修改权限
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 14, pageSize: 14,
...@@ -575,6 +588,7 @@ ...@@ -575,6 +588,7 @@
QFileStartDate: "", //报价上传开始日期 QFileStartDate: "", //报价上传开始日期
QFileEndDate: "", //报价上传结束日期 QFileEndDate: "", //报价上传结束日期
IsUpFile: 0, //是否上传报价(1-已上传,2-未上传) IsUpFile: 0, //是否上传报价(1-已上传,2-未上传)
IsRecommend:0,
}, },
isDisableCountry: false, //是否禁用国家查询 isDisableCountry: false, //是否禁用国家查询
}; };
...@@ -876,6 +890,31 @@ ...@@ -876,6 +890,31 @@
}, },
(err) => {} (err) => {}
); );
},
//获取酒店修改与报价添加修改权限
GetHotelPirceStockAuth() {
let isStock = "IsHotelPriceStock";
let editDmcSource = "F_EditDmcSource";
this.apipost('userauth_get_CheckUserAuthNewService', '', res => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
if (tempData && tempData.length > 0) {
if (tempData.includes(isStock)) {
this.IsHotelPriceStock = 1;
}
if (tempData.includes(editDmcSource)) {//查看列表权限
this.IsEditDmcSource = 1;
}
else{
this.msg.IsRecommend=1;
}
}
}
else{
this.msg.IsRecommend=1;
}
this.selectResource();
});
}, },
}, },
mounted() { mounted() {
...@@ -886,7 +925,7 @@ ...@@ -886,7 +925,7 @@
this.isDisableCountry = true; this.isDisableCountry = true;
this.getProvinceList(this.msg.QCountry, 1); this.getProvinceList(this.msg.QCountry, 1);
} }
this.selectResource(); this.GetHotelPirceStockAuth();
}, },
created() { created() {
if (this.$route.query.hasOwnProperty("cache")) { if (this.$route.query.hasOwnProperty("cache")) {
......
...@@ -812,6 +812,14 @@ export default { ...@@ -812,6 +812,14 @@ export default {
title: '添加修改酒店信息' title: '添加修改酒店信息'
}, },
}, },
{
path: '/HotelInfoDetails', //添加修改酒店信息
name: 'HotelInfoDetails',
component: resolve => require(['@/components/Hotel/HotelInfoDetails'], resolve),
meta: {
title: '添加修改酒店信息'
},
},
{ {
path: '/GnHotelInfo', //添加修改国内酒店信息 path: '/GnHotelInfo', //添加修改国内酒店信息
name: 'GnHotelInfo', name: 'GnHotelInfo',
......
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