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
780fc879
Commit
780fc879
authored
Apr 29, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
599d2bf8
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
152 additions
and
97 deletions
+152
-97
App.vue
src/App.vue
+4
-6
customerOrder.vue
src/components/customerManage/customerOrder.vue
+88
-70
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+3
-3
ticketOrder.vue
src/components/guestManagement/ticketOrder.vue
+39
-2
index.js
src/plugins/index.js
+13
-8
router.js
src/router.js
+2
-2
automaticLogin.vue
src/views/automaticLogin.vue
+3
-6
No files found.
src/App.vue
View file @
780fc879
...
...
@@ -13,15 +13,13 @@ export default {
this
.
$router
.
push
({
path
:
"/login"
,
});
}
else
if
(
this
.
$route
.
query
.
token
)
{
// erp自动登陆传过来的参数
}
else
if
(
this
.
$route
.
query
)
{
// erp自动登陆传过来的参数
let
data
=
this
.
$route
.
query
let
parameter
=
data
.
data
[
0
]
console
.
log
(
data
,
'apppppppppppppppp'
)
return
this
.
$router
.
push
({
path
:
`/automaticLogin`
,
query
:{
token
:
data
.
token
,
erpOrderObj
:
JSON
.
stringify
(
parameter
),
}
path
:
`/automaticLogin?toke=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
parameter
)}
`
,
})
}
else
{
this
.
$router
.
push
({
...
...
src/components/customerManage/customerOrder.vue
View file @
780fc879
<
style
>
@import
'../../assets/css/customerManage.css'
;
.query-box
.el-col-4
{
.query-box
.el-row
.el-col
{
display
:
flex
;
align-items
:
center
;
margin-bottom
:
15px
;
}
/* .query-box .el-col-4>span.font-size-12 {
flex: 1 !important;
}
.query-box .el-col-4>div,
.query-box .el-col-4>span {
flex: 4
.query-box
.el-row
.el-col
span
{
flex-shrink
:
0
;
}
.el-table__fixed-body-wrapper table {
padding-bottom: 8px !important;
} */
.statistics
{
background
:
#fff
;
display
:
flex
;
...
...
@@ -69,45 +58,49 @@
<div
class=
"tools"
>
<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>
<el-button
size=
"mini"
type=
"primary"
@
click=
"downLoadExcel"
>
导出
</el-button>
</div>
</div>
<div
class=
"query-box"
>
<el-row
:gutter=
"
3
0"
>
<el-col
:
span=
"4
"
>
<el-row
:gutter=
"
2
0"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
订单号
</span>
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.OrderId"
placeholder=
"
请输入
订单号"
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.OrderId"
placeholder=
"订单号"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
客人姓名
</span>
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.GusetName"
placeholder=
"
请输入
客人姓名"
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.GusetName"
placeholder=
"客人姓名"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
出发城市
</span>
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.StartCityName"
placeholder=
"
请输入
出发城市"
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.StartCityName"
placeholder=
"出发城市"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
到达城市
</span>
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.EndCityName"
placeholder=
"
请输入
到达城市"
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.EndCityName"
placeholder=
"到达城市"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
业务员
</span>
<el-input
size=
"mini"
class=
"w210"
v-model=
"msg.EnterID"
placeholder=
"请输入业务员id"
@
keyup
.
enter
.
native=
"getList"
></el-input>
<el-select
size=
"mini"
filterable
v-model=
"msg.EnterID"
@
change=
"getList"
clearable
placeholder=
"业务员"
>
<el-option
v-for=
"item in EmployeeList"
:label=
'item.EmName'
:value=
'item.EmployeeId'
:key=
'item.EmployeeId'
>
</el-option>
</el-select>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
出票状态
</span>
<el-select
size=
"mini"
v-model=
"msg.TicketStatus"
@
change=
"getList"
>
<el-option
v-for=
"(item,index) in ticketingStatusList"
...
...
@@ -115,7 +108,7 @@
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
订单状态
</span>
<el-select
size=
"mini"
v-model=
"msg.OrderStatus"
@
change=
"getList"
>
<el-option
v-for=
"(item,index) in OrderStatusList"
...
...
@@ -123,7 +116,7 @@
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-col>
<el-col
:
span=
"4
"
>
<el-col
:
xs=
"7"
:sm=
"6"
:md=
"5"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
收款状态
</span>
<el-select
size=
"mini"
v-model=
"msg.Q_IsCollect"
@
change=
"getList"
>
<el-option
v-for=
"(item,index) in QIsCollectList"
...
...
@@ -131,18 +124,28 @@
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-col>
<el-col
:
span=
"4
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
报名
时间
</span>
<el-col
:
xs=
"8"
:sm=
"7"
:md=
"6"
:lg=
"4"
:xl=
"3
"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
报名
开始
</span>
<el-date-picker
v-model=
"
timeList
"
v-model=
"
msg.StartTime
"
@
change=
"getList"
size=
"mini"
style=
"width: 100%;"
value-format=
"yyyy-MM-dd"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"开始日期"
>
</el-date-picker>
</el-col>
<el-col
:xs=
"8"
:sm=
"7"
:md=
"6"
:lg=
"4"
:xl=
"3"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px"
>
报名结束
</span>
<el-date-picker
v-model=
"msg.EndTime"
@
change=
"getList"
size=
"mini"
style=
"width: 100%;"
format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"结束日期"
>
</el-date-picker>
</el-col>
</el-row>
...
...
@@ -229,7 +232,7 @@
TicketStatus
:
"0"
,
//出票状态
OrderStatus
:
"1"
,
//订单状态
Q_IsCollect
:
"0"
,
//收款状态
StartTime
:
""
,
StartTime
:
"
2022-04-28
"
,
EndTime
:
""
},
ticketingStatusList
:[],
// 出票状态
...
...
@@ -241,42 +244,59 @@
{
Name
:
'不限'
,
Id
:
'0'
},
{
Name
:
'已收齐'
,
Id
:
'1'
},
{
Name
:
'未收齐'
,
Id
:
'2'
}
]
],
EmployeeList
:[]
}
},
mounted
()
{
var
date
=
new
Date
();
var
today
=
date
.
getDate
();
if
(
parseInt
(
today
)
<
10
){
today
=
'0'
+
today
;
}
var
dataMonth
=
date
.
getMonth
()
+
1
;
if
(
parseInt
(
dataMonth
)
<
10
){
dataMonth
=
'0'
+
dataMonth
;
}
var
newdate
=
date
.
getFullYear
()
+
'-'
+
dataMonth
+
'-'
+
today
+
' '
+
'00:00:00'
;
var
lastDate
=
date
.
getFullYear
()
+
'-'
+
dataMonth
+
'-'
+
today
+
' '
+
'23:59:59'
;
this
.
timeList
=
[
newdate
,
lastDate
]
// erp自动登陆传过来的参数
if
(
this
.
$route
.
query
.
erpOrderObj
){
let
data
=
JSON
.
parse
(
this
.
$route
.
query
.
erpOrderObj
)
this
.
msg
.
OrderId
=
data
.
OrderId
}
this
.
GetTicketStatusEnumList
()
this
.
Employee
()
//业务员
this
.
GetTicketStatusEnumList
()
//出票枚举
this
.
getList
()
},
methods
:
{
handleCommand
(
command
)
{
if
(
command
==
'2'
){
this
.
downLoadExcel
()
// 获取业务员
Employee
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
msg
=
{
RB_Group_id
:
userInfo
.
RB_Group_id
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
};
this
.
apipost2
(
"admin_get_EmployeeGetList"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
else
{
}
},
(
err
)
=>
{}
);
},
//点击下载
downLoadExcel
()
{
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
if
(
!
this
.
msg
.
StartTime
||!
this
.
msg
.
EndTime
){
let
tips
=
'请选择开始时间、结束时间!'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
});
return
}
this
.
GetLocalFile
(
"/api/Order/GetGuestOrderStatisticsToExcel"
,
msg
,
'订单表.xls'
this
.
msg
,
'订单表.xls'
);
},
// 清空下拉
...
...
@@ -306,8 +326,6 @@
},
getList
(){
this
.
loading
=
true
;
this
.
msg
.
StartTime
=
this
.
timeList
[
0
]
this
.
msg
.
EndTime
=
this
.
timeList
[
1
]
this
.
apipost
(
"/api/Order/GetGuestOrderStatisticsPageList"
,
this
.
msg
,
...
...
src/components/guestManagement/guestManagement.vue
View file @
780fc879
...
...
@@ -519,9 +519,9 @@
pageIndex
:
1
,
pageSize
:
30
,
ContactNumber
:
""
,
WhereType
:
-
1
,
WhereType
:
1
,
OrderBy
:
""
,
ID
:
3
6
,
ID
:
3
7
,
Q_TOrderState
:
"0"
},
total
:
0
,
...
...
@@ -549,7 +549,7 @@
},
],
sceneList
:
[],
SceneEmployeeList
:
[],
sceneID
:
3
6
,
sceneID
:
3
7
,
visible
:
false
,
};
},
...
...
src/components/guestManagement/ticketOrder.vue
View file @
780fc879
...
...
@@ -293,8 +293,21 @@
<el-row
v-if=
"name=='订单转交'"
>
<el-col>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"转交id"
prop=
"EnterId"
>
<el-input
placeholder=
"请输入转交人id"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g,'');"
v-model=
"form.EnterId"
></el-input>
<el-form-item
label=
"转交业务员"
prop=
"EnterId"
>
<el-select
size=
"mini"
filterable
v-model=
"form.EnterId"
clearable
placeholder=
"请选择业务员"
>
<el-option
v-for=
"item in EmployeeList"
:label=
'item.EmName'
:value=
'item.EmployeeId'
:key=
'item.EmployeeId'
>
</el-option>
</el-select>
<!--
<el-input
placeholder=
"请输入转交人id"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g,'');"
v-model=
"form.EnterId"
></el-input>
-->
</el-form-item>
</div>
</el-col>
...
...
@@ -364,6 +377,7 @@ export default {
},
data
()
{
return
{
EmployeeList
:[],
width
:
""
,
logData
:[],
total
:
0
,
...
...
@@ -468,6 +482,7 @@ export default {
}
if
(
this
.
name
==
'订单转交'
){
this
.
width
=
"400px"
this
.
Employee
()
}
if
(
this
.
name
==
'编辑订单金额'
){
this
.
width
=
"600px"
...
...
@@ -478,6 +493,28 @@ export default {
},
50
);
},
methods
:
{
// 获取业务员
Employee
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
msg
=
{
RB_Group_id
:
userInfo
.
RB_Group_id
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
};
this
.
apipost2
(
"admin_get_EmployeeGetList"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
else
{
}
},
(
err
)
=>
{}
);
},
closedDialog
()
{
this
.
MsgBus
.
$emit
(
"closeTicketOrderDialogBox"
);
},
...
...
src/plugins/index.js
View file @
780fc879
...
...
@@ -215,7 +215,7 @@ export default {
var
timestamp
=
(
new
Date
()).
valueOf
();
var
token
=
""
;
var
key
=
""
;
var
data
=
localStorage
.
erpuserInfo
var
data
=
JSON
.
parse
(
localStorage
.
erpuserInfo
)
if
(
localStorage
.
erpuserInfo
!=
null
)
{
token
=
data
.
token
;
}
...
...
@@ -238,9 +238,9 @@ export default {
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
//
this.$router.push({
// path: `/automaticLogin?token=${data.token}&data=${JSON.stringify(data.data
)}`
//
})
this
.
$router
.
push
({
path
:
`/automaticLogin?token=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
data
.
parameter
)}
`
})
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
}
else
{
...
...
@@ -317,7 +317,6 @@ export default {
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
...
...
@@ -325,8 +324,9 @@ export default {
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
'Referer-Viitto'
:
this
.
$route
.
path
,
},
responseType
:
'blob'
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
...
...
@@ -337,7 +337,12 @@ export default {
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
successCall
(
res
);
if
(
callBack
)
{
var
result
=
{
Code
:
1
};
callBack
(
result
);
}
}).
catch
(
function
(
res
)
{
});
}
}
...
...
src/router.js
View file @
780fc879
...
...
@@ -44,11 +44,11 @@ export default new Router({
}
},
{
path
:
"/"
,
path
:
"/
automaticLogin
"
,
name
:
"automaticLogin"
,
component
:
automaticLogin
,
meta
:
{
title
:
"欢迎使用CRM系统-
请登录使用
"
,
title
:
"欢迎使用CRM系统-
自动登录
"
,
"http-equiv"
:
"X-UA-Compatible"
,
content
:
"IE=Edge,chrome=1"
}
...
...
src/views/automaticLogin.vue
View file @
780fc879
<
style
>
@import
"../assets/css/login2019.css"
;
/* @import "../assets/css/login2019.css"; */
.Autologin
{
position
:
fixed
;
left
:
0
;
...
...
@@ -14,6 +14,7 @@
<
template
>
<div>
<div
class=
"Autologin"
>
<div
class=
"gifContent"
>
</div>
...
...
@@ -39,10 +40,8 @@
},
mounted
()
{
console
.
log
(
'--------'
,
''
)
},
created
()
{
console
.
log
(
'========='
,
''
)
if
(
this
.
$route
.
query
){
let
param
=
JSON
.
parse
(
this
.
$route
.
query
.
data
)
;
this
.
obj
.
token
=
this
.
$route
.
query
.
token
;
...
...
@@ -68,13 +67,11 @@
this
.
apipostLogin
(
"/api/AutoLogin/CRMAutoLogin"
,
this
.
msg
,
(
res
)
=>
{
var
jsonData
=
res
.
data
;
if
(
jsonData
.
resultCode
==
1
)
{
localStorage
.
autoLogin
=
JSON
.
stringify
(
autoLogin
);
var
userData
=
jsonData
.
data
;
var
userJson
=
JSON
.
stringify
(
userData
);
localStorage
.
userInfo
=
userJson
;
this
.
loginState
=
0
;
var
data
=
JSON
.
parse
(
localStorage
.
erpuserInfo
)
console
.
log
(
'-----------'
,
''
)
this
.
$router
.
push
({
path
:
data
.
parameter
.
path
,
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