<page-plugin isAuth="{{true}}" loading="{{loading}}" is-login="{{isLogin}}"
  bind:handleLogin="handleLogin">
  <t-cell title="今日完成工作量" left-icon="chart-bar"
    custom-style="position: sticky;top: 0;z-index:1;margin-bottom: 24rpx;padding-left: 0" />

  <empty-plugin wx:if="{{process_count.length == 0}}" />
  <block wx:else>
    <view class="process_count_th">
      <view class="process_count_td1">流程工序</view>
      <view class="process_count_td2">数量</view>
    </view>
    <view wx:for="{{process_count}}" class="process_count_tr" wx:key="index">
      <view class="process_count_td1">
        {{item.p_process_name}}-{{item.c_process_name}}
      </view>
      <view class="process_count_td2">{{item.count}}</view>
    </view>
  </block>

  <t-cell title="7日完成工作量" left-icon="chart-line-multi"
    custom-style="position: sticky;top: 0;z-index:1;margin-bottom: 24rpx;margin-top: 24rpx;padding-left: 0" />
  <empty-plugin wx:if="{{seven_process_count.length == 0}}" />
  <block wx:else>
    <card-plugin wx:for="{{seven_process_count}}" wx:key="index" showAll="1"
      contentStyle="padding-left: 16rpx;padding-right: 16rpx;">
      <view slot="header">{{ item[0].date }}</view>
      <view slot="content">

        <view wx:for="{{item}}" class="seven_process_tr" wx:key="index">
          <view class="seven_process_count_td1">
            {{item.p_process_name}}-{{item.c_process_name}}
          </view>
          <view class="seven_process_count_td2">{{item.count}}</view>
        </view>



        <!-- <view class="process_count_th">
          <view class="process_count_td1">流程工序</view>
          <view class="process_count_td2">数量</view>
        </view>
        <view wx:for="{{item}}" class="process_count_tr" wx:key="index">
          <view class="process_count_td1">
            {{item.p_process_name}}-{{item.c_process_name}}
          </view>
          <view class="process_count_td2">{{item.count}}</view>
        </view> -->
      </view>
    </card-plugin>
  </block>
</page-plugin>