Commit 38c1331b authored by 罗超's avatar 罗超

no message

parent 2d5d00ae
......@@ -337,7 +337,7 @@
,mounted(){
// crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){
this.crmOrderObj = this.$route.query.crmOrderObj
this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
this.active = this.crmOrderObj.type
this.showTab = this.crmOrderObj.type
}else{
......
......@@ -976,7 +976,13 @@ export default {
"dmcTravelBill":dmcTravelBill
},
created(){
// // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){
let data = JSON.parse(this.$route.query.crmOrderObj)
this.ID = data.id
}else{
this.ID = this.$route.query.id;
}
this.pageIndex = this.$route.query.pageIndex;
let userinfo = this.getLocalStorage();
this.bossID = userinfo.EmployeeId;
......
......@@ -31,7 +31,8 @@
password: "",
Domain: ""
},
crmOrderObj:{}
crmOrderObj:{},
obj:{}
}
},
components: {
......@@ -41,39 +42,23 @@
},
created() {
let href = window.location.href;
if(href){
let param = href.split('?')[1].split("&") ;
if(this.$route.query){
let param = JSON.parse(this.$route.query.data) ;
this.obj.token=this.$route.query.token;
if(param){
let obj={};
obj.token=param[0].split('=')[1];
obj.type=param[1].split('=')[1];
obj.OtherType=param[2].split('=')[1];
obj.ReFinanceId=param[3].split('=')[1];
obj.ReFinanceId2=param[4].split('=')[1];
obj.GuestId=param[5].split('=')[1];
localStorage.crmuserInfo = JSON.stringify(obj);
this.obj.parameter=param[0]
localStorage.crmuserInfo = JSON.stringify(this.obj);
}
}
if(!this.getLocalStorage()){
this.autoLogin()
}else{
var data = JSON.parse(localStorage.crmuserInfo)
this.crmOrderObj = {
token: data.token,
type: data.type,
OtherType: data.OtherType,
ReFinanceId: data.ReFinanceId,
ReFinanceId2: data.ReFinanceId2,
GuestId: data.GuestId
}
// ?token=${data.token}&type=${data.type}&OtherType=${data.OtherType}&ReFinanceId=${data.ReFinanceId}&ReFinanceId2=${data.ReFinanceId2}&GuestId=${data.GuestId}
this.$router.push({
path: `ChoiceAddFinancialDocuments`,
path: data.parameter.path,
query:{
crmOrderObj: this.crmOrderObj,
Type: data.type
crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type
}
});
}
......@@ -108,23 +93,16 @@
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.crmOrderObj = {
token: data.token,
type: data.type,
OtherType: data.OtherType,
ReFinanceId: data.ReFinanceId,
ReFinanceId2: data.ReFinanceId2,
GuestId: data.GuestId
}
// ?token=${data.token}&type=${data.type}&OtherType=${data.OtherType}&ReFinanceId=${data.ReFinanceId}&ReFinanceId2=${data.ReFinanceId2}&GuestId=${data.GuestId}
this.$router.push({
path: `ChoiceAddFinancialDocuments`,
path: data.parameter.path,
query:{
crmOrderObj: this.crmOrderObj,
Type: data.type
crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type
}
});
} else {
this.$notify.error({
title: "提示",
......
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