batchOperation.wxml 6.07 KB
<!--packageWorkspace/pages/performanceRating/batchOperation/batchOperation.wxml-->
<view class="page-container">
  <view class="content-box">
    <view class="content-title flex just-space">
      <view class="flex">
        <image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
        <text>当前选中</text>
      </view>
      <view class="flex" bindtap="handleSelectStaff">
        <view class="nums">{{selectedStaffList.length}}位员工</view>
        <image src="{{IMG_URL}}arrow-left.png" mode=""/>
      </view>
    </view>
    <view class="tag-box" wx:if="{{selectedStaffList.length}}">
      <block wx:for="{{selectedStaffList}}" wx:key="index">
        <view class="tag-item flex"><view class="text-hide">{{item.name}}</view><view class="level" wx:if="{{item.levelCode}}"><text class="split">·</text>{{item.levelCode}}级</view></view>
      </block>
    </view>
  </view>
  <view class="content-box">
    <view class="content-title flex">
      <image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
      <text>批量操作类型</text>
    </view>
    <view class="sub-title">批量设置绩效等级</view>
    <view class="radio-box">
      <view class="radio-item flex" bindtap="changeRadio" data-value="1">
        <image wx:if="{{batchConfigType == 1}}" src="{{IMG_URL}}radio-checked.png" mode=""/>
        <view wx:else class="radio"></view>
        <view class="label">统一设置相同等级</view>
      </view>
      <view class="radio-item flex" bindtap="changeRadio" data-value="2">
        <image wx:if="{{batchConfigType == 2}}" src="{{IMG_URL}}radio-checked.png" mode=""/>
        <view wx:else class="radio"></view>
        <view class="label">手工单个调整评级</view>
      </view>
    </view>
  </view>
  <block wx:if="{{batchConfigType == 1}}">
    <view class="content-box">
      <view class="content-title flex">
        <image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
        <text>统一评等级</text>
      </view>
      <view class="manual-box">
        <view class="flex">
          <view class="dot"></view>
          <view>手动评分</view>
        </view>
        <view class="select flex just-space {{batchInfo.manualGradeCode ? '' : 'gary'}}" bindtap="selectLevelCode" data-batch="{{true}}">
          {{batchInfo.manualGradeCode || '请选择等级'}}
          <image src="{{IMG_URL}}expand_icon.png" mode=""/>
        </view>
        <view class="blue rate">
          <text>评分:</text>
          <text>{{batchInfo.manualScoreSymbolValue || 0}}分</text>
          <text class="mar-l32">系数:</text>
          <text>{{batchInfo.manualRewardCoefficient || '0'}}</text>
        </view>
      </view>
      <view class="input-content flex">
        <view>手动维护最终绩效金额</view>
        <image src="{{IMG_URL}}caption-icon.png" class="help-icon" bindtap="handleHelpPopup" mode=""/>
        <view class="input-box flex">
          <input class='input' placeholder="请输入" value="{{batchInfo.manualFinalPerformanceAmount}}" placeholder-style="color: #999EA8;" bindinput="priceInput" type="digit"/>
          <view>元</view>
        </view>
      </view>
      <view class="input-tips">根据系数算出绩效,如觉得绩效金额不合适,可<text class="blue">手动输入</text>最终绩效金额</view>
    </view>
  </block>
  <block wx:else>
    <view class="content-box" wx:for="{{batchSingleList}}" wx:key="index">
      <view class="content-title flex">
        <image class="title-icon" src="{{IMG_URL}}note-icon.png" mode=""/>
        <text>{{item.name}}</text><text wx:if="{{item.gradeCode}}">·{{item.gradeCode}}级</text>
      </view>
      <view class="salary-box flex">
        <view class="salary-item">
          <view class="label">绩效工资</view>
          <view class="value">{{item.performanceSalary}}</view>
        </view>
        <view class="salary-item">
          <view class="label">底薪</view>
          <view class="value">{{item.baseSalary}}</view>
        </view>
        <view class="salary-item">
          <view class="label">基本工资</view>
          <view class="value">{{item.basicSalary}}</view>
        </view>
      </view>
      <view class="manual-box">
        <view class="flex">
          <view class="dot"></view>
          <view>手动评分</view>
        </view>
        <view class="select flex just-space {{item.manualGradeCode ? '' : 'gary'}}" bindtap="selectLevelCode" data-index="{{index}}">
          {{item.manualGradeCode || '请选择等级'}}
          <image src="{{IMG_URL}}expand_icon.png" mode=""/>
        </view>
        <view class="blue rate">
          <text>评分:</text>
          <text>{{item.manualScoreSymbolValue || 0}}分</text>
          <text class="mar-l32">系数:</text>
          <text>{{item.manualRewardCoefficient || '0'}}</text>
        </view>
      </view>
      <view class="input-content flex">
        <view>手动维护最终绩效金额</view>
        <image src="{{IMG_URL}}caption-icon.png" class="help-icon" bindtap="handleHelpPopup" mode=""/>
        <view class="input-box flex">
          <input class='input' placeholder="请输入" value="{{item.manualFinalPerformanceAmount}}" data-index="{{index}}" placeholder-style="color: #999EA8;font-weight: 400;" bindinput="priceInput" type="digit"/>
          <view>元</view>
        </view>
      </view>
      <view class="input-tips">根据系数算出绩效,如觉得绩效金额不合适,可<text class="blue">手动输入</text>最终绩效金额</view>
    </view>
  </block>
  <view class="btn-box">
    <view class="btn confirm" bindtap="handleConfirm">提交</view>
  </view>
</view>
<select-popup show="{{ showSelectPopup }}" height="{{selectType == 'staff' ? '75%' : '50%'}}" allowSearch="{{selectMultiple}}" options="{{ selectOptions }}" valueKey="{{selectType == 'staff' ? 'mobilePhone' : 'value'}}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" max="{{20}}" bindmaxtips="handleMaxTips" title="{{ selectTitle }}" bindcancel="hideSelectPopup" customIsTab="{{ true }}"></select-popup>
<help-popup show="{{showHelpPopup}}" />