<!--pages/quality-manage/index.wxml-->
<view class="header_title">
  <view class="header_title_row">
    <van-row>
      <van-col span="3">
        <view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
      </van-col>
      <van-col span="4">
        <view class="header_img" bindtap="XMGK">
          <image src="/images/left.png"></image>
          <text class="header_fh">返回</text>
        </view>
      </van-col>
      <van-col span="10">
        <view class="header_name">质量管理</view>
      </van-col>
    </van-row>
  </view>
</view>
<!-- 左侧账号信息 -->
<van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28;" bind:close="onClosePopup" >
  <view class="left_max">
    <van-row class="demo clearfix">
      <van-col span="24">
          <view class="left_info_dept">{{deptName}}</view>
      </van-col>
      <van-col span="10">
        <view class="left_head"><image src="../../images/user_3.png"></image></view>
      </van-col>
      <van-col span="14">
        <view class="left_info">
          <view class="left_info_name">{{nickName}}</view>
          <view class="left_info_name">{{loginName}}</view>
        </view>
      </van-col>
    </van-row>
    <view class="left_manage_min">
      <view class="left_manage" bindtap="XGMM">
        <image src="/images/set.png" class="left_icon"></image>
          <text class="left_password">修改密码</text> 
          <image src="/images/right.png" class="left_flaot"></image>
      </view>
    </view>
    <view class="left_manage_min">
      <view class="left_manage" bindtap="TCDL">
          <image src="/images/set.png" class="left_icon"></image>
          <text class="left_sign">退出登录</text> 
          <image src="/images/right.png" class="left_flaot"></image>
      </view>
    </view>
  </view>
</van-popup>

<view class="max_content">
    <project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
    <view  class="gd_max" style="margin-top: 20rpx;">
    <van-row class="demo clearfix">
      <van-col span="8" wx:for="{{menuList}}" wx:key="unique">
        <view class="gd_min" data-id="{{item.menu_identi}}" data-url="{{item.menu_url}}" bindtap="goMenu">
			<span wx:if="{{item.menu_identi=='SCSLGL'}}"><span class="tabNum_active" wx:if="{{scslDb>0}}">{{scslDb}}</span></span>
			<span wx:if="{{item.menu_identi=='CLFYGL'}}"><span class="tabNum_active" wx:if="{{clfyDb>0}}">{{clfyDb}}</span></span>
			<span wx:if="{{item.menu_identi=='JPYSGL'}}"><span class="tabNum_active" wx:if="{{jpysDb>0}}">{{jpysDb}}</span></span>
			<span wx:if="{{item.menu_identi=='QYFS'}}"><span class="tabNum_active" wx:if="{{qyfsDb>0}}">{{qyfsDb}}</span></span>
		  <image src="{{item.menu_img}}"></image>
          <view>{{item.menu_name}}</view>
        </view>
      </van-col>
    </van-row>
  </view>

  <view class="module_max">
      <view class="module_min">
        <view class="module_title module_title_flex" >
          <view>实测实量</view>
          <view class="module_see_info" bindtap="goSCSL">查看详情<van-icon name="arrow" /></view>
        </view>
        <safety-pie-chart chart-id="chart1" title="实测实量" chart-data="{{measureStatistics}}"></safety-pie-chart>
      </view>
  </view>

  <view class="module_max">
      <view class="module_min">
        <view class="module_title module_title_flex">
          <view>质量隐患排查</view>
          <view class="module_see_info" bindtap="goYHPC">查看详情<van-icon name="arrow" /></view>
        </view>
        <view class="safety_inspect">
          <van-row>
            <van-col span="12">
              <view class="safety_inspect_title">常规检查问题数</view>
              <safety-number number="{{securityCheck.routineCheckNumber}}"></safety-number>
              <view class="safety_prop ">
                <view style="padding-right: 30rpx;">整改率</view>
                <view class="safety_prop_val"><text>{{securityCheck.routineRectificationRate}}</text> %</view>
              </view>
              <view class="safety_issue">
                <view class="safety_issue_number">
                  <view style="padding-right: 30rpx;">已整改问题数</view>
                  <view>{{securityCheck.routineProblemTotal}}</view>
                </view>
              </view>
            </van-col>
            <van-col span="12">
              <view class="safety_inspect_title">专项检查问题数</view>
              <safety-number number="{{securityCheck.specialCheckNumber}}"></safety-number>
              <view class="safety_prop">
                <view style="padding-right: 30rpx;">整改率</view>
                <view class="safety_prop_val"><text>{{securityCheck.specialRectificationRate}}</text> %</view>
              </view>
              <view class="safety_issue">
                <view class="safety_issue_number">
                  <view style="padding-right: 30rpx;">已整改问题数</view>
                  <view>{{securityCheck.specialProblemTotal}}</view>
                </view>
              </view>
            </van-col>
          </van-row>
        </view>
      </view>
	</view>

	<view class="module_max">
      <view class="module_min">
        <view class="module_title module_title_flex">
          <view>取样复试</view>
          <view class="module_see_info" bindtap="goQYFS">查看详情<van-icon name="arrow" /></view>
        </view>
		<!-- 钢筋原材料 -->
		<view class="gangjin" style="padding-bottom: 62rpx;">
			<view class="gangjin-header">
				<!-- 上面部分 -->
				<view class="project-title" style="margin-left: -30rpx;">
					<view style="border-bottom: 1px solid #0f498c;height: 36rpx;font-size: 26rpx;">
						钢筋原材料
					</view>
				</view>
				<!-- 下面部分 -->
				<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
				<!-- 每一行两个小盒子 -->
					<view class="wanjieNum-over-bottom-top">
					<!-- 每一个小盒子 -->
						<view class="wanjieNum-over-bottom-top-box" >
							<view class="wanjieNum-over-bottom-top-box-Img">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text" >
									复试次数
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;"> 
									{{checkDetectionData.type1Value}}
								</view>	次
								</view>
							</view>
						</view>
						<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
							<view class="wanjieNum-over-bottom-top-box-Imgs">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
								合格率
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx"> 
									{{checkDetectionData.type1PassRate}}
								</view>	%
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 钢筋试拉件 -->
		<view class="gangjin" style="padding-bottom: 62rpx;">
			<view class="gangjin-header">
				<!-- 上面部分 -->
				<view class="project-title" style="margin-left: -30rpx;">
					<view style="border-bottom: 1px solid #0f498c;height: 36rpx;font-size: 26rpx;">
						钢筋试拉件
					</view>
				</view>
				<!-- 下面部分 -->
				<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
				<!-- 每一行两个小盒子 -->
					<view class="wanjieNum-over-bottom-top">
					<!-- 每一个小盒子 -->
						<view class="wanjieNum-over-bottom-top-box" >
							<view class="wanjieNum-over-bottom-top-box-Img">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text" >
									复试次数
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;"> 
									{{checkDetectionData.type2Value}}
								</view>	次
								</view>
							</view>
						</view>
						<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
							<view class="wanjieNum-over-bottom-top-box-Imgs">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
								合格率
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx"> 
									{{checkDetectionData.type2PassRate}}
								</view>	%
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 混凝土试件 -->
		<view class="gangjin" style="padding-bottom: 62rpx;">
			<view class="gangjin-header">
				<!-- 上面部分 -->
				<view class="project-title" style="margin-left: -30rpx;">
					<view style="border-bottom: 1px solid #0f498c;height: 36rpx;font-size: 26rpx;">
						混凝土试件
					</view>
				</view>
				<!-- 下面部分 -->
				<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
				<!-- 每一行两个小盒子 -->
					<view class="wanjieNum-over-bottom-top">
					<!-- 每一个小盒子 -->
						<view class="wanjieNum-over-bottom-top-box" >
							<view class="wanjieNum-over-bottom-top-box-Img">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text" >
									复试次数
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;"> 
									{{checkDetectionData.type3Value}}
								</view>	次
								</view>
							</view>
						</view>
						<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
							<view class="wanjieNum-over-bottom-top-box-Imgs">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
								合格率
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx"> 
									{{checkDetectionData.type3PassRate}}
								</view>	%
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 其它复试 -->
		<view class="gangjin" style="padding-bottom: 62rpx;">
			<view class="gangjin-header">
				<!-- 上面部分 -->
				<view class="project-title" style="margin-left: -30rpx;">
					<view style="border-bottom: 1px solid #0f498c;height: 36rpx;font-size: 26rpx;">
						其它复试
					</view>
				</view>
				<!-- 下面部分 -->
				<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
				<!-- 每一行两个小盒子 -->
					<view class="wanjieNum-over-bottom-top">
					<!-- 每一个小盒子 -->
						<view class="wanjieNum-over-bottom-top-box" >
							<view class="wanjieNum-over-bottom-top-box-Img">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text" >
									复试次数
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;"> 
									{{checkDetectionData.type4Value}}
								</view>	次
								</view>
							</view>
						</view>
						<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
							<view class="wanjieNum-over-bottom-top-box-Imgs">
								<view class="wanjieNum-over-bottom-top-box-Img-small"> 
									<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
								</view>
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
								合格率
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx"> 
									{{checkDetectionData.type4PassRate}}
								</view>	%
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

      </view>
	</view>

	<view class="module_max">
      <view class="module_min">
        <view class="module_title module_title_flex" >
          <view>材料封样</view>
          <view class="module_see_info" bindtap="goCLFY">查看详情<van-icon name="arrow" /></view>
        </view>
		<safety-pie-chart chart-id="chart2" title="材料封样" chart-data="{{materialSealStatistics}}"></safety-pie-chart>
      </view>
   </view>

	<view class="module_max">
      <view class="module_min">
        <view class="module_title module_title_flex" >
          <view>举牌验收</view>
          <view class="module_see_info" bindtap="goJPYS">查看详情<van-icon name="arrow" /></view>
        </view>
		<view class="gangjin">
			<view class="gangjin-header">
				<view class="wanjieNum-over-bottom" style="padding-top:60rpx;padding-bottom: 40rpx;">
				<!-- 每一行两个小盒子 -->
					<view class="wanjieNum-over-bottom-top">
					<!-- 每一个小盒子 -->
						<view class="wanjieNum-over-bottom-top-box" >
							<view class="wanjieNum-over-bottom-top-box-ImgPC">
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
									验收次数
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;"> 
									{{checkValue}}
								</view>	次
								</view>
							</view>
						</view>
						<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
							<view class="wanjieNum-over-bottom-top-box-ImgPS">
							</view>
							<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
								<view class="wanjieNum-over-bottom-top-box-title-text">
								合格率
								</view>
								<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
								<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx"> 
									{{checkPassRate}}
								</view>	%
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		 </view>
      </view>
   </view>

