Commit d0bddf3f by zhangxw

bug修改

1 parent f0eafdde
......@@ -13,33 +13,7 @@ Component({
* 组件的初始数据
*/
data: {
monthCommossionData: [
{
month: '2023-08',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-07',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-06',
ruleStatus: '0',
commission: 5230
}, {
month: '2023-05',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-04',
ruleStatus: '0',
commission: 5230
}, {
month: '2023-03',
ruleStatus: '1',
commission: 5230.1
}
],
monthCommossionData: [],
nowMonth: getNowMonth()
},
......
......@@ -22,7 +22,7 @@
<view class="month">{{item.performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceMonth}}">(当前月)</view></view>
<view wx:if="{{nowMonth == item.performanceMonth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{nowMonth != item.performanceMonth && (item.commissionBonus != null || item.constructionBonus != null)}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.staffType == 0 ? (item.commissionBonus || '0.00') : (item.constructionBonus || '0.00'), false)}}</view>
<view wx:if="{{nowMonth != item.performanceMonth}}">-</view>
<view wx:elif="{{nowMonth != item.performanceMonth}}">-</view>
</view>
</scroll-view>
</popup>
......@@ -214,7 +214,9 @@ Component({
wx.$api.showLoading('加载中')
let { userInfo, formData, staffList, sceneList } = this.data
formData.sceneType = sceneList.filter(val => val.active)[0]?.id || ''
formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid})
let staffArr = []
staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) staffArr.push(subVal.uuid)})
formData.staffUUIDs = staffArr
this.triggerEvent('screenFlag')
this.setData({screenConfirmFlag: true})
const thisPage = wx.$router.getPageInstance()
......
......@@ -25,7 +25,7 @@
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 16rpx;
padding: 40rpx 0 24rpx 24rpx;
padding: 40rpx 0 0 24rpx;
margin: 0 24rpx 24rpx 0;
.staff_messsage{
padding-right: 26rpx;
......@@ -129,7 +129,7 @@
padding-right: 0;
}
.flex_2{
width: 196rpx;
width: 200rpx;
}
.flex_3{
width: 314rpx;
......@@ -171,6 +171,7 @@
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 24rpx;
image{
width: 92rpx;
height: 36rpx;
......
......@@ -43,8 +43,8 @@
<view class="flex_1 flex">订单/转化率</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view hidden="{{subIndex >= 3 && !item.showMore}}">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
......@@ -72,21 +72,26 @@
<view class="flex_1 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 flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{false}}">
<glsx-image src="output/show_more_icon_up.png" webp></glsx-image>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
</block>
</block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!