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
0bd5a630
Commit
0bd5a630
authored
Dec 20, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据统计导出
parent
50ea9a1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
vehicleStatistics.js
src/api/statistics/vehicleStatistics.js
+1
-1
employeesInput.vue
src/views/interior/employeesInput.vue
+4
-4
orderStatistics.vue
src/views/statistics/orderStatistics.vue
+14
-2
No files found.
src/api/statistics/vehicleStatistics.js
View file @
0bd5a630
...
@@ -32,7 +32,7 @@ export function received_statistics(params) {
...
@@ -32,7 +32,7 @@ export function received_statistics(params) {
// 订单统计导出
// 订单统计导出
export
function
excelExport
(
query
)
{
export
function
excelExport
(
query
)
{
return
fetch
({
return
fetch
({
url
:
'
/api/order/orderStatistics/excel
'
,
url
:
'
api/order/admin/order/received_statistics/export
'
,
method
:
'post'
,
method
:
'post'
,
data
:
query
,
data
:
query
,
responseType
:
'blob'
responseType
:
'blob'
...
...
src/views/interior/employeesInput.vue
View file @
0bd5a630
...
@@ -532,10 +532,10 @@ export default {
...
@@ -532,10 +532,10 @@ export default {
}
}
}
else
{
}
else
{
let
name
=
this
.
companyList
.
filter
(
item
=>
item
.
id
==
this
.
amendCompany
.
companyId
)
let
name
=
this
.
companyList
.
filter
(
item
=>
item
.
id
==
this
.
amendCompany
.
companyId
)
this
.
amendCompany
.
companyName
=
name
[
0
].
name
this
.
amendCompany
.
companyName
=
name
[
0
].
name
this
.
amendCompany
.
jobId
=
this
.
staffTitleFrom
.
jobId
this
.
amendCompany
.
jobId
=
this
.
staffTitleFrom
.
jobId
this
.
amendCompany
.
positionId
=
this
.
staffTitleFrom
.
positionId
this
.
amendCompany
.
positionId
=
this
.
staffTitleFrom
.
positionId
this
.
amendCompany
.
isQuit
=
0
this
.
amendCompany
.
isQuit
=
this
.
staffTitleFrom
.
isQuit
==
'在职'
?
0
:
1
this
.
setApi
(
this
.
amendCompany
)
this
.
setApi
(
this
.
amendCompany
)
}
}
},
},
...
...
src/views/statistics/orderStatistics.vue
View file @
0bd5a630
...
@@ -18,7 +18,8 @@
...
@@ -18,7 +18,8 @@
placeholder=
"请选择时间范围"
placeholder=
"请选择时间范围"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
end-placeholder=
"结束日期"
@
change=
"changeTime"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"统计周期"
>
<el-form-item
label=
"统计周期"
>
...
@@ -280,6 +281,14 @@ export default {
...
@@ -280,6 +281,14 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
//时间关闭
changeTime
(
val
){
if
(
!
val
)
{
this
.
time
=
null
this
.
listQuery
.
endDate
=
null
this
.
listQuery
.
startDate
=
null
}
},
//导出
//导出
downloadExcel
()
{
downloadExcel
()
{
this
.
excelLoading
=
true
this
.
excelLoading
=
true
...
@@ -310,7 +319,10 @@ export default {
...
@@ -310,7 +319,10 @@ export default {
},
},
//搜索
//搜索
search
()
{
search
()
{
if
(
!!
this
.
time
)
{
// console.log(this.time);
console
.
log
(
!!
this
.
time
[
0
]);
if
(
!!
this
.
time
[
0
])
{
this
.
listQuery
.
startDate
=
formatDate
(
this
.
listQuery
.
startDate
=
formatDate
(
new
Date
(
this
.
time
[
0
]),
new
Date
(
this
.
time
[
0
]),
'yyyy-MM-dd'
'yyyy-MM-dd'
...
...
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