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
fd2d95d7
Commit
fd2d95d7
authored
May 18, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f4529f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
FProcessManagement.vue
src/components/FinancialModule/FProcessManagement.vue
+1
-2
index.js
src/plug/index.js
+37
-1
No files found.
src/components/FinancialModule/FProcessManagement.vue
View file @
fd2d95d7
...
...
@@ -109,8 +109,7 @@
<ul
class=
"_nav clearfix"
>
<li
class=
"_active"
@
click=
"getTemplateList()"
>
流程列表
</li>
<!--
<li
:class=
"active==1?'_active':''"
@
click=
"active=1,msg.TempLateWay=8,getTemplateList()"
>
自定义流程
</li>
-->
</ul>
<ul>
</ul>
<el-form
class=
"_info_box clearfix"
label-width=
"110px"
>
<el-row>
<el-col
:span=
"4"
:gutter=
"35"
>
...
...
src/plug/index.js
View file @
fd2d95d7
...
...
@@ -116,6 +116,7 @@ export default {
let
domainUrl
=
''
;
let
mallUrl
=
""
;
//商城API
let
lxymallUrl
=
''
;
//国内游api
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://192.168.10.36:8083"
;
let
javaUrldo
=
""
;
...
...
@@ -124,14 +125,17 @@ export default {
// mallUrl = "http://192.168.1.48:8019";
mallUrl
=
"http://192.168.20.13:8088"
;
lxymallUrl
=
"http://192.168.20.13:8088"
;
crmUrl
=
"http://192.168.10.36:8098"
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
crmUrl
=
"http://testcrm.oytour.com"
}
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"
}
var
obj
=
{
//主地址
...
...
@@ -163,7 +167,8 @@ export default {
//Java接口本站文件流下载地址
JavaLocalFileStreamDownLoadUrl
:
javaUrldo
,
mallUrl
:
mallUrl
,
lxymallUrl
:
lxymallUrl
lxymallUrl
:
lxymallUrl
,
crmUrl
:
crmUrl
};
return
obj
;
},
...
...
@@ -342,6 +347,37 @@ export default {
}
},
faildCall
)
},
// CRM接口
Vue
.
prototype
.
crmapipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
var
apiurl
=
this
.
domainManager
().
crmUrl
+
cmd
;
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"token"
:
token
,
"sign"
:
md5Str
,
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
}
else
{
successCall
(
res
);
}
},
faildCall
)
},
// 自动登录HTTP提交数据
Vue
.
prototype
.
apipostLogin
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
&&
...
...
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