<!--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">新增{{title}}</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;">{{minTitle}}图片</view>
        <view class="problem_list_info_con">
            <file-uploader  bindimages="onImagesArr" limit="{{limit}}"></file-uploader>
        </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">{{minTitle}}标题</view>
            <view class="inspect_info_content">
                <input placeholder="请填写{{minTitle}}标题" placeholder-style="color:#6777aa;" class="inspect_input_fill_in" bindinput="trainTitleAction" maxlength="30"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">{{minTitle}}时间</view>
            <view class="inspect_info_content">
            <voucher-date counts="5" placeholder="请选择{{minTitle}}时间" 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">
                <input type="number" placeholder="请填写参与人数" placeholder-style="color:#6777aa;" class="inspect_input_fill_in"   bindinput="onInputNumber" value="{{trainParticipants}}"/>
             </view>
    </view>
    <view class="inspect_info_list">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">{{minTitle}}内容</view>
            <view class="inspect_info_content">
                <textarea  class="add_textarea" placeholder="请填写{{minTitle}}内容"
            placeholder-style="color:#6777aa;" maxlength="800" bindinput="trainContent"/>
             </view>
    </view>
    <view class="inspect_info_list" style="width: 100%;">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">相关文件
                <text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text>
            </view>
            <view class="problem_list_info_con">
                <file-uploader-all  bindfiles="fileUpload" limit="{{limit}}"></file-uploader-all>
            </view>
    </view>
    <view class="inspect_info_list" style="float: none;">
            <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">协作团队</view>
            <view class="inspect_info_content">
                <input placeholder="请选择协作团队" placeholder-style="color:#6777aa;" class="inspect_input_fill_in" bindtap="onShowDept" value="{{deptNames}}" disabled="disabled"/>
            </view>
    </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="onSave">保存</view>
</view>
</view>
<van-popup  position="bottom"  show="{{ showDept }}" bind:close="onCloseDept">
<view class="max_tab_name">
    <view class="option_list_title">
        <view class="option_list_title_btn" bindtap="onCloseDept">取消</view>
          <view>请选择协作团队</view>
        <view class="option_list_title_btn" bindtap="onCloseDept">确认</view>
    </view> 
    <view wx:for="{{projectDeptList}}" wx:key="index" data-index="{{index}}" bindtap="changeDept" data-name="{{item.deptName}}" data-id="{{item.deptId}}" class="font_color {{ item.state=='1' ? 'active' :' '}}">{{item.deptName}}</view>
</view>
</van-popup>
<van-overlay show="{{loadShow}}">
    <view class="gif">
        <image src="../../../images/loding2.gif"></image>
        <view>数据加载中！请稍后...</view>
    </view>
</van-overlay>  
















































