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
0e5545cf
Commit
0e5545cf
authored
Dec 19, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩统计
parent
7a85ecb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
orderStatistics.vue
src/views/statistics/orderStatistics.vue
+19
-16
No files found.
src/views/statistics/orderStatistics.vue
View file @
0e5545cf
...
@@ -22,19 +22,19 @@
...
@@ -22,19 +22,19 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"listQuery.orderState"
clearable
placeholder=
"请选择"
>
<el-select
v-model=
"listQuery.orderState"
clearable
placeholder=
"请选择"
>
<!--
<el-option
label=
"全部"
:value=
"null"
>
</el-option>
-->
<!--
<el-option
:value=
'null'
>
全部
</el-option>
-->
<el-option
v-for=
"item in orderArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in orderArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单来源"
>
<el-form-item
label=
"订单来源"
>
<el-select
v-model=
"listQuery.orderOrigin"
clearable
placeholder=
"请选择"
>
<el-select
v-model=
"listQuery.orderOrigin"
clearable
placeholder=
"请选择"
>
<
!--
<el-option
label=
"全部"
:value=
"null"
></el-option>
--
>
<
el-option
label=
"全部"
:value=
"null"
></el-option
>
<el-option
v-for=
"item in orderOriginArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in orderOriginArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"支付方式"
>
<el-form-item
label=
"支付方式"
>
<el-select
v-model=
"listQuery.payWay"
clearable
placeholder=
"请选择"
>
<el-select
v-model=
"listQuery.payWay"
clearable
placeholder=
"请选择"
>
<
!--
<el-option
label=
"全部"
:value=
"null"
></el-option>
--
>
<
el-option
label=
"全部"
:value=
"null"
></el-option
>
<el-option
v-for=
"item in payWayArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in payWayArr"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -70,13 +70,13 @@ import { objDeepCopy } from '../../utils'
...
@@ -70,13 +70,13 @@ import { objDeepCopy } from '../../utils'
export
default
{
export
default
{
data
:
function
()
{
data
:
function
()
{
this
.
extend
=
{
this
.
extend
=
{
'xAxis.0.axisLabel.rotate'
:
45
//
'xAxis.0.axisLabel.rotate': 45
}
}
this
.
dataZoom
=
[
this
.
dataZoom
=
[
{
{
type
:
'slider'
,
type
:
'slider'
,
start
:
0
,
start
:
0
,
end
:
2
0
end
:
3
0
}
}
]
]
this
.
chartSettings
=
{
this
.
chartSettings
=
{
...
@@ -113,13 +113,17 @@ export default {
...
@@ -113,13 +113,17 @@ export default {
page
:
1
,
//当前页
page
:
1
,
//当前页
limit
:
10
,
//每页条数
limit
:
10
,
//每页条数
statisticalWay
:
1
,
//统计方式
statisticalWay
:
1
,
//统计方式
orderState
:
1
,
//订单状态
orderState
:
''
,
//订单状态
orderOrigin
:
1
,
//来源
orderOrigin
:
null
,
//来源
payWay
:
1
,
//支付方式
payWay
:
null
,
//支付方式
statisticalSigns
:
[
'aa_ota'
]
//筛选
statisticalSigns
:
[
'aa_ota'
]
//筛选
},
},
//订单状态
//订单状态
orderArr
:
[
orderArr
:
[
{
name
:
"全部"
,
id
:
''
,
},
{
{
name
:
'未完成'
,
name
:
'未完成'
,
id
:
0
id
:
0
...
@@ -289,9 +293,9 @@ export default {
...
@@ -289,9 +293,9 @@ export default {
page
:
1
,
//当前页
page
:
1
,
//当前页
limit
:
10
,
//每页条数
limit
:
10
,
//每页条数
statisticalWay
:
1
,
//统计方式
statisticalWay
:
1
,
//统计方式
orderState
:
1
,
//订单状态
orderState
:
null
,
//订单状态
orderOrigin
:
1
,
//来源
orderOrigin
:
null
,
//来源
payWay
:
1
,
//支付方式
payWay
:
null
,
//支付方式
statisticalSigns
:
[
'aa_ota'
]
//筛选
statisticalSigns
:
[
'aa_ota'
]
//筛选
}
}
this
.
time
=
null
this
.
time
=
null
...
@@ -307,15 +311,14 @@ export default {
...
@@ -307,15 +311,14 @@ export default {
let
way
=
this
.
listQuery
.
statisticalWay
let
way
=
this
.
listQuery
.
statisticalWay
var
x
var
x
var
y
var
y
let
dateIndex
=
way
==
3
?
1
:
way
==
2
?
1
:
2
let
dateIndex
=
way
==
1
?
2
:
way
==
2
?
1
:
1
let
orderIndex
=
way
==
1
?
3
:
0
let
orderIndex
=
way
==
1
?
3
:
way
==
2
?
2
:
2
for
(
let
i
=
0
;
i
<
choose
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
choose
.
length
;
i
++
)
{
if
(
info
[
choose
[
i
]]
!=
''
)
{
if
(
info
[
choose
[
i
]]
!=
''
)
{
params
[
choose
[
i
]]
=
{
params
[
choose
[
i
]]
=
{
columns
:
[
columns
:
[
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
dateIndex
],
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
dateIndex
],
//年费
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
orderIndex
]
Object
.
keys
(
info
[
choose
[
i
]][
0
])[
orderIndex
]
//金额
],
],
rows
:
info
[
choose
[
i
]].
sort
(
function
(
a
,
b
){
rows
:
info
[
choose
[
i
]].
sort
(
function
(
a
,
b
){
if
(
way
===
1
){
if
(
way
===
1
){
...
...
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