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 @@
...
@@ -26,8 +26,7 @@
.stage_label
{
.stage_label
{
color
:
#606266
;
color
:
#606266
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
10px
;
width
:
65px
;
width
:
62px
;
text-align
:
right
;
text-align
:
right
;
}
}
...
@@ -87,7 +86,8 @@
...
@@ -87,7 +86,8 @@
客户电话
客户电话
</div>
</div>
<div
class=
"stage_value"
>
<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>
</q-input>
</div>
</div>
</div>
</div>
...
@@ -98,7 +98,8 @@
...
@@ -98,7 +98,8 @@
QQ
QQ
</div>
</div>
<div
class=
"stage_value"
>
<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>
</div>
</div>
</div>
...
@@ -108,47 +109,64 @@
...
@@ -108,47 +109,64 @@
微信号
微信号
</div>
</div>
<div
class=
"stage_value"
>
<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>
</div>
</div>
<div
class=
"info_item"
>
<div
class=
"customer_info_component"
>
<div
class=
"item_label"
>
<div
class=
"customer_info_Stage"
>
<span
class=
"student_require"
>
*
</span>
客户来源
<div
class=
"stage_label"
>
</div>
<span
class=
"student_require"
>
*
</span>
客户来源
<div
class=
"item_value"
>
</div>
<q-select
filled
v-model=
"customObj.CreateType"
@
input=
"resetStuSource()"
dense
:options=
"customFromList"
<div
class=
"stage_value"
>
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户来源"
/>
<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>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==3"
>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==3"
>
<div
class=
"item_label"
>
介绍人
</div>
<div
class=
"customer_info_Stage"
>
<div
class=
"item_value"
>
<div
class=
"stage_label"
>
<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>
<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>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==4"
>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==4"
>
<div
class=
"item_label"
style=
"padding-left:20px;"
>
转介人
</div>
<div
class=
"customer_info_Stage"
>
<div
class=
"item_value"
>
<div
class=
"stage_label"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
dense
:options=
"customList"
option-label=
"CustomerName"
转介人
option-value=
"CustomerId"
emit-value
map-options
/>
</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>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==1"
>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==1"
>
<div
class=
"item_label"
>
<div
class=
"customer_info_Stage"
>
<span
class=
"student_require"
>
*
</span>
收客渠道
<div
class=
"stage_label"
>
</div>
收客渠道
<div
class=
"item_value"
>
</div>
<q-select
filled
v-model=
"customObj.StuChannel"
dense
:options=
"StuChannelList"
option-label=
"Name"
<div
class=
"stage_value"
>
option-value=
"Id"
emit-value
map-options
/>
<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>
</div>
<div
class=
"info_item"
v-if=
"customObj.CreateType==2"
>
<div
class=
"customer_info_component"
v-if=
"customObj.CreateType==2"
>
<div
class=
"item_label"
>
关联同行
</div>
<div
class=
"customer_info_Stage"
>
<div
class=
"item_value"
>
<div
class=
"stage_label"
>
<q-select
filled
v-model=
"customObj.CustomerId"
dense
:options=
"customList"
option-label=
"CustomerName"
关联同行
option-value=
"CustomerId"
emit-value
map-options
/>
</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>
</div>
</div>
<template
v-if=
"customObj.CreateType==1"
>
<template
v-if=
"customObj.CreateType==1"
>
...
@@ -165,11 +183,15 @@
...
@@ -165,11 +183,15 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<div
class=
"info_item"
>
<div
class=
"customer_info_component"
>
<div
class=
"item_label"
>
客户类型
</div>
<div
class=
"customer_info_Stage"
>
<div
class=
"item_value"
>
<div
class=
"stage_label"
>
<q-select
filled
v-model=
"customObj.StuType"
dense
:options=
"customTypeList"
option-label=
"Name"
客户类型
option-value=
"Id"
emit-value
map-options
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>
</div>
<div
class=
"custom_Line"
></div>
<div
class=
"custom_Line"
></div>
...
@@ -305,7 +327,7 @@
...
@@ -305,7 +327,7 @@
CustomerId
:
0
,
//关联同行
CustomerId
:
0
,
//关联同行
QQ
:
''
,
//qq
QQ
:
''
,
//qq
WeChatNo
:
''
,
//微信号
WeChatNo
:
''
,
//微信号
StuType
:
''
//客户类型
StuType
:
''
//客户类型
},
},
//日语基础列表
//日语基础列表
basicList
:
[],
basicList
:
[],
...
@@ -324,8 +346,8 @@
...
@@ -324,8 +346,8 @@
checkMsg
:
{
checkMsg
:
{
StuId
:
0
,
StuId
:
0
,
StuTel
:
''
,
StuTel
:
''
,
QQ
:
''
,
QQ
:
''
,
WeChatNo
:
''
WeChatNo
:
''
}
}
}
}
},
},
...
@@ -373,14 +395,6 @@
...
@@ -373,14 +395,6 @@
})
})
return
return
}
}
// if (this.customObj.StuChannel == '') {
// this.$q.notify({
// type: 'negative',
// position: "top",
// message: `请选择收客渠道`
// })
// return
// }
if
(
this
.
customObj
.
StuTel
!=
''
)
{
if
(
this
.
customObj
.
StuTel
!=
''
)
{
var
myreg
=
/^
[
1
][
3-9
][\d]{9}
/
;
var
myreg
=
/^
[
1
][
3-9
][\d]{9}
/
;
if
(
!
myreg
.
test
(
this
.
customObj
.
StuTel
))
{
if
(
!
myreg
.
test
(
this
.
customObj
.
StuTel
))
{
...
@@ -402,6 +416,7 @@
...
@@ -402,6 +416,7 @@
position
:
'top'
position
:
'top'
})
})
this
.
$emit
(
'success'
);
this
.
$emit
(
'success'
);
this
.
$emit
(
'getrecord'
);
if
(
this
.
AddType
==
1
)
{
if
(
this
.
AddType
==
1
)
{
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
}
}
...
@@ -474,7 +489,7 @@
...
@@ -474,7 +489,7 @@
})
})
},
},
//获取客户类型
//获取客户类型
getCustomTypeList
(){
getCustomTypeList
()
{
GetStudentTypeList
().
then
(
res
=>
{
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
this
.
customTypeList
=
res
.
Data
;
...
@@ -525,38 +540,38 @@
...
@@ -525,38 +540,38 @@
},
},
//验证手机号
//验证手机号
CheckExistsStu
(
type
)
{
CheckExistsStu
(
type
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
if
(
this
.
customObj
.
StuTel
&&
this
.
customObj
.
StuTel
.
length
==
11
)
{
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
this
.
checkMsg
.
StuTel
=
this
.
customObj
.
StuTel
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
WeChatNo
=
''
;
this
.
checkMsg
.
WeChatNo
=
''
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
});
}
}
}
}
if
(
type
==
2
)
{
if
(
type
==
2
)
{
if
(
this
.
customObj
.
QQ
)
{
if
(
this
.
customObj
.
QQ
)
{
this
.
checkMsg
.
StuTel
=
''
;
this
.
checkMsg
.
StuTel
=
''
;
this
.
checkMsg
.
QQ
=
this
.
customObj
.
QQ
;
this
.
checkMsg
.
QQ
=
this
.
customObj
.
QQ
;
this
.
checkMsg
.
WeChatNo
=
''
;
this
.
checkMsg
.
WeChatNo
=
''
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
});
}
}
}
}
if
(
type
==
3
)
{
if
(
type
==
3
)
{
if
(
this
.
customObj
.
WeChatNo
)
{
if
(
this
.
customObj
.
WeChatNo
)
{
this
.
checkMsg
.
StuTel
=
''
this
.
checkMsg
.
StuTel
=
''
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
QQ
=
''
;
this
.
checkMsg
.
WeChatNo
=
this
.
customObj
.
WeChatNo
;
this
.
checkMsg
.
WeChatNo
=
this
.
customObj
.
WeChatNo
;
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{
CheckExistsStu
(
this
.
checkMsg
).
then
(
r
=>
{});
});
}
}
}
}
},
},
//切换客户来源重置
//切换客户来源重置
resetStuSource
()
{
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 @@
...
@@ -30,7 +30,7 @@
</div>
</div>
<div
class=
"custom_Bottom"
>
<div
class=
"custom_Bottom"
>
<div
class=
"detail-info"
>
<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>
<div
class=
"detail-travel"
>
<div
class=
"detail-travel"
>
<div
class=
"detail_first"
>
<div
class=
"detail_first"
>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</div>
</div>
<!-- 记录 -->
<!-- 记录 -->
<template
v-if=
"ckedTab==1"
>
<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
>
<!-- 操作 -->
<!-- 操作 -->
<
template
v-if=
"ckedTab==2"
>
<
template
v-if=
"ckedTab==2"
>
...
@@ -203,6 +203,10 @@
...
@@ -203,6 +203,10 @@
}
}
this
.
isShowTrans
=
false
;
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