Commit d0bddf3f by zhangxw

bug修改

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