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
e93715d1
Commit
e93715d1
authored
Feb 14, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
661496ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
249 additions
and
2 deletions
+249
-2
customerstudent.js
src/api/customerstudent/customerstudent.js
+36
-0
student-consult.vue
src/components/school/student/student-consult.vue
+199
-0
studentRight-form.vue
src/components/school/student/studentRight-form.vue
+14
-2
No files found.
src/api/customerstudent/customerstudent.js
View file @
e93715d1
...
...
@@ -244,4 +244,40 @@ export function SetStuStage(data) {
method
:
'post'
,
data
})
}
/**
* 获取跟进状态下拉
* @param {JSON参数} data
*/
export
function
GetStudentAdvisorConfigList
(
data
)
{
return
request
({
url
:
'/User/GetStudentAdvisorConfigList'
,
method
:
'post'
,
data
})
}
/**
* 保存跟进
* @param {JSON参数} data
*/
export
function
SetStudentAdvisor
(
data
)
{
return
request
({
url
:
'/User/SetStudentAdvisor'
,
method
:
'post'
,
data
})
}
/**
* 获取跟进列表
* @param {JSON参数} data
*/
export
function
GetStudentAdvisorPage
(
data
)
{
return
request
({
url
:
'/User/GetStudentAdvisorPage'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/school/student/student-consult.vue
0 → 100644
View file @
e93715d1
<
style
></
style
>
<
template
>
<div>
<div
class=
"row wrap"
>
<q-btn
label=
"新增"
color=
"accent q-mb-lg"
size=
"sm"
v-if=
"!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1"
@
click=
"isShowAdd = true"
/>
<span
v-else
class=
"text-grey-4"
>
学员已推送课程顾问,只能进行查看
</span>
<q-btn
label=
"取消"
style=
"margin-left:20px;"
v-if=
"isShowAdd"
flat
color=
"grey-10 q-mb-lg"
size=
"sm"
@
click=
"isShowAdd = false"
/>
</div>
<template
v-if=
"isShowAdd"
>
<div
class=
"row wrap studentDate"
>
<q-select
filled
stack-label
option-value=
"Id"
@
input=
"getRate(conMsg.AdvisorStatus)"
dense
option-label=
"Name"
v-model=
"conMsg.AdvisorStatus"
ref=
"AdvisorStatus"
:options=
"consultList"
label=
"跟进状态"
:rules=
"[val => !!val || '请选择跟进状态']"
class=
"col-6 q-pb-lg q-pr-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"50"
disable
dense
v-model=
"conMsg.AdvisorRate"
ref=
"AdvisorRate"
class=
"col-6 q-pb-lg"
label=
"比例"
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"50"
dense
v-model=
"conMsg.AdvisorDate"
ref=
"AdvisorDate"
class=
"col-6 q-pb-lg q-pr-lg"
:label=
"commonName+'跟进月份'"
/>
<q-input
filled
stack-label
maxlength=
"50"
dense
v-model=
"conMsg.AdvisorExpectDate"
ref=
"AdvisorExpectDate"
class=
"col-6 q-pb-lg"
:label=
"commonName+'期望达成协议日期'"
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
type=
"textarea"
:rows=
"3"
stack-label
maxlength=
"2000"
v-model=
"conMsg.AdvisorRemark"
:dense=
"false"
class=
"col-12 q-pb-lg"
label=
"跟进备注"
/>
</div>
<div
class=
"row wrap justify-end q-pr-lg"
style=
"margin-bottom:10px;"
>
<q-btn
label=
"保存"
color=
"accent q-mb-lg"
size=
"md"
@
click=
"saveConsult()"
/>
</div>
</
template
>
<div
style=
"display:flex;flex:1;flex-direction: column;overflow:hidden;"
>
<div
class=
"TimeLineDiv"
>
<q-timeline
color=
"primary"
>
<q-timeline-entry
v-for=
"(tItem, tIndex) in dataList"
:key=
"tIndex"
>
<
template
v-slot:title
>
<div
class=
"visit_Cont"
>
<div
class=
"Log_Content"
>
<div>
跟进状态:
{{
tItem
.
AdvisorStatusName
}}
</div>
<div
class=
"StuCom_Remark"
>
<div
class=
"StuCom_Left"
>
比例
</div>
:
<div
class=
"StuCom_Inner"
>
{{
tItem
.
AdvisorRate
}}
</div>
</div>
<div>
跟进月份:
{{
tItem
.
AdvisorDate
}}
</div>
<div>
跟进备注:
{{
tItem
.
AdvisorRemark
}}
</div>
</div>
</div>
</
template
>
<
template
v-slot:subtitle
>
<div
class=
"Time_TopList"
>
<div>
{{
tItem
.
CreateTimeStr
}}
</div>
<div>
{{
tItem
.
CreateByName
}}
</div>
</div>
</
template
>
</q-timeline-entry>
</q-timeline>
</div>
</div>
<div
style=
"margin-bottom:20px"
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"page_Count"
input
@
input=
"changePage"
/>
</div>
</div>
</template>
<
script
>
import
{
GetStudentAdvisorConfigList
,
SetStudentAdvisor
,
GetStudentAdvisorPage
}
from
"../../../api/customerstudent/customerstudent"
;
export
default
{
meta
:
{
title
:
""
},
components
:
{},
props
:
{
stateId
:
{
type
:
Number
,
default
:
0
},
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
isShowAdd
:
false
,
conMsg
:
{
Id
:
0
,
//编号
StuId
:
0
,
//学员编号
AdvisorStatus
:
''
,
//跟进状态
AdvisorDate
:
""
,
//跟进月份
AdvisorRemark
:
""
,
//跟进备注
AdvisorExpectDate
:
""
,
//期望达成协议日期
AdvisorRate
:
''
},
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
StuId
:
0
},
dataList
:
[],
page_Count
:
0
,
consultList
:
[],
//跟进状态下拉
commonName
:
''
};
},
created
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
)
{
this
.
conMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
msg
.
StuId
=
this
.
saveObj
.
StuId
;
}
},
watch
:
{},
mounted
()
{
this
.
getStatusList
();
this
.
getList
();
},
methods
:
{
//获取跟进状态下拉
getStatusList
()
{
let
msg
=
{
Name
:
''
}
GetStudentAdvisorConfigList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
consultList
=
res
.
Data
;
}
})
},
getRate
(
Id
){
this
.
consultList
.
forEach
(
x
=>
{
if
(
x
.
Id
==
Id
){
this
.
conMsg
.
AdvisorRate
=
x
.
Rate
;
this
.
commonName
=
x
.
Name
;
}
})
},
//保存约访
saveConsult
()
{
if
(
this
.
conMsg
.
AdvisorStatus
==
""
)
{
this
.
$q
.
notify
({
type
:
"negative"
,
position
:
"top"
,
timeout
:
2000
,
message
:
"请选择跟进状态!"
});
return
;
}
SetStudentAdvisor
(
this
.
conMsg
)
.
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"数据保存成功!"
,
position
:
"top"
});
this
.
getList
();
this
.
clearMsg
();
}
})
.
catch
(()
=>
{});
},
//获取数据
getList
()
{
GetStudentAdvisorPage
(
this
.
msg
)
.
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
page_Count
=
res
.
Data
.
PageCount
;
}
})
.
catch
(()
=>
{});
},
//清除数据
clearMsg
()
{
this
.
conMsg
.
Id
=
0
;
this
.
conMsg
.
StuId
=
0
;
this
.
conMsg
.
AdvisorStatus
=
""
;
this
.
conMsg
.
AdvisorDate
=
""
;
this
.
conMsg
.
AdvisorRemark
=
""
;
this
.
conMsg
.
AdvisorExpectDate
=
""
;
this
.
conMsg
.
AdvisorRate
=
""
;
this
.
isShowAdd
=
false
;
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
}
};
</
script
>
src/components/school/student/studentRight-form.vue
View file @
e93715d1
...
...
@@ -180,6 +180,12 @@
@
success=
"refreshStudentPage"
>
</student-shiting>
<student-consult
:save-obj=
"baseObj"
v-if=
"secondType == 5"
@
success=
"refreshStudentPage"
>
</student-consult>
</div>
</
template
>
<!-- 订单 -->
...
...
@@ -234,6 +240,7 @@ import studentVisit from "../student/student-visit";
import
studentYuefang
from
"../student/student-yuefang"
;
import
studentGenjin
from
"../student/student-genjin"
;
import
studentShiting
from
"../student/student-shiting"
;
import
studentConsult
from
"../student/student-consult"
import
studentHetong
from
"../student/student-hetong"
;
import
studentOrder
from
"../student/student-order"
;
import
studentAssit
from
"../student/student-Assit"
;
...
...
@@ -253,7 +260,8 @@ export default {
studentHetong
,
studentOrder
,
studentAssit
,
consultFrom
consultFrom
,
studentConsult
},
props
:
{
saveObj
:
{
...
...
@@ -290,7 +298,11 @@ export default {
{
Name
:
"试听"
,
Id
:
4
}
},
// {
// Name: "顾问",
// Id: 5
// }
],
pushing
:
false
,
msg
:
{},
...
...
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