<view>
  <view>
    <view class="inputs">
      <view class="li">
        <textarea class="textarea" maxlength="100" value="{{items.task_name}}" onInput="bindTextAreaBlur" placeholder="请输入任务内容" data-index="{{index}}"></textarea>
        <image mode="scaleToFill" src="../../../image/addImg.png"  class="addImg" catchTap="openImg"/>
      </view>
      <view style="background:#fff;padding:0 28rpx;" a:if="{{items.file_list[0]}}" class="flex-box flex-v-ce">
        <view a:for="{{items.file_list}}" key="index" a:for-item="imgs" a:for-index="imgIndex" style="position:relative">
          <text class="detele" data-itemIndx="{{index}}" data-index="{{imgIndex}}" catchTap="deteleImg">×</text>
          <image mode="scaleToFill" class="showImg" src="{{imgs}}" data-index="{{imgIndex}}" data-item="{{items.file_list}}" catchTap="showImg"/>
        </view>
      </view>
      <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx">
        <view class="label isBt" style="position: relative;top:10rpx;">任务积分</view>
        <text class="red" style="position: relative;top:10rpx;">+</text>
        <view class="flex-1">
          <input value="{{items.base_point}}"  placeholder="0" type="number" onInput="bindKeyInput"  class="flex-1"/>
        </view>
      </view>
      <view class="flex-box flex-v-ce form-top" catchTap="openSelect" data-num="1">
        <view class="label isBt">执行人</view>
        <view class="flex-1 font-flex-word userList">
          <block a:for="{{users}}">
            <text style="font-size:32rpx">{{item.name}},</text>
          </block>
        </view>
        <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
      </view>
      <view class="flex-box flex-v-ce li"  data-num="2" data-item="{{{id:items.reviewer_id,name:items.revieweName}}}" catchTap="openSelect">
        <view class="label isBt">审批人</view>
        <view class="flex-1">{{items.revieweName}}</view>
        <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
      </view>
      <view class="flex-box flex-v-ce li">
        <view class="label isBt">任务类型</view>
        <view class="flex-1 flex-box-end flex-flex-v-ce">
            <view a:for="{{types}}">
                <text a:if="{{item.code!=='JX'}}"  catchTap="openType" data-id="{{item.id}}" class="van-radio {{items.pt_id==item.id? 'isTypes':''}}">{{item.name}}</text>
            </view>
        </view>
      </view>

      <view class="flex-box flex-v-ce li  margin-bottom" catchTap="openDate" data-index="{{index}}">
        <view class="label isBt">截止时间</view>
        <view class="flex-1">{{items.expire_time}}</view>
        <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
      </view>
      <view class="li">
        <textarea maxlength="100" value="{{items.task_remark}}" onInput="bindTextAreaBlur2" placeholder="请输入任务描述" data-index="{{index}}"></textarea>
      </view>
      <view class="flex-box flex-v-ce li">
        <view class="label">重复周期</view>
        <view class="flex-1">
          <picker onChange="bindObjPickerChange" value="{{arrIndex}}" range="{{objectArray}}" range-key="name">
              <view class="row-extra">{{objectArray[arrIndex].name}}</view>
          </picker>
        </view>
        <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
      </view>
      <view class="flex-box li" style="padding:15rpx 28rpx;">
        <view class="label" style="position: relative;top:10rpx;">逾期扣分</view>
        <text class="green" style="position: relative;top:10rpx;">-</text>
        <view class="flex-1">
          <input value="{{items.timeout_deduction_point}}"  placeholder="每逾期一天扣多少分" type="number" onInput="bindKeyInput2"  class="flex-1"/>
        </view>
      </view>
    </view>
    <view class="btn-area">
      <button type="default" loading="{{disabled}}" class="defBtn" disabled="{{disabled}}" catchTap="formSubmit">提交</button>
    </view>
  </view>
  <view class="box" animation="{{animationInfo}}">
    <select-section-staff isLeadership="{{true}}" isBoss="{{true}}" selectUser="{{users}}" onClose="onClose" onConfirm="onSelectUser" a:if="{{isShowType=='1'}}"/>
    <select-section-staff-two  islead="{{true}}" selectUser="{{reviewerObj}}" onClose="onClose" onConfirm="onSelectUser2" a:if="{{isShowType=='2'}}"/>
  </view>
</view>