Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2589efda
authored
Jan 21, 2022
by
yy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
end
1 parent
983b297a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
121 additions
and
41 deletions
src/api/modules/home.js
src/utils/util.js
src/views/ehome/components/detail/upgradeDetail.vue
src/views/ehome/components/summary-statistics.vue
src/views/home/components/customer-echart.vue
src/views/home/components/detail/equityDetail.vue
src/views/home/components/detail/shopDetail.vue
src/views/home/components/detail/upgradeDetail.vue
src/views/home/components/overview-enterprise.vue
src/api/modules/home.js
View file @
2589efd
...
...
@@ -244,7 +244,7 @@ const shopmallExport = params => {
//获取精品列表
const
boutiquecoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.rop.router'
params
.
routerMethod
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.
count
'
params
.
routerMethod
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.
page
'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
...
...
src/utils/util.js
View file @
2589efd
...
...
@@ -18,6 +18,19 @@ util.getBeforeDate = function (sign = '-') {
var
s
=
day
.
getFullYear
()
+
sign
+
month
+
sign
+
date
;
return
s
;
}
util
.
getTimeFomat
=
function
(
time
,
sign
=
'-'
)
{
let
day
=
new
Date
(
time
);
let
month
=
day
.
getMonth
()
+
1
;
let
date
=
day
.
getDate
();
let
hour
=
day
.
getHours
();
let
mm
=
day
.
getMinutes
()
if
(
month
<
10
)
month
=
'0'
+
month
;
if
(
date
<
10
)
date
=
'0'
+
date
;
if
(
hour
<
10
)
hour
=
'0'
+
hour
;
if
(
mm
<
10
)
mm
=
'0'
+
mm
;
var
s
=
day
.
getFullYear
()
+
sign
+
month
+
sign
+
date
+
' '
+
hour
+
':'
+
mm
;
return
s
;
}
util
.
getBetweenDate
=
function
(
day
,
num
,
str
=
'-'
)
{
var
today
=
new
Date
(
day
);
var
nowTime
=
today
.
getTime
();
...
...
src/views/ehome/components/detail/upgradeDetail.vue
View file @
2589efd
...
...
@@ -218,8 +218,8 @@ export default {
this
.
loading
=
true
this
.
$apis
.
home
.
getCustomer
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableData
=
res
.
list
this
.
tableTotal
=
res
.
total
})
},
init
()
{
...
...
src/views/ehome/components/summary-statistics.vue
View file @
2589efd
...
...
@@ -21,7 +21,7 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail(summaryTime, summaryTime)"
>
<div
>
{{
totalNewCustomerCount
}}
<span>
人
</span>
</div>
...
...
@@ -49,7 +49,7 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail(summaryTime, summaryTime, 1)"
>
<div>
{{
totalNewEntmicroCount
}}
<span>
人
</span>
</div>
...
...
@@ -77,7 +77,7 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail(summaryTime, summaryTime, null, summaryTime)"
>
<div>
{{
todayEntmicroLoseCount
}}
<span>
人
</span>
</div>
...
...
@@ -107,7 +107,7 @@
<div
class=
"summary-item-total"
>
<div>
{{
currentDayTotalOutputValue
}}
<span>
¥
</span>
<span>
元
</span>
</div>
<div
class=
"summary-radio"
:class=
"
{ 'radio-green': dayRadio > 0, 'radio-red': dayRadio
< 0
}"
>
日环比:
...
...
@@ -623,6 +623,9 @@ export default {
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
.custom-detail
{
cursor
:
pointer
;
}
.summary-radio
{
border-radius
:
2px
;
color
:
#666666
;
...
...
src/views/home/components/customer-echart.vue
View file @
2589efd
...
...
@@ -58,7 +58,7 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleShopDetail(summaryTimeFomat)"
>
<div
@
click=
"handleShopDetail(summaryTimeFomat)"
class=
"custom-detail"
>
{{
'¥ '
+
outputEchartData
.
currentDayShopmallTotalOutputValue
}}
<span></span>
</div>
...
...
@@ -78,7 +78,7 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEquityDetail(summaryTimeFomat)"
>
<div
@
click=
"handleEquityDetail(summaryTimeFomat)"
class=
"custom-detail"
>
{{
'¥ '
+
outputEchartData
.
currentDayEquityTotalOutputValue
}}
<span></span>
</div>
...
...
@@ -99,7 +99,7 @@
</div>
<template
v-if=
"isOpenSmartcarlife"
>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleUpDetail(summaryTimeFomat)"
>
<div
@
click=
"handleUpDetail(summaryTimeFomat)"
class=
"custom-detail"
>
{{
'¥ '
+
outputEchartData
.
currentDayBoutiqueUpgradeTotalOutputValue
}}
<span></span>
</div>
...
...
@@ -372,6 +372,9 @@ export default {
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
.custom-detail
{
cursor
:
pointer
;
}
span
{
font-size
:
14px
;
}
...
...
src/views/home/components/detail/equityDetail.vue
View file @
2589efd
...
...
@@ -141,14 +141,15 @@ export default {
pageSize
:
this
.
$refs
.
tableEmp
.
page
.
pageSize
,
currentPage
:
this
.
$refs
.
tableEmp
.
page
.
pageNum
,
orderType
:
1
,
orderStatus
:
[
2
,
3
],
startTime
:
this
.
startTime
+
' 00:00:00'
,
endTime
:
this
.
endTime
+
' 23:59:59'
}
this
.
loading
=
true
this
.
$apis
.
home
.
equityInfo
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
this
.
tableData
=
res
.
list
this
.
tableTotal
=
res
.
total
})
},
//导出
...
...
@@ -156,6 +157,7 @@ export default {
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
orderStatus
:
[
2
,
3
],
orderType
:
1
,
startTime
:
this
.
startTime
+
' 00:00:00'
,
endTime
:
this
.
endTime
+
' 23:59:59'
...
...
src/views/home/components/detail/shopDetail.vue
View file @
2589efd
...
...
@@ -74,11 +74,11 @@ const orderStatusList = [
},
{
confId
:
21
,
confName
:
'待
核销
'
confName
:
'待
收货(待核销)
'
},
{
confId
:
22
,
confName
:
'已
核销
'
confName
:
'已
收货(已核销)
'
}
]
import
{
utils
}
from
'glsx-common'
...
...
@@ -133,7 +133,10 @@ export default {
},
{
label
:
'订单支付时间'
,
prop
:
'payDate'
prop
:
'payDate'
,
formatter
:
cellValue
=>
{
return
util
.
getTimeFomat
(
cellValue
.
payDate
)
}
},
{
label
:
'订单支付金额'
,
...
...
@@ -171,7 +174,8 @@ export default {
pageSize
:
this
.
$refs
.
tableEmp
.
page
.
pageSize
,
currentPage
:
this
.
$refs
.
tableEmp
.
page
.
pageNum
,
createdStartDateStr
:
this
.
startTime
+
' 00:00:00'
,
createdEndDateStr
:
this
.
endTime
+
' 23:59:59'
createdEndDateStr
:
this
.
endTime
+
' 23:59:59'
,
orderStatuses
:
[
2
,
4
,
5
,
6
,
7
,
8
,
9
]
}
this
.
loading
=
true
this
.
$apis
.
home
.
shopmallPage
(
params
).
then
(
res
=>
{
...
...
@@ -184,7 +188,8 @@ export default {
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
createdStartDateStr
:
this
.
startTime
+
' 00:00:00'
,
createdEndDateStr
:
this
.
endTime
+
' 23:59:59'
createdEndDateStr
:
this
.
endTime
+
' 23:59:59'
,
orderStatuses
:
[
2
,
4
,
5
,
6
,
7
,
8
,
9
]
}
this
.
loading
=
true
this
.
$apis
.
home
.
shopmallExport
(
params
).
then
(
res
=>
{
...
...
src/views/home/components/detail/upgradeDetail.vue
View file @
2589efd
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<el-dialog
title=
"当日新增
商城
产值"
title=
"当日新增
精品升级
产值"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
...
...
@@ -27,11 +27,7 @@
<GLTable
ref=
"tableEmp"
class=
"table-img"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
...
...
@@ -45,6 +41,33 @@
</template>
<
script
>
const
orderStatusList
=
[
// 2: '待收货',
// 3: '已完成',
// 4: '售后中',
// 5: '退款失败',
// 6: '已经退款',
{
confId
:
1
,
confName
:
'正常'
},
{
confId
:
2
,
confName
:
'异常'
},
{
confId
:
3
,
confName
:
'正常测试'
},
{
confId
:
4
,
confName
:
'异常测试'
},
{
confId
:
5
,
confName
:
'未收款'
}
]
import
{
utils
}
from
"glsx-common"
;
import
util
from
"@/utils/util"
;
export
default
{
...
...
@@ -90,19 +113,25 @@ export default {
},
{
label
:
'商品/套餐名称'
,
prop
:
'
addTi
me'
prop
:
'
upgradeGoodsNa
me'
},
{
label
:
'订单支付时间'
,
prop
:
'paySuccessDate'
prop
:
'paySuccessDate'
,
formatter
:
cellValue
=>
{
return
util
.
getTimeFomat
(
cellValue
.
paySuccessDate
)
}
},
{
label
:
'
订单支付
金额'
,
prop
:
's
ubTotalPrice
'
label
:
'
分账
金额'
,
prop
:
's
hopProfitMoney
'
},
{
label
:
'订单状态'
,
prop
:
'addTime'
prop
:
'addTime'
,
formatter
:
cellValue
=>
{
return
orderStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderType
).
confName
}
},
],
},
...
...
@@ -127,22 +156,24 @@ export default {
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
pageSize
:
this
.
$refs
.
tableEmp
.
page
.
pageSize
,
currentPage
:
this
.
$refs
.
tableEmp
.
page
.
pageNum
,
createdStartDateStr
:
this
.
startTime
+
" 00:00:00"
,
createdEndDateStr
:
this
.
endTime
+
" 23:59:59"
,
pageNum
:
this
.
$refs
.
tableEmp
.
page
.
pageNum
,
payStartDateStr
:
this
.
startTime
+
" 00:00:00"
,
payEndDateStr
:
this
.
endTime
+
" 23:59:59"
,
orderType
:
1
};
this
.
loading
=
true
;
this
.
$apis
.
home
.
boutiquecoupon
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
tableData
=
res
.
data
;
this
.
tableTotal
=
res
.
count
;
this
.
tableData
=
res
.
list
;
this
.
tableTotal
=
res
.
total
;
});
},
handleExport
()
{
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
createdStartDateStr
:
this
.
startTime
+
" 00:00:00"
,
createdEndDateStr
:
this
.
endTime
+
" 23:59:59"
,
payStartDateStr
:
this
.
startTime
+
" 00:00:00"
,
payEndDateStr
:
this
.
endTime
+
" 23:59:59"
,
orderType
:
1
};
this
.
loading
=
true
;
this
.
$apis
.
home
.
boutiquecouponExport
(
params
).
then
((
res
)
=>
{
...
...
src/views/home/components/overview-enterprise.vue
View file @
2589efd
...
...
@@ -9,11 +9,11 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail('当日新增客户数', summaryTime, summaryTime)"
v-if=
"this.$globalState.session.accountLevel
!= 4
"
>
<div
@
click=
"handleEmpDetail('当日新增客户数', summaryTime, summaryTime)"
v-if=
"this.$globalState.session.accountLevel
== 4"
class=
"custom-detail
"
>
{{
newCustomerCount
}}
<span>
人
</span>
</div>
<div
v-if=
"this.$globalState.session.accountLevel
=
= 4"
>
<div
v-if=
"this.$globalState.session.accountLevel
!
= 4"
>
{{
newCustomerCount
}}
<span>
人
</span>
</div>
...
...
@@ -37,7 +37,11 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail('当日新增已加企微客户总数', summaryTime, summaryTime, 1)"
>
<div
@
click=
"handleEmpDetail('当日新增已加企微客户总数', summaryTime, summaryTime, 1)"
class=
"custom-detail"
v-if=
"this.$globalState.session.accountLevel == 4"
>
{{
newEntmicroCount
}}
<span>
人
</span>
</div>
<div
v-if=
"this.$globalState.session.accountLevel != 4"
>
{{
newEntmicroCount
}}
<span>
人
</span>
</div>
...
...
@@ -61,7 +65,11 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpGroupDetail(summaryTime)"
>
<div
@
click=
"handleEmpGroupDetail(summaryTime)"
class=
"custom-detail"
v-if=
"this.$globalState.session.accountLevel == 4"
>
{{
todayAddPackmenberCount
}}
<span>
人
</span>
</div>
<div
v-if=
"this.$globalState.session.accountLevel != 4"
>
{{
todayAddPackmenberCount
}}
<span>
人
</span>
</div>
...
...
@@ -85,7 +93,11 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail('当日企微流失客户数', summaryTime, summaryTime, null, summaryTime)"
>
<div
@
click=
"handleEmpDetail('当日企微流失客户数', summaryTime, summaryTime, 0, summaryTime)"
class=
"custom-detail"
v-if=
"this.$globalState.session.accountLevel == 4"
>
{{
todayEntmicroLoseCount
}}
<span>
人
</span>
</div>
<div
v-if=
"this.$globalState.session.accountLevel != 4"
>
{{
todayEntmicroLoseCount
}}
<span>
人
</span>
</div>
...
...
@@ -109,7 +121,11 @@
</el-popover>
</div>
<div
class=
"summary-item-total"
>
<div
@
click=
"handleEmpDetail('累计未加企微客户数', null, summaryTime, 0)"
>
<div
@
click=
"handleEmpDetail('累计未加企微客户数', null, summaryTime, 0)"
class=
"custom-detail"
v-if=
"this.$globalState.session.accountLevel == 4"
>
{{
notAddEntmicroCount
}}
<span>
人
</span>
</div>
<div
v-if=
"this.$globalState.session.accountLevel != 4"
>
{{
notAddEntmicroCount
}}
<span>
人
</span>
</div>
...
...
@@ -228,6 +244,10 @@ export default {
this
.
packmenberCount
=
res
.
packmenberCount
this
.
todayAddPackmenberCount
=
res
.
todayAddPackmenberCount
this
.
entmicroCountRadio
=
res
.
entmicroCountRadio
this
.
groupCustCountDayToDayRadio
=
res
.
groupCustCountDayToDayRadio
this
.
lostCountDayToDayRadio
=
res
.
lostCountDayToDayRadio
this
.
entmicroCountDayToDayRadio
=
res
.
entmicroCountDayToDayRadio
this
.
totalCountDayToDayRadio
=
res
.
totalCountDayToDayRadio
this
.
$emit
(
'getEntmicroRadio'
,
this
.
entmicroCountRadio
)
})
},
...
...
@@ -413,6 +433,9 @@ export default {
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
.custom-detail
{
cursor
:
pointer
;
}
.summary-radio
{
//
background
:
rgba
(
127
,
204
,
162
,
0.1
);
border-radius
:
2px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment