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
65142fce
Commit
65142fce
authored
Dec 16, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
into master
parents
a4273200
7ff7c0e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
30 deletions
+142
-30
student-left.vue
src/components/school/student/student-left.vue
+36
-9
studentAddForm.vue
src/components/school/student/studentAddForm.vue
+106
-21
No files found.
src/components/school/student/student-left.vue
View file @
65142fce
...
@@ -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
)
{
if
(
type
==
1
){
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
CheckExistsStu
(
this
.
checkMsg
).
then
(
res
=>
{
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 @
65142fce
...
@@ -19,7 +19,29 @@
...
@@ -19,7 +19,29 @@
full-mask
full-mask
mask=
"###########"
mask=
"###########"
label=
"客户电话"
label=
"客户电话"
@
input=
"checkStuTel"
@
input=
"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"
@
input=
"checkStuTel(2)"
></q-input>
<q-input
class=
"col-6"
filled
v-model=
"customObj.WeChatNo"
dense
full-mask
mask=
"###########"
label=
"客户微信号"
@
input=
"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 +58,34 @@
...
@@ -36,6 +58,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 +102,29 @@
...
@@ -52,28 +102,29 @@
behavior=
"menu"
behavior=
"menu"
class=
"col-6"
class=
"col-6"
/>
/>
</div>
<div
class=
"q-mt-xs row q-col-gutter-md"
>
<q-select
<q-select
v-if=
"customObj.CreateType == 4"
filled
filled
v-model=
"customObj.StuChannel"
v-model=
"customObj.StuSourceId"
label=
"获客渠道"
dense
dense
:options=
"
StuChannel
List"
:options=
"
custom
List"
option-label=
"Name"
option-label=
"
Customer
Name"
option-value=
"Id"
option-value=
"
Customer
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>
...
@@ -205,7 +256,8 @@ import {
...
@@ -205,7 +256,8 @@ import {
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 +301,8 @@ export default {
...
@@ -249,7 +301,8 @@ export default {
myEmployeeList
:
[],
myEmployeeList
:
[],
customFromList
:
[],
customFromList
:
[],
StuChannelList
:
[],
//收客渠道
StuChannelList
:
[],
//收客渠道
AssistDropList
:
[]
//协助人员
AssistDropList
:
[],
//协助人员
customList
:[]
};
};
},
},
created
()
{
created
()
{
...
@@ -260,6 +313,7 @@ export default {
...
@@ -260,6 +313,7 @@ export default {
this
.
getEmployeeList
();
this
.
getEmployeeList
();
this
.
GetStuChannelList
();
this
.
GetStuChannelList
();
this
.
getCustomFrom
();
this
.
getCustomFrom
();
this
.
GetCustomerList
();
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,22 +329,45 @@ export default {
...
@@ -275,22 +329,45 @@ export default {
}
}
});
});
},
},
checkStuTel
()
{
checkStuTel
(
type
)
{
//验证手机
if
(
type
==
1
){
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
queryStudentByTel
({
StuTel
:
this
.
customObj
.
StuTel
}).
then
(
r
=>
{
queryStudentByTel
({
StuTel
:
this
.
customObj
.
StuTel
,
QQ
:
''
,
WeChatNo
:
''
}).
then
(
r
=>
{
if
(
r
.
Data
)
{
if
(
r
.
Data
)
{
this
.
$emit
(
"success"
,
r
.
Data
,
1
);
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
()
{
let
msg
=
""
;
let
msg
=
""
;
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 +458,14 @@ export default {
...
@@ -381,6 +458,14 @@ export default {
this
.
customState
=
res
.
Data
;
this
.
customState
=
res
.
Data
;
});
});
},
},
//获取客户下拉数据
GetCustomerList
()
{
GetCustomerList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customList
=
res
.
Data
;
}
})
},
queryStuInfo
()
{
queryStuInfo
()
{
getStudentInfo
({
getStudentInfo
({
StuId
:
this
.
customMsg
.
StuId
StuId
:
this
.
customMsg
.
StuId
...
...
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