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
c2215bf1
Commit
c2215bf1
authored
Jun 29, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售提成排行
parent
6b8a8b9f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
335 additions
and
1 deletion
+335
-1
index.js
src/api/finance/index.js
+9
-0
saleAchievementsRank.vue
src/pages/financial/saleAchievementsRank.vue
+308
-0
studentsClassfee.vue
src/pages/financial/studentsClassfee.vue
+12
-1
routes.js
src/router/routes.js
+6
-0
No files found.
src/api/finance/index.js
View file @
c2215bf1
...
@@ -175,5 +175,14 @@ export function getStudentConsumptionHoursDetialPageList(data) {
...
@@ -175,5 +175,14 @@ export function getStudentConsumptionHoursDetialPageList(data) {
});
});
}
}
// 财务报表 销售业绩排名统计
export
function
getSaleAchievementsRankStatistics
(
data
)
{
return
request
({
url
:
'/finance/GetSaleAchievementsRankStatistics'
,
method
:
'post'
,
data
});
}
src/pages/financial/saleAchievementsRank.vue
0 → 100644
View file @
c2215bf1
<
style
>
.baseSet_Title
{
width
:
120px
!important
;
padding
:
18px
0
0
16px
;
text-align
:
right
;
}
.lessonCostStatistics
.border-bottom
{
/* border-bottom: 1px dashed #EEE; */
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
.lessonCostStatistics
.text-bottom
{
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
}
.lessonCostStatistics
._icon_btn
i
.icon-sousuo
{
background-color
:
#47BF8C
;
}
.lessonCostStatistics
._icon_btn
.icon-add
{
background-color
:
#47BF8C
;
}
.lessonCostStatistics
._icon_btn
i
{
width
:
26px
;
height
:
26px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
26px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;
}
.lessonCostStatistics
.el-table
td
,
.el-table
th
{
padding
:
5px
0
;
}
.lessonCostStatistics
.el-input
{
width
:
100%
;
border
:
none
;
background-color
:
transparent
;
}
.lessonCostStatistics
.el-input__inner
{
width
:
100%
;
border
:
none
;
background-color
:
transparent
;
}
</
style
>
<
template
>
<div
class=
"page-body lessonCostStatistics"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-select
filled
stack-label
@
input=
"handleCurrentChanges(1)"
option-value=
"SId"
option-label=
"SName"
v-model=
"msg.SchoolId"
ref=
"SId"
:options=
"CompanyList"
label=
"校区"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
@
input=
"handleCurrentChanges(1)"
option-value=
"Id"
use-input
option-label=
"EmployeeName"
v-model=
"msg.SaleId"
ref=
"TId"
:options=
"EmployeeList"
label=
"业务员"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn2"
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
stack-label
@
input=
"handleCurrentChanges(1)"
option-value=
"Id"
option-label=
"Name"
v-model=
"datetype"
ref=
"Id"
:options=
"datetypelist"
label=
"日期类型"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
v-if=
'datetype==1'
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"valueyear"
type=
"year"
placeholder=
"选择年份"
value-format=
"yyyy"
@
change=
"handleCurrentChanges(1)"
>
</el-date-picker>
</
template
>
</q-field>
</div>
<div
class=
"col-3"
v-if=
'datetype==2'
>
<q-field
filled
>
<
template
v-slot:control
>
<el-date-picker
v-model=
"valuemonth"
type=
"month"
placeholder=
"选择月份"
value-format=
"yyyy-MM"
@
change=
"handleCurrentChanges(1)"
>
</el-date-picker>
</
template
>
</q-field>
</div>
</div>
</div>
<div
class=
"page-search row items-center"
style=
"justify-content: space-between;"
>
<span
style=
"font-size: 20px;font-weight: 400;"
>
销售业绩排名统计
</span>
<q-btn
color=
"primary"
size=
"11px"
label=
"导出"
@
click=
"txexport"
style=
"margin-left:10px"
/>
</div>
<
template
>
<el-table
ref=
"filterTable"
:data=
"tableData"
v-loading=
'loading'
:header-cell-style=
"
{backgroundColor:'#f5f6f7', color: '#a8a8b3'}" border style="width: 100%">
<el-table-column
prop=
"EnterName"
label=
"业务员"
></el-table-column>
<el-table-column
prop=
"PreferPrice"
label=
"应收"
>
</el-table-column>
<el-table-column
prop=
"Income"
label=
"实收"
></el-table-column>
<el-table-column
prop=
"PlatformTax"
label=
"平台税金"
>
</el-table-column>
<el-table-column
prop=
"Refund"
label=
"退款"
></el-table-column>
<el-table-column
prop=
"RIncome"
label=
"退后实收"
>
</el-table-column>
<el-table-column
prop=
"YSKMoney"
label=
"已上课金额"
>
</el-table-column>
<el-table-column
prop=
"GuestNum"
label=
"报名人数"
>
</el-table-column>
<el-table-column
prop=
"JKNum"
label=
"结课人数"
>
</el-table-column>
<el-table-column
prop=
"OrderNum"
label=
"订单数量"
>
</el-table-column>
<!--
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<div
class=
"_icon_btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看老师"
placement=
"top"
>
<i
class=
"iconfont icon-sousuo"
@
click=
"goUrl('teacherclassfee',scope.row.AccountId)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看学生"
placement=
"top"
>
<i
class=
"iconfont icon-sousuo"
@
click=
"goUrl('studentsClassfee',scope.row.AccountId)"
></i>
</el-tooltip>
</div>
</
template
>
</el-table-column>
-->
</el-table>
<div
style=
"margin-top: 10px;text-align: center;"
>
<el-pagination
background
@
current-change=
"handleCurrentChanges"
layout=
"total,prev, pager, next, jumper"
:current-page
.
sync=
"msg.pageIndex"
:page-size=
"msg.pageSize"
:total=
'total'
>
</el-pagination>
</div>
</template>
</div>
</template>
<
script
>
import
{
getSchoolDropdown
,
getTeacherDropDownList
}
from
'../../api/school/index'
import
{
getSaleAchievementsRankStatistics
,
}
from
'../../api/finance/index'
import
{
EduDownLoad
,
}
from
'../../api/common/common'
;
import
{
queryEmployee
}
from
'../../api/users/user'
export
default
{
meta
:
{
title
:
"课耗统计汇总表"
},
props
:
{},
components
:
{},
data
()
{
return
{
loading
:
false
,
valuemonth
:
''
,
valueyear
:
''
,
//列表数据参数
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
SaleId
:
'-1'
,
SchoolId
:
'-1'
,
StartMonth
:
''
,
EndMonth
:
''
,
},
datetype
:
'2'
,
pageCount
:
0
,
listData
:
{},
tableData
:
[],
total
:
0
,
CompanyList
:
[],
TeacherList
:
[],
EmployeeList
:
[],
AllemployeeList
:
[],
datetypelist
:
[
{
Id
:
'2'
,
Name
:
'月份'
},
{
Id
:
'1'
,
Name
:
'年份'
},
]
}
},
created
()
{
let
userinfo
=
this
.
getLocalStorage
();
var
myDate
=
new
Date
();
this
.
valuemonth
=
myDate
.
getFullYear
()
+
"-"
+
(
myDate
.
getMonth
()
+
1
)
this
.
valueyear
=
myDate
.
getFullYear
().
toString
()
},
mounted
()
{
this
.
getList
();
//获取提成周期列表
this
.
getBranchList
()
this
.
GetTeacherList
();
//老师下拉
this
.
getEmployee
(
0
);
},
methods
:
{
getList
()
{
if
(
this
.
valuemonth
==
null
||
this
.
valueyear
==
null
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择日期`
})
return
}
if
(
this
.
datetype
==
2
)
{
this
.
msg
.
StartMonth
=
this
.
valuemonth
;
this
.
msg
.
EndMonth
=
this
.
valuemonth
;
}
else
if
(
this
.
datetype
==
1
)
{
this
.
msg
.
StartMonth
=
this
.
valueyear
+
'-01'
;
this
.
msg
.
EndMonth
=
this
.
valueyear
+
'-12'
;
}
this
.
loading
=
true
;
getSaleAchievementsRankStatistics
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
loading
=
false
;
this
.
tableData
=
res
.
Data
.
PageData
this
.
total
=
res
.
Data
.
Count
}
})
},
//获取教师下拉
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
var
obj
=
{
TeacherName
:
'全部'
,
TId
:
'-1'
}
this
.
TeacherList
.
unshift
(
obj
);
}
})
},
getBranchList
()
{
//获取校区
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
CompanyList
=
res
.
Data
;
var
obj
=
{
SName
:
'全部'
,
SId
:
'-1'
}
this
.
CompanyList
.
unshift
(
obj
);
}).
catch
(()
=>
{
})
},
//业务员
getEmployee
(
id
)
{
var
qMsg
=
{
Dept_Id
:
0
}
qMsg
.
Dept_Id
=
id
;
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeList
=
res
.
Data
;
let
obj
=
{
Id
:
"-1"
,
EmployeeName
:
"不限"
}
this
.
EmployeeList
.
unshift
(
obj
)
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
EmployeeList
));
}
}).
catch
(()
=>
{
})
},
//筛选业务员
filterFn2
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllemployeeList
))
}
else
{
const
needle
=
val
.
toLowerCase
()
this
.
EmployeeList
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
)
}
})
},
goUrl
(
path
,
id
)
{
this
.
OpenNewUrl
(
'/financial/'
+
path
,
{
id
:
id
});
},
handleCurrentChanges
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
},
txexport
()
{
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/finance/GetSaleAchievementsRankStatisticsToExcel"
,
msg
,
"销售业绩排名.xls"
)
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/pages/financial/studentsClassfee.vue
View file @
c2215bf1
...
@@ -112,7 +112,13 @@
...
@@ -112,7 +112,13 @@
<
template
>
<
template
>
<el-table
ref=
"filterTable"
:data=
"tableData"
v-loading=
'loading'
<el-table
ref=
"filterTable"
:data=
"tableData"
v-loading=
'loading'
:header-cell-style=
"
{backgroundColor:'#f5f6f7', color: '#a8a8b3'}" border style="width: 100%">
:header-cell-style=
"
{backgroundColor:'#f5f6f7', color: '#a8a8b3'}" border style="width: 100%">
<el-table-column
prop=
"OrderId"
label=
"订单号"
></el-table-column>
<el-table-column
prop=
"OrderId"
label=
"订单号"
>
<template
slot-scope=
"scope"
>
<div
style=
"text-decoration: underline;cursor: pointer;"
@
click=
'gobaoming(scope.row.OrderId)'
>
{{
scope
.
row
.
OrderId
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"ContractNo"
width=
'150'
label=
"合同号"
></el-table-column>
<el-table-column
prop=
"ContractNo"
width=
'150'
label=
"合同号"
></el-table-column>
<el-table-column
prop=
"ClassDate"
label=
"上课日期"
></el-table-column>
<el-table-column
prop=
"ClassDate"
label=
"上课日期"
></el-table-column>
<el-table-column
prop=
"TimeBucket"
label=
"上课时间段"
>
</el-table-column>
<el-table-column
prop=
"TimeBucket"
label=
"上课时间段"
>
</el-table-column>
...
@@ -274,6 +280,11 @@
...
@@ -274,6 +280,11 @@
txexport
(){
txexport
(){
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/finance/GetStudentConsumptionHoursDetialPageListToExcel"
,
msg
,
"课耗学生明细.xls"
)
EduDownLoad
(
"/finance/GetStudentConsumptionHoursDetialPageListToExcel"
,
msg
,
"课耗学生明细.xls"
)
},
gobaoming
(
Id
){
this
.
OpenNewUrl
(
'/sale/orderStatistics'
,
{
OrderId
:
Id
});
}
}
},
},
...
...
src/router/routes.js
View file @
c2215bf1
...
@@ -253,6 +253,12 @@ const routes = [{
...
@@ -253,6 +253,12 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/financial/teacherclassfee.vue"
)
import
(
"pages/financial/teacherclassfee.vue"
)
},
},
{
path
:
"/financial/saleAchievementsRank"
,
//销售业绩排名统计
component
:
()
=>
import
(
"pages/financial/saleAchievementsRank.vue"
)
},
{
{
path
:
"/financial/studentsClassfee"
,
//学生课耗明细列表
path
:
"/financial/studentsClassfee"
,
//学生课耗明细列表
component
:
()
=>
component
:
()
=>
...
...
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