Commit d5b37768 authored by 罗超's avatar 罗超

no message

parent 711b0c7d
...@@ -122,20 +122,6 @@ export default { ...@@ -122,20 +122,6 @@ export default {
this.$router.push({ this.$router.push({
path: '/login' path: '/login'
}) })
// if(!window.location.href){
// this.$router.push({
// path: '/login'
// })
// }
// else{
// let href = window.location.href;
// if(href&&localStorage.crmuserInfo){
// this.$router.push({
// path: `/ChoiceAddFinancialDocuments?token=${data.token}&type=${data.type}&OtherType=${data.OtherType}&ReFinanceId=${data.ReFinanceId}&ReFinanceId2=${data.ReFinanceId2}&GuestId=${data.GuestId}`
// });
// }
// }
}else{ }else{
if(document.URL.indexOf("clientConfirm")!=-1||document.URL.indexOf("TravelContractConfirm")!=-1||document.URL.indexOf("ViittoContractConfirm")!=-1){ if(document.URL.indexOf("clientConfirm")!=-1||document.URL.indexOf("TravelContractConfirm")!=-1||document.URL.indexOf("ViittoContractConfirm")!=-1){
localStorage.openMode=0 localStorage.openMode=0
......
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
platformAccount:'', platformAccount:'',
Handmsg:{}, Handmsg:{},
czmsg:{}, czmsg:{},
crmOrderObj: null,
} }
}, },
computed: { computed: {
...@@ -133,17 +134,8 @@ ...@@ -133,17 +134,8 @@
} }
else{ else{
// 判断是否crm带参自动登录跳转 // crm自动登陆传过来的参数
if(this.$route.query.orderObj&&this.$route.query.orderObj.GuestId){ if(this.crmOrderObj){
let crmOrderObj = {
token: this.$route.query.orderObj.token,
type: this.$route.query.orderObj.type,
OtherType: this.$route.query.orderObj.OtherType,
ReFinanceId: this.$route.query.orderObj.ReFinanceId,
ReFinanceId2: this.$route.query.orderObj.ReFinanceId2,
GuestId: this.$route.query.orderObj.GuestId
}
console.log(JSON.stringify(crmOrderObj), '99988888')
this.$router.push({ this.$router.push({
name: "addReceivablesDocuments", name: "addReceivablesDocuments",
query:{ query:{
...@@ -152,7 +144,8 @@ ...@@ -152,7 +144,8 @@
"id":id, "id":id,
"Name":Name, "Name":Name,
"Type":Type, "Type":Type,
"crmOrderObj":JSON.stringify(crmOrderObj), "crmOrderObj":JSON.stringify(this.crmOrderObj),
"orderObj":this.orderObj,
'path':this.$route.query.path, 'path':this.$route.query.path,
'IsUploadPic':IsUploadPic, 'IsUploadPic':IsUploadPic,
'Cmd':this.$route.query.Cmd, 'Cmd':this.$route.query.Cmd,
...@@ -162,7 +155,6 @@ ...@@ -162,7 +155,6 @@
} }
}) })
}else{ }else{
console.log('-----', '30000000033333333')
this.$router.push({ this.$router.push({
name: "addReceivablesDocuments", name: "addReceivablesDocuments",
query:{ query:{
...@@ -181,8 +173,6 @@ ...@@ -181,8 +173,6 @@
} }
}) })
} }
} }
}else if(this.active==2){ }else if(this.active==2){
// 付款单参数czmsg // 付款单参数czmsg
...@@ -313,11 +303,11 @@ ...@@ -313,11 +303,11 @@
}, },
} }
,mounted(){ ,mounted(){
// 判断是否自动登陆跳转 // crm自动登陆传过来的参数
if(this.$route.query.orderObj&&this.$route.query.orderObj.GuestId){ if(this.$route.query.crmOrderObj){
var data = JSON.parse(localStorage.crmuserInfo) this.crmOrderObj = this.$route.query.crmOrderObj
this.active = data.type this.active = this.crmOrderObj.type
this.showTab = data.type this.showTab = this.crmOrderObj.type
}else{ }else{
this.showTab = this.$route.query.Type?this.$route.query.Type:0; this.showTab = this.$route.query.Type?this.$route.query.Type:0;
this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1; this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1;
......
...@@ -804,6 +804,7 @@ ...@@ -804,6 +804,7 @@
tradeWay: '', tradeWay: '',
platformAccount: '', platformAccount: '',
Handmsg: {}, Handmsg: {},
crmOrderObj:{}
} }
}, },
methods: { methods: {
...@@ -1321,6 +1322,13 @@ ...@@ -1321,6 +1322,13 @@
this.msg.OrderTradeWay = this.tradeWay; this.msg.OrderTradeWay = this.tradeWay;
this.msg.PlatformAccountId = this.platformAccount; this.msg.PlatformAccountId = this.platformAccount;
this.loading = true; this.loading = true;
// crm自动登陆传过来的参数
if(this.crmOrderObj){
this.msg.OtherType = this.crmOrderObj.OtherType
this.msg.ReFinanceId = this.crmOrderObj.ReFinanceId
this.msg.ReFinanceId2 = this.crmOrderObj.ReFinanceId2
this.msg.GuestId = this.crmOrderObj.GuestId
}
this.apipost('Financial_post_Set', this.msg, res => { this.apipost('Financial_post_Set', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$confirm(this.$t('tips.czcgsfjxzhidan'), this.$t('tips.tips'), { this.$confirm(this.$t('tips.czcgsfjxzhidan'), this.$t('tips.tips'), {
...@@ -1814,10 +1822,9 @@ ...@@ -1814,10 +1822,9 @@
let that = this; let that = this;
this.tradeWay = this.$route.query.tradeWay ? this.$route.query.tradeWay : 0; this.tradeWay = this.$route.query.tradeWay ? this.$route.query.tradeWay : 0;
this.platformAccount = this.$route.query.platformAccount ? this.$route.query.platformAccount : 0; this.platformAccount = this.$route.query.platformAccount ? this.$route.query.platformAccount : 0;
// 判断是否crm带参自动登录跳转 // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){ if(this.$route.query.crmOrderObj){
this.orderObj = JSON.parse(this.$route.query.crmOrderObj); this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj);
console.log(this.orderObj, '')
}else{ }else{
this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null; this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null;
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
password: "", password: "",
Domain: "" Domain: ""
}, },
orderObj:{} crmOrderObj:{}
} }
}, },
components: { components: {
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
this.autoLogin() this.autoLogin()
}else{ }else{
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.orderObj = { this.crmOrderObj = {
token: data.token, token: data.token,
type: data.type, type: data.type,
OtherType: data.OtherType, OtherType: data.OtherType,
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
this.$router.push({ this.$router.push({
path: `ChoiceAddFinancialDocuments`, path: `ChoiceAddFinancialDocuments`,
query:{ query:{
orderObj: this.orderObj crmOrderObj: this.crmOrderObj
} }
}); });
} }
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
localStorage.menu = JSON.stringify(firstTire) localStorage.menu = JSON.stringify(firstTire)
this.loginState = 0; this.loginState = 0;
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.orderObj = { this.crmOrderObj = {
token: data.token, token: data.token,
type: data.type, type: data.type,
OtherType: data.OtherType, OtherType: data.OtherType,
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
this.$router.push({ this.$router.push({
path: `ChoiceAddFinancialDocuments`, path: `ChoiceAddFinancialDocuments`,
query:{ query:{
orderObj: this.orderObj crmOrderObj: this.crmOrderObj
} }
}); });
} else { } else {
......
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
}) })
.then(res => { .then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) { if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
if (!localStorage.crmuserInfo){ if (this.getLocalStorage()){
this.$router.push({ this.$router.push({
path: '/login' path: '/login'
}); });
......
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