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
484dcace
Commit
484dcace
authored
Dec 21, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8e6960a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
220 additions
and
93 deletions
+220
-93
index.js
src/api/finance/index.js
+10
-0
marketCommissionfrom.vue
src/components/finance/marketCommissionfrom.vue
+108
-73
commissionRule.vue
src/pages/financial/market/commissionRule.vue
+102
-20
No files found.
src/api/finance/index.js
View file @
484dcace
...
...
@@ -595,6 +595,16 @@ export function getTeacherContributeConfig(data) {
data
});
}
/**
* 市场顾问保存删除
*/
export
function
delSellAchievementsRule
(
data
)
{
return
request
({
url
:
'/SellAchievements/DelSellAchievementsRule'
,
method
:
'post'
,
data
});
}
/**
* 获取人头奖金配置分页列表
...
...
src/components/finance/marketCommissionfrom.vue
View file @
484dcace
...
...
@@ -39,6 +39,18 @@
map-options
@
input=
"$forceUpdate()"
/>
<div
style=
"display: flex;align-items: center;"
>
<span
style=
"width: 75px;"
>
类型:
</span>
<q-radio
v-model=
"addMsg.Type"
val=
"1"
label=
"市场"
/>
<q-radio
v-model=
"addMsg.Type"
val=
"2"
label=
"顾问"
/>
<q-radio
v-model=
"addMsg.Type"
val=
"3"
label=
"教师"
/>
</div>
<div
style=
"display: flex;align-items: center;"
>
<span
style=
"width: 75px;"
>
课程类型:
</span>
<q-radio
v-model=
"addMsg.CourseType"
val=
"1"
label=
"包含"
/>
<q-radio
v-model=
"addMsg.CourseType"
val=
"2"
label=
"不包含"
/>
</div>
<q-select
filled
stack-label
...
...
@@ -56,17 +68,6 @@
map-options
@
filter=
"filterFn"
/>
<div
style=
"display: flex;align-items: center;"
>
<span
style=
"width: 75px;"
>
类型:
</span>
<q-radio
v-model=
"addMsg.Type"
val=
"1"
label=
"市场"
/>
<q-radio
v-model=
"addMsg.Type"
val=
"2"
label=
"顾问"
/>
<q-radio
v-model=
"addMsg.Type"
val=
"3"
label=
"教师"
/>
</div>
<div
style=
"display: flex;align-items: center;"
>
<span
style=
"width: 75px;"
>
课程类型:
</span>
<q-radio
v-model=
"addMsg.CourseType"
val=
"1"
label=
"包含"
/>
<q-radio
v-model=
"addMsg.CourseType"
val=
"2"
label=
"不包含"
/>
</div>
<div
style=
"margin-top: 10px;"
>
...
...
@@ -99,41 +100,57 @@
/>
</div>
<div
style=
"display: flex;align-items: center;margin-bottom: 15px;"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"addMsg.EmpList"
use-chips
use-input
:options=
"myEmployeeList"
label=
"提成人员"
:dense=
"false"
emit-value
multiple
map-options
@
filter=
"filterEmployee"
style=
"flex:1;"
@
input=
'getpersonnel(1)'
/>
<div
class=
"q-gutter-sm"
style=
"margin-right: 18px;"
>
<q-checkbox
v-model=
"personnel"
label=
"全选"
@
input=
'getallpersonnel(1)'
/>
</div>
</div>
<div
style=
"display: flex;align-items: center;margin-bottom: 15px;"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"addMsg.ChildEmpList"
use-chips
use-input
:options=
"myEmployeeList"
label=
"部门人员"
:dense=
"false"
emit-value
multiple
map-options
@
filter=
"filterEmployee"
style=
"flex:1;"
@
input=
'getpersonnel(2)'
/>
<div
class=
"q-gutter-sm"
style=
"margin-right: 18px;"
>
<q-checkbox
v-model=
"branch"
label=
"全选"
@
input=
'getallpersonnel(2)'
/>
</div>
</div>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"addMsg.EmpList"
use-chips
use-input
:options=
"myEmployeeList"
label=
"提成人员"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
multiple
map-options
@
filter=
"filterEmployee"
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"addMsg.ChildEmpList"
use-chips
use-input
:options=
"myEmployeeList"
label=
"部门人员"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
multiple
map-options
@
filter=
"filterEmployee"
/>
<div
style=
"margin-bottom: 80px;"
>
<div>
业绩比例
</div>
...
...
@@ -206,10 +223,7 @@
</q-dialog>
</
template
>
<
script
>
import
{
queryEmployee
}
from
'../../api/users/user'
import
recruitFormVue
from
'../system/recruit-form.vue'
export
default
{
...
...
@@ -251,6 +265,8 @@ export default {
myEmployeeList
:
[],
allCourseList
:
[],
myCourseList
:[],
personnel
:
false
,
//人员全选
branch
:
false
,
//部门人员
}
},
created
()
{
...
...
@@ -264,7 +280,7 @@ export default {
Name
:
''
,
Type
:
'1'
,
CourseType
:
'1'
,
SchoolIds
:
''
,
SchoolIds
:
[]
,
CourseList
:
[],
//课程列表
EmpList
:
[],
//提现人员
ChildEmpList
:
[],
//部门人员
...
...
@@ -279,11 +295,9 @@ export default {
this
.
addMsg
.
Type
=
this
.
addMsg
.
Type
.
toString
()
this
.
addMsg
.
CourseType
=
this
.
addMsg
.
CourseType
.
toString
()
this
.
addMsg
.
SchoolIds
=
this
.
selectData
.
SchoolIds
?
this
.
selectData
.
SchoolIds
.
split
(
','
).
map
(
Number
):[]
;
console
.
log
(
this
.
addMsg
.
SchoolIds
)
this
.
addMsg
.
CourseList
=
this
.
getId
(
this
.
selectData
.
CourseList
,
2
)
this
.
addMsg
.
EmpList
=
this
.
getId
(
this
.
selectData
.
EmpList
,
3
)
this
.
addMsg
.
ChildEmpList
=
this
.
getId
(
this
.
selectData
.
ChildEmpList
,
3
)
console
.
log
(
this
.
addMsg
)
}
},
mounted
()
{
...
...
@@ -354,16 +368,7 @@ export default {
}
else
{
msg
.
SchoolIds
=
this
.
addMsg
.
SchoolIds
.
join
(
','
)
}
if
(
this
.
addMsg
.
CourseList
.
length
==
0
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`请选择课程`
,
position
:
'top'
})
return
}
else
{
msg
.
CourseList
=
this
.
getList
(
this
.
allCourseList
,
this
.
addMsg
.
CourseList
,
2
,
'CourseId'
,
'CourseName'
)
}
msg
.
CourseList
=
this
.
getList
(
this
.
allCourseList
,
this
.
addMsg
.
CourseList
,
2
,
'CourseId'
,
'CourseName'
)
//课程
if
(
this
.
addMsg
.
EmpList
.
length
==
0
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
...
...
@@ -374,16 +379,7 @@ export default {
}
else
{
msg
.
EmpList
=
this
.
getList
(
this
.
employeeList
,
this
.
addMsg
.
EmpList
,
3
,)
}
if
(
this
.
addMsg
.
ChildEmpList
.
length
==
0
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`请选择部门人员`
,
position
:
'top'
})
return
}
else
{
msg
.
ChildEmpList
=
this
.
getList
(
this
.
employeeList
,
this
.
addMsg
.
ChildEmpList
,
3
,)
}
msg
.
ChildEmpList
=
this
.
getList
(
this
.
employeeList
,
this
.
addMsg
.
ChildEmpList
,
3
,)
//部门人员
for
(
let
i
=
0
;
i
<
msg
.
RateList
.
length
;
i
++
){
let
x
=
msg
.
RateList
[
i
]
console
.
log
(
x
.
StartValue
)
...
...
@@ -443,7 +439,46 @@ export default {
}
});
return
list
}
},
getallpersonnel
(
type
){
if
(
type
==
1
){
//人员全选
if
(
this
.
personnel
==
true
){
this
.
addMsg
.
EmpList
=
[]
this
.
myEmployeeList
.
forEach
(
x
=>
{
this
.
addMsg
.
EmpList
.
push
(
x
.
Id
)
})
}
else
{
this
.
addMsg
.
EmpList
=
[]
}
}
else
{
//部门人员全选
if
(
this
.
branch
==
true
){
this
.
addMsg
.
ChildEmpList
=
[]
this
.
myEmployeeList
.
forEach
(
x
=>
{
this
.
addMsg
.
ChildEmpList
.
push
(
x
.
Id
)
})
}
else
{
this
.
addMsg
.
ChildEmpList
=
[]
}
}
},
getpersonnel
(
type
){
if
(
type
==
1
){
//人员全选
if
(
this
.
addMsg
.
EmpList
.
length
==
this
.
myEmployeeList
.
length
){
this
.
personnel
=
true
}
else
{
this
.
personnel
=
false
}
}
else
{
//部门人员全选
if
(
this
.
addMsg
.
ChildEmpList
.
length
==
this
.
myEmployeeList
.
length
){
this
.
branch
=
true
}
else
{
this
.
branch
=
false
}
}
},
...
...
src/pages/financial/market/commissionRule.vue
View file @
484dcace
...
...
@@ -47,7 +47,7 @@
<div
class=
"cycle_Title"
>
市场顾问提成规则
</div>
<div
class=
"cm_content"
style=
"width: 100%;margin-bottom:
2
5px;margin-top: 10px;"
style=
"width: 100%;margin-bottom:
3
5px;margin-top: 10px;"
v-for=
" ( item , index ) in dataList "
:key=
"index"
>
...
...
@@ -60,15 +60,15 @@
>
<tr>
<th
width=
"8%"
>
方案名称
</th>
<th>
类型
</th>
<th
width=
"
200
"
>
校区
</th>
<th>
课程类型
</th>
<th
width=
"
300
"
>
课程
</th>
<th>
首次发放比例
</th>
<th>
课程比例
</th>
<th>
提成人员
</th>
<th>
部门人员
</th>
<th
width=
"10
0
"
>
操作
</th>
<th
width=
"5%"
>
类型
</th>
<th
width=
"
15%
"
>
校区
</th>
<th
width=
"5%"
>
课程类型
</th>
<th
width=
"
25%
"
>
课程
</th>
<th
width=
"7%"
>
首次发放比例
</th>
<th
width=
"5%"
>
课程比例
</th>
<th
width=
"10%"
>
提成人员
</th>
<th
width=
"10%"
>
部门人员
</th>
<th
width=
"10
%
"
>
操作
</th>
</tr>
<tr>
<td>
...
...
@@ -87,7 +87,18 @@
<span
v-if=
"item.CourseType == 2"
>
不包含
</span>
</td>
<td
style=
"padding: 0 10px;"
>
<span
v-for=
"( son , sIndex ) in item.CourseList"
>
{{
son
.
CourseName
}}{{
item
.
CourseList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
<span
v-for=
"( son , sIndex ) in item.CourseList"
>
<span
v-if=
"sIndex
<4
"
>
{{
son
.
CourseName
}}{{
item
.
CourseList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
</span>
<el-popover
v-if=
"item.CourseList.length>=5"
placement=
"top-start"
title=
"课程"
width=
"400"
trigger=
"click"
:content=
"item.CourseListtext"
>
<el-button
slot=
"reference"
style=
"border: none;"
type=
"text"
>
查看更多
</el-button>
</el-popover>
</td>
<td>
<span
>
{{
item
.
FirstRate
+
'%'
}}
</span>
...
...
@@ -96,10 +107,32 @@
<span
>
{{
item
.
CourseRate
+
'%'
}}
</span>
</td>
<td
style=
"padding: 0 10px;"
>
<span
v-for=
"( son , sIndex ) in item.EmpList"
>
{{
son
.
EmployeeName
}}{{
item
.
EmpList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
<span
v-for=
"( son , sIndex ) in item.EmpList"
>
<span
v-if=
"sIndex
<8
"
>
{{
son
.
EmployeeName
}}{{
item
.
EmpList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
</span>
<el-popover
v-if=
"item.EmpList.length>=9"
placement=
"top-start"
title=
"提成人员"
width=
"400"
trigger=
"click"
:content=
"item.EmpListtext"
>
<el-button
slot=
"reference"
style=
"border: none;"
type=
"text"
>
查看更多
</el-button>
</el-popover>
</td>
<td
style=
"padding: 0 10px;"
>
<span
v-for=
"( son , sIndex ) in item.ChildEmpList"
>
{{
son
.
EmployeeName
}}{{
item
.
ChildEmpList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
<span
v-for=
"( son , sIndex ) in item.ChildEmpList"
>
<span
v-if=
"sIndex
<8
"
>
{{
son
.
EmployeeName
}}{{
item
.
ChildEmpList
.
length
==
sIndex
+
1
?
''
:
'、'
}}
</span>
</span>
<el-popover
v-if=
"item.ChildEmpList.length>=9"
placement=
"top-start"
title=
"部门人员"
width=
"400"
trigger=
"click"
:content=
"item.ChildEmpListtext"
>
<el-button
slot=
"reference"
style=
"border: none;"
type=
"text"
>
查看更多
</el-button>
</el-popover>
</td>
<td>
<q-btn
...
...
@@ -118,7 +151,7 @@
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"RemoveTask(
props.row
.Id)"
@
click=
"RemoveTask(
item
.Id)"
/>
</td>
</tr>
...
...
@@ -128,7 +161,6 @@
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th
>
业绩比例
</th>
...
...
@@ -140,14 +172,13 @@
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th
style=
"min-width: 260px;"
v-for=
"( son , sIndex ) in item.RateList"
:key=
"sIndex"
>
{{
son
.
StartValue
}}
{{
'<业绩<='
}}{{
son
.
EndValue
}}
</th>
>
{{
son
.
StartValue
}}
<span>
{{
son
.
EndValue
&&
son
.
EndValue
!=-
1
?
'<业绩<='
:
'<业绩'
}}
</span><span
v-if=
"son.EndValue && son.EndValue!=-1"
>
{{
son
.
EndValue
}}
</span>
</th>
</tr>
<tr
style=
"width: 1040px;overflow-x: auto;"
>
<td
style=
"min-width: 260px;"
v-for=
"( son , sIndex ) in item.RateList"
:key=
"sIndex"
>
{{
son
.
Rate
}}
%
</td>
...
...
@@ -188,7 +219,8 @@ import {
}
from
'../../../api/course/index'
import
{
getSellAchievementsRuleList
,
setSellAchievementsRule
setSellAchievementsRule
,
delSellAchievementsRule
}
from
'../../../api/finance/index'
import
{
getSchoolDropdown
,
...
...
@@ -239,7 +271,30 @@ export default {
this
.
loading
=
true
;
getSellAchievementsRuleList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
this
.
dataList
=
res
.
Data
;
this
.
dataList
.
forEach
(
j
=>
{
if
(
j
.
ChildEmpList
.
length
>=
9
){
//人员
j
.
ChildEmpListtext
=
''
;
j
.
ChildEmpList
.
forEach
(
x
=>
{
j
.
ChildEmpListtext
=
j
.
ChildEmpListtext
+
x
.
EmployeeName
+
'、'
})
}
if
(
j
.
EmpList
.
length
>=
9
){
//部门人员
j
.
EmpListtext
=
''
;
j
.
EmpList
.
forEach
(
x
=>
{
j
.
EmpListtext
=
j
.
EmpListtext
+
x
.
EmployeeName
+
'、'
})
}
if
(
j
.
CourseList
.
length
>=
5
){
//课程
j
.
CourseListtext
=
''
;
j
.
CourseList
.
forEach
(
x
=>
{
j
.
CourseListtext
=
j
.
CourseListtext
+
x
.
CourseName
+
'、'
})
}
})
}
this
.
loading
=
false
})
...
...
@@ -274,7 +329,6 @@ export default {
refreshList
(
data
)
{
//保存规则
console
.
log
(
this
.
dataList
,
'datalist'
)
setSellAchievementsRule
(
data
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
...
...
@@ -302,6 +356,34 @@ export default {
this
.
isAdd
=
false
;
},
RemoveTask
(
Id
){
//删除
let
delMsg
=
{
RuleId
:
Id
};
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否确定删除?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
delSellAchievementsRule
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'删除成功!'
,
position
:
'top'
})
this
.
getSellAchievementsRuleList
();
}
})
}).
onCancel
(()
=>
{
});
},
closeForm
()
{
this
.
persistent
=
false
;
...
...
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