Commit a27f4ca7 authored by youjie's avatar youjie
parents aef5c1bc 58dce010
......@@ -488,6 +488,7 @@
this.getGroup()
},
created() {
let autoLogin = localStorage.autoLogin ? JSON.parse(localStorage.autoLogin) : null
this.userInfo.name = autoLogin ? autoLogin.acc : ''
this.userInfo.password = autoLogin ? autoLogin.pwd : ''
......
......@@ -1060,7 +1060,6 @@
<el-form-item :label="$t('Operation.Op_zafei')">
<el-input v-model="addMsg_form.OtherPrice" :disabled="true"></el-input>
</el-form-item>
<el-form-item :label="$t('Operation.Op_oldmanSurcharge')">
<el-input v-model="addMsg_form.OldManChargePrice" :disabled="true"></el-input>
</el-form-item>
......@@ -1070,7 +1069,6 @@
<el-form-item :label="$t('Operation.Op_singleRoomcha')">
<el-input v-model="addMsg_form.SingleRoomPrice" :disabled="true"></el-input>
</el-form-item>
<el-form-item :label="$t('salesModule.ETZCZS')">
<el-input v-model="addMsg_form.ChildNeedPrice" :disabled="true"></el-input>
</el-form-item>
......@@ -1080,14 +1078,12 @@
<el-form-item :label="$t('salesModule.SSJE')">
<el-input v-model="addMsg_form.OpSetLossMoney" :disabled="true"></el-input>
</el-form-item>
<el-form-item :label="$t('salesModule.SingleJ')">
<el-input v-model="addMsg_form.SingleDMCPrice" :disabled="true"></el-input>
</el-form-item>
<el-form-item :label="$t('salesModule.BabyPrice')">
<el-input v-model="addMsg_form.BabyPrice" :disabled="true"></el-input>
</el-form-item>
</el-form>
</div>
</el-col>
......@@ -1701,12 +1697,13 @@
{{ $t("hotel.hotel_StartTeam") }}{{ item.startDate }}
</p>
<p>{{ $t("restaurant.res_oderTime") }}{{ item.createDate }}</p>
<p v-if="item.teamType==1||item.teamType==2">{{item.status==1?"未结团":(item.status==2?"已结团 ":(item.status==5?"待结团审核":""))}}{{item.status==2?item.outGroupAuditDate:""}}</p>
<p v-if="item.teamType==1||item.teamType==2">
{{item.status==1?"未结团":(item.status==2?"已结团 ":(item.status==5?"待结团审核":""))}}{{item.status==2?item.outGroupAuditDate:""}}
</p>
<p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p>
<p v-if="item.commissionMoney" style="color: red;cursor: pointer;">
<span style="float: left;">{{ $t("salesModule.Commission") }}</span>
<commissionDialog :type="pagesTitle" :objNew="item"></commissionDialog>{{item.commissionCurrency}}
<!-- {{ item.commissionMoney }} {{item.commissionCurrency}} -->
</p>
<p v-else-if="item.latestCommissionMoney" style="color: red">
{{ $t("salesModule.Commission") }}{{
......@@ -2146,14 +2143,17 @@
<span style="color:#f56c6c">{{childItem.visaType==1?'(个签)':''}}</span>
<span style="color:#f56c6c">{{childItem.ticketOutTypeStr}} </span>
<span v-if="childItem.isApplyPhoto == 1" style="color: red">({{ $t("salesModule.Zhao") }})</span>
&nbsp;&nbsp;</span>
<span style="cursor:pointer;" @click="goProtocol(item,childItem)">{{childItem.protocolId>0?"查看保密协议":"签订保密协议"}}</span>
&nbsp;&nbsp;
</span>
<span v-if="item.photoNum > 0">({{ $t("salesModule.NoPhoto") }} {{ item.photoNum
}}{{ $t("salesModule.Fen") }})</span>
</span>
<p v-if="item.cancelGuestList.length > 0">
<span class="">{{ $t("salesModule.CancelOrder") }}:</span>
<span class="RL-redType RL-remarkCon">
<span style="color: red" v-for="childItem in item.cancelGuestList">{{ childItem.userName }}<span style="color:#f56c6c">{{childItem.visaType==1?'(个签)':''}}</span>
<span style="color: red" v-for="childItem in item.cancelGuestList">{{ childItem.userName }}<span
style="color:#f56c6c">{{childItem.visaType==1?'(个签)':''}}</span>
&nbsp;&nbsp;</span>
</span>
</p>
......@@ -2177,7 +2177,9 @@
<div v-if="item.otherContractList&&(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)">
<span class="GO_Contract"
@click="goSingleContract(item)">{{item.otherContractList.length==0?"单项合同":"查看单项合同"}}</span>
</div>
<div v-if="
item.contractNum.length == 0 &&
(qjGroupId == userInfo.RB_Group_id || F_ContractManagement)
......@@ -2951,6 +2953,32 @@
}
this.OpenNewPage('/ContractManage', query)
},
//跳转到保密协议
goProtocol(item, sItem) {
let ProtocolId = 0;
let guestId = 0;
var path = "discountProtocol";
if (sItem) {
if (sItem.protocolId) {
ProtocolId = sItem.protocolId;
}
if (sItem.guestId) {
guestId = sItem.guestId;
}
}
var pMsg = {
TCID: item.tcid,
GuestId: guestId,
OrderId: item.orderId,
ProtocolId: ProtocolId,
blank: "y",
}
let routeData = this.$router.resolve({
name: path,
query: pMsg,
});
window.open(routeData.href, "_blank");
},
//跳转至领取合同
goContract(item, sItem) {
let cid = 0;
......
......@@ -2340,8 +2340,9 @@
{{childItem.userName}}
<span style="color:#f56c6c">{{childItem.visaType==1?'(个签)':''}}</span>
<span style="color:#f56c6c">{{childItem.ticketOutTypeStr}} </span>
<span
v-if="childItem.isApplyPhoto == 1" style="color: red">(照)</span>&nbsp;&nbsp;</span>
<span style="cursor:pointer;"
@click="goProtocol(item,childItem)">{{childItem.protocolId>0?"查看保密协议":"签订保密协议"}}</span>
<span v-if="childItem.isApplyPhoto == 1" style="color: red">(照)</span>&nbsp;&nbsp;</span>
<span v-if="item.photoNum > 0">(照片一人 {{ item.photoNum }}份)</span>
</span>
<p v-if="item.cancelGuestList && item.cancelGuestList.length > 0">
......@@ -3651,6 +3652,32 @@
},
},
methods: {
//跳转到保密协议
goProtocol(item, sItem) {
let ProtocolId = 0;
let guestId = 0;
var path = "discountProtocol";
if (sItem) {
if (sItem.protocolId) {
ProtocolId = sItem.protocolId;
}
if (sItem.guestId) {
guestId = sItem.guestId;
}
}
var pMsg = {
TCID: item.tcid,
GuestId: guestId,
OrderId: item.orderId,
ProtocolId: ProtocolId,
blank: "y",
}
let routeData = this.$router.resolve({
name: path,
query: pMsg,
});
window.open(routeData.href, "_blank");
},
//关闭弹窗
closeDialog() {
this.isShowLayerRemarks = false;
......
<style>
.saleRankDialog{}
.saleRankDialog .top{
height: 340px;
background: url(../../assets/img/saleRank/bg.png)
}
.saleRankDialog .top .top_info{
display: flex;
justify-content: center;
padding-top: 40px;
}
.saleRankDialog .top .top_info .head,.saleRankDialog .bottom ._item .head{
width: 80px;
height: 80px;
border: 2px solid #F9DA49;
border-radius: 50%;
position: relative;
}
.saleRankDialog .top .top_info .head >.head_img,.saleRankDialog .bottom ._item .head>.head_img{
width: 76px;
height: 76px;
border-radius: 50%;
}
.saleRankDialog .top .top_info .head >.head_guan,.saleRankDialog .bottom ._item .head>.head_guan{
position: absolute;
left: -15px;
top: -24px;
}
.saleRankDialog .bottom ._item .head{
width: 40px;
height: 40px;
}
.saleRankDialog .bottom ._item .head>.head_img{
width: 36px;
height: 36px;
}
.saleRankDialog .bottom ._item .head>.head_guan{
left: -8px;
top: -12px;
}
.saleRankDialog .bottom ._item .head.num_two{
border-color: #BDC8DB;
}
.saleRankDialog .bottom ._item .head.num_tree{
border-color: #BAA3A3;
}
.saleRankDialog .top{
color: #FFFFFF;
font-size: 14px;
text-align: center;
}
.saleRankDialog .top ._name{
margin-top: 13px
}
.saleRankDialog .top ._rank{
color: #FFFFFF;
font-size: 30px;
margin-top: 20px
}
.saleRankDialog .top .top_money{
padding: 25px 0 ;
}
.saleRankDialog .top .top_money ._num{
color: #F1A131;
font-size: 24px;
margin-top: 5px;
}
.saleRankDialog .top .top_money .left{
border-right: 2px solid rgba(233,233,233,.5);
}
.saleRankDialog .top .top_money .right{
border-left: 2px solid rgba(233,233,233,.5);
}
.saleRankDialog .bottom{
padding: 0 30px;
background-color: white;
}
.saleRankDialog .bottom ._time {
text-align: center;
padding: 20px 0;
}
.saleRankDialog .bottom ._item ._item_left{
display: flex;
align-items: center;
}
.saleRankDialog .bottom ._time ._time_num{
display: inline-block;
text-align: center;
line-height: 24px;
width: 30px;
height: 24px;
background: linear-gradient(-30deg,rgba(79,169,255,1),rgba(71,121,255,1));
color: white;
}
.saleRankDialog .bottom ._item{
padding: 15px 0;
border-top: 1px solid #F0F0F0;
display: flex;
align-items: center;
}
.saleRankDialog .bottom ._item ._jiangpai{
height: 26px;
display: inline-block;
margin-right: 18px;
}
.saleRankDialog .bottom ._item ._name{
color: #666666;
padding-left: 20px;
}
.saleRankDialog .bottom ._item ._money{
float: right;
color: #F1A131;
font-size: 16px;
flex: 2;
text-align: right;
}
.saleRankDialog .bottom ._company{
font-size: 12px;
color: #888888;
padding: 15px;
border-top: 1px solid #F0F0F0;
}
.saleRankDialog .bottom ._company span{
color: #333333;
display: inline-block;
margin-left: 20px;
}
.saleRankDialog .history>div{
background-color: #D0D0D0;
color: #E95252;
text-align: center;
height: 60px;
line-height: 60px;
}
.saleRankDialog .history>div span{
cursor: pointer;
}
.saleRankDialog {}
.saleRankDialog .top {
height: 340px;
background: url(../../assets/img/saleRank/bg.png)
}
.saleRankDialog .top .top_info {
display: flex;
justify-content: center;
padding-top: 40px;
}
.saleRankDialog .top .top_info .head,
.saleRankDialog .bottom ._item .head {
width: 80px;
height: 80px;
border: 2px solid #F9DA49;
border-radius: 50%;
position: relative;
}
.saleRankDialog .top .top_info .head>.head_img,
.saleRankDialog .bottom ._item .head>.head_img {
width: 76px;
height: 76px;
border-radius: 50%;
}
.saleRankDialog .top .top_info .head>.head_guan,
.saleRankDialog .bottom ._item .head>.head_guan {
position: absolute;
left: -15px;
top: -24px;
}
.saleRankDialog .bottom ._item .head {
width: 40px;
height: 40px;
}
.saleRankDialog .bottom ._item .head>.head_img {
width: 36px;
height: 36px;
}
.saleRankDialog .bottom ._item .head>.head_guan {
left: -8px;
top: -12px;
}
.saleRankDialog .bottom ._item .head.num_two {
border-color: #BDC8DB;
}
.saleRankDialog .bottom ._item .head.num_tree {
border-color: #BAA3A3;
}
.saleRankDialog .top {
color: #FFFFFF;
font-size: 14px;
text-align: center;
}
.saleRankDialog .top ._name {
margin-top: 13px
}
.saleRankDialog .top ._rank {
color: #FFFFFF;
font-size: 30px;
margin-top: 20px
}
.saleRankDialog .top .top_money {
padding: 25px 0;
}
.saleRankDialog .top .top_money ._num {
color: #F1A131;
font-size: 24px;
margin-top: 5px;
}
.saleRankDialog .top .top_money .left {
border-right: 2px solid rgba(233, 233, 233, .5);
}
.saleRankDialog .top .top_money .right {
border-left: 2px solid rgba(233, 233, 233, .5);
}
.saleRankDialog .bottom {
padding: 0 30px;
background-color: white;
}
.saleRankDialog .bottom ._time {
text-align: center;
padding: 20px 0;
}
.saleRankDialog .bottom ._item ._item_left {
display: flex;
align-items: center;
}
.saleRankDialog .bottom ._time ._time_num {
display: inline-block;
text-align: center;
line-height: 24px;
width: 30px;
height: 24px;
background: linear-gradient(-30deg, rgba(79, 169, 255, 1), rgba(71, 121, 255, 1));
color: white;
}
.saleRankDialog .bottom ._item {
padding: 15px 0;
border-top: 1px solid #F0F0F0;
display: flex;
align-items: center;
}
.saleRankDialog .bottom ._item ._jiangpai {
height: 26px;
display: inline-block;
margin-right: 18px;
}
.saleRankDialog .bottom ._item ._name {
color: #666666;
padding-left: 20px;
}
.saleRankDialog .bottom ._item ._money {
float: right;
color: #F1A131;
font-size: 16px;
flex: 2;
text-align: right;
}
.saleRankDialog .bottom ._company {
font-size: 12px;
color: #888888;
padding: 15px;
border-top: 1px solid #F0F0F0;
}
.saleRankDialog .bottom ._company span {
color: #333333;
display: inline-block;
margin-left: 20px;
}
.saleRankDialog .history>div {
background-color: #D0D0D0;
color: #E95252;
text-align: center;
height: 60px;
line-height: 60px;
}
.saleRankDialog .history>div span {
cursor: pointer;
}
</style>
<template>
<el-row class="saleRankDialog">
<el-row class="top">
<div class="top_info">
<div class="head">
<img class="head_img" :src="detail.List[0].EmployeeImg" alt="">
<img class="head_guan" src="../../assets/img/saleRank/diyitou.png" alt="">
</div>
<div class="head">
<template v-if="detail.List&&detail.List.length>0&&detail.List[0].EmployeeImg">
<img class="head_img" :src="detail.List[0].EmployeeImg" alt="">
</template>
<img class="head_guan" src="../../assets/img/saleRank/diyitou.png" alt="">
</div>
</div>
<p class="_name">{{detail.List[0].EmployeeName}}{{detail.List[0].BranchName}}</p>
<p class="_name">
<template v-if="detail.List&&detail.List.length>0">
{{detail.List[0].EmployeeName}}{{detail.List[0].BranchName}}
</template>
</p>
<p class="_rank">小组赛第1名</p>
<el-row class="top_money">
<el-col :span="12" class="left">
<div>
<p>本期数据值</p>
<p class="_num">¥{{moneyFormat(detail.List[0].WeekTotalPrice)}}</p>
<p class="_num">
<template v-if="detail.List&&detail.List.length>0">
¥{{moneyFormat(detail.List[0].WeekTotalPrice)}}
</template>
</p>
</div>
</el-col>
<el-col :span="12" class="right">
<div>
<p>累计数据值</p>
<p class="_num">¥{{moneyFormat(detail.List[0].TotalPrice)}}</p>
<p class="_num">
<template v-if="detail.List&&detail.List.length>0">
¥{{moneyFormat(detail.List[0].TotalPrice)}}
</template></p>
</div>
</el-col>
</el-row>
</el-row>
<el-row class="bottom">
<el-row class="_time">
<p>销售排名时间: <span class="_time_num">{{detail.StartDateMonth}}</span><span class="_time_num">{{detail.StartDateDay}}</span> 日 - <span class="_time_num">{{detail.EndDateMonth}}</span><span class="_time_num">{{detail.EndDateDay}}</span></p>
<p>销售排名时间: <span class="_time_num">{{detail.StartDateMonth}}</span><span
class="_time_num">{{detail.StartDateDay}}</span> 日 - <span class="_time_num">{{detail.EndDateMonth}}</span>
<span class="_time_num">{{detail.EndDateDay}}</span></p>
</el-row>
<template v-for="(item, index) in detail.List" v-if="index !== 0">
<el-row class="_item">
<div class="_item_left">
<img class="_jiangpai" :src="jiangpai[index-1].p" alt="">
<div class="head" :class="{'num_two': index === 1, 'num_tree': index === 2}">
<img class="head_img" :src="item.EmployeeImg" alt="">
<img class="head_img" :src="item.EmployeeImg" alt="">
<img v-if="index < 3" class="head_guan" :src="jiangpai[index-1].g" alt="">
</div>
</div>
<p class="_name">{{item.EmployeeName}}{{item.BranchName}}</p>
</div>
<p class="_money">¥{{moneyFormat(item.WeekTotalPrice)}}</p>
......@@ -197,37 +245,42 @@
</el-row>
</template>
<script>
export default {
props:['detail'],
data(){
return {
list: [1,2,3,4],
jiangpai: [
{
p: require('../../assets/img/saleRank/jiangpai2.png'),
g: require('../../assets/img/saleRank/diertou.png')
},
{
p: require('../../assets/img/saleRank/jiangpai3.png'),
g: require('../../assets/img/saleRank/disantou.png')
},
{
p: require('../../assets/img/saleRank/jiangpai4.png'),
},
{
p: require('../../assets/img/saleRank/jiangpai5.png'),
},
]
}
},
mounted(){
},
methods:{
goUrl: function (path) {
this.$router.push({ name: path, query:{ tab: '往期排行'}})
this.$emit('closeChangeMachie')
export default {
props: ['detail'],
data() {
return {
list: [1, 2, 3, 4],
jiangpai: [{
p: require('../../assets/img/saleRank/jiangpai2.png'),
g: require('../../assets/img/saleRank/diertou.png')
},
{
p: require('../../assets/img/saleRank/jiangpai3.png'),
g: require('../../assets/img/saleRank/disantou.png')
},
{
p: require('../../assets/img/saleRank/jiangpai4.png'),
},
{
p: require('../../assets/img/saleRank/jiangpai5.png'),
},
]
}
},
mounted() {
},
methods: {
goUrl: function (path) {
this.$router.push({
name: path,
query: {
tab: '往期排行'
}
})
this.$emit('closeChangeMachie')
}
}
}
}
</script>
<style>
@import "../assets/css/login2019.css";
.Autologin{
.Autologin {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
/* transform: translate(-50%,-50%); */
background: url('../assets/img/login/load.gif')no-repeat center;
background-size: 350px auto;
}
......@@ -15,7 +14,6 @@
<div>
<div class="Autologin">
<div class="gifContent">
</div>
</div>
</div>
......@@ -25,38 +23,38 @@
data() {
return {
loading: false,
msg:{},
msg: {},
userInfo: {
name: "",
password: "",
Domain: ""
},
crmOrderObj:{},
obj:{}
crmOrderObj: {},
obj: {}
}
},
components: {
},
mounted() {
},
created() {
if(this.$route.query){
let param = JSON.parse(this.$route.query.data) ;
this.obj.token=this.$route.query.token;
if(param){
this.obj.parameter=param[0]
if (this.$route.query) {
let param = JSON.parse(this.$route.query.data);
this.obj.token = this.$route.query.token;
if (param) {
this.obj.parameter = param[0]
localStorage.crmuserInfo = JSON.stringify(this.obj);
}
}
if(!this.getLocalStorage()){
if (!this.getLocalStorage()) {
this.autoLogin()
}else{
} else {
var data = JSON.parse(localStorage.crmuserInfo)
this.$router.push({
path: data.parameter.path,
query:{
query: {
crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type
}
......@@ -64,7 +62,7 @@
}
},
methods: {
autoLogin(){
autoLogin() {
this.apipostLogin(
"admin_get_GetErpAutoLoginInfo",
this.msg,
......@@ -78,30 +76,26 @@
localStorage.userInfo = userJson;
let firstTire = []
userData.UserMenu.forEach(x => {
if (x.MenuUrl != '/' && x.MenuUrl!='') {
if (x.MenuUrl != '/' && x.MenuUrl != '') {
firstTire.push(x.MenuName)
} else {
x.MenuUrl='';
x.MenuUrl = '';
firstTire.push(x.MenuName);
}
})
//UserMenu
// this.$cookie.set("account", this.userInfo.name);
this.$cookie.set("EmployeeId", userData.EmployeeId);
this.$cookie.set("RB_Branch_id", userData.RB_Branch_id);
this.$cookie.set("RB_Group_id", userData.RB_Group_id);
localStorage.menu = JSON.stringify(firstTire)
this.loginState = 0;
var data = JSON.parse(localStorage.crmuserInfo)
this.$router.push({
path: data.parameter.path,
query:{
query: {
crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type
}
});
} else {
this.$notify.error({
title: "提示",
......@@ -116,7 +110,5 @@
);
}
},
}
</script>
</script>
\ No newline at end of file
......@@ -247,19 +247,6 @@
font-weight: bold;
}
.CliSignDiv {
position: fixed;
border: 1px solid #d1d1d1;
width: 100%;
background-color: #fff;
z-index: 999;
margin: auto;
display: block;
z-index: -999;
}
.TopFixed {
z-index: 100;
}
......@@ -711,15 +698,11 @@
},
mounted() {
this.msg.TCID = this.$route.query.TCID;
this.msg.OrderId = this.$route.query.OrderId;
this.msg.GuestId = this.$route.query.GuestId;
this.msg.ProtocolId = this.$route.query.ProtocolId;
try {
var cHeight = document.getElementsByClassName("CliSignDiv")[0];
cHeight.style.height = 900 + 'px';
} catch (error) {}
this.getList();
// this.msg.TCID = this.$route.query.TCID;
// this.msg.OrderId = this.$route.query.OrderId;
// this.msg.GuestId = this.$route.query.GuestId;
// this.msg.ProtocolId = this.$route.query.ProtocolId;
// this.getList();
}
};
......
......@@ -119,7 +119,7 @@ export default {
let lxymallUrl = ''; //国内游api
let crmUrl = ""; //crm API
let locationName = window.location.hostname;
let isOnline=0;//0-本地测试,1-线上
let isOnline = 0; //0-本地测试,1-线上
let ocrUrl = "http://192.168.10.68:8888";
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.226"; //春姐
......@@ -139,17 +139,17 @@ export default {
lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://testcrm.oytour.com";
ocrUrl = "http://ocr.oytour.com";
isOnline=1;
isOnline = 1;
} else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com";
mallUrl = "https://mallapi.oytour.com";
lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://crm.oytour.com";
ocrUrl = "http://ocr.oytour.com";
isOnline=1;
isOnline = 1;
}
var obj = {
IsOnline:isOnline,//0-本地,1-线上
IsOnline: isOnline, //0-本地,1-线上
//主地址
DomainUrl: domainUrl,
ocrUrl: ocrUrl, //行程下载地址
......@@ -261,9 +261,8 @@ export default {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 &&
this.$route.name.indexOf('confirmationOrderDownLoadNew') === -1 && this.$route.name.indexOf('PrintPage') === -1 &&
this.$route.name.indexOf('TravelContractConfirm') === -1 && this.$route.name.indexOf('ViittoContractConfirm') === -1 &&
this.$route.name.indexOf('OrderProfitLossList') === -1&&this.$route.name.indexOf('clientProtocol') === -1
this.$route.name.indexOf('OrderProfitLossList') === -1 && this.$route.name.indexOf('clientProtocol') === -1
) {
let previousPathInfo = {
path: this.$route.name,
query: this.$route.query
......@@ -280,6 +279,7 @@ export default {
}
var timestamp = (new Date()).valueOf();
this.apiurl = apiurl;
if (this.$route.path.toLowerCase() == "/signature") {
this.$router.push({
path: '/signature'
......@@ -301,6 +301,20 @@ export default {
guestId: guestId,
}
})
} else if (this.$route.path == "/clientProtocol") {
let TCID = this.$route.query.TCID;
let OrderId = this.$route.query.OrderId;
let GuestId = this.$route.query.GuestId;
let ProtocolId = this.$route.query.ProtocolId;
this.$router.push({
name: "clientProtocol",
query: {
TCID: TCID,
OrderId: OrderId,
GuestId: GuestId,
ProtocolId: ProtocolId,
}
})
} else if (this.$route.path == "/clientConfirmRB") {
let TCID = this.$route.query.TCID;
let orderID = this.$route.query.orderID;
......@@ -329,21 +343,7 @@ export default {
Id: Id
}
})
}
else if (this.$route.path == "/clientProtocol") {
let TCID = this.$route.query.TCID;
let OrderId = this.$route.query.OrderId;
let GuestId = this.$route.query.GuestId;
this.$router.push({
name: "clientProtocol",
query: {
TCID: TCID,
OrderId: OrderId,
GuestId: GuestId,
}
})
}
else {
} else {
if (!localStorage.userInfo && localStorage.userInfo != "" && this.$route.path.toLowerCase() != "/login") {
this.goToLogin(1);
}
......@@ -407,9 +407,6 @@ export default {
.then(res => {
//Token 10000 过期 10001 不合法
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
// if (this.getLocalStorage()) {
// this.goToLogin(2);
// }
this.goToLogin(2);
} else if (res.resultCode == 10005) {
this.$router.go(-1);
......
......@@ -3,10 +3,14 @@ import login from '../components/Login2019'
import index from '../components/index'
import clientConfirm from '../components/clientConfirm'
import clientConfirmRB from '../components/clientConfirmRB'
import clientProtocol from '../components/clientProtocol'
import SignName from '../components/SignName'
import supplierLogin from '../components/SupplierLogin'
import supplierIndex from '../components/SupplierIndex'
import automaticLogin from '../components/automaticLogin'
import {
fromByteArray
} from 'ipaddr.js'
export default {
routes: [{
path: '/',
......@@ -2751,21 +2755,21 @@ export default {
},
},
{
path: '/Returnratio',// 销售=>返佣比例管理
path: '/Returnratio', // 销售=>返佣比例管理
name: 'Returnratio',
component: resolve => require(['@/components/SalesModule/Returnratio'], resolve),
meta: {
title: '返佣比例管理'
},
}, {
path: '/demandStatistics',// 销售=> 统计
path: '/demandStatistics', // 销售=> 统计
name: 'demandStatistics',
component: resolve => require(['@/components/SalesModule/demandStatistics'], resolve),
meta: {
title: '销售统计'
},
}, {
path: '/quoTation',//团控=>报价单
path: '/quoTation', //团控=>报价单
name: 'quoTation',
component: resolve => require(['@/components/TravelManager/TravelQuotationCenter/quoTation'], resolve),
meta: {
......@@ -3834,7 +3838,7 @@ export default {
meta: {
title: '平台账户'
},
},{ //财务 审核平台账户
}, { //财务 审核平台账户
path: '/PlatformAccountExamine',
name: 'PlatformAccountExamine',
component: resolve => require(['@/components/FinancialModule/PlatformAccountExamine'], resolve),
......@@ -5865,6 +5869,11 @@ export default {
name: 'clientConfirmRB',
component: clientConfirmRB
},
{
path: '/clientProtocol', //价格保密协议签订
name: 'clientProtocol',
component: clientProtocol,
},
{
path: '/SignName',
name: 'SignName',
......@@ -5902,14 +5911,6 @@ export default {
title: '价格保密协议'
}
},
{
path: '/clientProtocol', //价格保密协议签订
name: 'clientProtocol',
component: resolve => require(['@/components/clientProtocol'], resolve),
meta: {
title: '价格保密协议签订'
}
},
{
path: '/SingleContract', //单项合同
name: 'SingleContract',
......
......@@ -93,7 +93,6 @@ export default {
if (state.nim) {
state.nim.disconnect()
}
//pageUtil.turnPage('', 'login')
},
// 初始化 重新连接SDK
......
......@@ -41,8 +41,7 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) {
}
},
onerror: function onError (event) {
// alert(JSON.stringify(event))
//location.href = config.loginUrl
},
onwillreconnect: function onWillReconnect () {
......
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