employess.wxml
7.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<wxs src="../../index.wxs" module="filter" />
<view wx:if="{{searchFormData.startTime && searchFormData.endTime}}" class="search_time_box">{{filter.filterDate(searchFormData.startTime)+ '-' + filter.filterDate(searchFormData.endTime)}}</view>
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
bindscrolltolower="onBottomRefresh"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
class="list"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100% - 48rpx)' : '100%'}}"
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
<view class="list_item">
<view class="staff_messsage">
<view class="flex_spa-be">
<view class="flex">
<glsx-image class="headPortrait" src="{{item.userAvatarUrl||IMAGES.userAvatarUrl}}" webp></glsx-image>
<view class="name">{{item.staffName}}</view>
<view class="role_name" wx:if="{{item.outputValueType}}">「<view>{{item.outputValueType == 1 ? '驻店' : '技师'}}</view>」</view>
</view>
<view wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text class="unit">¥</text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', true)}}</view>
<view wx:else class="output_text" style="padding-right: 18rpx;"><text class="unit">¥</text>一百万<text style="font-size: 24rpx;position: absolute;top: 0;right: 0;">+</text></view>
</view>
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
<view class="commission">
<view class="flex" wx:if="{{item.commissionFlag}}" data-target="{{item}}" bindtap="handleCommissionPopup"><text>提成</text><text class="arrow"></text></view>
<view class="disabled" wx:else>提成未设置</view>
</view>
</view>
</view>
<view class="line"></view>
<view class="merchant_box">
<!-- 驻店员工 -->
<block wx:if="{{item.outputValueType == 1}}">
<view class="title flex_spa-arr">
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">产值/客单价</view>
<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}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && (!item.showMore && subIndex == 2) || 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>
<view class="font_wei500">{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700">{{subItem.upgradeOrderCount}}单</view>
<view class="font_wei500">{{subItem.conversionRate}}%</view>
</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{true}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.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>
</block>
</block>
<!-- 技师 -->
<block wx:if="{{item.outputValueType == 2}}">
<view class="title flex_spa-arr" >
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">订单台次</view>
<view class="flex_1 flex">激励费</view>
</view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<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.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="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>
</block>
</block>
</view>
</view>
</block>
<view wx:if="{{!dataList.length}}" class="end-txt empty_data_box">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}"/>
</view>
<block wx:elif="{{nothing}}">
<view class="end-txt">到底了~</view>
</block>
</scroll-view>
<commissionPopup wx:if="commissionPopup" popShow="{{commissionPopup}}" bind:hidePopup="handleCommissionPopup" handleCommissionObj="{{handleCommissionObj}}"/>