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
cba1b2ad
Commit
cba1b2ad
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
ce9a57de
fd4df924
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
200 additions
and
28 deletions
+200
-28
courseprice-form.vue
src/components/course/courseprice-form.vue
+12
-1
schedul-visit.vue
src/components/schedul/schedul-visit.vue
+12
-0
student-left.vue
src/components/school/student/student-left.vue
+36
-9
studentAddForm.vue
src/components/school/student/studentAddForm.vue
+128
-18
stulist.vue
src/components/school/student/stulist.vue
+12
-0
No files found.
src/components/course/courseprice-form.vue
View file @
cba1b2ad
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div>
<div>
<table
style=
"margin-left:10px;"
>
<table
style=
"margin-left:10px;"
>
<tr>
<tr>
<td
style=
"width:
42
px;text-align:right;"
>
<td
style=
"width:
70
px;text-align:right;"
>
卖价
卖价
</td>
</td>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
...
@@ -39,6 +39,15 @@
...
@@ -39,6 +39,15 @@
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SellPrice')"
:rules=
"[val => !!val || '请填写卖价']"
/>
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SellPrice')"
:rules=
"[val => !!val || '请填写卖价']"
/>
</td>
</td>
</tr>
</tr>
<tr>
<td
style=
"width:70px;text-align:right;"
>
返佣设置
</td>
<td
colspan=
"2"
>
<q-radio
v-model=
"priceObj.courseObj.CommissionReType"
:val=
"1"
label=
"课耗返佣 "
/>
<q-radio
v-model=
"priceObj.courseObj.CommissionReType"
:val=
"2"
label=
"付款返佣"
/>
</td>
</tr>
</table>
</table>
</div>
</div>
<div
class=
"text-caption q-mb-lg q-mt-lg text-grey-6"
>
<div
class=
"text-caption q-mb-lg q-mt-lg text-grey-6"
>
...
@@ -219,6 +228,7 @@
...
@@ -219,6 +228,7 @@
CourseId
:
0
,
//课程编号
CourseId
:
0
,
//课程编号
OriginalPrice
:
0
,
//原价
OriginalPrice
:
0
,
//原价
SellPrice
:
0
,
//售价
SellPrice
:
0
,
//售价
CommissionReType
:
1
,
//1课耗返佣 2付款返佣
B2CRatio
:
0
,
//直客首次报名优惠比例
B2CRatio
:
0
,
//直客首次报名优惠比例
B2CReNewRatio
:
0
,
//直客续费优惠比例
B2CReNewRatio
:
0
,
//直客续费优惠比例
B2BRebateRatio
:
0
,
//一般同行首次报名返佣比例
B2BRebateRatio
:
0
,
//一般同行首次报名返佣比例
...
@@ -281,6 +291,7 @@
...
@@ -281,6 +291,7 @@
this
.
priceObj
.
courseObj
.
CourseId
=
res
.
Data
.
CourseId
;
this
.
priceObj
.
courseObj
.
CourseId
=
res
.
Data
.
CourseId
;
this
.
priceObj
.
courseObj
.
OriginalPrice
=
res
.
Data
.
OriginalPrice
;
this
.
priceObj
.
courseObj
.
OriginalPrice
=
res
.
Data
.
OriginalPrice
;
this
.
priceObj
.
courseObj
.
SellPrice
=
res
.
Data
.
SellPrice
;
this
.
priceObj
.
courseObj
.
SellPrice
=
res
.
Data
.
SellPrice
;
this
.
priceObj
.
courseObj
.
CommissionReType
=
res
.
Data
.
CommissionReType
;
this
.
priceObj
.
courseObj
.
B2CRatio
=
res
.
Data
.
B2CRatio
;
this
.
priceObj
.
courseObj
.
B2CRatio
=
res
.
Data
.
B2CRatio
;
this
.
priceObj
.
courseObj
.
B2CReNewRatio
=
res
.
Data
.
B2CReNewRatio
;
this
.
priceObj
.
courseObj
.
B2CReNewRatio
=
res
.
Data
.
B2CReNewRatio
;
this
.
priceObj
.
courseObj
.
B2BRebateRatio
=
res
.
Data
.
B2BRebateRatio
;
this
.
priceObj
.
courseObj
.
B2BRebateRatio
=
res
.
Data
.
B2BRebateRatio
;
...
...
src/components/schedul/schedul-visit.vue
View file @
cba1b2ad
...
@@ -351,6 +351,18 @@
...
@@ -351,6 +351,18 @@
label
:
"客户电话"
,
label
:
"客户电话"
,
align
:
"left"
align
:
"left"
},
},
{
name
:
"QQ"
,
field
:
"QQ"
,
label
:
"QQ"
,
align
:
"left"
},
{
name
:
"WeChatNo"
,
field
:
"WeChatNo"
,
label
:
"微信"
,
align
:
"left"
},
{
{
name
:
"StuStageName"
,
name
:
"StuStageName"
,
field
:
"StuStageName"
,
field
:
"StuStageName"
,
...
...
src/components/school/student/student-left.vue
View file @
cba1b2ad
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
客户电话
客户电话
</div>
</div>
<div
class=
"stage_value"
>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.StuTel"
style=
"width:185px;"
@
blur=
"CheckExistsStu()"
ref=
"StuTel"
dense
>
<q-input
filled
v-model=
"customObj.StuTel"
style=
"width:185px;"
@
blur=
"CheckExistsStu(
1
)"
ref=
"StuTel"
dense
>
</q-input>
</q-input>
</div>
</div>
</div>
</div>
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
QQ
QQ
</div>
</div>
<div
class=
"stage_value"
>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.QQ"
style=
"width:185px;"
@
keyup
.
native=
"checkInteger(customObj,'QQ')"
ref=
"QQ"
dense
></q-input>
<q-input
filled
v-model=
"customObj.QQ"
style=
"width:185px;"
@
blur=
"CheckExistsStu(2)"
@
keyup
.
native=
"checkInteger(customObj,'QQ')"
ref=
"QQ"
dense
></q-input>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
微信号
微信号
</div>
</div>
<div
class=
"stage_value"
>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.WeChatNo"
style=
"width:185px;"
ref=
"WeChatNo"
dense
></q-input>
<q-input
filled
v-model=
"customObj.WeChatNo"
@
blur=
"CheckExistsStu(3)"
style=
"width:185px;"
ref=
"WeChatNo"
dense
></q-input>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -323,7 +323,9 @@
...
@@ -323,7 +323,9 @@
customList
:
[],
customList
:
[],
checkMsg
:
{
checkMsg
:
{
StuId
:
0
,
StuId
:
0
,
StuTel
:
''
StuTel
:
''
,
QQ
:
''
,
WeChatNo
:
''
}
}
}
}
},
},
...
@@ -502,6 +504,8 @@
...
@@ -502,6 +504,8 @@
this
.
customObj
.
CreateBy
=
tempDate
.
CreateBy
;
this
.
customObj
.
CreateBy
=
tempDate
.
CreateBy
;
this
.
customObj
.
CustomerId
=
tempDate
.
CustomerId
;
this
.
customObj
.
CustomerId
=
tempDate
.
CustomerId
;
this
.
customObj
.
StuType
=
tempDate
.
StuType
;
this
.
customObj
.
StuType
=
tempDate
.
StuType
;
this
.
customObj
.
QQ
=
tempDate
.
QQ
;
this
.
customObj
.
WeChatNo
=
tempDate
.
WeChatNo
;
}
}
});
});
},
},
...
@@ -520,11 +524,34 @@
...
@@ -520,11 +524,34 @@
this
.
customObj
.
AssistList
.
splice
(
index
,
1
);
this
.
customObj
.
AssistList
.
splice
(
index
,
1
);
},
},
//验证手机号
//验证手机号
CheckExistsStu
()
{
CheckExistsStu
(
type
)
{
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
if
(
type
==
1
){
CheckExistsStu
(
this
.
checkMsg
).
then
(
res
=>
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
})
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
WeChatNo
=
''
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
});
}
}
if
(
type
==
2
){
if
(
this
.
customObj
.
QQ
)
{
this
.
checkMsg
.
StuTel
=
''
;
this
.
checkMsg
.
QQ
=
this
.
customObj
.
QQ
;
this
.
checkMsg
.
WeChatNo
=
''
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
});
}
}
if
(
type
==
3
){
if
(
this
.
customObj
.
WeChatNo
)
{
this
.
checkMsg
.
StuTel
=
''
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
WeChatNo
=
this
.
customObj
.
WeChatNo
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
});
}
}
},
},
//切换客户来源重置
//切换客户来源重置
resetStuSource
()
{
resetStuSource
()
{
...
...
src/components/school/student/studentAddForm.vue
View file @
cba1b2ad
...
@@ -19,7 +19,28 @@
...
@@ -19,7 +19,28 @@
full-mask
full-mask
mask=
"###########"
mask=
"###########"
label=
"客户电话"
label=
"客户电话"
@
input=
"checkStuTel"
@
blur=
"checkStuTel(1)"
></q-input>
</div>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<q-input
class=
"col-6"
filled
v-model=
"customObj.QQ"
dense
full-mask
mask=
"###########"
label=
"客户QQ"
@
blur=
"checkStuTel(2)"
></q-input>
<q-input
class=
"col-6"
filled
v-model=
"customObj.WeChatNo"
dense
full-mask
label=
"客户微信号"
@
blur=
"checkStuTel(3)"
></q-input>
></q-input>
</div>
</div>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
...
@@ -36,6 +57,34 @@
...
@@ -36,6 +57,34 @@
behavior=
"menu"
behavior=
"menu"
class=
"col-6"
class=
"col-6"
/>
/>
<q-select
filled
v-model=
"customObj.StuChannel"
v-if=
"customObj.CreateType==1"
label=
"获客渠道"
dense
:options=
"StuChannelList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
class=
"col-6"
behavior=
"menu"
/>
<q-select
filled
v-model=
"customObj.CustomerId"
v-if=
"customObj.CreateType==2"
label=
"关联同行"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
class=
"col-6"
behavior=
"menu"
/>
<q-select
<q-select
v-if=
"customObj.CreateType == 3"
v-if=
"customObj.CreateType == 3"
filled
filled
...
@@ -52,28 +101,44 @@
...
@@ -52,28 +101,44 @@
behavior=
"menu"
behavior=
"menu"
class=
"col-6"
class=
"col-6"
/>
/>
<q-select
v-if=
"customObj.CreateType == 4"
filled
v-model=
"customObj.StuSourceId"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
label=
"转介人"
behavior=
"menu"
class=
"col-6"
/>
</div>
</div>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<q-select
<q-select
filled
filled
v-model=
"customObj.StuChannel"
v-model=
"customObj.StuType"
label=
"获客渠道"
dense
dense
:options=
"
StuChannel
List"
:options=
"
customType
List"
option-label=
"Name"
option-label=
"Name"
option-value=
"Id"
option-value=
"Id"
emit-value
emit-value
map-options
map-options
class=
"col-6
"
label=
"客户类型
"
behavior=
"menu"
behavior=
"menu"
class=
"col-6"
/>
/>
</div>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<q-input
<q-input
filled
filled
v-model=
"customObj.PlatformName"
v-model=
"customObj.PlatformName"
:label=
"customObj.StuChannel == 6 ? '平台名称' : '其他渠道名称'"
:label=
"customObj.StuChannel == 6 ? '平台名称' : '其他渠道名称'"
dense
dense
class=
"col-6"
class=
"col-6"
v-if=
"customObj.
StuChannel == 6 || customObj.StuChannel == 7
"
v-if=
"customObj.
CreateType==1&&(customObj.StuChannel == 6 || customObj.StuChannel == 7)
"
></q-input>
></q-input>
</div>
</div>
<div
style=
"font-size:12px;"
class=
"text-grey-6 q-my-md"
>
补充资料
</div>
<div
style=
"font-size:12px;"
class=
"text-grey-6 q-my-md"
>
补充资料
</div>
...
@@ -198,14 +263,16 @@
...
@@ -198,14 +263,16 @@
import
{
import
{
getStudentInfo
,
//获取学员客户信息
getStudentInfo
,
//获取学员客户信息
queryStuStageList
,
//获取客户阶段列表
queryStuStageList
,
//获取客户阶段列表
saveStudent
//保存学员信息
saveStudent
,
//保存学员信息
GetStudentTypeList
}
from
"../../../api/school/index"
;
}
from
"../../../api/school/index"
;
import
{
import
{
getGuestBasicsEnumList
,
getGuestBasicsEnumList
,
getGuestEducationEnumList
,
getGuestEducationEnumList
,
getGuestLearningGoalsEnumList
,
getGuestLearningGoalsEnumList
,
GetStuChannelList
,
GetStuChannelList
,
CreateTypeList
CreateTypeList
,
GetCustomerList
}
from
"../../../api/sale/sale"
;
}
from
"../../../api/sale/sale"
;
import
{
queryEmployee
,
queryStudentByTel
}
from
"../../../api/users/user"
;
import
{
queryEmployee
,
queryStudentByTel
}
from
"../../../api/users/user"
;
export
default
{
export
default
{
...
@@ -249,7 +316,9 @@ export default {
...
@@ -249,7 +316,9 @@ export default {
myEmployeeList
:
[],
myEmployeeList
:
[],
customFromList
:
[],
customFromList
:
[],
StuChannelList
:
[],
//收客渠道
StuChannelList
:
[],
//收客渠道
AssistDropList
:
[]
//协助人员
AssistDropList
:
[],
//协助人员
customList
:[],
customTypeList
:[]
//客户类型
};
};
},
},
created
()
{
created
()
{
...
@@ -260,6 +329,8 @@ export default {
...
@@ -260,6 +329,8 @@ export default {
this
.
getEmployeeList
();
this
.
getEmployeeList
();
this
.
GetStuChannelList
();
this
.
GetStuChannelList
();
this
.
getCustomFrom
();
this
.
getCustomFrom
();
this
.
GetCustomerList
();
this
.
getCustomTypeList
();
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
();
...
@@ -275,13 +346,36 @@ export default {
...
@@ -275,13 +346,36 @@ export default {
}
}
});
});
},
},
checkStuTel
()
{
checkStuTel
(
type
)
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
//验证手机
queryStudentByTel
({
StuTel
:
this
.
customObj
.
StuTel
}).
then
(
r
=>
{
if
(
type
==
1
){
if
(
r
.
Data
)
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
this
.
$emit
(
"success"
,
r
.
Data
,
1
);
queryStudentByTel
({
StuTel
:
this
.
customObj
.
StuTel
,
QQ
:
''
,
WeChatNo
:
''
}).
then
(
r
=>
{
}
if
(
r
.
Data
)
{
});
this
.
$emit
(
"success"
,
r
.
Data
,
1
);
}
});
}
}
//验证QQ
if
(
type
==
2
){
if
(
this
.
customObj
.
QQ
)
{
queryStudentByTel
({
StuTel
:
''
,
QQ
:
this
.
customObj
.
QQ
,
WeChatNo
:
''
}).
then
(
r
=>
{
if
(
r
.
Data
)
{
this
.
$emit
(
"success"
,
r
.
Data
,
1
);
}
});
}
}
//验证微信
if
(
type
==
3
){
if
(
this
.
customObj
.
WeChatNo
)
{
queryStudentByTel
({
StuTel
:
''
,
QQ
:
''
,
WeChatNo
:
this
.
customObj
.
WeChatNo
}).
then
(
r
=>
{
if
(
r
.
Data
)
{
this
.
$emit
(
"success"
,
r
.
Data
,
1
);
}
});
}
}
}
},
},
validate
()
{
validate
()
{
...
@@ -289,8 +383,8 @@ export default {
...
@@ -289,8 +383,8 @@ export default {
console
.
log
(
this
.
customObj
);
console
.
log
(
this
.
customObj
);
if
(
!
this
.
customObj
.
StuName
)
{
if
(
!
this
.
customObj
.
StuName
)
{
msg
=
"请输入客户名称"
;
msg
=
"请输入客户名称"
;
}
else
if
(
!
this
.
customObj
.
StuTel
||
this
.
customObj
.
StuTel
.
length
!=
11
)
{
}
else
if
(
!
this
.
customObj
.
StuTel
&&
!
this
.
customObj
.
QQ
&&
!
this
.
customObj
.
WeChatNo
)
{
msg
=
"请
输入正确的客户手机
号"
;
msg
=
"请
至少输入一个手机号QQ号微信
号"
;
}
else
if
(
!
this
.
customObj
.
CreateType
)
{
}
else
if
(
!
this
.
customObj
.
CreateType
)
{
msg
=
"请选择客户来源"
;
msg
=
"请选择客户来源"
;
}
else
if
(
!
this
.
customObj
.
StuChannel
)
{
}
else
if
(
!
this
.
customObj
.
StuChannel
)
{
...
@@ -381,6 +475,22 @@ export default {
...
@@ -381,6 +475,22 @@ export default {
this
.
customState
=
res
.
Data
;
this
.
customState
=
res
.
Data
;
});
});
},
},
//获取客户下拉数据
GetCustomerList
()
{
GetCustomerList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
}
})
},
//获取客户类型
getCustomTypeList
(){
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
}
})
},
queryStuInfo
()
{
queryStuInfo
()
{
getStudentInfo
({
getStudentInfo
({
StuId
:
this
.
customMsg
.
StuId
StuId
:
this
.
customMsg
.
StuId
...
...
src/components/school/student/stulist.vue
View file @
cba1b2ad
...
@@ -153,6 +153,18 @@
...
@@ -153,6 +153,18 @@
field
:
"StuTel"
,
field
:
"StuTel"
,
align
:
"left"
align
:
"left"
},
},
{
name
:
"QQ"
,
label
:
"QQ"
,
field
:
"QQ"
,
align
:
"left"
},
{
name
:
"WeChatNo"
,
label
:
"微信"
,
field
:
"WeChatNo"
,
align
:
"left"
},
{
{
name
:
"StuStageName"
,
name
:
"StuStageName"
,
label
:
"客户阶段"
,
label
:
"客户阶段"
,
...
...
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