Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
39e2daea
Commit
39e2daea
authored
Aug 27, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1ea7173c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
262 additions
and
270 deletions
+262
-270
cutomerStatistics.vue
src/components/statistics/cutomerStatistics.vue
+95
-104
salesStatistics.vue
src/components/statistics/salesStatistics.vue
+167
-166
No files found.
src/components/statistics/cutomerStatistics.vue
View file @
39e2daea
...
@@ -8,25 +8,15 @@
...
@@ -8,25 +8,15 @@
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<div
style=
"display: flex;flex-direction: row;align-items: center"
>
<div
style=
"display: flex;flex-direction: row;align-items: center"
>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
v-model=
"msg.Source"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
v-model=
"msg.Source"
size=
"small"
<el-option
placeholder=
"请选择"
>
v-for=
"item in options"
<el-option
v-for=
"item in options"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<div
class=
"block"
>
<div
class=
"block"
>
<el-date-picker
<el-date-picker
style=
"padding: 3px 10px;width: 380px;height: 32px"
v-model=
"value"
type=
"daterange"
style=
"padding: 3px 10px;width: 380px;height: 32px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
v-model=
"value"
@
change=
"getList"
align=
"right"
>
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
@
change=
"getList"
align=
"right"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
style=
"margin-left: 20px"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
style=
"margin-left: 20px"
>
...
@@ -74,37 +64,17 @@
...
@@ -74,37 +64,17 @@
</div>
</div>
<div
style=
"padding: 20px;background: #fff;margin-top: 10px"
>
<div
style=
"padding: 20px;background: #fff;margin-top: 10px"
>
<el-table
<el-table
v-loading=
"loading"
:data=
"tableData"
header-cell-class-name=
"headClass"
style=
"width: 100%;"
>
v-loading=
"loading"
<el-table-column
prop=
"TimeStr"
label=
"日期"
min-width=
"2"
>
:data=
"tableData"
header-cell-class-name=
"headClass"
style=
"width: 100%;"
>
<el-table-column
prop=
"TimeStr"
label=
"日期"
width=
"342"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"Pink"
label=
"普象会员"
min-width=
"2"
>
prop=
"Pink"
label=
"普象会员"
width=
"339"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"VIP"
label=
"VIP会员"
min-width=
"2"
>
prop=
"VIP"
label=
"VIP会员"
width=
"339"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"Silver"
label=
"银象"
min-width=
"2"
>
prop=
"Silver"
label=
"银象"
width=
"339"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"Gold"
label=
"金象"
min-width=
"2"
>
prop=
"Gold"
label=
"金象"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -113,74 +83,77 @@
...
@@ -113,74 +83,77 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
msg
:{
msg
:
{
Source
:
0
,
Source
:
0
,
StartDate
:
''
,
StartDate
:
''
,
EndDate
:
''
,
EndDate
:
''
,
},
},
loading
:
false
,
loading
:
false
,
options
:[],
options
:
[],
tableData
:[],
tableData
:
[],
count
:
0
,
count
:
0
,
value
:
''
,
value
:
''
,
activeName
:
''
,
activeName
:
''
,
//总客户和今日用户
//总客户和今日用户
UserData
:[],
UserData
:
[],
}
}
},
},
created
(){
created
()
{
this
.
getplat
();
this
.
getplat
();
this
.
getMallDistri
();
this
.
getMallDistri
();
this
.
getList
();
this
.
getList
();
},
},
methods
:{
methods
:
{
//获取顶部客户统计
//获取顶部客户统计
getMallDistri
(){
getMallDistri
()
{
this
.
apipost
(
"/api/Tenant/MallDistributorStatistics"
,
{},
res
=>
{
this
.
apipost
(
"/api/Tenant/MallDistributorStatistics"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
UserData
=
res
.
data
.
data
;
this
.
UserData
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
})
})
},
},
//获取平台
//获取平台
getplat
(){
getplat
()
{
this
.
apipost
(
"/api/User/GetMemberUserSourceEnumList"
,
{},
res
=>
{
this
.
apipost
(
"/api/User/GetMemberUserSourceEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options
=
res
.
data
.
data
;
this
.
options
=
res
.
data
.
data
;
this
.
options
.
unshift
({
Name
:
"全部平台"
,
Id
:
0
})
this
.
options
.
unshift
({
Name
:
"全部平台"
,
Id
:
0
})
}
}
})
})
},
},
//获取列表
//获取列表
getList
(){
getList
()
{
if
(
this
.
value
!=
''
&&
this
.
value
!=
null
)
{
if
(
this
.
value
!=
''
&&
this
.
value
!=
null
)
{
this
.
msg
.
StartDate
=
this
.
value
[
0
];
this
.
msg
.
StartDate
=
this
.
value
[
0
];
this
.
msg
.
EndDate
=
this
.
value
[
1
];
this
.
msg
.
EndDate
=
this
.
value
[
1
];
}
else
{
}
else
{
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
EndDate
=
''
;
this
.
msg
.
EndDate
=
''
;
}
}
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
"/api/Tenant/MallDistributorDayStatistics"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Tenant/MallDistributorDayStatistics"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tableData
=
res
.
data
.
data
;
this
.
tableData
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
})
})
},
},
Export
(){
Export
()
{
let
msg
=
{
let
msg
=
{
PlatformType
:
this
.
msg
.
PlatformType
,
PlatformType
:
this
.
msg
.
PlatformType
,
StartDate
:
this
.
msg
.
StartDate
,
StartDate
:
this
.
msg
.
StartDate
,
EndDate
:
this
.
msg
.
EndDate
,
EndDate
:
this
.
msg
.
EndDate
,
OrderType
:
this
.
msg
.
OrderType
,
OrderType
:
this
.
msg
.
OrderType
,
}
}
msg
=
JSON
.
parse
(
JSON
.
stringify
(
msg
));
msg
=
JSON
.
parse
(
JSON
.
stringify
(
msg
));
...
@@ -190,20 +163,20 @@
...
@@ -190,20 +163,20 @@
"销售统计.xls"
"销售统计.xls"
);
);
},
},
empty
(){
empty
()
{
this
.
msg
.
Source
=
0
;
this
.
msg
.
Source
=
0
;
this
.
value
=
''
;
this
.
value
=
''
;
this
.
getList
();
this
.
getList
();
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
if
(
tab
.
name
==
'first'
)
{
if
(
tab
.
name
==
'first'
)
{
this
.
fun_date
(
7
)
this
.
fun_date
(
7
)
}
else
if
(
tab
.
name
==
'second'
)
{
}
else
if
(
tab
.
name
==
'second'
)
{
this
.
fun_date
(
30
)
this
.
fun_date
(
30
)
}
}
},
},
fun_date
(
num
){
fun_date
(
num
)
{
let
that
=
this
let
that
=
this
let
date1
=
new
Date
();
let
date1
=
new
Date
();
//今天时间
//今天时间
let
time1
=
date1
.
getFullYear
()
+
"-"
+
(
date1
.
getMonth
()
+
1
)
+
"-"
+
date1
.
getDate
()
let
time1
=
date1
.
getFullYear
()
+
"-"
+
(
date1
.
getMonth
()
+
1
)
+
"-"
+
date1
.
getDate
()
...
@@ -219,69 +192,81 @@
...
@@ -219,69 +192,81 @@
this
.
getList
();
this
.
getList
();
},
},
},
},
mounted
(){
mounted
()
{
}
}
}
}
</
script
>
<
style
>
<
/
script
>
.salesStatistics
.el-card__header
{
<
style
>
.salesStatistics
.el-card__header
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
background
:
#fff
;
background
:
#fff
;
}
}
.salesStatistics
.el-button--small
{
.salesStatistics
.el-button--small
{
padding
:
9px
15px
;
padding
:
9px
15px
;
}
}
.salesStatistics
.content
.searchInput
{
.salesStatistics
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.salesStatistics
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
.salesStatistics
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
height
:
30px
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.salesStatistics
.content
.searchInput
{
.salesStatistics
.content
.searchInput
{
line-height
:
normal
;
line-height
:
normal
;
display
:
inline-table
;
display
:
inline-table
;
border-collapse
:
separate
;
border-collapse
:
separate
;
border-spacing
:
0
;
border-spacing
:
0
;
width
:
250px
;
width
:
250px
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.salesStatistics
.content
{
.salesStatistics
.content
{
background
:
#fff
;
background
:
#fff
;
margin-top
:
10px
;
margin-top
:
10px
;
padding
:
15px
;
padding
:
15px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.salesStatistics
.el-icon-date
{
.salesStatistics
.el-icon-date
{
line-height
:
24px
;
line-height
:
24px
;
}
}
.salesStatistics
.el-range-separator
{
.salesStatistics
.el-range-separator
{
line-height
:
24px
;
line-height
:
24px
;
}
}
.salesStatistics
.zong
{
.salesStatistics
.zong
{
width
:
100%
;
width
:
100%
;
height
:
57px
;
height
:
57px
;
padding
:
18px
20px
;
padding
:
18px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
border-bottom
:
1px
solid
#EBEEF5
;
background
:
white
;
background
:
white
;
}
}
.salesStatistics
.table-area
{
.salesStatistics
.table-area
{
margin
:
10px
0
;
margin
:
10px
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.salesStatistics
.table-area
.el-card
{
.salesStatistics
.table-area
.el-card
{
width
:
49.5%
;
width
:
49.5%
;
color
:
#303133
;
color
:
#303133
;
}
}
.salesStatistics
.el-card
{
.salesStatistics
.el-card
{
border
:
1px
solid
#EBEEF5
;
border
:
1px
solid
#EBEEF5
;
background-color
:
#FFF
;
background-color
:
#FFF
;
...
@@ -289,15 +274,18 @@
...
@@ -289,15 +274,18 @@
-webkit-transition
:
.3s
;
-webkit-transition
:
.3s
;
transition
:
.3s
;
transition
:
.3s
;
}
}
.salesStatistics
.el-card__header
{
.salesStatistics
.el-card__header
{
padding
:
18px
20px
;
padding
:
18px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
border-bottom
:
1px
solid
#EBEEF5
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.salesStatistics
.el-card__body
{
.salesStatistics
.el-card__body
{
padding
:
20px
;
padding
:
20px
;
}
}
.salesStatistics
.num-info
{
.salesStatistics
.num-info
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
...
@@ -306,13 +294,16 @@
...
@@ -306,13 +294,16 @@
color
:
#303133
;
color
:
#303133
;
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.salesStatistics
.num-info
.num-info-item
{
.salesStatistics
.num-info
.num-info-item
{
text-align
:
center
;
text-align
:
center
;
flex-grow
:
1
;
flex-grow
:
1
;
border-left
:
1px
dashed
#EFF1F7
;
border-left
:
1px
dashed
#EFF1F7
;
}
}
.salesStatistics
.info-item-name
{
.salesStatistics
.info-item-name
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#92959B
;
color
:
#92959B
;
}
}
</
style
>
</
style
>
src/components/statistics/salesStatistics.vue
View file @
39e2daea
...
@@ -8,33 +8,20 @@
...
@@ -8,33 +8,20 @@
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<div
style=
"display: flex;flex-direction: row;align-items: center"
>
<div
style=
"display: flex;flex-direction: row;align-items: center"
>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
v-model=
"msg.PlatformType"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
v-model=
"msg.PlatformType"
size=
"small"
<el-option
placeholder=
"请选择"
>
v-for=
"item in options"
<el-option
v-for=
"item in options"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
size=
"small"
v-model=
"msg.OrderType"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
size=
"small"
v-model=
"msg.OrderType"
<el-option
placeholder=
"请选择"
>
v-for=
"item in options2"
<el-option
v-for=
"item in options2"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<div
class=
"block"
>
<div
class=
"block"
>
<el-date-picker
<el-date-picker
style=
"padding: 3px 10px;width: 380px;height: 32px"
v-model=
"value"
type=
"daterange"
style=
"padding: 3px 10px;width: 380px;height: 32px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
v-model=
"value"
@
change=
"change"
align=
"right"
>
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
@
change=
"change"
align=
"right"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
style=
"margin-left: 20px"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
style=
"margin-left: 20px"
>
...
@@ -106,49 +93,22 @@
...
@@ -106,49 +93,22 @@
<div
style=
"padding: 20px;background: #fff;margin-top: 10px"
>
<div
style=
"padding: 20px;background: #fff;margin-top: 10px"
>
<el-tabs
v-model=
"msg.OrderStatus"
@
tab-click=
"handleClick2"
>
<el-tabs
v-model=
"msg.OrderStatus"
@
tab-click=
"handleClick2"
>
<el-tab-pane
v-for=
"(item,index) of tabsList"
:key
=
index
:label=
"item.Name"
:name=
"item.ID"
></el-tab-pane>
<el-tab-pane
v-for=
"(item,index) of tabsList"
:key
=
index
:label=
"item.Name"
:name=
"item.ID"
></el-tab-pane>
</el-tabs>
</el-tabs>
<el-table
<el-table
v-loading=
"Listloading"
:data=
"tableData"
header-cell-class-name=
"headClass"
style=
"width: 100%;"
>
v-loading=
"Listloading"
<el-table-column
prop=
"CreateDate"
label=
"日期"
min-width=
"2"
>
:data=
"tableData"
header-cell-class-name=
"headClass"
style=
"width: 100%;"
>
<el-table-column
prop=
"CreateDate"
label=
"日期"
min-width=
"2"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"PayMemerNum"
label=
"付款人数"
min-width=
"2"
>
prop=
"PayMemerNum"
label=
"付款人数"
min-width=
"2"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"OrderNum"
label=
"付款订单数"
min-width=
"2"
>
prop=
"OrderNum"
label=
"付款订单数"
min-width=
"2"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"PayMoney"
label=
"付款金额"
min-width=
"2"
>
prop=
"PayMoney"
label=
"付款金额"
min-width=
"2"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"GoodsNum"
label=
"付款件数"
min-width=
"2"
>
<el-table-column
prop=
"GoodsNum"
label=
"付款件数"
min-width=
"2"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-pagination
style=
"text-align:right"
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
background
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"count"
>
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"count"
>
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
...
@@ -157,41 +117,58 @@
...
@@ -157,41 +117,58 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"salesStatistics"
,
name
:
"salesStatistics"
,
data
(){
data
()
{
return
{
return
{
msg
:{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
20
,
pageSize
:
20
,
PlatformType
:
0
,
PlatformType
:
0
,
StartDate
:
''
,
StartDate
:
''
,
EndDate
:
''
,
EndDate
:
''
,
OrderStatus
:
0
,
OrderStatus
:
0
,
OrderType
:
0
,
OrderType
:
0
,
},
Listloading
:
false
,
tabsList
:
[{
'Name'
:
'全部'
,
"ID"
:
'0'
},
{
'Name'
:
'未完成订单'
,
"ID"
:
'1'
},
{
'Name'
:
'已完成订单'
,
"ID"
:
'2'
},
{
'Name'
:
'已取消订单'
,
"ID"
:
'3'
},
{
'Name'
:
'售后中订单'
,
"ID"
:
'4'
},
{
'Name'
:
'已完成售后订单'
,
"ID"
:
'5'
},
},
Listloading
:
false
,
tabsList
:[
{
'Name'
:
'全部'
,
"ID"
:
'0'
},
{
'Name'
:
'未完成订单'
,
"ID"
:
'1'
},
{
'Name'
:
'已完成订单'
,
"ID"
:
'2'
},
{
'Name'
:
'已取消订单'
,
"ID"
:
'3'
},
{
'Name'
:
'售后中订单'
,
"ID"
:
'4'
},
{
'Name'
:
'已完成售后订单'
,
"ID"
:
'5'
},
],
],
options
:[],
options
:
[],
options2
:[],
options2
:
[],
Coupon
:
0
,
Coupon
:
0
,
tableData
:[],
tableData
:
[],
count
:
0
,
count
:
0
,
value
:
''
,
value
:
''
,
activeName
:
''
,
activeName
:
''
,
loading
:
false
,
loading
:
false
,
Totaldata
:{
Totaldata
:
{
OrderNum
:
"0"
,
OrderNum
:
"0"
,
GoodsNum
:
"0"
,
GoodsNum
:
"0"
,
PayMemerNum
:
"0"
,
PayMemerNum
:
"0"
,
PayMoney
:
"0"
,
PayMoney
:
"0"
,
},
},
Totaldata2
:{
Totaldata2
:
{
OrderNum
:
"0"
,
OrderNum
:
"0"
,
GoodsNum
:
"0"
,
GoodsNum
:
"0"
,
PayMemerNum
:
"0"
,
PayMemerNum
:
"0"
,
...
@@ -199,96 +176,102 @@
...
@@ -199,96 +176,102 @@
}
}
}
}
},
},
created
(){
created
()
{
this
.
getplat
();
this
.
getplat
();
this
.
getOrderTypeEnumEnumList
()
this
.
getOrderTypeEnumEnumList
()
this
.
getIntegraStatisticslList
()
this
.
getIntegraStatisticslList
()
},
},
methods
:{
methods
:
{
getplat
(){
getplat
()
{
this
.
apipost
(
"/api/User/GetMemberUserSourceEnumList"
,
{},
res
=>
{
this
.
apipost
(
"/api/User/GetMemberUserSourceEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options
=
res
.
data
.
data
;
this
.
options
=
res
.
data
.
data
;
this
.
options
.
unshift
({
Name
:
"全部平台"
,
Id
:
0
})
this
.
options
.
unshift
({
Name
:
"全部平台"
,
Id
:
0
})
}
}
})
})
},
},
getOrderTypeEnumEnumList
(){
getOrderTypeEnumEnumList
()
{
this
.
apipost
(
"/api/Order/GetOrderTypeEnumEnumList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Order/GetOrderTypeEnumEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options2
=
res
.
data
.
data
;
this
.
options2
=
res
.
data
.
data
;
this
.
options2
.
unshift
({
Name
:
"全部订单"
,
Id
:
0
})
this
.
options2
.
unshift
({
Name
:
"全部订单"
,
Id
:
0
})
}
}
})
})
},
},
change
(
val
){
change
(
val
)
{
this
.
activeName
=
''
this
.
activeName
=
''
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
getIntegraStatisticslList
(
false
)
this
.
getIntegraStatisticslList
(
false
)
},
},
getDataList
(
show
=
false
)
{
getDataList
(
show
=
false
)
{
if
(
this
.
value
!=
''
&&
this
.
value
!=
null
)
{
if
(
this
.
value
!=
''
&&
this
.
value
!=
null
)
{
this
.
msg
.
StartDate
=
this
.
value
[
0
];
this
.
msg
.
StartDate
=
this
.
value
[
0
];
this
.
msg
.
EndDate
=
this
.
value
[
1
];
this
.
msg
.
EndDate
=
this
.
value
[
1
];
}
else
{
}
else
{
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
EndDate
=
''
;
this
.
msg
.
EndDate
=
''
;
}
}
if
(
show
==
true
)
{
if
(
show
==
true
)
{
this
.
Listloading
=
true
;
this
.
Listloading
=
true
;
}
}
this
.
apipost
(
"/api/Statistics/GetSellPageList"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Statistics/GetSellPageList"
,
this
.
msg
,
res
=>
{
this
.
Listloading
=
false
this
.
Listloading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
count
=
res
.
data
.
data
.
count
;
this
.
count
=
res
.
data
.
data
.
count
;
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
})
})
},
},
getIntegraStatisticslList
(
show
=
true
)
{
getIntegraStatisticslList
(
show
=
true
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
getDataList
()
this
.
getDataList
()
let
Totalmsg
=
{
let
Totalmsg
=
{
PlatformType
:
this
.
msg
.
PlatformType
,
PlatformType
:
this
.
msg
.
PlatformType
,
StartDate
:
this
.
msg
.
StartDate
,
StartDate
:
this
.
msg
.
StartDate
,
EndDate
:
this
.
msg
.
EndDate
,
EndDate
:
this
.
msg
.
EndDate
,
OrderType
:
this
.
msg
.
OrderType
,
OrderType
:
this
.
msg
.
OrderType
,
}
}
this
.
apipost
(
"/api/Statistics/GetSellOrder"
,
Totalmsg
,
res
=>
{
this
.
apipost
(
"/api/Statistics/GetSellOrder"
,
Totalmsg
,
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Totaldata
=
res
.
data
.
data
;
this
.
Totaldata
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
})
})
if
(
show
==
true
)
{
if
(
show
==
true
)
{
let
Totalmsg2
=
{
let
Totalmsg2
=
{
PlatformType
:
this
.
msg
.
PlatformType
,
PlatformType
:
this
.
msg
.
PlatformType
,
StartDate
:
this
.
msg
.
StartDate
,
StartDate
:
this
.
msg
.
StartDate
,
EndDate
:
this
.
msg
.
EndDate
,
EndDate
:
this
.
msg
.
EndDate
,
OrderType
:
this
.
msg
.
OrderType
,
OrderType
:
this
.
msg
.
OrderType
,
}
}
var
day1
=
new
Date
();
var
day1
=
new
Date
();
day1
.
setTime
(
day1
.
getTime
());
day1
.
setTime
(
day1
.
getTime
());
var
s1
=
day1
.
getFullYear
()
+
"-"
+
(
day1
.
getMonth
()
+
1
)
+
"-"
+
day1
.
getDate
();
var
s1
=
day1
.
getFullYear
()
+
"-"
+
(
day1
.
getMonth
()
+
1
)
+
"-"
+
day1
.
getDate
();
Totalmsg2
.
StartDate
=
s1
Totalmsg2
.
StartDate
=
s1
Totalmsg2
.
EndDate
=
s1
Totalmsg2
.
EndDate
=
s1
this
.
apipost
(
"/api/Statistics/GetSellOrder"
,
Totalmsg2
,
res
=>
{
this
.
apipost
(
"/api/Statistics/GetSellOrder"
,
Totalmsg2
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Totaldata2
=
res
.
data
.
data
;
this
.
Totaldata2
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
...
@@ -301,12 +284,12 @@
...
@@ -301,12 +284,12 @@
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getDataList
()
this
.
getDataList
()
},
},
Export
(){
Export
()
{
let
msg
=
{
let
msg
=
{
PlatformType
:
this
.
msg
.
PlatformType
,
PlatformType
:
this
.
msg
.
PlatformType
,
StartDate
:
this
.
msg
.
StartDate
,
StartDate
:
this
.
msg
.
StartDate
,
EndDate
:
this
.
msg
.
EndDate
,
EndDate
:
this
.
msg
.
EndDate
,
OrderType
:
this
.
msg
.
OrderType
,
OrderType
:
this
.
msg
.
OrderType
,
}
}
msg
=
JSON
.
parse
(
JSON
.
stringify
(
msg
));
msg
=
JSON
.
parse
(
JSON
.
stringify
(
msg
));
...
@@ -316,30 +299,30 @@
...
@@ -316,30 +299,30 @@
"销售统计.xls"
"销售统计.xls"
);
);
},
},
empty
(){
empty
()
{
this
.
msg
.
PlatformType
=
0
;
this
.
msg
.
PlatformType
=
0
;
this
.
msg
.
OrderType
=
0
;
this
.
msg
.
OrderType
=
0
;
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
StartDate
=
''
;
this
.
msg
.
EndDate
=
''
;
this
.
msg
.
EndDate
=
''
;
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
value
=
''
;
this
.
value
=
''
;
this
.
activeName
=
''
;
this
.
activeName
=
''
;
this
.
getIntegraStatisticslList
()
this
.
getIntegraStatisticslList
()
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
if
(
tab
.
name
==
'first'
)
{
if
(
tab
.
name
==
'first'
)
{
this
.
fun_date
(
7
)
this
.
fun_date
(
7
)
}
else
if
(
tab
.
name
==
'second'
)
{
}
else
if
(
tab
.
name
==
'second'
)
{
this
.
fun_date
(
30
)
this
.
fun_date
(
30
)
}
}
},
},
handleClick2
(){
handleClick2
()
{
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
getDataList
(
true
)
this
.
getDataList
(
true
)
},
},
fun_date
(
num
){
fun_date
(
num
)
{
let
that
=
this
let
that
=
this
let
date1
=
new
Date
();
let
date1
=
new
Date
();
//今天时间
//今天时间
let
time1
=
date1
.
getFullYear
()
+
"-"
+
(
date1
.
getMonth
()
+
1
)
+
"-"
+
date1
.
getDate
()
let
time1
=
date1
.
getFullYear
()
+
"-"
+
(
date1
.
getMonth
()
+
1
)
+
"-"
+
date1
.
getDate
()
...
@@ -351,78 +334,90 @@
...
@@ -351,78 +334,90 @@
data
.
push
(
time2
)
data
.
push
(
time2
)
data
.
push
(
time1
)
data
.
push
(
time1
)
that
.
value
=
data
;
that
.
value
=
data
;
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
getIntegraStatisticslList
(
false
)
this
.
getIntegraStatisticslList
(
false
)
},
},
getList
(){
getList
()
{
this
.
msg
.
pageIndex
=
1
this
.
msg
.
pageIndex
=
1
this
.
getIntegraStatisticslList
()
this
.
getIntegraStatisticslList
()
}
}
},
},
mounted
(){
mounted
()
{
}
}
}
}
</
script
>
<
style
>
<
/
script
>
.salesStatistics
.el-card__header
{
<
style
>
.salesStatistics
.el-card__header
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
background
:
#fff
;
background
:
#fff
;
}
}
.salesStatistics
.el-button--small
{
.salesStatistics
.el-button--small
{
padding
:
9px
15px
;
padding
:
9px
15px
;
}
}
.salesStatistics
.content
.searchInput
{
.salesStatistics
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.salesStatistics
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
.salesStatistics
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
height
:
30px
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.salesStatistics
.content
.searchInput
{
.salesStatistics
.content
.searchInput
{
line-height
:
normal
;
line-height
:
normal
;
display
:
inline-table
;
display
:
inline-table
;
border-collapse
:
separate
;
border-collapse
:
separate
;
border-spacing
:
0
;
border-spacing
:
0
;
width
:
250px
;
width
:
250px
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.salesStatistics
.content
{
.salesStatistics
.content
{
background
:
#fff
;
background
:
#fff
;
margin-top
:
10px
;
margin-top
:
10px
;
padding
:
15px
;
padding
:
15px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.salesStatistics
.el-icon-date
{
.salesStatistics
.el-icon-date
{
line-height
:
24px
;
line-height
:
24px
;
}
}
.salesStatistics
.el-range-separator
{
.salesStatistics
.el-range-separator
{
line-height
:
24px
;
line-height
:
24px
;
}
}
.salesStatistics
.zong
{
.salesStatistics
.zong
{
width
:
100%
;
width
:
100%
;
height
:
57px
;
height
:
57px
;
padding
:
18px
20px
;
padding
:
18px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
border-bottom
:
1px
solid
#EBEEF5
;
background
:
white
;
background
:
white
;
}
}
.salesStatistics
.table-area
{
.salesStatistics
.table-area
{
margin
:
10px
0
;
margin
:
10px
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.salesStatistics
.table-area
.el-card
{
.salesStatistics
.table-area
.el-card
{
width
:
49.5%
;
width
:
49.5%
;
color
:
#303133
;
color
:
#303133
;
}
}
.salesStatistics
.el-card
{
.salesStatistics
.el-card
{
border
:
1px
solid
#EBEEF5
;
border
:
1px
solid
#EBEEF5
;
background-color
:
#FFF
;
background-color
:
#FFF
;
...
@@ -430,15 +425,18 @@
...
@@ -430,15 +425,18 @@
-webkit-transition
:
.3s
;
-webkit-transition
:
.3s
;
transition
:
.3s
;
transition
:
.3s
;
}
}
.salesStatistics
.el-card__header
{
.salesStatistics
.el-card__header
{
padding
:
18px
20px
;
padding
:
18px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
border-bottom
:
1px
solid
#EBEEF5
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.salesStatistics
.el-card__body
{
.salesStatistics
.el-card__body
{
padding
:
20px
;
padding
:
20px
;
}
}
.salesStatistics
.num-info
{
.salesStatistics
.num-info
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
...
@@ -447,13 +445,16 @@
...
@@ -447,13 +445,16 @@
color
:
#303133
;
color
:
#303133
;
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.salesStatistics
.num-info
.num-info-item
{
.salesStatistics
.num-info
.num-info-item
{
text-align
:
center
;
text-align
:
center
;
flex-grow
:
1
;
flex-grow
:
1
;
border-left
:
1px
dashed
#EFF1F7
;
border-left
:
1px
dashed
#EFF1F7
;
}
}
.salesStatistics
.info-item-name
{
.salesStatistics
.info-item-name
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#92959B
;
color
:
#92959B
;
}
}
</
style
>
</
style
>
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