retaList.wxml
7.81 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!--packageWorkspace/pages/performanceRating/rateList/retaList.wxml-->
<view class="ratelist">
<view class="top-box flex">
<view class="date-box flex" bindtap="openMonthPicker">
<text>{{monthText}}</text>
<image src="{{IMG_URL}}expand_icon.png" mode=""/>
</view>
<view class="flex btn-box">
<view class="note flex" bindtap="handleRuleShow">
<image src="{{IMG_URL}}note-icon.png" mode=""/>
<view>规则说明</view>
</view>
<view class="flex" bindtap="handleBatch">
<image src="{{IMG_URL}}batch-icon.png" mode=""/>
<view>批量操作</view>
</view>
</view>
</view>
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" enhanced="true" bindscroll="onScroll">
<view class="rule-card" wx:if="{{showRule}}">
<view class="title flex"><image src="{{IMG_URL}}overview-icon.png" mode=""/>绩效评分规则总览</view>
<view class="box" wx:if="{{rulesData.autoPerformRuleDetailDTO.isAutoPerform == 1}}">
<view class="box-title">当月入职新员工规则</view>
<view class="box-content"><view>当月入职,出勤≥{{rulesData.autoPerformRuleDetailDTO.monthOnboardAttendanceDays}}天,产值<{{rulesData.autoPerformRuleDetailDTO.monthOnboardOutputThreshold}}元 → 自动{{rulesData.autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode}}级(系数:{{rulesData.autoPerformRuleDetailDTO.monthOnboardTriggerRewardCoefficient}})</view>除上述规则以外,当月入职的新员工绩效默认为【{{rulesData.autoPerformRuleDetailDTO.monthOnboardDefaultLevelCode}}】</view>
</view>
<view class="box">
<view class="box-title">常规评分规则</view>
<block wx:for="{{rulesData.performanceLevelDetailDTOS}}" wx:key="index">
<view style="margin-bottom: 24rpx;">
<level-rate info="{{item}}" />
</view>
</block>
</view>
<view class="box" wx:if="{{rulesData.autoPerformRuleDetailDTO.isAutoPerform == 1}}">
<view class="box-title">非当月入职新员工规则</view>
<view class="box-content"><view>当月总产值<{{rulesData.autoPerformRuleDetailDTO.noMonthOnboardOutputThreshold}}元 → 自动{{rulesData.autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode}}级(系数:{{rulesData.autoPerformRuleDetailDTO.noMonthOnboardTriggerRewardCoefficient}})</view>除上述规则以外,当月入职的新员工绩效默认为【{{rulesData.autoPerformRuleDetailDTO.noMonthOnboardDefaultLevelCode}}】</view>
</view>
<view class="arrow-btn flex"><view class="flex" bindtap="handleRuleClose">收起规则<image src="{{IMG_URL}}arrow-left.png" mode=""/></view></view>
</view>
<view class="empty-box"></view>
<view class="top">
<view class="title">统计卡片<text class="tips">规则影响统计</text></view>
<view class="card-row">
<view wx:for="{{row1}}" wx:key="index" class="card">
<text class="label">{{item.label}}</text>
<text class="value">{{staticsData[item.key] || 0}}</text>
</view>
</view>
<view class="card-row card-row2">
<view wx:for="{{row2}}" wx:key="index" class="card">
<text class="label">{{item.label}}</text>
<text class="value">{{staticsData[item.key] || 0}}</text>
</view>
</view>
</view>
<view class="list-box">
<view class="sticky-box {{isSticky ? 'is-sticky' : ''}}">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="门店/员工姓名" class="input" value="{{ merchantAndStaffSearch }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{ merchantAndStaffSearch }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
<view class="filter-box flex">
<view class="flex">
<view class="filter-item flex {{filterObj.performanceLevel ? 'active': ''}}" bindtap="handleLevelFilter">
<text>{{levelMap[filterObj.performanceLevel]}}</text><image src="{{IMG_URL}}{{filterObj.performanceLevel ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<view class="filter-item flex {{filterObj.handleStatus ? 'active': ''}}" bindtap="handleStatusFilter">
<text>{{statusMap[filterObj.handleStatus].name}}</text><image src="{{IMG_URL}}{{filterObj.handleStatus ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
</view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view>
</view>
<view class="list" style="min-height: 300rpx;">
<view wx:if="{{isSticky}}" class="empty-box"></view>
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index">
<view class="item content">
<view class="item-top">
<view class="name">{{item.name}}</view>
<view class="status text-center" style="color:{{ statusMap[item.handleStatus].color }};background-color:{{statusMap[item.handleStatus].background }};">
{{statusMap[item.handleStatus].name }}
</view>
</view>
<view class="list-item">
<view class="label">入职门店</view>
<view class="value">{{item.merchantName || '-'}}</view>
</view>
<view class="list-item">
<view class="label">绩效分数</view>
<block wx:if="{{item.performanceLevel}}">
<van-rate readonly value="{{ starCountObj[item.performanceLevel] }}" count="{{6}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" />
<view class="score">{{item.symbolValue}}分</view>
</block>
<block wx:else>-</block>
</view>
<view class="list-item">
<view class="label">绩效等级</view>
<block wx:if="{{item.performanceLevel}}">
<view class="value"><text wx:if="{{item.performanceLevel}}">{{item.performanceLevel}}级</text><text wx:if="{{item.performanceLevel && item.coefficient}}" class="split">|</text><text wx:if="{{item.coefficient}}">系数{{item.coefficient}}</text></view>
</block>
<block wx:else>-</block>
</view>
<view class="btn-box flex">
<view bindtap="handleDetail" data-target="{{item}}" class="btn">查看</view>
<view bindtap="handleEdit" data-target="{{item}}" wx:if="{{!isHistoryMonthFlag}}" class="btn primary">编辑{{(2 - item.submitCount)}}/2</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
<view class="empty-box" style="height: 80rpx;"></view>
</block>
<block wx:else>
<empty-data />
</block>
</view>
</view>
</scroll-view>
</view>
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="60%">
<van-datetime-picker
id="datePicker"
type="year-month"
model:value="{{pendingMonthValue}}"
max-date="{{maxMonthDate}}"
show-toolbar="{{false}}"
bind:change="onMonthChange"
/>
</popup>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" title="{{ selectTitle }}" bindcancel="hideSelectPopup" customIsTab="{{ true }}"></select-popup>