CommissionPopup.wxml
1.75 KB
<!--pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup
show="{{popShow}}"
bind:hidePopup="hidePopup"
bindconfirm="hidePopup"
height="60%"
title="员工提成"
customIsTab="{{true}}"
only="{{false}}"
customPopupSlotStyle="height: calc(100% - 200rpx)">
<!-- 服务多家门店不显示门店名称 -->
<view class="title_tips">
<view decode="{{true}}" class="merchant_text" wx:if="{{(handleCommissionObj.constructionStats && handleCommissionObj.constructionStats.length == 1) || (handleCommissionObj.outputValueStats && handleCommissionObj.outputValueStats.length == 1)}}">
<view>{{handleCommissionObj.constructionStats[0].shopMerchantName || handleCommissionObj.outputValueStats[0].shopMerchantName}}</view>
<view style="padding: 0 10rpx;"> | </view>
</view>
<view>{{handleCommissionObj.staffName}}</view>
</view>
<scroll-view scroll-y class="month_box">
<view class="month_item" wx:for="{{handleCommissionObj.performance.performanceResults}}" wx:key="index">
<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:elif="{{nowMonth != item.performanceMonth}}">-</view>
</view>
</scroll-view>
</popup>