<!--pageage/safetyManagement/addSafetyInspect/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_info ">
    <view class="module_title module_title_flex">
        <view>{{projectName}}</view>
    </view>
    <view class="inspect_info_list">
        <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">隐患图片</view>
        <view class="problem_list_info_con">
            <file-uploader  bindimages="onImagesArr"></file-uploader>
        </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">检查类型</view>
            <view class="inspect_info_content">
                <voucher-select columns="{{problemTypeList}}" placeholder="请选择检查类型" bindchange="onSelectProblemType"></voucher-select>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">隐患类型</view>
            <view class="inspect_info_content">
                <voucher-select columns="{{dangerTypeList}}" placeholder="请选择隐患类型" bindchange="onSelectDangerType" selectValue="{{activeName}}" selectIndex="{{activeIndex}}"></voucher-select>
             </view>
    </view>
    <view class="inspect_info_list" >
        <view class="inspect_info_title">隐患描述</view>
        <view class="inspect_info_content">
            <textarea  class="add_textarea" placeholder="请填写质量隐患描述"
            placeholder-style="color:#6777aa;" bindinput="onInputWorkParts" maxlength="200"/>
        </view>
    </view>
    <view class="inspect_info_list" >
        <view class="inspect_info_title">整改要求</view>
        <view class="inspect_info_content">
            <textarea  class="add_textarea" placeholder="请填写隐患整改要求"
            placeholder-style="color:#6777aa;" bindinput="onInputChangeInfoValue" maxlength="200"/>
        </view>
    </view>
    <view class="inspect_info_list">
        <view class="inspect_info_title">整改截至时间</view>
        <view class="inspect_info_content">
            <voucher-date counts="5" placeholder="请选择整改截至时间" minDate="{{minDate}}" maxDate="{{maxDate}}" bindchange="onInputTime"></voucher-date>
        </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">整改人</view>
            <view class="inspect_info_content">
                <select-group-person rectifierData="{{rectifierData}}" multiple="{{fales}}" bindselected="onAddLordSent" index="1" title="请选择整改人" choose="{{lordSent}}">
                </select-group-person>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">复检人</view>
            <view class="inspect_info_content">
                <select-group-person rectifierData="{{rectifierData2}}" multiple="{{fales}}" bindselected="onAddRecheckSend" index="2" title="请选择复检人" choose="{{recheckSend}}">
                </select-group-person>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">抄送人</view>
            <view class="inspect_info_content">
                <select-group-person rectifierData="{{rectifierData3}}" multiple="{{true}}" bindselected="onAddCopySend" index="3" title="请选择抄送人" choose="{{copySend}}">
                </select-group-person>
             </view>
    </view>
    <view class="safety_inspect_title module_title_flex" wx:if="{{showHis}}">
        <text class="color_orange">已自动填充上次隐患的整改人，复检人，抄送人。</text>
    </view>
</view>
<view class="problem_submit_to">
    <view class="problem_submit_to_btn" bindtap="cancelSaveView">取消</view>
    <view class="problem_submit_to_btn problem_submit_to_save"  bindtap="onProblemSubmitSave">提交隐患</view>
</view> 
</view>

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
















































