<!--pages/debitNoteList/debitNoteList.wxml-->
<view class="swiper-tab">
  <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">未确认</view>
  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已确认</view>
</view>

<swiper current="{{currentTab}}" class="swiper-box" style='height:{{winHeight -95}}px' duration="300" bindchange="bindChange">
  <!-- 未确认 -->
  <swiper-item class="swiper-items1">
    <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltolower="unCheckedScrollLower">
    <view class='backGroundContainer'>
      <block wx:for="{{unCheckDataArr}}" wx:for-item="item" wx:key="item">
        <template is="outStoreOrderTemplate" data="{{item}}" />
      </block>
    </view>      
    </scroll-view>
  </swiper-item>
  <!-- 已确认 -->
  <swiper-item class="swiper-items2">
    <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltolower="CheckedScrollLower">
    <view class='backGroundContainer'>
      <block wx:for="{{checkedDataArr}}" wx:for-item="item" wx:key="item">
        <template is="outStoreOrderTemplate" data="{{item}}" />
      </block>
    </view>
      
    </scroll-view>
  </swiper-item>
</swiper>


<button class='chose' catchtap='chose'>筛选</button>

<template name="outStoreOrderTemplate">

  <view class='listItem' catchtap='transToOrderDetail' data-detailitemid='{{item.ID}}' data-detailitemstate='{{item.orderState}}'>
    <view class='bottomView'>
      <view class='goodsNum'>
        <text class='goodsIDText'>NO.{{item.ID}}</text>
      </view>
      <view class='goodsMoney'>
        <text class='goodsMoneyText'>金额：{{item.Money}}</text>
      </view>
    </view>
    <view class='bottomView'>
      <view class='goodsNum'>
        <text class='goodsNumText'>业务员：{{item.Employee_Name}}</text>
      </view>
      <view class='goodsMoney'>
        <text class='goodsMoneyText'>日期：{{item.Date}}</text>
      </view>
    </view>
  </view>
  <view class='horizontallineView'></view>
</template>