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
e2fdae31
Commit
e2fdae31
authored
Nov 27, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工业绩报表
parent
1df1973b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
27 deletions
+9
-27
statistics.js
src/api/statistics.js
+1
-10
staffPerformance.vue
src/views/financial/staffPerformance.vue
+8
-17
No files found.
src/api/statistics.js
View file @
e2fdae31
import
fetch
from
'utils/fetch'
;
// 员工业绩报表
export
function
total_statistics
(
query
)
{
return
fetch
({
url
:
'api/order/admin/staff_statistics/total_statistics'
,
method
:
'post'
,
data
:
query
});
}
export
function
getDate
(
query
)
{
return
fetch
({
url
:
'api/
order/
admin/staff_statistics/page'
,
url
:
'api/admin/staff_statistics/page'
,
method
:
'post'
,
data
:
query
});
...
...
src/views/financial/staffPerformance.vue
View file @
e2fdae31
...
...
@@ -19,11 +19,11 @@
<p>
员工总数(人)
</p>
</li>
<li>
<p>
{{
information
.
total
Royalty
Amount
}}
</p>
<p>
{{
information
.
total
Sell
Amount
}}
</p>
<p>
员工销售额(元)
</p>
</li>
<li>
<p>
{{
information
.
total
Sell
Amount
}}
</p>
<p>
{{
information
.
total
Royalty
Amount
}}
</p>
<p>
员工App提成总额(元)
</p>
</li>
</ul>
...
...
@@ -69,12 +69,11 @@
</template>
<
script
>
import
{
getAll
}
from
'api/base_info/branch_company/'
import
{
total_statistics
,
getDate
}
from
'api/statistics'
import
{
getDate
}
from
'api/statistics'
import
{
getrewardSetting
}
from
'api/purseManage'
export
default
{
created
()
{
this
.
statistics
()
this
.
getList
()
this
.
getCompany
()
this
.
getrewardSettingFn
()
...
...
@@ -117,12 +116,10 @@ export default {
this
.
listquery
.
startDate
=
value
[
0
]
+
' 00:00:00'
this
.
listquery
.
endDate
=
value
[
1
]
+
' 23:59:59'
this
.
getList
()
this
.
statistics
()
}
else
{
this
.
listquery
.
startDate
=
null
this
.
listquery
.
endDate
=
null
this
.
getList
()
this
.
statistics
()
}
},
//分公司筛选
...
...
@@ -131,33 +128,27 @@ export default {
this
.
listquery
.
companyIds
=
[
this
.
company
]
this
.
listquery
.
page
=
1
this
.
getList
()
this
.
statistics
()
}
else
{
this
.
listquery
.
companyIds
=
null
this
.
listquery
.
page
=
1
this
.
getList
()
this
.
statistics
()
}
},
//身份筛选
changeStaff
()
{
this
.
listquery
.
page
=
1
this
.
getList
()
this
.
statistics
()
},
//统计数据
statistics
()
{
total_statistics
(
this
.
listquery
).
then
(
data
=>
{
this
.
information
=
data
.
data
})
},
//列表数据
getList
()
{
this
.
loading
=
true
getDate
(
this
.
listquery
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
tableData
=
data
.
data
.
data
this
.
total
=
data
.
data
.
totalCount
this
.
tableData
=
data
.
data
.
page
.
data
this
.
total
=
data
.
data
.
page
.
totalCount
if
(
data
.
data
.
page
.
pageNum
==
1
)
{
this
.
information
=
data
.
data
.
total
}
}
setTimeout
(()
=>
{
this
.
loading
=
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