<!--pageage/safetyManagement/problemRectification/index.wxml-->
<view class="header_title">
  <view class="header_title_row">
    <van-row>
      <van-col span="4">
        <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
      </van-col>
      <van-col span="15">
        <view class="header_name">取样复试详情</view>
      </van-col>
    </van-row>
  </view>
</view>
<view class="max_content">
	<view class="inspect_overview_max">
	  <view class="inspect_overview">
		<view class="gk_open" style="margin-top: 20rpx;border: 1px solid transparent;">
			<van-collapse value="{{activeName}}" bind:change="onChange">
				<van-collapse-item title="审批日志" name="2">
					<view class="inspect_list">
						<view class="inspect_for" wx:for="{{flowRecordList}}" wx:key="index">
							<view class="inspect_for_bgd">
								<view class="inspect_list_title">
									<view class="inspect_list_title_label inspect_list_title_width">
										<view class="inspect_list_title_number">{{(flowRecordList.length-index) < 9 ?'0'+(flowRecordList.length-index):(flowRecordList.length-index)}}</view>
										<view class="module_title module_title_flex inspect_list_title_text">
										   <text wx:if="{{item.approveStatus==1}}">提交取样复试</text>
										   <text wx:if="{{item.approveStatus!=1}}">审批取样复试</text>
											<text wx:if="{{item.approveStatus==4}}"  class="timeline_for_state_1 color_green">合格</text>
											<text wx:if="{{item.approveStatus==3}}" class="timeline_for_state_2 color_purple">不合格</text>
										</view>
									</view>
								</view>
								<view class="inspect_list_info gk_open_con">
									<view wx:if="{{item.userName}}"><image src="/images/lw_3.png"></image>办理用户：<text>{{item.userName}}</text></view>
									<view wx:if="{{item.deptName}}"><image src="/images/s_1.png"></image>办理单位：<text class="color_blue">{{item.deptName}}</text></view>
									<view><image src="/images/s_6.png"></image>办理时间：<text>{{item.createTime}}</text></view>
									<view wx:if="{{item.comment}}"><image src="/images/s_7.png"></image>审批意见：<text>{{item.comment}}</text></view>
								</view>
							</view>
						</view>
					</view>
				</van-collapse-item>
			</van-collapse>
		  </view>
		  <view class="module_title module_title_padding">
			  <view>{{infoData.projectName}}</view>
		  </view>
		  <view class="inspect_overview_list_max">
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_blue">送检类型</text></van-col>
					  <van-col span="18" class="color_blue">{{infoData.checkTypeName}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_orange">材料名称</text></van-col>
					  <van-col span="18" class="color_orange">{{infoData.materialName}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">取样数量</text></van-col>
					  <van-col span="18">{{infoData.sampleNum}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">使用部位</text></van-col>
					  <van-col span="18">{{infoData.usePosition}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">合格证</text></van-col>
					  <van-col span="18">
					  <text wx:if="{{infoData.qualifiedFlag=='Y'}}" class="color_green">已提供</text>
					  <text wx:else>未提供</text>
					  </van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">见证人</text></van-col>
					  <van-col span="18">{{infoData.witnessUserName}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">送检时间</text></van-col>
					  <van-col span="18">{{infoData.checkTime}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">实验室</text></van-col>
					  <van-col span="18">{{infoData.laboratoryName}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">提交单位</text></van-col>
					  <van-col span="18">{{infoData.deptName}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">提交用户</text></van-col>
					  <van-col span="18">{{infoData.createBy}}</van-col>
				  </van-row>
			  </view>
			  <view class="inspect_overview_list">
				  <van-row>
					  <van-col span="6"><text class="color_purple">提交时间</text></van-col>
					  <van-col span="18">{{infoData.createTime}}</van-col>
				  </van-row>
			  </view>
		  </view>
	  </view>
  </view>
	<view class="inspect_overview" wx:if="{{infoData.checkState==2}}">
		<view class="safety_inspect_title module_title_flex module_title_padding">
			<view>检测报告登记结果</view>
		</view>
		<view class="inspect_overview_list_max">
			<view class="inspect_overview_list">
				<van-row>
					<van-col span="6"><text class="color_purple">登记用户</text></van-col>
					<van-col span="18">{{infoData.updateBy}}</van-col>
				</van-row>
			</view>
			<view class="inspect_overview_list">
				<van-row>
					<van-col span="6"><text class="color_purple">登记时间</text></van-col>
					<van-col span="18">{{infoData.updateTime}}</van-col>
				</van-row>
			</view>
			<view class="inspect_overview_list" wx:if="{{infoData.detectionFile!=null}}">
				<van-row>
					<van-col span="6"><text class="color_purple">检测报告</text></van-col>
					<van-col span="18">
					<view class="in-img-div" wx:if="{{minDetectionFileImages.length>0}}" wx:for="{{minDetectionFileImages}}" wx:key="index">
						<image bindtap='showDetectionFileImg' data-index="{{index}}" src='{{item}}'></image>
					</view>	
					<view class="in-img-div" wx:if="{{detectionFiles.length>0}}">
						<image src='https://cf.makalu.cc/profile/wechat/icon/pdf.png'></image>
						<text class="files" style="color:#89a3ed;margin-left:50rpx;"  bindtap='downFile' data-index="{{0}}" >下载附件</text>
					</view>
					</van-col>
				</van-row>
			</view>
			<view class="inspect_overview_list" wx:if="{{infoData.approveStatus!=null}}">
				<van-row>
					<van-col span="6"><text class="color_purple">检测结果</text></van-col>
					<van-col span="18">
					  <text wx:if="{{infoData.approveStatus==null}}" class="code_label_2 code_label_blueviolet" style="padding: 5rpx 50rpx;font-size: 25rpx;">送检中</text>
                       <text wx:if="{{infoData.approveStatus==1}}" class="code_label_2 code_label_yellow" style="padding: 5rpx 50rpx;font-size: 25rpx;">待审核</text>
                       <text wx:if="{{infoData.approveStatus==4}}" class="code_label_2 code_label_green" style="padding: 5rpx 50rpx;font-size: 25rpx;">合格</text>
                       <text wx:if="{{infoData.approveStatus==3}}" class="code_label_2 code_label_red" style="padding: 5rpx 50rpx;font-size: 25rpx;">不合格</text>
					</van-col>
				</van-row>
			</view>
		</view>
	</view>
  <view class="problem_submit_to" wx:if="{{showDel}}">
      <view class="problem_submit_to_btn problem_submit_to_delete"  bindtap="onDelete">删除</view>
	  <view class="problem_submit_to_btn problem_submit_to_save"  bindtap="onUpdate">修改</view>
  </view> 
</view>
  