</view>
<!-- 底部导航 -->
<van-tabbar active="{{ active }}" bind:change="onChange" active-color="#ffffff" inactive-color="#7d95d6">
  <van-tabbar-item bindtap="XMGK" >
    <image
      slot="icon"
      src="/images/footer_5.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    <image
      slot="icon-active"
      src="/images/foot_5.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    项目概况
  </van-tabbar-item>

  <van-tabbar-item bindtap="AQGL">
    <image
      slot="icon"
      src="/images/footer_7.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    <image
      slot="icon-active"
      src="/images/foot_7.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    安全管理
  </van-tabbar-item>

  <van-tabbar-item>
    <image
      slot="icon"
      src="/images/footer_5.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    <image
      slot="icon-active"
      src="/images/foot_5.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    质量管理
	<span class="tabNum" wx:if="{{approveDb>0}}">{{approveDb}}</span>
    </van-tabbar-item>
    
    <van-tabbar-item bindtap="JDGL">
    <image
      slot="icon"
      src="/images/footer_6.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    <image
      slot="icon-active"
      src="/images/foot_6.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    进度管理
  </van-tabbar-item>

  <van-tabbar-item bindtap="GDGN">
    <image
      slot="icon"
      src="/images/footer_1.png"
      mode="aspectFit"
      style="width:40rpx; height: 40rpx;"
    />
    <image
      slot="icon-active"
      src="/images/foot_1.png"
      mode="aspectFit"
      style="width:40rpx; height:40rpx;"
    />
    更多功能
	<span class="tabNum" wx:if="{{todoDb>0}}">{{todoDb}}</span>
  </van-tabbar-item>
</van-tabbar>
