Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
5ed2eafc
Commit
5ed2eafc
authored
Dec 13, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3be85e91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
3 deletions
+79
-3
sale.js
src/api/sale/sale.js
+19
-0
student-left.vue
src/components/school/student/student-left.vue
+60
-3
No files found.
src/api/sale/sale.js
View file @
5ed2eafc
...
@@ -377,3 +377,22 @@ export function setStudyAboradOrderConfirm(data) {
...
@@ -377,3 +377,22 @@ export function setStudyAboradOrderConfirm(data) {
});
});
}
}
// 获取收客渠道下拉
export
function
GetStuChannelList
(
data
)
{
return
request
({
url
:
'/User/GetStuChannelList'
,
method
:
'post'
,
data
});
}
// 获取协助人员下拉
export
function
GetAssistTypeList
(
data
)
{
return
request
({
url
:
'/user/GetAssistTypeList'
,
method
:
'post'
,
data
});
}
src/components/school/student/student-left.vue
View file @
5ed2eafc
...
@@ -157,6 +157,26 @@
...
@@ -157,6 +157,26 @@
emit-value
map-options
/>
emit-value
map-options
/>
</div>
</div>
</div>
</div>
<div
class=
"info_item"
>
<div
class=
"item_label"
>
收客渠道
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.StuChannel"
:options=
"StuChannelList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
/>
</div>
</div>
<div
class=
"info_item"
v-if=
"customObj.StuChannel==6"
>
<div
class=
"item_label"
>
第三方平台名称
</div>
<div
class=
"item_value"
>
<q-input
filled
v-model=
"customObj.PlatformName"
></q-input>
</div>
</div>
<div
class=
"info_item"
>
<div
class=
"item_label"
>
协助人员
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"AssistPeople"
:options=
"AssistDropList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
/>
</div>
</div>
<div
class=
"info_item"
>
<div
class=
"info_item"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"saveStu()"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"saveStu()"
/>
</div>
</div>
...
@@ -173,7 +193,9 @@
...
@@ -173,7 +193,9 @@
import
{
import
{
getGuestBasicsEnumList
,
getGuestBasicsEnumList
,
getGuestEducationEnumList
,
getGuestEducationEnumList
,
getGuestLearningGoalsEnumList
getGuestLearningGoalsEnumList
,
GetStuChannelList
,
GetAssistTypeList
}
from
'../../../api/sale/sale'
}
from
'../../../api/sale/sale'
import
{
import
{
queryEmployee
queryEmployee
...
@@ -210,7 +232,14 @@
...
@@ -210,7 +232,14 @@
StuId
:
0
,
StuId
:
0
,
},
},
//客户对象
//客户对象
customObj
:
{},
customObj
:
{
AssistList
:[{
Id
:
0
,
//编号
AssistId
:
1
,
//员工编号
AssistType
:
1
,
//类型
StuId
:
1
,
//学员编号
}]
},
//日语基础列表
//日语基础列表
basicList
:
[],
basicList
:
[],
//学历列表
//学历列表
...
@@ -219,7 +248,10 @@
...
@@ -219,7 +248,10 @@
goalsList
:
[],
goalsList
:
[],
//员工列表
//员工列表
employeeList
:
[],
employeeList
:
[],
myEmployeeList
:
[]
myEmployeeList
:
[],
AssistPeople
:
1
,
StuChannelList
:
[],
//收客渠道
AssistDropList
:
[]
//协助人员
}
}
},
},
created
()
{
created
()
{
...
@@ -228,9 +260,14 @@
...
@@ -228,9 +260,14 @@
this
.
queryGuestEducationEnumList
();
this
.
queryGuestEducationEnumList
();
this
.
queryGoalsList
();
this
.
queryGoalsList
();
this
.
getEmployeeList
();
this
.
getEmployeeList
();
this
.
GetStuChannelList
();
this
.
GetAssistTypeList
();
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
queryStuInfo
();
this
.
queryStuInfo
();
if
(
this
.
customMsg
.
AssistList
&&
this
.
customMsg
.
AssistList
.
length
>
0
){
this
.
customMsg
.
AssistList
[
0
].
StuId
=
this
.
saveObj
.
StuId
;
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -238,6 +275,10 @@
...
@@ -238,6 +275,10 @@
methods
:
{
methods
:
{
//保存学员信息
//保存学员信息
saveStu
()
{
saveStu
()
{
if
(
this
.
customMsg
.
AssistList
&&
this
.
customMsg
.
AssistList
.
length
>
0
){
this
.
customMsg
.
AssistList
[
0
].
AssistId
=
this
.
customObj
.
CreateBy
;
this
.
customMsg
.
AssistList
[
0
].
AssistType
=
this
.
AssistPeople
;
}
saveStudent
(
this
.
customObj
).
then
(
res
=>
{
saveStudent
(
this
.
customObj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
...
@@ -263,6 +304,22 @@
...
@@ -263,6 +304,22 @@
this
.
myEmployeeList
=
res
.
Data
;
this
.
myEmployeeList
=
res
.
Data
;
})
})
},
},
//获取收客渠道
GetStuChannelList
(){
GetStuChannelList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
StuChannelList
=
res
.
Data
;
}
})
},
//获取协助人员
GetAssistTypeList
(){
GetAssistTypeList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
AssistDropList
=
res
.
Data
;
}
})
},
//筛选员工
//筛选员工
filterEmployee
(
val
,
update
,
abort
)
{
filterEmployee
(
val
,
update
,
abort
)
{
update
(()
=>
{
update
(()
=>
{
...
...
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