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
9571496b
Commit
9571496b
authored
May 20, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
41bfb7ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
2 deletions
+73
-2
ImpressionTicketCommissionConfiguration.vue
...nancialModule/ImpressionTicketCommissionConfiguration.vue
+0
-1
index.js
src/plug/index.js
+49
-1
config.js
src/router/config.js
+24
-0
No files found.
src/components/FinancialModule/ImpressionTicketCommissionConfiguration.vue
View file @
9571496b
...
...
@@ -384,7 +384,6 @@
{
name
:
'引流规则'
,
id
:
'2'
},
{
name
:
'销售规则'
,
id
:
'1'
}
],
textId
:
'2'
,
dataList
:[],
msg
:{
EmpType
:
'2'
...
...
src/plug/index.js
View file @
9571496b
...
...
@@ -119,6 +119,8 @@ export default {
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://192.168.10.36:8083"
;
let
crmLocalFileStreamDownLoadUrl
=
""
;
crmLocalFileStreamDownLoadUrl
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://crm.oytour.com"
:
"http://testcrm.oytour.com"
;
let
javaUrldo
=
""
;
javaUrldo
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.215:9000"
;
//商城API
...
...
@@ -142,6 +144,7 @@ export default {
DomainUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
//上传文件URL
UploadFileUrl
:
domainUrl
+
'/api/File/post'
,
//本站模板文件下载地址
...
...
@@ -168,7 +171,7 @@ export default {
JavaLocalFileStreamDownLoadUrl
:
javaUrldo
,
mallUrl
:
mallUrl
,
lxymallUrl
:
lxymallUrl
,
crmUrl
:
crmUrl
crmUrl
:
crmUrl
,
};
return
obj
;
},
...
...
@@ -786,6 +789,51 @@ export default {
successCall
(
res
);
}).
catch
(
function
(
res
)
{});
},
//crm下载文件
Vue
.
prototype
.
crmGetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
callBack
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
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
(
`msg=
${
encodeMsg
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
,
},
responseType
:
'blob'
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
if
(
callBack
)
{
var
result
=
{
Code
:
1
};
callBack
(
result
);
}
}).
catch
(
function
(
res
)
{
});
}
Vue
.
prototype
.
JavaGetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
this
.
domainManager
().
JavaLocalFileStreamDownLoadUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
...
...
src/router/config.js
View file @
9571496b
...
...
@@ -4633,6 +4633,30 @@ export default {
title
:
'印象票务提成配置'
}
},
{
path
:
'/ImpressionTicketCommission'
,
name
:
'ImpressionTicketCommission'
,
component
:
resolve
=>
require
([
'@/components/FinancialModule/ImpressionTicketing/ImpressionTicketCommission'
],
resolve
),
meta
:
{
title
:
'印象票务提成列表'
}
},
{
path
:
'/ImpressionTicketUserDetails'
,
name
:
'ImpressionTicketUserDetails'
,
component
:
resolve
=>
require
([
'@/components/FinancialModule/ImpressionTicketing/ImpressionTicketUserDetails'
],
resolve
),
meta
:
{
title
:
'印象票务提成明细'
}
},
{
path
:
'/ImpressionTicketDetails'
,
name
:
'ImpressionTicketDetails'
,
component
:
resolve
=>
require
([
'@/components/FinancialModule/ImpressionTicketing/ImpressionTicketDetails'
],
resolve
),
meta
:
{
title
:
'印象票务提成详情'
}
},
{
path
:
'/groupApproval'
,
name
:
'groupApproval'
,
...
...
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