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
fbfef362
Commit
fbfef362
authored
Dec 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
656b2bb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
64 deletions
+83
-64
student-left.vue
src/components/school/student/student-left.vue
+77
-62
studentRight-form.vue
src/components/school/student/studentRight-form.vue
+6
-2
No files found.
src/components/school/student/student-left.vue
View file @
fbfef362
...
...
@@ -26,8 +26,7 @@
.stage_label
{
color
:
#606266
;
flex-shrink
:
0
;
margin-right
:
10px
;
width
:
62px
;
width
:
65px
;
text-align
:
right
;
}
...
...
@@ -87,7 +86,8 @@
客户电话
</div>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.StuTel"
style=
"width:185px;"
@
blur=
"CheckExistsStu(1)"
ref=
"StuTel"
dense
>
<q-input
filled
v-model=
"customObj.StuTel"
style=
"width:185px;"
@
blur=
"CheckExistsStu(1)"
ref=
"StuTel"
dense
>
</q-input>
</div>
</div>
...
...
@@ -98,7 +98,8 @@
QQ
</div>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.QQ"
style=
"width:185px;"
@
blur=
"CheckExistsStu(2)"
@
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>
...
...
@@ -108,47 +109,64 @@
微信号
</div>
<div
class=
"stage_value"
>
<q-input
filled
v-model=
"customObj.WeChatNo"
@
blur=
"CheckExistsStu(3)"
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
class=
"info_item"
>
<div
class=
"item_label"
>
<span
class=
"student_require"
>
*
</span>
客户来源
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.CreateType"
@
input=
"resetStuSource()"
dense
:options=
"customFromList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户来源"
/>
<div
class=
"customer_info_component"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
<span
class=
"student_require"
>
*
</span>
客户来源
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.CreateType"
@
change=
"clearStuMsg()"
style=
"width:185px;"
@
input=
"resetStuSource()"
dense
:options=
"customFromList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户来源"
/>
</div>
</div>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==3"
>
<div
class=
"item_label"
>
介绍人
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
dense
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
/>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==3"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
介绍人
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
style=
"width:185px;"
dense
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
/>
</div>
</div>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==4"
>
<div
class=
"item_label"
style=
"padding-left:20px;"
>
转介人
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
/>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==4"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
转介人
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
style=
"width:185px;"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
/>
</div>
</div>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==1"
>
<div
class=
"item_label"
>
<span
class=
"student_require"
>
*
</span>
收客渠道
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.StuChannel"
dense
:options=
"StuChannelList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
/>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==1"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
收客渠道
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.StuChannel"
style=
"width:185px;"
dense
:options=
"StuChannelList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
/>
</div>
</div>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==2"
>
<div
class=
"item_label"
>
关联同行
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.CustomerId"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
/>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==2"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
关联同行
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.CustomerId"
style=
"width:185px"
dense
:options=
"customList"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
/>
</div>
</div>
</div>
<template
v-if=
"customObj.CreateType==1"
>
...
...
@@ -165,11 +183,15 @@
</div>
</div>
</
template
>
<div
class=
"info_item"
>
<div
class=
"item_label"
>
客户类型
</div>
<div
class=
"item_value"
>
<q-select
filled
v-model=
"customObj.StuType"
dense
:options=
"customTypeList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户类型"
/>
<div
class=
"customer_info_component"
>
<div
class=
"customer_info_Stage"
>
<div
class=
"stage_label"
>
客户类型
</div>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.StuType"
style=
"width:185px"
dense
:options=
"customTypeList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户类型"
/>
</div>
</div>
</div>
<div
class=
"custom_Line"
></div>
...
...
@@ -305,7 +327,7 @@
CustomerId
:
0
,
//关联同行
QQ
:
''
,
//qq
WeChatNo
:
''
,
//微信号
StuType
:
''
//客户类型
StuType
:
''
//客户类型
},
//日语基础列表
basicList
:
[],
...
...
@@ -324,8 +346,8 @@
checkMsg
:
{
StuId
:
0
,
StuTel
:
''
,
QQ
:
''
,
WeChatNo
:
''
QQ
:
''
,
WeChatNo
:
''
}
}
},
...
...
@@ -373,14 +395,6 @@
})
return
}
// if (this.customObj.StuChannel == '') {
// this.$q.notify({
// type: 'negative',
// position: "top",
// message: `请选择收客渠道`
// })
// return
// }
if
(
this
.
customObj
.
StuTel
!=
''
)
{
var
myreg
=
/^
[
1
][
3-9
][\d]{9}
/
;
if
(
!
myreg
.
test
(
this
.
customObj
.
StuTel
))
{
...
...
@@ -402,6 +416,7 @@
position
:
'top'
})
this
.
$emit
(
'success'
);
this
.
$emit
(
'getrecord'
);
if
(
this
.
AddType
==
1
)
{
this
.
$emit
(
'close'
);
}
...
...
@@ -474,7 +489,7 @@
})
},
//获取客户类型
getCustomTypeList
(){
getCustomTypeList
()
{
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
...
...
@@ -525,38 +540,38 @@
},
//验证手机号
CheckExistsStu
(
type
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
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
=>
{
});
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
}
}
if
(
type
==
2
)
{
if
(
type
==
2
)
{
if
(
this
.
customObj
.
QQ
)
{
this
.
checkMsg
.
StuTel
=
''
;
this
.
checkMsg
.
QQ
=
this
.
customObj
.
QQ
;
this
.
checkMsg
.
WeChatNo
=
''
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
});
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
}
}
if
(
type
==
3
)
{
if
(
type
==
3
)
{
if
(
this
.
customObj
.
WeChatNo
)
{
this
.
checkMsg
.
StuTel
=
''
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
WeChatNo
=
this
.
customObj
.
WeChatNo
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
});
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
}
}
},
//切换客户来源重置
resetStuSource
()
{
this
.
customObj
.
StuSourceId
=
0
;
}
this
.
customObj
.
StuChannel
=
''
;
this
.
customObj
.
CustomerId
=
''
;
this
.
customObj
.
StuSourceId
=
''
;
this
.
customObj
.
PlatformName
=
''
;
},
}
}
...
...
src/components/school/student/studentRight-form.vue
View file @
fbfef362
...
...
@@ -30,7 +30,7 @@
</div>
<div
class=
"custom_Bottom"
>
<div
class=
"detail-info"
>
<student-left
:save-obj=
"saveObj"
@
success=
"refreshStudentPage"
></student-left>
<student-left
:save-obj=
"saveObj"
@
success=
"refreshStudentPage"
@
getrecord=
"getrecord"
></student-left>
</div>
<div
class=
"detail-travel"
>
<div
class=
"detail_first"
>
...
...
@@ -50,7 +50,7 @@
</div>
<!-- 记录 -->
<template
v-if=
"ckedTab==1"
>
<student-record
:save-obj=
"baseObj"
@
success=
"refreshStudentPage"
></student-record>
<student-record
:save-obj=
"baseObj"
@
success=
"refreshStudentPage"
ref=
"mychild"
></student-record>
</
template
>
<!-- 操作 -->
<
template
v-if=
"ckedTab==2"
>
...
...
@@ -203,6 +203,10 @@
}
this
.
isShowTrans
=
false
;
})
},
//保存成功后调用记录
getrecord
(){
this
.
$refs
.
mychild
.
getStuLogPage
();
}
},
}
...
...
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