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
Expand all
Hide 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 {
...
@@ -13,15 +13,13 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/login"
,
path
:
"/login"
,
});
});
}
else
if
(
this
.
$route
.
query
.
token
)
{
// erp自动登陆传过来的参数
}
else
if
(
this
.
$route
.
query
)
{
// erp自动登陆传过来的参数
let
data
=
this
.
$route
.
query
let
data
=
this
.
$route
.
query
let
parameter
=
data
.
data
[
0
]
let
parameter
=
data
.
data
[
0
]
console
.
log
(
data
,
'apppppppppppppppp'
)
return
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
`/automaticLogin`
,
path
:
`/automaticLogin?toke=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
parameter
)}
`
,
query
:{
token
:
data
.
token
,
erpOrderObj
:
JSON
.
stringify
(
parameter
),
}
})
})
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/components/customerManage/customerOrder.vue
View file @
780fc879
This diff is collapsed.
Click to expand it.
src/components/guestManagement/guestManagement.vue
View file @
780fc879
...
@@ -519,9 +519,9 @@
...
@@ -519,9 +519,9 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
30
,
pageSize
:
30
,
ContactNumber
:
""
,
ContactNumber
:
""
,
WhereType
:
-
1
,
WhereType
:
1
,
OrderBy
:
""
,
OrderBy
:
""
,
ID
:
3
6
,
ID
:
3
7
,
Q_TOrderState
:
"0"
Q_TOrderState
:
"0"
},
},
total
:
0
,
total
:
0
,
...
@@ -549,7 +549,7 @@
...
@@ -549,7 +549,7 @@
},
],
},
],
sceneList
:
[],
sceneList
:
[],
SceneEmployeeList
:
[],
SceneEmployeeList
:
[],
sceneID
:
3
6
,
sceneID
:
3
7
,
visible
:
false
,
visible
:
false
,
};
};
},
},
...
...
src/components/guestManagement/ticketOrder.vue
View file @
780fc879
...
@@ -293,8 +293,21 @@
...
@@ -293,8 +293,21 @@
<el-row
v-if=
"name=='订单转交'"
>
<el-row
v-if=
"name=='订单转交'"
>
<el-col>
<el-col>
<div
class=
"MyEditForm-item"
>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"转交id"
prop=
"EnterId"
>
<el-form-item
label=
"转交业务员"
prop=
"EnterId"
>
<el-input
placeholder=
"请输入转交人id"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g,'');"
v-model=
"form.EnterId"
></el-input>
<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>
</el-form-item>
</div>
</div>
</el-col>
</el-col>
...
@@ -364,6 +377,7 @@ export default {
...
@@ -364,6 +377,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
EmployeeList
:[],
width
:
""
,
width
:
""
,
logData
:[],
logData
:[],
total
:
0
,
total
:
0
,
...
@@ -468,6 +482,7 @@ export default {
...
@@ -468,6 +482,7 @@ export default {
}
}
if
(
this
.
name
==
'订单转交'
){
if
(
this
.
name
==
'订单转交'
){
this
.
width
=
"400px"
this
.
width
=
"400px"
this
.
Employee
()
}
}
if
(
this
.
name
==
'编辑订单金额'
){
if
(
this
.
name
==
'编辑订单金额'
){
this
.
width
=
"600px"
this
.
width
=
"600px"
...
@@ -478,6 +493,28 @@ export default {
...
@@ -478,6 +493,28 @@ export default {
},
50
);
},
50
);
},
},
methods
:
{
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
()
{
closedDialog
()
{
this
.
MsgBus
.
$emit
(
"closeTicketOrderDialogBox"
);
this
.
MsgBus
.
$emit
(
"closeTicketOrderDialogBox"
);
},
},
...
...
src/plugins/index.js
View file @
780fc879
...
@@ -215,7 +215,7 @@ export default {
...
@@ -215,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
var
data
=
JSON
.
parse
(
localStorage
.
erpuserInfo
)
if
(
localStorage
.
erpuserInfo
!=
null
)
{
if
(
localStorage
.
erpuserInfo
!=
null
)
{
token
=
data
.
token
;
token
=
data
.
token
;
}
}
...
@@ -238,9 +238,9 @@ export default {
...
@@ -238,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?token=${data.token}&data=${JSON.stringify(data.data
)}`
path
:
`/automaticLogin?token=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
data
.
parameter
)}
`
//
})
})
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
}
else
if
(
res
.
data
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
else
{
}
else
{
...
@@ -317,7 +317,6 @@ export default {
...
@@ -317,7 +317,6 @@ export default {
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
var
postData
=
{
"msg"
:
msg
,
"msg"
:
msg
,
// "cmd": cmd,
"timestamp"
:
timestamp
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"token"
:
token
,
"sign"
:
md5Str
"sign"
:
md5Str
...
@@ -325,8 +324,9 @@ export default {
...
@@ -325,8 +324,9 @@ export default {
this
.
$http
.
post
(
apiurl
,
postData
,
{
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
'Referer-Viitto'
:
this
.
$route
.
path
,
}
},
responseType
:
'blob'
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
type
:
"application/vnd.ms-excel"
...
@@ -337,7 +337,12 @@ export default {
...
@@ -337,7 +337,12 @@ export default {
link
.
setAttribute
(
"download"
,
fileName
);
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
link
.
click
();
successCall
(
res
);
if
(
callBack
)
{
var
result
=
{
Code
:
1
};
callBack
(
result
);
}
}).
catch
(
function
(
res
)
{
});
}).
catch
(
function
(
res
)
{
});
}
}
}
}
...
...
src/router.js
View file @
780fc879
...
@@ -44,11 +44,11 @@ export default new Router({
...
@@ -44,11 +44,11 @@ export default new Router({
}
}
},
},
{
{
path
:
"/"
,
path
:
"/
automaticLogin
"
,
name
:
"automaticLogin"
,
name
:
"automaticLogin"
,
component
:
automaticLogin
,
component
:
automaticLogin
,
meta
:
{
meta
:
{
title
:
"欢迎使用CRM系统-
请登录使用
"
,
title
:
"欢迎使用CRM系统-
自动登录
"
,
"http-equiv"
:
"X-UA-Compatible"
,
"http-equiv"
:
"X-UA-Compatible"
,
content
:
"IE=Edge,chrome=1"
content
:
"IE=Edge,chrome=1"
}
}
...
...
src/views/automaticLogin.vue
View file @
780fc879
<
style
>
<
style
>
@import
"../assets/css/login2019.css"
;
/* @import "../assets/css/login2019.css"; */
.Autologin
{
.Autologin
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
<
template
>
<
template
>
<div>
<div>
<div
class=
"Autologin"
>
<div
class=
"Autologin"
>
<div
class=
"gifContent"
>
<div
class=
"gifContent"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -39,10 +40,8 @@
...
@@ -39,10 +40,8 @@
},
},
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
;
...
@@ -68,13 +67,11 @@
...
@@ -68,13 +67,11 @@
this
.
apipostLogin
(
"/api/AutoLogin/CRMAutoLogin"
,
this
.
msg
,
(
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
);
var
userData
=
jsonData
.
data
;
var
userData
=
jsonData
.
data
;
var
userJson
=
JSON
.
stringify
(
userData
);
var
userJson
=
JSON
.
stringify
(
userData
);
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