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
e48e1285
Commit
e48e1285
authored
May 07, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
eb223c00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3069 additions
and
2462 deletions
+3069
-2462
App.vue
src/App.vue
+140
-137
Home.vue
src/components/Home.vue
+504
-424
orderList.vue
src/components/customerManage/orderList.vue
+629
-599
Agreement.vue
src/components/guestManagement/Agreement.vue
+595
-516
ticketOrder.vue
src/components/guestManagement/ticketOrder.vue
+1185
-770
index.js
src/plugins/index.js
+16
-16
No files found.
src/App.vue
View file @
e48e1285
...
...
@@ -4,144 +4,147 @@
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{};
},
ceated
()
{
export
default
{
data
()
{
return
{};
},
ceated
()
{
},
mounted
()
{
let
getData
if
(
this
.
$route
.
query
)
{
getData
=
JSON
.
stringify
(
this
.
$route
.
query
)
getData
=
JSON
.
parse
(
getData
)
if
(
getData
.
erpOrderObj
)
{
getData
=
JSON
.
parse
(
getData
.
erpOrderObj
)
}
}
if
(
!
this
.
getLocalStorage
()
&&
!
getData
)
{
this
.
$router
.
push
({
path
:
"/login"
,
});
}
else
if
(
getData
&&
getData
.
path
)
{
// erp自动登陆传过来的参数
let
parameter
=
getData
this
.
$router
.
push
({
path
:
`/automaticLogin?toke=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
parameter
)}
`
,
})
}
else
{
this
.
$router
.
push
({
name
:
"Home"
,
});
}
setTimeout
(()
=>
{
this
.
getUserInfo
()
},
100
)
},
methods
:
{
// 获取用户权限信息
getUserInfo
()
{
this
.
apipost
(
"/api/AutoLogin/GetCRMLoginMenu"
,
{},
(
res
)
=>
{
var
jsonData
=
res
.
data
;
if
(
jsonData
.
resultCode
==
1
)
{
var
userData
=
jsonData
.
data
var
userJson
=
userData
;
var
userInfo
=
JSON
.
parse
(
localStorage
.
userInfo
)
userInfo
.
UserMenu
=
userJson
localStorage
.
userInfo
=
JSON
.
stringify
(
userInfo
)
}
else
{
this
.
$message
({
message
:
res
.
data
.
message
,
type
:
"error"
,
});
this
.
loginState
=
0
;
}
});
},
},
};
</
script
>
<
style
>
@import
"./assets/css/tablevoerride.css"
;
@import
"./assets/global/font.css"
;
@import
"//at.alicdn.com/t/font_1627123_xio004ni8y.css"
;
@import
url("//at.alicdn.com/t/font_1627123_grz80mbm3sv.css")
;
/* @import './assets/css/common.css'; */
},
mounted
()
{
let
getData
if
(
this
.
$route
.
query
){
getData
=
JSON
.
stringify
(
this
.
$route
.
query
)
getData
=
JSON
.
parse
(
getData
)
if
(
getData
.
erpOrderObj
){
getData
=
JSON
.
parse
(
getData
.
erpOrderObj
)
}
@import
"./assets/css/init.css"
;
body
,
html
{
padding
:
0px
;
margin
:
0px
;
font-family
:
"微软雅黑"
,
" Microsoft YaHei"
,
"PingFang"
,
"PingFangR"
;
-webkit-font-smoothing
:
antialiased
;
height
:
100%
;
}
if
(
!
this
.
getLocalStorage
()
&&!
getData
)
{
this
.
$router
.
push
({
path
:
"/login"
,
});
}
else
if
(
getData
&&
getData
.
path
)
{
// erp自动登陆传过来的参数
let
parameter
=
getData
this
.
$router
.
push
({
path
:
`/automaticLogin?toke=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
parameter
)}
`
,
})
}
else
{
this
.
$router
.
push
({
name
:
"Home"
,
});
#app
{
height
:
100%
;
}
// this.getUserInfo()
},
methods
:
{
// 获取用户权限信息
getUserInfo
(){
this
.
apipost
(
"/api/AutoLogin/GetCRMLoginMenu"
,
{},
(
res
)
=>
{
var
jsonData
=
res
.
data
;
if
(
jsonData
.
resultCode
==
1
)
{
//登录成功
let
autoLogin
=
this
.
isAutoLogin
?
{
acc
:
this
.
account
,
pwd
:
this
.
pwd
,
}
:
null
;
localStorage
.
autoLogin
=
JSON
.
stringify
(
autoLogin
);
var
userData
=
jsonData
.
data
;
var
userJson
=
JSON
.
stringify
(
userData
);
localStorage
.
userInfo
=
userJson
;
this
.
loginState
=
0
;
this
.
$router
.
push
({
path
:
"/Home"
});
}
else
{
this
.
$message
({
message
:
res
.
data
.
message
,
type
:
"error"
,
});
this
.
loginState
=
0
;
}
});
.el-scrollbar
{
height
:
100%
;
}
},
};
</
script
>
<
style
>
@import
"./assets/css/tablevoerride.css"
;
@import
"./assets/global/font.css"
;
@import
"//at.alicdn.com/t/font_1627123_xio004ni8y.css"
;
@import
url("//at.alicdn.com/t/font_1627123_grz80mbm3sv.css")
;
/* @import './assets/css/common.css'; */
@import
"./assets/css/init.css"
;
body
,
html
{
padding
:
0px
;
margin
:
0px
;
font-family
:
"微软雅黑"
,
" Microsoft YaHei"
,
"PingFang"
,
"PingFangR"
;
-webkit-font-smoothing
:
antialiased
;
height
:
100%
;
}
#app
{
height
:
100%
;
}
.el-scrollbar
{
height
:
100%
;
}
.el-scrollbar__wrap
{
overflow
:
auto
!important
;
width
:
100%
;
height
:
100%
;
}
.el-scrollbar__view
{
width
:
100%
;
height
:
100%
;
}
.page-component-up
{
position
:
fixed
;
right
:
calc
(
8.3%
-
60px
);
bottom
:
150px
;
width
:
40px
;
height
:
90px
;
z-index
:
2000
;
}
.page-component-up
img
{
width
:
38px
;
height
:
38px
;
}
.page-component-up
i
{
background-color
:
#fff
;
cursor
:
pointer
;
transition
:
0.3s
;
/* box-shadow: 0 0 6px rgba(0,0,0,.12); */
z-index
:
5
;
border
:
1px
solid
#ddd
;
box-sizing
:
border-box
;
line-height
:
40px
;
text-align
:
center
;
display
:
inline-block
;
}
.page-component-up
i
{
font-size
:
36px
;
color
:
#bbb
;
}
.page-component-up
i
:hover
{
background-color
:
#ef4455
;
border
:
1px
solid
#ec3346
;
}
.page-component-up
:hover
i
{
color
:
#f1f1f1
;
}
.el-form-item
.el-form-item__label
{
color
:
#3d3b4f
!important
;
}
.el-button
[
class
*=
"el-icon-"
]
+
span
{
margin-left
:
5px
;
font-family
:
"perfectFont"
;
}
</
style
>
.el-scrollbar__wrap
{
overflow
:
auto
!important
;
width
:
100%
;
height
:
100%
;
}
.el-scrollbar__view
{
width
:
100%
;
height
:
100%
;
}
.page-component-up
{
position
:
fixed
;
right
:
calc
(
8.3%
-
60px
);
bottom
:
150px
;
width
:
40px
;
height
:
90px
;
z-index
:
2000
;
}
.page-component-up
img
{
width
:
38px
;
height
:
38px
;
}
.page-component-up
i
{
background-color
:
#fff
;
cursor
:
pointer
;
transition
:
0.3s
;
/* box-shadow: 0 0 6px rgba(0,0,0,.12); */
z-index
:
5
;
border
:
1px
solid
#ddd
;
box-sizing
:
border-box
;
line-height
:
40px
;
text-align
:
center
;
display
:
inline-block
;
}
.page-component-up
i
{
font-size
:
36px
;
color
:
#bbb
;
}
.page-component-up
i
:hover
{
background-color
:
#ef4455
;
border
:
1px
solid
#ec3346
;
}
.page-component-up
:hover
i
{
color
:
#f1f1f1
;
}
.el-form-item
.el-form-item__label
{
color
:
#3d3b4f
!important
;
}
.el-button
[
class
*=
"el-icon-"
]+
span
{
margin-left
:
5px
;
font-family
:
"perfectFont"
;
}
</
style
>
\ No newline at end of file
src/components/Home.vue
View file @
e48e1285
This diff is collapsed.
Click to expand it.
src/components/customerManage/orderList.vue
View file @
e48e1285
This diff is collapsed.
Click to expand it.
src/components/guestManagement/Agreement.vue
View file @
e48e1285
This diff is collapsed.
Click to expand it.
src/components/guestManagement/ticketOrder.vue
View file @
e48e1285
This diff is collapsed.
Click to expand it.
src/plugins/index.js
View file @
e48e1285
...
...
@@ -6,19 +6,19 @@ export default {
apiurl
:
''
},
install
(
Vue
,
options
)
{
Vue
.
prototype
.
isOnline
=
function
()
{
Vue
.
prototype
.
isOnline
=
function
()
{
return
process
.
env
.
NODE_ENV
!==
'development'
;
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
Vue
.
prototype
.
domainManager
=
function
()
{
//CRM API
let
domainUrl
=
""
;
domainUrl
=
"http://192.168.10.
2
:8098"
;
domainUrl
=
"http://192.168.10.
36
:8098"
;
//domainUrl = "http://localhost:5003";
let
locationName
=
window
.
location
.
hostname
;
//旅游ERPApi
let
domainPostUrl
=
""
domainPostUrl
=
"http://192.168.10.
2
:8083"
;
domainPostUrl
=
"http://192.168.10.
36
:8083"
;
//domainPostUrl = "http://192.168.10.46";
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'fcrmyx.oytour.com'
)
!=
-
1
)
{
...
...
@@ -47,7 +47,7 @@ export default {
},
//消息成功提示
Vue
.
prototype
.
Success
=
function
(
msg
)
{
Vue
.
prototype
.
Success
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
...
...
@@ -55,7 +55,7 @@ export default {
});
},
//错误提示
Vue
.
prototype
.
Error
=
function
(
msg
)
{
Vue
.
prototype
.
Error
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
...
...
@@ -64,7 +64,7 @@ export default {
},
//一般提示
Vue
.
prototype
.
Info
=
function
(
msg
)
{
Vue
.
prototype
.
Info
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
...
...
@@ -72,7 +72,7 @@ export default {
});
},
//警告提示
Vue
.
prototype
.
Warning
=
function
(
msg
)
{
Vue
.
prototype
.
Warning
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
...
...
@@ -80,7 +80,7 @@ export default {
});
},
//Confirm
Vue
.
prototype
.
Confirm
=
function
(
msg
,
callback
)
{
Vue
.
prototype
.
Confirm
=
function
(
msg
,
callback
)
{
this
.
$confirm
(
msg
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
...
...
@@ -100,7 +100,7 @@ export default {
//type : m_filt 填充 m_w 宽度固定 高度不固定 m_h 高度固定 宽度不固定
// w : 宽
// h : 高
Vue
.
prototype
.
compressImg
=
function
(
path
,
type
,
w
,
h
)
{
Vue
.
prototype
.
compressImg
=
function
(
path
,
type
,
w
,
h
)
{
let
url
=
this
.
domainManager
().
UploadUrl
;
let
poise
=
'width='
;
w
=
w
?
w
:
''
...
...
@@ -115,7 +115,7 @@ export default {
//旅游ERP接口
Vue
.
prototype
.
apipost2
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
Vue
.
prototype
.
apipost2
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
...
...
@@ -164,7 +164,7 @@ export default {
}
//CRM接口
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
...
...
@@ -207,7 +207,7 @@ export default {
},
// 自动登录HTTP提交数据
Vue
.
prototype
.
apipostLogin
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
Vue
.
prototype
.
apipostLogin
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
...
...
@@ -250,7 +250,7 @@ export default {
},
//Java接口
Vue
.
prototype
.
apiJavaPost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
Vue
.
prototype
.
apiJavaPost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
...
...
@@ -302,7 +302,7 @@ export default {
},
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
callBack
)
{
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
callBack
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
...
...
@@ -344,7 +344,7 @@ export default {
};
callBack
(
result
);
}
}).
catch
(
function
(
res
)
{
}).
catch
(
function
(
res
)
{
console
.
log
(
"GetLocalFile"
,
res
);
});
}
...
...
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