collegeScene.wxml 10.7 KB
<!--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>