Commit 07ee4a3c authored by 吴春's avatar 吴春

111

parent e05c6551
......@@ -801,6 +801,16 @@ var tripUtils = {
}
},
//跳转到B2B页面
GotoB2BCarPage(B2BDomain, Id) {
if (B2BDomain) {
var url = "http://" + B2BDomain;
window.open(
url + "/#/detailCar/"+Id,
"_blank"
);
}
},
//跳转到B2B页面
GotoB2BPage(B2BDomain, ConfigId, tcid) {
if (B2BDomain) {
var url = "http://" + B2BDomain;
......
......@@ -297,6 +297,7 @@
<button @click="goUrl('CharteringInfoManage',item.Id)" class="hotelBtn">{{$t('pub.updateMsg')}}</button>
<button @click="goUrlT('CharteringQuotation',item.Id,item.Name)" class="hotelBtn">{{$t('objFill.baojia')}}</button>
<button class="hotelBtn" @click="clickShelf(item)">{{item.ProductState==2?$t('Operation.Op_shangjia'):$t('Operation.Op_xiajia')}}</button>
<button @click="goB2B(item.Id)" class="hotelBtn"> {{$t('sm.yulan')}}</button>
</div>
</div>
<div class="noData" v-show="noData">{{$t('system.content_noData')}}</div>
......@@ -309,6 +310,8 @@
export default {
data() {
return {
//当前登录用户信息
CurrentUserInfo: {},
countryList: "",
provinceList: "",
cityList: "",
......@@ -356,6 +359,15 @@
};
},
methods: {
goB2B(ConfigId) {
var B2BDomain = this.CurrentUserInfo.B2BDomain;
if (this.CurrentUserInfo.RB_Group_id == 81) {
this.$tripUtils.GotoB2BCarPage(B2BDomain, ConfigId);
} else {
this.$tripUtils.GotoB2BCarPage(B2BDomain, ConfigId);
}
},
// 上下架
clickShelf(item) {
var that = this;
......@@ -637,6 +649,9 @@
if (id) {
this.msg.ID = id;
}
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.selectResource();
}
};
......
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