<!--pages/wages/detail.wxml-->
<wxs src="./index.wxs" module="Tools" />
<view class="container">
  <view class="title" wx:if='{{close}}'>
    <text>工资条仅作参考，实际以企业发放为准</text>
    <image src="../../images/wages-close.png" bindtap="close"></image>
  </view>

  <view class="cell" style="margin-top:{{close?'82':'0'}}rpx">
    <text>工资月份：</text>
    <text>{{Tools.formatDate(payrollDate)}}</text>
  </view>

  <view class="cell">
    <text>公司名称：</text>
    <text>{{companyName}}</text>
  </view>

  <view class="cell">
    <text>员工姓名：</text>
    <text>{{name}}</text>
  </view>

  <view class="cell">
    <text>工号：</text>
    <text>{{workNumber}}</text>
  </view>

  <view class="cell" wx:for='{{payrollDetail}}' wx:key='{{index}}'>
    <text>{{item.info0}}：</text>
    <text>{{Tools.formatNumber(item.info1)}}</text>
  </view>

  <!-- <view class="cell">
    <text>底薪：</text>
    <text>2100.00 元</text>
  </view>


  <view class="cell">
    <text>缺勤扣款：</text>
    <text>60.00 元</text>
  </view>


  <view class="cell">
    <text>平加工资：</text>
    <text>2683.00 元</text>
  </view>


  <view class="cell">
    <text>满勤：</text>
    <text>0.00 元</text>
  </view>


  <view class="cell">
    <text>绩效：</text>
    <text>1690.00 元</text>
  </view>


  <view class="cell">
    <text>交通补贴：</text>
    <text>1690.00元</text>
  </view>


  <view class="cell">
    <text>夜班天数：</text>
    <text>5 天</text>
  </view>


  <view class="cell">
    <text>夜班费：</text>
    <text>500 元</text>
  </view>
 -->

  <view class="cell">
    <text>应发合计：</text>
    <text>{{grossPayment}}</text>
  </view>

  <view class="cell">
    <text>扣款合计：</text>
    <text>{{totalChargeback}}</text>
  </view>

  <view class="cell">
    <text>实发工资：</text>
    <text>{{netPayment}}</text>
  </view>

</view>