Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
8ecc5b4e
Commit
8ecc5b4e
authored
Nov 27, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务 员工业绩统计
parent
e2fdae31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
64 deletions
+96
-64
index.js
src/router/index.js
+1
-1
memberPerformance.vue
src/views/financial/memberPerformance.vue
+54
-48
staffPerformance.vue
src/views/financial/staffPerformance.vue
+41
-15
No files found.
src/router/index.js
View file @
8ecc5b4e
...
@@ -751,7 +751,7 @@ export const asyncRouterMap = [{
...
@@ -751,7 +751,7 @@ export const asyncRouterMap = [{
},
{
},
{
path
:
'memberPerformance'
,
path
:
'memberPerformance'
,
component
:
_import
(
'financial/memberPerformance'
),
component
:
_import
(
'financial/memberPerformance'
),
name
:
'
会员统计
报表'
,
name
:
'
总公司
报表'
,
authority
:
'memberPerformance'
authority
:
'memberPerformance'
}
}
]
]
...
...
src/views/financial/memberPerformance.vue
View file @
8ecc5b4e
<
template
>
<
template
>
<div
class=
"app-container calendar-list-container"
v-loading=
"loading"
>
<div
class=
"app-container calendar-list-container"
v-loading=
"loading"
>
<el-row
style=
"border-bottom:1px dashed #ccc;padding-bottom:20px"
>
<el-row
style=
"border-bottom:1px dashed #ccc;padding-bottom:20px"
>
<el-date-picker
v-model=
"time"
type=
"daterange"
placeholder=
"选择日期范围"
@
change=
"changeTime"
></el-date-picker>
<el-form
:inline=
"true"
>
<el-form-item
label=
"统计类型"
style=
"width:200px"
>
<el-radio-group
v-model=
"listquery.radio1"
>
<el-radio-button
label=
"0"
>
收入
</el-radio-button>
<el-radio-button
label=
"1"
>
支出
</el-radio-button>
</el-radio-group>
</el-form-item>
<el-select
v-model=
"listquery.userPostionId"
clearable
placeholder=
"请选择类型"
@
change=
"changeStaff"
>
<el-date-picker
v-model=
"time"
type=
"daterange"
placeholder=
"选择日期范围"
@
change=
"changeTime"
></el-date-picker>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
<el-select
<el-button
type=
"primary"
:loading=
"excelLoading"
@
click=
"downloadExcel"
>
导出报表
</el-button>
v-model=
"listquery.userPostionId"
clearable
placeholder=
"请选择订单类型"
@
change=
"changeStaff"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
<el-button
type=
"primary"
:loading=
"excelLoading"
@
click=
"downloadExcel"
>
导出报表
</el-button>
</el-form>
</el-row>
</el-row>
<div
class=
"information"
>
<div
class=
"information"
>
...
@@ -14,16 +28,15 @@
...
@@ -14,16 +28,15 @@
<ul>
<ul>
<li>
<li>
<p>
{{
information
.
staffNum
}}
</p>
<p>
{{
information
.
staffNum
}}
</p>
<p>
会员订单数(单)
</p>
<p>
订单总量
</p>
</li>
</li>
<li>
<li>
<p>
{{
information
.
totalRoyaltyAmount
}}
</p>
<p>
{{
information
.
totalRoyaltyAmount
}}
</p>
<p>
会员费(元)
</p>
<p>
应退还金额
</p>
</li>
</li>
<li>
<li>
<p
class=
"memberClass"
>
钻石会员:3单/600.00.00元
</p>
<p>
{{
information
.
totalRoyaltyAmount
}}
</p>
<p
class=
"memberClass"
>
黄金会员:3单/600.00.00元
</p>
<p>
实际退还
</p>
<p
class=
"memberClass"
>
普通会员:3单/600.00.00元
</p>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -60,12 +73,11 @@
...
@@ -60,12 +73,11 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
total_statistics
,
getDate
}
from
'api/statistics'
import
{
getDate
}
from
'api/statistics'
import
{
getrewardSetting
}
from
'api/purseManage'
import
{
getrewardSetting
}
from
'api/purseManage'
export
default
{
export
default
{
created
()
{
created
()
{
this
.
statistics
()
this
.
getList
()
this
.
getList
()
},
},
data
()
{
data
()
{
...
@@ -76,25 +88,31 @@ export default {
...
@@ -76,25 +88,31 @@ export default {
time
:
[],
time
:
[],
tableData
:
[],
//表格数据
tableData
:
[],
//表格数据
excelLoading
:
false
,
//导出loading
excelLoading
:
false
,
//导出loading
options
:
[{
options
:
[
id
:
'0'
,
{
name
:
'首次购买'
id
:
'0'
,
},{
name
:
'首次购买'
id
:
'1'
,
},
name
:
'续费'
{
},{
id
:
'1'
,
id
:
'2'
,
name
:
'续费'
name
:
'激活'
},
},{
{
id
:
'3'
,
id
:
'2'
,
name
:
'付费'
name
:
'激活'
}],
//身份
},
{
id
:
'3'
,
name
:
'付费'
}
],
//身份
listquery
:
{
listquery
:
{
startDate
:
null
,
//开始日期
startDate
:
null
,
//开始日期
endDate
:
null
,
//结束日期
endDate
:
null
,
//结束日期
userPostionId
:
null
,
//身份
userPostionId
:
null
,
//身份
page
:
1
,
page
:
1
,
limit
:
10
limit
:
10
,
radio1
:
0
}
}
}
}
},
},
...
@@ -115,38 +133,29 @@ export default {
...
@@ -115,38 +133,29 @@ export default {
this
.
listquery
.
startDate
=
value
[
0
]
+
' 00:00:00'
this
.
listquery
.
startDate
=
value
[
0
]
+
' 00:00:00'
this
.
listquery
.
endDate
=
value
[
1
]
+
' 23:59:59'
this
.
listquery
.
endDate
=
value
[
1
]
+
' 23:59:59'
this
.
getList
()
this
.
getList
()
this
.
statistics
()
}
else
{
}
else
{
this
.
listquery
.
startDate
=
null
this
.
listquery
.
startDate
=
null
this
.
listquery
.
endDate
=
null
this
.
listquery
.
endDate
=
null
this
.
getList
()
this
.
getList
()
this
.
statistics
()
}
}
},
},
//身份筛选
//身份筛选
changeStaff
()
{
changeStaff
()
{
this
.
listquery
.
page
=
1
this
.
listquery
.
page
=
1
this
.
getList
()
this
.
getList
()
this
.
statistics
()
},
//统计数据
statistics
()
{
total_statistics
(
this
.
listquery
).
then
(
data
=>
{
this
.
information
=
data
.
data
})
},
},
//列表数据
//列表数据
getList
()
{
getList
()
{
this
.
loading
=
true
//
this.loading = true
getDate
(
this
.
listquery
).
then
(
data
=>
{
//
getDate(this.listquery).then(data => {
if
(
data
.
status
==
200
)
{
//
if (data.status == 200) {
this
.
tableData
=
data
.
data
.
data
//
this.tableData = data.data.data
this
.
total
=
data
.
data
.
totalCount
//
this.total = data.data.totalCount
}
//
}
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
loading
=
false
//
this.loading = false
},
300
)
//
}, 300)
})
//
})
},
},
//导出
//导出
downloadExcel
()
{
downloadExcel
()
{
...
@@ -182,7 +191,4 @@ export default {
...
@@ -182,7 +191,4 @@ export default {
.information
li
:last-child
{
.information
li
:last-child
{
border
:
none
;
border
:
none
;
}
}
.memberClass
{
font-size
:
14px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/financial/staffPerformance.vue
View file @
8ecc5b4e
...
@@ -2,7 +2,13 @@
...
@@ -2,7 +2,13 @@
<div
class=
"app-container calendar-list-container"
v-loading=
"loading"
>
<div
class=
"app-container calendar-list-container"
v-loading=
"loading"
>
<el-row
style=
"border-bottom:1px dashed #ccc;padding-bottom:20px"
>
<el-row
style=
"border-bottom:1px dashed #ccc;padding-bottom:20px"
>
<el-date-picker
v-model=
"time"
type=
"daterange"
placeholder=
"选择日期范围"
@
change=
"changeTime"
></el-date-picker>
<el-date-picker
v-model=
"time"
type=
"daterange"
placeholder=
"选择日期范围"
@
change=
"changeTime"
></el-date-picker>
<el-select
v-model=
"company"
filterable
placeholder=
"请选择公司"
@
change=
"changeCompany"
clearable
>
<el-select
v-model=
"listquery.companyId"
filterable
placeholder=
"请选择公司"
@
change=
"changeCompany"
clearable
>
<el-option
v-for=
"item in allCompaniesArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in allCompaniesArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<el-select
v-model=
"listquery.userPostionId"
clearable
placeholder=
"请选择身份"
@
change=
"changeStaff"
>
<el-select
v-model=
"listquery.userPostionId"
clearable
placeholder=
"请选择身份"
@
change=
"changeStaff"
>
...
@@ -29,12 +35,28 @@
...
@@ -29,12 +35,28 @@
</ul>
</ul>
</div>
</div>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
header-align=
"center"
height=
"450"
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
header-align=
"center"
height=
"450"
@
select=
"choose"
@
select-all=
"chooseAll"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
></el-table-column>
<el-table-column
type=
"index"
width=
"80"
label=
"序号"
align=
"center"
></el-table-column>
<el-table-column
type=
"index"
width=
"80"
label=
"序号"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"员工姓名"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"员工姓名"
align=
"center"
></el-table-column>
<el-table-column
prop=
"companyNames"
label=
"所属公司"
align=
"center"
></el-table-column>
<el-table-column
prop=
"companyNames"
label=
"所属公司"
align=
"center"
>
<el-table-column
prop=
"postionNames"
label=
"身份"
align=
"center"
></el-table-column>
<template
scope=
"scope"
>
<span
v-for=
"(item,index) in scope.row.companyNames"
:key=
"index"
style=
"margin-left:10px"
>
{{
item
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"postionNames"
label=
"身份"
align=
"center"
>
<
template
scope=
"scope"
>
<span
v-for=
"(item,index) in scope.row.postionNames"
:key=
"index"
style=
"margin-left:10px"
>
{{
item
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"phone"
label=
"电话"
align=
"center"
></el-table-column>
<el-table-column
prop=
"phone"
label=
"电话"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sellAmount"
label=
"销售额(元)"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sellAmount"
label=
"销售额(元)"
align=
"center"
></el-table-column>
<el-table-column
prop=
"royaltyAmount"
label=
"APP提成(5%)"
width=
"100px"
align=
"center"
></el-table-column>
<el-table-column
prop=
"royaltyAmount"
label=
"APP提成(5%)"
width=
"100px"
align=
"center"
></el-table-column>
...
@@ -92,18 +114,29 @@ export default {
...
@@ -92,18 +114,29 @@ export default {
listquery
:
{
listquery
:
{
startDate
:
null
,
//开始日期
startDate
:
null
,
//开始日期
endDate
:
null
,
//结束日期
endDate
:
null
,
//结束日期
companyId
s
:
null
,
//公司
companyId
:
null
,
//公司
userPostionId
:
null
,
//身份
userPostionId
:
null
,
//身份
page
:
1
,
page
:
1
,
limit
:
10
limit
:
10
,
isExport
:
false
}
}
}
}
},
},
methods
:
{
methods
:
{
//全选
chooseAll
(
arr
)
{
console
.
log
(
arr
)
},
//多选
choose
(
val
,
row
)
{
console
.
log
(
val
)
},
//页码
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
listquery
.
limit
=
val
this
.
listquery
.
limit
=
val
this
.
getList
()
this
.
getList
()
},
},
//分页
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
listquery
.
page
=
val
this
.
listquery
.
page
=
val
this
.
getList
()
this
.
getList
()
...
@@ -124,15 +157,8 @@ export default {
...
@@ -124,15 +157,8 @@ export default {
},
},
//分公司筛选
//分公司筛选
changeCompany
(
val
)
{
changeCompany
(
val
)
{
if
(
this
.
company
)
{
this
.
listquery
.
page
=
1
this
.
listquery
.
companyIds
=
[
this
.
company
]
this
.
getList
()
this
.
listquery
.
page
=
1
this
.
getList
()
}
else
{
this
.
listquery
.
companyIds
=
null
this
.
listquery
.
page
=
1
this
.
getList
()
}
},
},
//身份筛选
//身份筛选
changeStaff
()
{
changeStaff
()
{
...
...
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