Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
38c1331b
Commit
38c1331b
authored
Apr 27, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2d5d00ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
39 deletions
+23
-39
ChoiceAddFinancialDocuments2.vue
...mponents/FinancialModule/ChoiceAddFinancialDocuments2.vue
+1
-1
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+7
-1
automaticLogin.vue
src/components/automaticLogin.vue
+15
-37
No files found.
src/components/FinancialModule/ChoiceAddFinancialDocuments2.vue
View file @
38c1331b
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
,
mounted
(){
,
mounted
(){
// crm自动登陆传过来的参数
// crm自动登陆传过来的参数
if
(
this
.
$route
.
query
.
crmOrderObj
){
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
.
active
=
this
.
crmOrderObj
.
type
this
.
showTab
=
this
.
crmOrderObj
.
type
this
.
showTab
=
this
.
crmOrderObj
.
type
}
else
{
}
else
{
...
...
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
38c1331b
...
@@ -976,7 +976,13 @@ export default {
...
@@ -976,7 +976,13 @@ export default {
"dmcTravelBill"
:
dmcTravelBill
"dmcTravelBill"
:
dmcTravelBill
},
},
created
(){
created
(){
this
.
ID
=
this
.
$route
.
query
.
id
;
// // 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
;
this
.
pageIndex
=
this
.
$route
.
query
.
pageIndex
;
let
userinfo
=
this
.
getLocalStorage
();
let
userinfo
=
this
.
getLocalStorage
();
this
.
bossID
=
userinfo
.
EmployeeId
;
this
.
bossID
=
userinfo
.
EmployeeId
;
...
...
src/components/automaticLogin.vue
View file @
38c1331b
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
password
:
""
,
password
:
""
,
Domain
:
""
Domain
:
""
},
},
crmOrderObj
:{}
crmOrderObj
:{},
obj
:{}
}
}
},
},
components
:
{
components
:
{
...
@@ -41,39 +42,23 @@
...
@@ -41,39 +42,23 @@
},
},
created
()
{
created
()
{
let
href
=
window
.
location
.
href
;
if
(
this
.
$route
.
query
){
if
(
href
){
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
;
let
param
=
href
.
split
(
'?'
)[
1
].
split
(
"&"
)
;
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
if
(
param
){
if
(
param
){
let
obj
=
{};
this
.
obj
.
parameter
=
param
[
0
]
obj
.
token
=
param
[
0
].
split
(
'='
)[
1
];
localStorage
.
crmuserInfo
=
JSON
.
stringify
(
this
.
obj
);
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
);
}
}
}
}
if
(
!
this
.
getLocalStorage
()){
if
(
!
this
.
getLocalStorage
()){
this
.
autoLogin
()
this
.
autoLogin
()
}
else
{
}
else
{
var
data
=
JSON
.
parse
(
localStorage
.
crmuserInfo
)
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
({
this
.
$router
.
push
({
path
:
`ChoiceAddFinancialDocuments`
,
path
:
data
.
parameter
.
path
,
query
:{
query
:{
crmOrderObj
:
this
.
crmOrderObj
,
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
)
,
Type
:
data
.
type
Type
:
data
.
parameter
.
type
}
}
});
});
}
}
...
@@ -108,23 +93,16 @@
...
@@ -108,23 +93,16 @@
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
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
.
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
({
this
.
$router
.
push
({
path
:
`ChoiceAddFinancialDocuments`
,
path
:
data
.
parameter
.
path
,
query
:{
query
:{
crmOrderObj
:
this
.
crmOrderObj
,
crmOrderObj
:
JSON
.
stringify
(
data
.
parameter
)
,
Type
:
data
.
type
Type
:
data
.
parameter
.
type
}
}
});
});
}
else
{
}
else
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
"提示"
,
title
:
"提示"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment