<!--pageage/samplingRetesting/index.wxml-->
<!-- <van-sticky offset-top="{{ 0 }}"> -->
    <view style="background: #191d28;margin-top: 20rpx;">
        <project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>

    </view>
<!-- </van-sticky> -->
<view class="deep_point_position" style="padding:40rpx 0 0">
    <view class="{{statePosit == 1?'active':''}}" bindtap="onStatePosit" data-state="1">送检中(<text>{{prepareDataList.length}}</text>)</view>
    <view class="{{statePosit == 2?'active':''}}" bindtap="onStatePosit" data-state="2">已完成(<text>{{finishDataList.length}}</text>)</view>
</view>
<view class="inspect_max">
    <view class="module_title module_title_flex">
        <view>取样复试列表</view>
        <!-- <view class="module_see_info" bindtap="goEducations"><van-icon name="filter-o" />筛选</view> -->
    </view>

    <view class="inspect_list">
        <view class="inspect_for" wx:for="{{listData}}" wx:key="index">
            <view class="inspect_for_bgd">
                <view class="inspect_list_title">
                    <view class="inspect_list_title_label">
                        <view class="inspect_list_title_number">{{index < 10 ?'0'+(index+1):(index+1)}}</view>
                        <view class="inspect_list_title_text">{{item.title}}</view>
                    </view>
                    <view class="inspect_list_title_state">
                        <text class="state_colour_1" wx:if="{{item.state == 3 && item.result == 1}}">合格</text>
                        <text class="state_colour_0" wx:if="{{item.state == 3 && item.result == 2}}">不合格</text>
                    </view>
                </view>
                <view class="inspect_list_info" bindtap="skipDetialsFinishView" data-set="{{item}}">
                    <view class="inspect_list_info_padding">材料名称：<text class="color_blue">{{item.material_name}}</text></view>
                    <view class="inspect_list_info_padding">收料数量：<text class="color_purple">{{item.received_quantity}}</text></view>
                    <view class="inspect_list_info_padding inspect_list_info_flex">
                        <view>收料时间：<text class="color_purple">{{item.received_time}}</text></view>
                        <view class="inspect_list_info_upload" wx:if="{{item.state == 1}}" data-set="{{item}}" bindtap="onGoInspection">去送检</view>
                        <view class="inspect_list_info_upload" wx:if="{{item.state == 2}}" data-set="{{item}}" bindtap="onUpload">凭证上传</view>
                    </view>
                </view>
            </view>
        </view>
    </view>

</view>


<view class="inspect_add_to"  bindtap="skipCheckView">
    <view style="padding-top: 22rpx;">
        <image src="http://fileimg.makalu.cc/WEB_73DDBFC7781A41C082FC10AB5F530472.png"></image>
        <view>新增</view>
    </view>
</view>

<van-overlay show="{{loadShow}}">
  <view class="gif">
    <image src="../../images/loding2.gif"></image>
    <view>数据加载中！请稍后...</view>
  </view>
</van-overlay>  
