Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
华国豪
CRM
Commits
aec43193
Commit
aec43193
authored
Apr 28, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7db7672b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
284 additions
and
25 deletions
+284
-25
App.vue
src/App.vue
+9
-8
login2019.css
src/assets/css/login2019.css
+193
-0
qqIco.png
src/assets/img/qqIco.png
+0
-0
wechatIco.png
src/assets/img/wechatIco.png
+0
-0
customerOrder.vue
src/components/customerManage/customerOrder.vue
+33
-9
index.js
src/plugins/index.js
+44
-5
automaticLogin.vue
src/views/automaticLogin.vue
+5
-3
No files found.
src/App.vue
View file @
aec43193
...
@@ -9,19 +9,20 @@ export default {
...
@@ -9,19 +9,20 @@ export default {
return
{};
return
{};
},
},
mounted
()
{
mounted
()
{
if
(
!
this
.
getLocalStorage
())
{
if
(
!
this
.
getLocalStorage
()
&&!
this
.
$route
.
query
.
token
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/login"
,
path
:
"/login"
,
});
});
}
else
if
(
this
.
$route
.
query
.
token
)
{
// erp自动登陆传过来的参数
}
else
if
(
this
.
$route
.
query
.
token
)
{
// erp自动登陆传过来的参数
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
let
data
=
this
.
$route
.
query
let
parameter
=
param
[
0
]
let
parameter
=
data
.
data
[
0
]
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
parameter
.
path
,
path
:
`/automaticLogin`
,
query
:{
query
:{
erpOrderObj
:
JSON
.
stringify
(
parameters
),
token
:
data
.
token
,
}
erpOrderObj
:
JSON
.
stringify
(
parameter
),
});
}
})
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"Home"
,
name
:
"Home"
,
...
...
src/assets/css/login2019.css
0 → 100644
View file @
aec43193
.newSummaryLogin
.item
img
{
width
:
100%
;
}
.login_Div
{
background
:
#fff
;
padding
:
60px
0
20px
0
;
box-sizing
:
border-box
;
height
:
100%
;
width
:
60%
;
margin
:
0
auto
;
}
.newSummaryLogin
.error-msg
{
color
:
#cccccc
;
font-size
:
12px
;
text-align
:
left
;
width
:
300px
;
margin
:
0
auto
0
;
height
:
20px
;
padding-left
:
16px
;
}
.newSummaryLogin
.error-msg
img
{
position
:
relative
;
top
:
3px
;
margin
:
0
10px
0
5px
;
}
.login_Div
.sumMainTitle
{
font-size
:
28px
;
padding-top
:
40px
;
color
:
#333
;
margin-bottom
:
40px
;
font-weight
:
bold
;
}
.login_Div
.littTitle
{
font-size
:
18px
;
color
:
#333333
;
}
.login_Div
.icon-login-name
,
.login_Div
.icon-login-password
{
width
:
16px
;
height
:
15px
;
display
:
inline-block
;
position
:
absolute
;
top
:
10px
;
color
:
#000000
}
.login_Div
.login-commonBotm
{
width
:
100%
;
position
:
relative
;
margin
:
10px
auto
0
0
;
}
.login_Div
.login-commonBotm
img
{
float
:
left
;
margin-top
:
14px
;
}
.login_Div
input
.input
{
width
:
100%
;
height
:
40px
;
outline
:
none
;
padding-left
:
30px
;
border
:
none
;
border-bottom
:
1px
solid
#CCCCCC
;
color
:
#333333
;
caret-color
:
#E95252
;
}
.login_Div
input
::-webkit-input-placeholder
{
color
:
#999999
;
font-size
:
12px
;
}
.newSummaryLogin
.sumPhone
{
width
:
100%
;
text-align
:
center
;
color
:
#333
;
margin-bottom
:
10px
;}
.login_Div
input
:-webkit-autofill
,
.login_Div
textarea
:-webkit-autofill
,
.login_Div
select
:-webkit-autofill
{
-webkit-text-fill-color
:
#ededed
!important
;
-webkit-box-shadow
:
0
0
0px
1000px
transparent
inset
!important
;
background-color
:
transparent
;
background-image
:
none
;
transition
:
background-color
50000s
ease-in-out
0s
;
}
.login_Div
.sLoginBtn
{
margin-top
:
30px
;
width
:
100%
;
height
:
40px
;
background
:
#EE4454
;
border-radius
:
4px
;
outline
:
none
;
border
:
none
;
color
:
#fff
;
transition
:
all
linear
0.5s
;
}
.login_Div
.sLoginBtn
:hover
{
opacity
:
.8
;
cursor
:
pointer
;
background-color
:
#E95252
;
color
:
#FFFFFF
}
.login_Div
.validatCode
{
color
:
#333333
;
}
.newSummaryLogin
.msgTips
p
{
color
:
#333333
!important
;
}
.newSummaryLogin
.msgTips
p
,
.newSummaryLogin
.msgTips
h2
{
color
:
#333333
!important
;
}
.newSummaryLogin
.bindTitle
{
margin-bottom
:
10px
;}
.newSummaryLogin
.changeBtn
{
margin-top
:
10px
;
}
.login-box
.forgetPw
{
/* width:300px; */
height
:
40px
;
display
:
flex
;
justify-content
:
space-between
;
margin
:
auto
;
color
:
#999999
;
font-size
:
12px
;
text-align
:
right
;
line-height
:
40px
;
}
.forgetPw
span
{
cursor
:
pointer
;
}
.newSummaryLogin
.login-box
.forgetPw
span
:hover
{
color
:
#E95252
;
}
.newSummaryLogin
.login-way
{
width
:
300px
;
height
:
40px
;
margin
:
25px
auto
;
font-size
:
12px
;
color
:
#CCCCCC
;
display
:
none
;
line-height
:
40px
;
}
.newSummaryLogin
.wayLeft
{
float
:
left
;
}
.newSummaryLogin
.icon-login-qqicon
{
width
:
16px
;
height
:
15px
;
display
:
inline-block
;
position
:
relative
;
top
:
3px
;
background
:
url(../img/qqIco.png)
no-repeat
;
}
.newSummaryLogin
.icon-login-wechaticon
{
width
:
19px
;
height
:
15px
;
display
:
inline-block
;
position
:
relative
;
top
:
3px
;
background
:
url(../img/wechatIco.png)
no-repeat
;
}
.newSummaryLogin
.wayRight
{
float
:
right
;
}
.newSummaryLogin
.validatCode
{
position
:
absolute
;
right
:
0
;
top
:
13px
;
padding-left
:
10px
;
color
:
#333
;
font-size
:
12px
;
letter-spacing
:
2px
;
border-left
:
1px
solid
#cccccc
;
}
.newSummaryLogin
.validatCode
span
:first-child
{
cursor
:
pointer
;}
.newSummaryLogin
.btValidate
{
margin-top
:
30px
;
}
.newSummaryLogin
.login_elephant
{
position
:
absolute
;
left
:
-15px
;
top
:
-80px
;
}
.newSummaryLogin
.homepage-hero-module
,
.video-container
{
position
:
relative
;
height
:
100vh
;
overflow
:
hidden
;
}
.newSummaryLogin
.name_bline_left
{
position
:
absolute
;
right
:
50%
;
bottom
:
0
;
width
:
0
;
height
:
2px
;
background-color
:
#E95252
;
transition
:
all
linear
0.5s
;}
.newSummaryLogin
.name_bline_right
{
position
:
absolute
;
left
:
50%
;
bottom
:
0
;
width
:
0
;
height
:
2px
;
background-color
:
#E95252
;
transition
:
all
linear
0.5s
;}
.newSummaryLogin
.pwd_bline_left
{
position
:
absolute
;
right
:
50%
;
bottom
:
0
;
width
:
0
;
height
:
2px
;
background-color
:
#E95252
;
transition
:
all
linear
0.5s
;}
.newSummaryLogin
.pwd_bline_right
{
position
:
absolute
;
left
:
50%
;
bottom
:
0
;
width
:
0
;
height
:
2px
;
background-color
:
#E95252
;
transition
:
all
linear
0.5s
;}
.newSummaryLogin
.login-Div
input
:-webkit-autofill
,
.login-Div
textarea
:-webkit-autofill
,
.login-Div
select
:-webkit-autofill
{
-webkit-text-fill-color
:
#ededed
!important
;
-webkit-box-shadow
:
0
0
0px
1000px
transparent
inset
!important
;
background-color
:
transparent
;
background-image
:
none
;
transition
:
background-color
50000s
ease-in-out
0s
;
}
.newSummaryLogin
._bline_w
{
width
:
50%
;}
src/assets/img/qqIco.png
0 → 100644
View file @
aec43193
365 Bytes
src/assets/img/wechatIco.png
0 → 100644
View file @
aec43193
560 Bytes
src/components/customerManage/customerOrder.vue
View file @
aec43193
...
@@ -68,6 +68,17 @@
...
@@ -68,6 +68,17 @@
<div
class=
"customerManage"
>
<div
class=
"customerManage"
>
<div
class=
"tools"
>
<div
class=
"tools"
>
<h1>
订单管理
</h1>
<h1>
订单管理
</h1>
<div
class=
"rightmenu"
>
<el-dropdown
@
command=
"handleCommand"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
<i
class=
"iconfont icongengduo"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<!--
<el-dropdown-item
command=
"1"
><i
class=
"iconfont icondaoru"
></i>
导入
</el-dropdown-item>
-->
<el-dropdown-item
command=
"2"
><i
class=
"iconfont icondaochu"
></i>
导出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</div>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<el-row
:gutter=
"30"
>
<el-row
:gutter=
"30"
>
...
@@ -243,6 +254,19 @@
...
@@ -243,6 +254,19 @@
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
handleCommand
(
command
)
{
if
(
command
==
'2'
){
this
.
downLoadExcel
()
}
},
//点击下载
downLoadExcel
()
{
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
this
.
GetLocalFile
(
"/api/Order/GetGuestOrderStatisticsToExcel"
,
msg
,
'订单表.xls'
);
},
// 清空下拉
// 清空下拉
emptyMore
(){
emptyMore
(){
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
...
@@ -255,16 +279,16 @@
...
@@ -255,16 +279,16 @@
"/api/Order/GetTicketStatusEnumList"
,
"/api/Order/GetTicketStatusEnumList"
,
{},
{},
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ticketingStatusList
=
res
.
data
.
data
;
this
.
ticketingStatusList
=
res
.
data
.
data
;
let
data
=
{
let
data
=
{
Name
:
'全部'
,
Name
:
'全部'
,
Id
:
'0'
Id
:
'0'
}
this
.
ticketingStatusList
.
unshift
(
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
this
.
ticketingStatusList
.
unshift
(
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
}
);
);
},
},
...
...
src/plugins/index.js
View file @
aec43193
...
@@ -195,7 +195,6 @@ export default {
...
@@ -195,7 +195,6 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
console
.
log
(
this
.
$route
.
query
.
token
,
'---'
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/login'
path
:
'/login'
})
})
...
@@ -216,7 +215,7 @@ export default {
...
@@ -216,7 +215,7 @@ export default {
var
timestamp
=
(
new
Date
()).
valueOf
();
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
var
token
=
""
;
var
key
=
""
;
var
key
=
""
;
var
data
=
localStorage
.
erpuserInfo
?
JSON
.
parse
(
localStorage
.
erpuserInfo
):
""
var
data
=
localStorage
.
erpuserInfo
if
(
localStorage
.
erpuserInfo
!=
null
)
{
if
(
localStorage
.
erpuserInfo
!=
null
)
{
token
=
data
.
token
;
token
=
data
.
token
;
}
}
...
@@ -239,9 +238,9 @@ export default {
...
@@ -239,9 +238,9 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
//
this.$router.push({
path
:
'/automaticLogin'
// path: `/automaticLogin?token=${data.token}&data=${JSON.stringify(data.data)}`
})
//
})
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
else
{
}
else
{
...
@@ -300,6 +299,46 @@ export default {
...
@@ -300,6 +299,46 @@ export default {
successCall
(
res
)
successCall
(
res
)
}
}
},
faildCall
)
},
faildCall
)
},
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
PostUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
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
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
// "cmd": cmd,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
}).
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
();
successCall
(
res
);
}).
catch
(
function
(
res
)
{
});
}
}
}
}
}
}
\ No newline at end of file
src/views/automaticLogin.vue
View file @
aec43193
<
style
>
<
style
>
/* @import "../assets/css/login2019.css"; */
@import
"../assets/css/login2019.css"
;
.Autologin
{
.Autologin
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
...
@@ -39,9 +39,10 @@
...
@@ -39,9 +39,10 @@
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'--------'
,
''
)
},
},
created
()
{
created
()
{
console
.
log
(
'========='
,
''
)
if
(
this
.
$route
.
query
){
if
(
this
.
$route
.
query
){
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
;
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
;
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
},
},
methods
:
{
methods
:
{
autoLogin
(){
autoLogin
(){
this
.
apipostLogin
(
"/api/AutoLogin/CRMAutoLogin"
,
{}
,
(
res
)
=>
{
this
.
apipostLogin
(
"/api/AutoLogin/CRMAutoLogin"
,
this
.
msg
,
(
res
)
=>
{
var
jsonData
=
res
.
data
;
var
jsonData
=
res
.
data
;
if
(
jsonData
.
resultCode
==
1
)
{
if
(
jsonData
.
resultCode
==
1
)
{
localStorage
.
autoLogin
=
JSON
.
stringify
(
autoLogin
);
localStorage
.
autoLogin
=
JSON
.
stringify
(
autoLogin
);
...
@@ -73,6 +74,7 @@
...
@@ -73,6 +74,7 @@
localStorage
.
userInfo
=
userJson
;
localStorage
.
userInfo
=
userJson
;
this
.
loginState
=
0
;
this
.
loginState
=
0
;
var
data
=
JSON
.
parse
(
localStorage
.
erpuserInfo
)
var
data
=
JSON
.
parse
(
localStorage
.
erpuserInfo
)
console
.
log
(
'-----------'
,
''
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
data
.
parameter
.
path
,
path
:
data
.
parameter
.
path
,
query
:{
query
:{
...
...
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