collegeScene.wxml
10.7 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!--packageEquity/pages/collegeScene/collegeScene.wxml-->
<!-- <text>packageEquity/pages/collegeScene/collegeScene.wxml</text> -->
<view class="bg"></view>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">工资绩效</view>
</view>
</navigation-bar>
<!--
upper-threshold="20"
lower-threshold="50" -->
<scroll-view
class="scroll-list"
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="refresh"
bindscrolltolower="onBottomRefresh"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<view
class="userInfoCon {{ staffInfoObj.staffInfo.studentStaffNameList&&staffInfoObj.staffInfo.studentStaffNameList.length>3? 'userInfoConMore':'' }}"
>
<!-- <view class="date">{{staffInfoObj.staffInfo.entryDate}}入职</view> -->
<view class="userInfo">
<view class="left">
<image class="avatar" src="{{ ImgUrl+'avatarIcon.png' }}"></image>
<view class="nameCon">
<view class="nameLabel">姓名</view>
<view class="name">{{staffInfoObj.staffInfo.staffName}}</view>
</view>
</view>
<view class="right">
<view class="positionName">{{staffInfoObj.staffInfo.titleLabel || '中级导师'}}</view>
<image class="position" src="{{ ImgUrl+'collegeSceneBadge.png' }}"></image>
</view>
</view>
<view class="footer">
<view class="left">
<view class="hierophantLabel">我的导师</view>
<view class="name">{{staffInfoObj.staffInfo.mentorStaffName || ''}}</view>
</view>
<view class="right">
<view class="hierophantLabel">我的学员</view>
<view class="name">
<block wx:if="{{ staffInfoObj.staffInfo.studentStaffNameList }}">
<text class="staffName" wx:for="{{ staffInfoObj.staffInfo.studentStaffNameList }}" wx:key="index">{{item}} </text>
</block>
</view>
</view>
</view>
</view>
<view class="swiperCon">
<block wx:if="{{ isStaff }}">
<view class="staffCon" wx:if="{{ !hasStaffPassword }}">
<view class="accessView"></view>
<view class="forbid" bindtap="viewPerformance">
<view>查看我的绩效</view>
<image class="forbidIcon" src="{{ ImgUrl+'closeeyesIcon.png' }}"></image>
</view>
</view>
<view class="performanceCon" wx:else>
<view class="title">预估本月绩效提成</view>
<view class="tips">(最终工资按实际发放为准)</view>
<view class="orderCount">
<text class="unit">¥</text>
<text class="num">{{staffInfoObj.finalWage || 0}}</text>
<image bind:tap="hideStaffInfo" class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view>
<view class="wagesCon">
<view class="wagesItem" wx:for="{{ staffInfoObj.monthPerformanceList }}" wx:key="index">
<view class="label">{{index? item.performanceMonthLabel : '当前月'}}</view>
<view class="value">
<text>工资</text>
<text class="num">¥{{item.staffDataList[0].wages || 0}}</text>
</view>
<view class="value" wx:if="{{item.staffDataList[0].performanceWage > 0}}">
<text>+提成</text>
<text class="num">¥{{item.staffDataList[0].performanceWage || 0}}</text>
</view>
</view>
</view>
</view>
</block>
<!-- 超管和商户管理 -->
<block wx:else="{{ !isStaff }}">
<view class="performanceCon">
<view class="title">预估本月绩效提成</view>
<view class="tips">(最终工资按实际发放为准)</view>
<view class="orderCount">
<text class="unit">¥</text>
<text class="num">{{staffInfoObj.finalWage || 0}}</text>
<image class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view>
<swiper
class="swiper"
bindchange="bindchange"
indicator-dots="{{ indicatorDots }}"
autoplay="{{ autoplay }}"
interval="{{ interval }}"
duration="{{ duration }}"
style="height:{{ staffInfoObj.monthPerformanceList[current].height||300 }}rpx;"
>
<!-- <block wx:for="{{background}}" wx:key="*this"> -->
<swiper-item
wx:for="{{ staffInfoObj.monthPerformanceList }}"
wx:for-item="monthPerformanceList"
wx:for-index="monthPerformanceListIndex"
wx:key="monthPerformanceListIndex"
>
<view class="wagesCon">
<!-- <block wx:if="{{ !monthPerformanceListItemIndex }}"> -->
<view class="wagesItem">
<view class="label">{{ !monthPerformanceListIndex? '当前月': monthPerformanceList.performanceMonthLabel}}</view>
<view class="staffNum value">
<text>员工数({{monthPerformanceList.staffDataList.length||0}})</text>
</view>
</view>
<!-- <view class="wagesItem">
<view class="label">{{ !monthPerformanceListIndex? '当前月': monthPerformanceList.performanceMonthLabel}}</view>
<view class="staffNum value">
<text>员工数({{monthPerformanceList.staffDataList.length||0}})</text>
</view>
</view>
<view class="wagesItem">
<view class="label">{{ !monthPerformanceListIndex? '当前月': monthPerformanceList.performanceMonthLabel}}</view>
<view class="staffNum value">
<text>员工数({{monthPerformanceList.staffDataList.length||0}})</text>
</view>
</view>
<view class="wagesItem">
<view class="label">{{ !monthPerformanceListIndex? '当前月': monthPerformanceList.performanceMonthLabel}}</view>
<view class="staffNum value">
<text>员工数({{monthPerformanceList.staffDataList.length||0}})</text>
</view>
</view> -->
<!-- </block> -->
<view
class="wagesItem"
wx:for="{{ monthPerformanceList.staffDataList }}"
wx:for-item="monthPerformanceListItem"
wx:for-index="monthPerformanceListItemIndex"
wx:key="monthPerformanceListItemIndex"
>
<!-- {{monthPerformanceListIndex}} -->
<!-- <block wx:else> -->
<view class="label">{{monthPerformanceListItem.staffName}}</view>
<view class="value">
<text>工资</text>
<text class="num">¥{{monthPerformanceListItem.wages || 0}}</text>
</view>
<view class="value" wx:if="{{ !monthPerformanceListItem.hidePerformanceWage && monthPerformanceListItem.performanceWage > 0 }}">
<text>+提成</text>
<text class="num">¥{{monthPerformanceListItem.performanceWage || 0}}</text>
</view>
<!-- </block> -->
</view>
</view>
</swiper-item>
</swiper>
</view>
</block>
</view>
<view class="tipsCon">
<view class="up">注意:订单及订单提成根据个人绩效略有浮动</view>
<view class="down">(越接近月末绩效提成越准确)</view>
</view>
<view class="listCon" wx:for="{{ orderList }}" wx:key="index">
<view class="monthTitle">
<view class="date">
<view class="year">{{item.year}}</view>
<view class="month">{{item.month}}月</view>
</view>
<view class="outputValue">
<view class="label">产值</view>
<view class="value">¥{{item.orderMoneyTotal || 0}}</view>
</view>
<view class="orderNum">
<view class="label">订单数</view>
<view class="value">{{item.upgradeOrderCount || 0}}</view>
</view>
</view>
<block wx:if="{{item.orderList.length}}">
<view class="orderItem" wx:for="{{ item.orderList }}" wx:for-item="childItem" wx:for-index="childIndex" wx:key="childIndex">
<view class="li" wx:for="{{ orderListObj }}" wx:for-item="labelObj" wx:for-index="labelObjIndex" wx:key="labelObjIndex">
<view class="label">{{labelObj.label}}</view>
<view class="conent">{{childItem[labelObj.key]}}</view>
</view>
<view class="li orderAmount">
<view class="label">订单金额</view>
<view class="conent">¥{{childItem.orderMoney}}</view>
</view>
<view class="li orderAmount goods">
<view class="label">商品</view>
<view class="conent">
<view
class="goodsItem"
wx:for="{{ childItem.orderGoodsName }}"
wx:for-item="goodsItem"
wx:for-index="goodsIndex"
wx:key="goodsIndex"
>
<view class="goodsName">{{goodsItem}}</view>
<!-- <view class="goodsNum">x{{goodsItem.goodsNum}}</view> -->
</view>
</view>
</view>
<view class="li orderCommission">
<view class="label">提成</view>
<view class="conent">
<block wx:if="{{ hasStaffPassword }}">
<view class="name" wx:if="{{ childItem.mentorStaffName }}">
<!-- 学员账号看不到导师提成金额 -->
<text wx:if="{{staffInfoObj.staffInfo.title > 0}}">导师{{childItem.mentorStaffName}}</text>
<text wx:if="{{staffInfoObj.staffInfo.title > 0}}" class="num">¥{{childItem.mentorBonus || 0}}</text>
</view>
<view class="name">
<text>驻店{{childItem.staffName}}</text>
<text class="num">¥{{childItem.orderBonus || 0}}</text>
</view>
</block>
<block wx:else>
<text>***</text>
</block>
</view>
</view>
</view>
</block>
<block wx:else>
<view class=" noListText">
<view class="text">暂无数据</view>
</view>
</block>
</view>
<!-- <view class="listCon">
<view class="monthTitle">
<view class="date">
<view class="year">2023</view>
<view class="month">12月</view>
</view>
<view class="outputValue">
<view class="label">产值</view>
<view class="value">¥0.00</view>
</view>
<view class="orderNum">
<view class="label">订单数</view>
<view class="value">22</view>
</view>
</view>
<view class="orderItem">
<view class="li">
<view class="label">下单时间</view>
<view class="conent">2023-12-19 16:33:20</view>
</view>
<view class="li orderAmount">
<view class="label">订单金额</view>
<view class="conent">¥2000</view>
</view>
<view class="li orderCommission">
<view class="label">订单提成</view>
<view class="conent">
<text>驻店马苏提</text>
<text class="num">¥200</text>
</view>
</view>
</view>
</view> -->
</scroll-view>
<password-pop
wx:if="{{ passwordPop }}"
isSetPassword="{{ isSetPassword }}"
title="{{ isSetPassword ? '首次设置绩效查看密码':'请输入绩效查看密码' }}"
show="{{ passwordPop }}"
maxlength="4"
bindcancel="remarkCancel"
bindconfirm="remarkConfirm"
></password-pop>