<view>
  <view class="{{popupCx}}">
    <view class="margin-bottom">
      <view class="inputs">
        <!-- （1）带积分，规则，分类 -->
        <block a:if="{{isData==1}}">
          <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
            <view class="label">分类名称</view>
            <view class="flex-1"></view>
            <view class="fontColorF">{{item.rule_name}}</view>
          </view>
          <view class="flex-box flex-v-ce li">
            <view class="label isBt">选择规则</view>
            <view class="flex-1">已选择1条</view>
            <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
          </view>
          <view class="selectRule margin-bottom">
            <view class="flex-box flex-v-ce">
              <view a:if="{{item.selectRule.range_type==1&&item.selectRule.min_point==item.selectRule.max_point}}">
                <text class="red" a:if="{{item.selectRule.min_point>0}}">+{{item.selectRule.min_point}}</text>
                <text class="green" a:else>{{item.selectRule.min_point}}</text>
              </view>
              <view class="green" a:else>
                <text class="red" a:if="{{item.selectRule.min_point>0}}"> +{{item.selectRule.min_point}}~{{item.selectRule.max_point}}</text>
                <text class="green" a:else>{{item.selectRule.min_point}} ~ {{item.selectRule.max_point}}</text>
              </view>
              <view class="fontColorF" style="margin-left:10rpx;">
                  {{item.selectRule.pt_Obj.name}}
              </view>
            </view>
            <view style="font-size:24rpx;margin-left:10rpx;" class="fontColorF">
              {{item.selectRule.remark}}
            </view>
          </view>
          <view class="margin-bottom"></view>
          <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;">
            <view class="label isBt" style="position: relative;top:8rpx;">积分</view>
            <text class="red" style="position: relative;top:8rpx;" a:if="{{item.isArrindex==true}}">+</text>
            <text class="green" a:else style="position: relative;top:8rpx;">-</text>
            <view class="flex-1">
              <view class="flex-box flex-v-ce">
                <view a:if="{{(item.selectRule.range_type==1&&item.selectRule.min_point==item.selectRule.max_point)||item.pid>0}}" style="padding-left:10rpx; height:60rpx;line-height:60rpx;" class="flex-1">{{item.point}}</view>
                <input a:else value="{{item.point}}"  placeholder="0" type="number" onInput="bindKeyInput"  class="flex-1"/>
                <view class="picker-box"  catchTap="bindPickerChange" a:if="{{item.selectRule.range_type!=1&&item.pid==0}}">
                  <view class="{{item.isArrindex==true ? 'picker-right':'picker-left'}} yuan"></view>
                  <view class="flex-box flex-v-ce" class="picker">
                    <text class="red flex-1">奖</text>
                    <text class="green flex-1">扣</text>
                  </view>
                </view>

              </view>
              <block a:if="{{item.selectRule}}">
                <view class="fontColorT input_text" a:if="{{item.selectRule.range_type==1}}">固定：{{item.selectRule.min_point}} {{item.selectRule.pt_Obj.name}}</view>
                <view class="fontColorT input_text" a:else> 范围(可修改)：{{item.selectRule.min_point}}至{{item.selectRule.max_point}}
                  <text>{{item.selectRule.pt_Obj.name}}</text></view>
              </block>
            </view>
          </view>
        </block>
        <!-- （2）带积分，分类 -->
        <block a:if="{{isData==2}}">
          <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
            <view class="label">分类名称</view>
            <view class="flex-1"></view>
            <view class="fontColorF">{{item.rule_name}}</view>
          </view>
          <view class="margin-bottom"></view>
          <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;">
            <view class="label isBt" style="position: relative;top:8rpx;">积分</view>
            <text class="red" style="position: relative;top:8rpx;" a:if="{{item.isArrindex==true}}">+</text>
            <text class="green" a:else style="position: relative;top:8rpx;">-</text>
            <view class="flex-1">
              <view class="flex-box flex-v-ce">
                <view  style="padding-left:10rpx; height:60rpx;line-height:60rpx;" class="flex-1">{{item.point}}</view>
              </view>
            </view>
          </view>
        </block>
        <!-- （3）带分类 -->
        <block a:if="{{isData==3}}">
          <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
            <view class="label">分类名称</view>
            <view class="flex-1"></view>
            <view class="fontColorF">{{item.rule_name}}</view>
          </view>
          <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;">
            <view class="label isBt" style="position: relative;top:8rpx;">积分</view>
            <text class="red" style="position: relative;top:8rpx;" a:if="{{item.isArrindex==true}}">+</text>
            <text class="green" a:else style="position: relative;top:8rpx;">-</text>
            <view class="flex-1">
              <view class="flex-box flex-v-ce">
                <view a:if="{{item.selectRule.range_type==1&&item.selectRule.min_point==item.selectRule.max_point}}" style="padding-left:10rpx; height:60rpx;line-height:60rpx;" class="flex-1">{{item.point}}</view>
                <input a:else value="{{item.point}}"  placeholder="0" type="number" onInput="bindKeyInput"  class="flex-1"/>
                <view class="picker-box"  catchTap="bindPickerChange" a:if="{{item.selectRule.range_type!=1}}">
                  <view class="{{item.isArrindex==true ? 'picker-right':'picker-left'}} yuan"></view>
                  <view class="flex-box flex-v-ce" class="picker">
                    <text class="red flex-1">奖</text>
                    <text class="green flex-1">扣</text>
                  </view>
                </view>
              </view>
              <block a:if="{{item.selectRule}}">
                <view class="fontColorT input_text" a:if="{{item.selectRule.range_type==1}}">固定：{{item.selectRule.min_point}} {{item.selectRule.pt_Obj.name}}</view>
                <view class="fontColorT input_text" a:else> 范围(可修改)：{{item.selectRule.min_point}}至{{item.selectRule.max_point}}
                  <text>{{item.selectRule.pt_Obj.name}}</text></view>
              </block>
            </view>
          </view>
        </block>
        <!-- （4） -->
        <block a:if="{{isData==4}}">
          <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
            <view class="label">指定规则</view>
            <view class="flex-1"></view>
            <switch onChange="switchChange" checked="{{item.checked}}" color="#26A2FF"></switch>
          </view>
          <view class="flex-box flex-v-ce li" a:if="{{item.checked}}" data-num="1" data-ruleId="{{item.item_id}}" catchTap="openSelect">
            <view class="label isBt">选择规则</view>
            <view class="flex-1" a:if="{{item.selectRule}}">已选择1条</view>
            <view class="flex-1" a:else></view>
            <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
          </view>
          <view class="flex-box flex-v-ce li" a:else data-num="2" data-ruleId="{{item.rule_id2}}" catchTap="openSelect">
            <view class="label isBt">选择分类</view>
            <view class="flex-1">{{item.rule_name}}</view>
            <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
          </view>
          <view a:if="{{item.selectRule&&item.checked}}" class="selectRule margin-bottom">
            <view class="flex-box flex-v-ce">
              <view a:if="{{item.selectRule.range_type==1&&item.selectRule.min_point==item.selectRule.max_point}}">
                <text class="red" a:if="{{item.selectRule.min_point>0}}">+{{item.selectRule.min_point}}</text>
                <text class="green" a:else>{{item.selectRule.min_point}}</text>
              </view>
              <view class="green" a:else>
                <text class="red" a:if="{{item.selectRule.min_point>0}}"> +{{item.selectRule.min_point}}~{{item.selectRule.max_point}}</text>
                <text class="green" a:else>{{item.selectRule.min_point}} ~ {{item.selectRule.max_point}}</text>
              </view>
              <view class="fontColorF" style="margin-left:10rpx;">
                  {{item.selectRule.pt_Obj.name}}
              </view>
            </view>
            <view style="font-size:24rpx;margin-left:10rpx;" class="fontColorF">
              {{item.selectRule.remark}}
            </view>
          </view>
          <view class="margin-bottom"></view>
          <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;" a:if="{{item.checked}}">
            <view class="label isBt" style="position: relative;top:8rpx;">积分</view>
            <text class="red" style="position: relative;top:8rpx;" a:if="{{item.isArrindex==true}}">+</text>
            <text class="green" a:else style="position: relative;top:8rpx;">-</text>
            <view class="flex-1">
              <view class="flex-box flex-v-ce">
                <view a:if="{{item.selectRule.range_type==1&&item.selectRule.min_point==item.selectRule.max_point}}" style="padding-left:10rpx; height:60rpx;line-height:60rpx;" class="flex-1">{{item.point}}</view>
                <input a:else value="{{item.point}}"  placeholder="0" type="number" onInput="bindKeyInput" class="flex-1"/>
                <view class="picker-box" catchTap="bindPickerChange" a:if="{{item.selectRule.range_type!=1}}">
                  <view class="{{item.isArrindex==true ? 'picker-right':'picker-left'}} yuan"></view>
                  <view class="flex-box flex-v-ce" class="picker">
                    <text class="red flex-1">奖</text>
                    <text class="green flex-1">扣</text>
                  </view>
                </view>
              </view>
              <block a:if="{{item.selectRule}}">
                <view class="fontColorT input_text" a:if="{{item.selectRule.range_type==1}}">固定：{{item.selectRule.min_point}} {{item.selectRule.pt_Obj.name}}</view>
                <view class="fontColorT input_text" a:else> 范围(可修改)：{{item.selectRule.min_point}}至{{item.selectRule.max_point}}
                  <text>{{item.selectRule.pt_Obj.name}}</text></view>
              </block>
            </view>
          </view>
          <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;" a:else>
            <view class="label isBt" style="position: relative;top:8rpx;">积分</view>
            <text class="red" style="position: relative;top:8rpx;" a:if="{{item.isArrindex2==true}}">+</text>
            <text class="green" a:else style="position: relative;top:8rpx;">-</text>
            <view class="flex-1">
              <view class="flex-box flex-v-ce">
                <input value="{{item.point2}}"  placeholder="0" type="number" onInput="bindKeyInput2" class="flex-1"/>
                <view class="picker-box"  catchTap="bindPickerChange2">
                  <view class="{{item.isArrindex2==true? 'picker-right':'picker-left'}} yuan"></view>
                  <view class="flex-box flex-v-ce" class="picker">
                    <text class="red flex-1">奖</text>
                    <text class="green flex-1">扣</text>
                  </view>
                </view>
              </view>
            </view>
          </view>
        </block>
        <view class="fontColorF" style="font-size:24rpx;padding-left:28rpx">奖票多用于优秀表现和重要事项的表彰</view>
        <view class="flex-box flex-v-ce li margin-bottom" style="padding:26rpx 28rpx;">
          <view class="label">发放奖票</view>
          <view class="flex-1"></view>
          <switch onChange="switchChange2" disabled="{{item.pid}}" checked="{{item.ticket_count}}" color="#26A2FF"></switch>
        </view>
        <view class="flex-box flex-v-ce li margin-bottom" data-num="3" catchTap="openSelect">
          <view class="label">递交审批</view>
          <view class="flex-1">{{users.name}}</view>
          <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
        </view>
        <view class="li">
          <textarea  maxlength="300" value="{{item.remark}}" onInput="bindTextAreaBlur" placeholder="审批意见(选填)"></textarea>
        </view>
      </view>
    </view>
    <view class="btn-seve">
      <button type="default" loading="{{disabled}}" class="defBtn" disabled="{{disabled}}" catchTap="formSubmit">提交</button>
    </view>
  </view>

  <view class="box" animation="{{animationInfo}}">
    <select-rule  defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectItem" onClose="onClose" a:if="{{isShowType=='1'}}"/>
    <select-type  defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectType" onClose="onClose" a:if="{{isShowType=='2'}}"/>
    <select-section-staff-two onClose="onClose" selectUser="{{reviewerObj}}" onConfirm="onSelectUser" a:if="{{isShowType=='3'}}"/>
  </view>
</view>