Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 aa4cc1d2
authored
Aug 25, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值
1 parent
f1c72330
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
pages/tab/outputValue/components/merchant/merchant.js
pages/tab/outputValue/components/merchantCom/constant.js
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
pages/tab/outputValue/components/merchant/merchant.js
View file @
aa4cc1d
...
...
@@ -213,9 +213,9 @@ Component({
this
.
getMerchantList
(
isReset
)
},
getTotal
()
{
let
{
searchForm
}
=
this
.
data
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
params
=
{
merchantId
:
searchForm
.
shopMerchantIds
.
length
?
searchForm
.
shopMerchantIds
[
0
]
:
''
merchantId
:
userInfo
.
subLoginUser
.
isSuper
?
''
:
userInfo
.
subLoginUser
.
merchantId
}
outputValueApi
.
getMerchantTotal
(
params
).
then
(
res
=>
{
this
.
setData
({
...
...
@@ -240,9 +240,9 @@ Component({
_currentDate
=
new
Date
(
startYearMonth
)
_endMonthDate
=
new
Date
(
startYearMonth
)
}
else
if
(
startTime
&&
endTime
)
{
_currentDate
=
new
Date
(
endTime
)
_endMonthDate
=
new
Date
(
endTime
)
searchStart
=
new
Date
(
startTime
)
_currentDate
=
new
Date
(
endTime
.
replace
(
/-/g
,
'/'
)
)
_endMonthDate
=
new
Date
(
endTime
.
replace
(
/-/g
,
'/'
)
)
searchStart
=
new
Date
(
startTime
.
replace
(
/-/g
,
'/'
)
)
}
_endMonthDate
.
setMonth
(
_currentDate
.
getMonth
()
-
monthInterval
)
let
_startMonthDate
=
new
Date
(
isReset
?
_currentDate
:
_endMonthDate
)
...
...
@@ -252,7 +252,7 @@ Component({
this
.
setData
({
[
'pageCof.startYearMonth'
]:
startYearMonth
,
[
'pageCof.endYearMonth'
]:
endYearMonth
,
isEnd
:
new
Date
(
new
Date
(
startTime
)).
format
(
'yyyy-MM'
)
==
startYearMonth
isEnd
:
new
Date
(
new
Date
(
startTime
.
replace
(
/-/g
,
'/'
)
)).
format
(
'yyyy-MM'
)
==
startYearMonth
})
},
getMerchantList
(
isReset
=
false
)
{
...
...
@@ -268,7 +268,7 @@ Component({
})
this
.
dealMonth
(
isReset
)
let
params
=
{
partnerMerchantId
:
userInfo
.
subLoginUser
.
merchantId
,
partnerMerchantId
:
userInfo
.
subLoginUser
.
isSuper
?
''
:
userInfo
.
subLoginUser
.
merchantId
,
merchantId
:
searchForm
.
shopMerchantIds
.
length
?
searchForm
.
shopMerchantIds
[
0
]
:
''
,
sceneType
:
searchForm
.
sceneType
,
...
this
.
data
.
pageCof
...
...
pages/tab/outputValue/components/merchantCom/constant.js
View file @
aa4cc1d
...
...
@@ -2,7 +2,7 @@ const sceneFormList = [{
label
:
'太阳膜'
,
name
:
'scene1Total'
},
{
label
:
'
众筹活动
'
,
label
:
'
售后众筹
'
,
name
:
'scene3Total'
},
{
label
:
'会员权益/升级'
,
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
aa4cc1d
...
...
@@ -197,6 +197,10 @@
color
:
#323436
;
margin-bottom
:
16rpx
;
}
.label.num-grey
{
color
:
#8A8C90
;
}
}
.compare-block
{
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
aa4cc1d
...
...
@@ -35,7 +35,7 @@
<view class="list-content">
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block">
<view class="label">{{subItem.label}}</view>
<view class="label
num-grey
">{{subItem.label}}</view>
<view class="num">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData[subItem.name] || 0)}}</view>
</view>
</view>
...
...
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