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 09b33531
authored
Aug 28, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.27.0_0831' of
http://192.168.3.233:8090/saas_plus/business-assi…
…stant into v4.27.0_0831
2 parents
0a9f0fed
aa4cc1d2
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
75 additions
and
45 deletions
components/NavigationBar/NavigationBar.js
pages/tab/mine/mine.js
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
pages/tab/outputValue/components/employees/employess.scss
pages/tab/outputValue/components/employees/employess.wxml
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/outputValue.js
pages/tab/outputValue/outputValue.wxml
components/NavigationBar/NavigationBar.js
View file @
09b3353
...
...
@@ -81,7 +81,8 @@ Component({
const
thisPage
=
wx
.
$router
.
getPageInstance
()
this
.
triggerEvent
(
'navbarReady'
,
{
height
:
navHeight
,
statusBarHeight
statusBarHeight
,
navigationBarHeight
})
this
.
setData
({
showNavBar
:
true
...
...
pages/tab/mine/mine.js
View file @
09b3353
...
...
@@ -204,10 +204,6 @@ Page({
this
.
messageBoxPageIsRead
()
this
.
getUnreadApi
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
setData
({
userInfo
:
userInfo
.
subLoginUser
})
let
{
versionData
}
=
this
.
data
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
View file @
09b3353
...
...
@@ -52,7 +52,11 @@ Component({
this
.
setData
({
confirmShow
:
!
this
.
data
.
confirmShow
})
this
.
data
.
confirmShow
?
wx
.
pro
.
hideTabBar
()
:
wx
.
pro
.
showTabBar
()
this
.
data
.
confirmShow
?
wx
.
pro
.
hideTabBar
({
animation
:
true
})
:
wx
.
pro
.
showTabBar
({
animation
:
true
})
},
// 获取服务商下的4s店
getMerchantList
()
{
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
09b3353
...
...
@@ -17,7 +17,7 @@ Component({
thisPage
.
setData
({
isShowFilterScreen
:
true
})
this
.
setDate
()
// 默认展示当前月份
if
(
!
this
.
data
.
formData
.
startTime
||
!
this
.
data
.
formData
.
endTime
)
this
.
setDate
()
// 默认展示当前月份
this
.
setViewData
()
}
}
...
...
@@ -51,7 +51,8 @@ Component({
label
:
'会员权益/升级'
}
],
staffList
:
[]
staffList
:
[],
isShowCalendarMonth
:
true
// 重置重新渲染日历组件 没有传值回显日期功能
},
/**
...
...
@@ -241,7 +242,12 @@ Component({
reset
()
{
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
this
.
setDate
()
formData
.
startTime
=
''
formData
.
endTime
=
''
// this.setDate()
this
.
setData
({
isShowCalendarMonth
:
false
})
formData
.
sceneType
=
''
formData
.
staffUUIDs
=
[]
if
(
tabType
==
0
)
{
...
...
@@ -262,7 +268,8 @@ Component({
sceneList
,
staffList
,
merchantRange
,
subIndex
subIndex
,
isShowCalendarMonth
:
true
})
}
},
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
View file @
09b3353
...
...
@@ -53,6 +53,10 @@
z-index
:
2
;
}
.box
.title.padd_b0
{
padding-bottom
:
0
;
}
.box
.title
.picker_box
,
.box
.title
.picker_box
.picker_box_text
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -104,11 +108,11 @@
}
.box
.list_box
{
display
:
flex
;
flex-wrap
:
wrap
;
display
:
grid
;
justify-content
:
space-between
;
grid-template-columns
:
repeat
(
auto-fill
,
216rpx
);
grid-template-rows
:
auto
;
font-size
:
26rpx
;
align-items
:
flex-start
;
gap
:
24rpx
;
}
.box
.list_box
.list_item
{
...
...
@@ -118,6 +122,7 @@
background
:
#F7F7F7
;
border-radius
:
8rpx
;
padding
:
16rpx
24rpx
;
margin-top
:
24rpx
;
view
{
white-space
:
normal
;
display
:
-
webkit-box
;
...
...
@@ -163,7 +168,7 @@
}
.btn-box
{
position
:
fixed
;
position
:
sticky
;
padding
:
10rpx
32rpx
;
display
:
flex
;
align-items
:
center
;
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
09b3353
...
...
@@ -24,6 +24,7 @@
自定义月份
<view class="picker_box">
<CalendarMonth
wx:if="{{isShowCalendarMonth}}"
allowSameDay
shortcut
bindselect="dateRangeSelect"
...
...
@@ -56,7 +57,7 @@
</view>
</view>
<view class="box" wx:if="{{tabType == 0}}">
<view class="title">
<view class="title
padd_b0
">
场景品类
</view>
<view class="list_box">
...
...
@@ -66,7 +67,7 @@
</view>
</view>
<view class="box" wx:if="{{tabType == 1}}">
<view class="title">
<view class="title
padd_b0
">
员工
</view>
<view class="list_box">
...
...
pages/tab/outputValue/components/employees/employess.scss
View file @
09b3353
...
...
@@ -95,7 +95,7 @@
.line
{
width
:
calc
(
100%
+
48rpx
);
height
:
1rpx
;
background
:
#E4E6EE
;
background
:
rgba
(
228
,
230
,
238
,
.5
)
;
margin
:
40rpx
-24rpx
0
;
}
.merchant_box
{
...
...
@@ -106,7 +106,6 @@
}
.flex_spa-arr
{
display
:
flex
;
gap
:
20rpx
;
justify-content
:
space-around
;
.flex_1
{
flex
:
1
;
...
...
@@ -134,10 +133,16 @@
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.flex
{
margin-right
:
20rpx
;
}
.flex
:last-child
{
margin-right
:
0
;
}
}
.merchant_item
{
padding
:
32rpx
0
;
border-bottom
:
2rpx
solid
#E4E6EE
;
border-bottom
:
2rpx
solid
rgba
(
228
,
230
,
238
,
.5
)
;
}
.merchant_item
:last-child
{
border
:
none
;
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
09b3353
...
...
@@ -36,18 +36,18 @@
<!-- 驻店员工 -->
<block wx:if="{{item.outputValueType == 1}}">
<view class="title flex_spa-arr">
<view class="flex_2">服务门店</view>
<view class="flex_1">产值/客单价</view>
<view class="flex_1 padd_r16">订单/转化率</view>
<view class="flex_2
flex
">服务门店</view>
<view class="flex_1
flex
">产值/客单价</view>
<view class="flex_1 padd_r16
flex
">订单/转化率</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" style="{{item.outputValueStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="flex_2 name">{{subItem.shopMerchantName}}</view>
<view class="flex_1">
<view class="flex_2 name
flex
">{{subItem.shopMerchantName}}</view>
<view class="flex_1
flex
">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', false)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', false)}}</view>
</view>
<view class="flex_1 padd_r16">
<view class="flex_1 padd_r16
flex
">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.conversionRate}}%</view>
</view>
...
...
@@ -60,18 +60,18 @@
<!-- 技师 -->
<block wx:if="{{item.outputValueType == 2}}">
<view class="title flex_spa-arr" >
<view class="flex_3">服务门店</view>
<view class="flex_2">订单台次</view>
<view class="flex_1 padd_r16">激励费</view>
<view class="flex_3
flex
">服务门店</view>
<view class="flex_2
flex
">订单台次</view>
<view class="flex_1 padd_r16
flex
">激励费</view>
</view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" style="{{item.constructionStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="flex_3 name">{{subItem.shopMerchantName}}</view>
<view class="flex_2">
<view class="flex_3 name
flex
">{{subItem.shopMerchantName}}</view>
<view class="flex_2
flex
">
<view class="font_wei">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view>赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view>
<view class="flex_1 padd_r16">
<view class="flex_1 padd_r16
flex
">
<view class="font_wei" wx:if="{{subItem.upgradeIncentiveFee}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei" wx:if="{{!subItem.upgradeIncentiveFee}}">-</view>
<view wx:if="{{subItem.notUpgradeIncentiveFee}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
...
...
pages/tab/outputValue/components/merchant/merchant.js
View file @
09b3353
...
...
@@ -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 @
09b3353
...
...
@@ -2,7 +2,7 @@ const sceneFormList = [{
label
:
'太阳膜'
,
name
:
'scene1Total'
},
{
label
:
'
众筹活动
'
,
label
:
'
售后众筹
'
,
name
:
'scene3Total'
},
{
label
:
'会员权益/升级'
,
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
09b3353
...
...
@@ -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 @
09b3353
...
...
@@ -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>
...
...
pages/tab/outputValue/outputValue.js
View file @
09b3353
...
...
@@ -51,10 +51,13 @@ Page({
})
},
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
let
{
height
,
statusBarHeight
,
navigationBarHeight
}
=
e
.
detail
console
.
log
(
height
,
statusBarHeight
,
navigationBarHeight
)
this
.
setData
({
tabBarStyle
:
height
/
2
+
statusBarHeight
,
tabBoxStyle
:
`height:
${
height
}
rpx`
tabBoxStyle
:
`height:
${
navigationBarHeight
}
px`
,
statusBarHeight
,
navigationBarHeight
})
},
changeTabIndx
(
e
)
{
...
...
@@ -167,7 +170,11 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
onHide
()
{
wx
.
pro
.
showTabBar
({
animation
:
true
})
},
/**
* 生命周期函数--监听页面卸载
...
...
pages/tab/outputValue/outputValue.wxml
View file @
09b3353
...
...
@@ -13,7 +13,7 @@
<view>筛选</view>
</block>
</navigation-bar>
<view class="layout" style="padding-top:calc({{
tabBarStyle
}}px + 88rpx);">
<view class="layout" style="padding-top:calc({{
statusBarHeight + navigationBarHeight
}}px + 88rpx);">
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" tabBarStyle="{{tabBarStyle}}"/>
...
...
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