Commit 09b33531 by 张立顺

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
...@@ -81,7 +81,8 @@ Component({ ...@@ -81,7 +81,8 @@ Component({
const thisPage = wx.$router.getPageInstance() const thisPage = wx.$router.getPageInstance()
this.triggerEvent('navbarReady', { this.triggerEvent('navbarReady', {
height: navHeight, height: navHeight,
statusBarHeight statusBarHeight,
navigationBarHeight
}) })
this.setData({ this.setData({
showNavBar: true showNavBar: true
......
...@@ -204,10 +204,6 @@ Page({ ...@@ -204,10 +204,6 @@ Page({
this.messageBoxPageIsRead() this.messageBoxPageIsRead()
this.getUnreadApi() this.getUnreadApi()
let { userInfo } = wx.$storage.get()
this.setData({
userInfo: userInfo.subLoginUser
})
let { let {
versionData versionData
} = this.data } = this.data
......
...@@ -52,7 +52,11 @@ Component({ ...@@ -52,7 +52,11 @@ Component({
this.setData({ this.setData({
confirmShow: !this.data.confirmShow 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店 // 获取服务商下的4s店
getMerchantList() { getMerchantList() {
......
...@@ -17,7 +17,7 @@ Component({ ...@@ -17,7 +17,7 @@ Component({
thisPage.setData({ thisPage.setData({
isShowFilterScreen: true isShowFilterScreen: true
}) })
this.setDate() // 默认展示当前月份 if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 默认展示当前月份
this.setViewData() this.setViewData()
} }
} }
...@@ -51,7 +51,8 @@ Component({ ...@@ -51,7 +51,8 @@ Component({
label: '会员权益/升级' label: '会员权益/升级'
} }
], ],
staffList: [] staffList: [],
isShowCalendarMonth: true // 重置重新渲染日历组件 没有传值回显日期功能
}, },
/** /**
...@@ -241,7 +242,12 @@ Component({ ...@@ -241,7 +242,12 @@ Component({
reset() { reset() {
let { formData, userInfo, sceneList, staffList, tabType, merchantRange, subIndex } = this.data let { formData, userInfo, sceneList, staffList, tabType, merchantRange, subIndex } = this.data
formData.partnerMerchantIds = [userInfo.subLoginUser.merchantId] formData.partnerMerchantIds = [userInfo.subLoginUser.merchantId]
this.setDate() formData.startTime = ''
formData.endTime = ''
// this.setDate()
this.setData({
isShowCalendarMonth: false
})
formData.sceneType = '' formData.sceneType = ''
formData.staffUUIDs = [] formData.staffUUIDs = []
if (tabType == 0) { if (tabType == 0) {
...@@ -262,7 +268,8 @@ Component({ ...@@ -262,7 +268,8 @@ Component({
sceneList, sceneList,
staffList, staffList,
merchantRange, merchantRange,
subIndex subIndex,
isShowCalendarMonth: true
}) })
} }
}, },
......
...@@ -53,6 +53,10 @@ ...@@ -53,6 +53,10 @@
z-index: 2; z-index: 2;
} }
.box .title.padd_b0{
padding-bottom: 0;
}
.box .title .picker_box, .box .title .picker_box .picker_box_text{ .box .title .picker_box, .box .title .picker_box .picker_box_text{
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -104,11 +108,11 @@ ...@@ -104,11 +108,11 @@
} }
.box .list_box { .box .list_box {
display: flex; display: grid;
flex-wrap: wrap; justify-content: space-between;
grid-template-columns: repeat(auto-fill, 216rpx);
grid-template-rows: auto;
font-size: 26rpx; font-size: 26rpx;
align-items: flex-start;
gap: 24rpx;
} }
.box .list_box .list_item { .box .list_box .list_item {
...@@ -118,6 +122,7 @@ ...@@ -118,6 +122,7 @@
background: #F7F7F7; background: #F7F7F7;
border-radius: 8rpx; border-radius: 8rpx;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
margin-top: 24rpx;
view{ view{
white-space: normal; white-space: normal;
display: -webkit-box; display: -webkit-box;
...@@ -163,7 +168,7 @@ ...@@ -163,7 +168,7 @@
} }
.btn-box { .btn-box {
position: fixed; position: sticky;
padding: 10rpx 32rpx; padding: 10rpx 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
自定义月份 自定义月份
<view class="picker_box"> <view class="picker_box">
<CalendarMonth <CalendarMonth
wx:if="{{isShowCalendarMonth}}"
allowSameDay allowSameDay
shortcut shortcut
bindselect="dateRangeSelect" bindselect="dateRangeSelect"
...@@ -56,7 +57,7 @@ ...@@ -56,7 +57,7 @@
</view> </view>
</view> </view>
<view class="box" wx:if="{{tabType == 0}}"> <view class="box" wx:if="{{tabType == 0}}">
<view class="title"> <view class="title padd_b0">
场景品类 场景品类
</view> </view>
<view class="list_box"> <view class="list_box">
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
</view> </view>
</view> </view>
<view class="box" wx:if="{{tabType == 1}}"> <view class="box" wx:if="{{tabType == 1}}">
<view class="title"> <view class="title padd_b0">
员工 员工
</view> </view>
<view class="list_box"> <view class="list_box">
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
.line{ .line{
width: calc(100% + 48rpx); width: calc(100% + 48rpx);
height: 1rpx; height: 1rpx;
background: #E4E6EE; background: rgba(228, 230, 238, .5);
margin: 40rpx -24rpx 0; margin: 40rpx -24rpx 0;
} }
.merchant_box{ .merchant_box{
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
} }
.flex_spa-arr{ .flex_spa-arr{
display: flex; display: flex;
gap: 20rpx;
justify-content: space-around; justify-content: space-around;
.flex_1{ .flex_1{
flex: 1; flex: 1;
...@@ -134,10 +133,16 @@ ...@@ -134,10 +133,16 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.flex{
margin-right: 20rpx;
}
.flex:last-child{
margin-right: 0;
}
} }
.merchant_item{ .merchant_item{
padding: 32rpx 0; padding: 32rpx 0;
border-bottom: 2rpx solid #E4E6EE; border-bottom: 2rpx solid rgba(228, 230, 238, .5);
} }
.merchant_item:last-child{ .merchant_item:last-child{
border: none; border: none;
......
...@@ -36,18 +36,18 @@ ...@@ -36,18 +36,18 @@
<!-- 驻店员工 --> <!-- 驻店员工 -->
<block wx:if="{{item.outputValueType == 1}}"> <block wx:if="{{item.outputValueType == 1}}">
<view class="title flex_spa-arr"> <view class="title flex_spa-arr">
<view class="flex_2">服务门店</view> <view class="flex_2 flex">服务门店</view>
<view class="flex_1">产值/客单价</view> <view class="flex_1 flex">产值/客单价</view>
<view class="flex_1 padd_r16">订单/转化率</view> <view class="flex_1 padd_r16 flex">订单/转化率</view>
</view> </view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex"> <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="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_2 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_1"> <view class="flex_1 flex">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', false)}}</view> <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>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', false)}}</view>
</view> </view>
<view class="flex_1 padd_r16"> <view class="flex_1 padd_r16 flex">
<view class="font_wei">{{subItem.orderCount}}单</view> <view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.conversionRate}}%</view> <view>{{subItem.conversionRate}}%</view>
</view> </view>
...@@ -60,18 +60,18 @@ ...@@ -60,18 +60,18 @@
<!-- 技师 --> <!-- 技师 -->
<block wx:if="{{item.outputValueType == 2}}"> <block wx:if="{{item.outputValueType == 2}}">
<view class="title flex_spa-arr" > <view class="title flex_spa-arr" >
<view class="flex_3">服务门店</view> <view class="flex_3 flex">服务门店</view>
<view class="flex_2">订单台次</view> <view class="flex_2 flex">订单台次</view>
<view class="flex_1 padd_r16">激励费</view> <view class="flex_1 padd_r16 flex">激励费</view>
</view> </view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex"> <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="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_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2"> <view class="flex_2 flex">
<view class="font_wei">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view> <view class="font_wei">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view>赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view> <view>赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</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}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei" wx:if="{{!subItem.upgradeIncentiveFee}}">-</view> <view class="font_wei" wx:if="{{!subItem.upgradeIncentiveFee}}">-</view>
<view wx:if="{{subItem.notUpgradeIncentiveFee}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view> <view wx:if="{{subItem.notUpgradeIncentiveFee}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
......
...@@ -213,9 +213,9 @@ Component({ ...@@ -213,9 +213,9 @@ Component({
this.getMerchantList(isReset) this.getMerchantList(isReset)
}, },
getTotal() { getTotal() {
let { searchForm } = this.data let { userInfo } = wx.$storage.get()
let params = { let params = {
merchantId: searchForm.shopMerchantIds.length ? searchForm.shopMerchantIds[0] : '' merchantId: userInfo.subLoginUser.isSuper ? '' : userInfo.subLoginUser.merchantId
} }
outputValueApi.getMerchantTotal(params).then(res => { outputValueApi.getMerchantTotal(params).then(res => {
this.setData({ this.setData({
...@@ -240,9 +240,9 @@ Component({ ...@@ -240,9 +240,9 @@ Component({
_currentDate = new Date(startYearMonth) _currentDate = new Date(startYearMonth)
_endMonthDate = new Date(startYearMonth) _endMonthDate = new Date(startYearMonth)
} else if (startTime && endTime) { } else if (startTime && endTime) {
_currentDate = new Date(endTime) _currentDate = new Date(endTime.replace(/-/g, '/'))
_endMonthDate = new Date(endTime) _endMonthDate = new Date(endTime.replace(/-/g, '/'))
searchStart = new Date(startTime) searchStart = new Date(startTime.replace(/-/g, '/'))
} }
_endMonthDate.setMonth(_currentDate.getMonth() - monthInterval) _endMonthDate.setMonth(_currentDate.getMonth() - monthInterval)
let _startMonthDate = new Date(isReset ? _currentDate : _endMonthDate) let _startMonthDate = new Date(isReset ? _currentDate : _endMonthDate)
...@@ -252,7 +252,7 @@ Component({ ...@@ -252,7 +252,7 @@ Component({
this.setData({ this.setData({
['pageCof.startYearMonth']: startYearMonth, ['pageCof.startYearMonth']: startYearMonth,
['pageCof.endYearMonth']: endYearMonth, ['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) { getMerchantList(isReset = false) {
...@@ -268,7 +268,7 @@ Component({ ...@@ -268,7 +268,7 @@ Component({
}) })
this.dealMonth(isReset) this.dealMonth(isReset)
let params = { let params = {
partnerMerchantId: userInfo.subLoginUser.merchantId, partnerMerchantId: userInfo.subLoginUser.isSuper ? '' : userInfo.subLoginUser.merchantId,
merchantId: searchForm.shopMerchantIds.length ? searchForm.shopMerchantIds[0] : '', merchantId: searchForm.shopMerchantIds.length ? searchForm.shopMerchantIds[0] : '',
sceneType: searchForm.sceneType, sceneType: searchForm.sceneType,
...this.data.pageCof ...this.data.pageCof
......
...@@ -2,7 +2,7 @@ const sceneFormList = [{ ...@@ -2,7 +2,7 @@ const sceneFormList = [{
label: '太阳膜', label: '太阳膜',
name: 'scene1Total' name: 'scene1Total'
}, { }, {
label: '众筹活动', label: '售后众筹',
name: 'scene3Total' name: 'scene3Total'
}, { }, {
label: '会员权益/升级', label: '会员权益/升级',
......
...@@ -197,6 +197,10 @@ ...@@ -197,6 +197,10 @@
color: #323436; color: #323436;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.label.num-grey {
color: #8A8C90;
}
} }
.compare-block { .compare-block {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<view class="list-content"> <view class="list-content">
<view class="flex"> <view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block"> <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 class="num">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData[subItem.name] || 0)}}</view>
</view> </view>
</view> </view>
......
...@@ -51,10 +51,13 @@ Page({ ...@@ -51,10 +51,13 @@ Page({
}) })
}, },
navbarReady(e) { navbarReady(e) {
let { height, statusBarHeight } = e.detail let { height, statusBarHeight, navigationBarHeight } = e.detail
console.log(height, statusBarHeight, navigationBarHeight)
this.setData({ this.setData({
tabBarStyle: height / 2 + statusBarHeight, tabBarStyle: height / 2 + statusBarHeight,
tabBoxStyle: `height: ${height}rpx` tabBoxStyle: `height: ${navigationBarHeight}px`,
statusBarHeight,
navigationBarHeight
}) })
}, },
changeTabIndx(e) { changeTabIndx(e) {
...@@ -167,7 +170,11 @@ Page({ ...@@ -167,7 +170,11 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { }, onHide() {
wx.pro.showTabBar({
animation: true
})
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view>筛选</view> <view>筛选</view>
</block> </block>
</navigation-bar> </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}}"> <view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" tabBarStyle="{{tabBarStyle}}"/> <merchant id="merchant" searchForm="{{screenFormData}}" tabBarStyle="{{tabBarStyle}}"/>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!