assaign_set.axml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <view>
  2. <view class="{{popupCx}}">
  3. <view class="inputs">
  4. <view class="li">
  5. <textarea class="textarea" maxlength="100" value="{{items.task_name}}" onInput="bindTextAreaBlur" placeholder="请输入任务内容" data-index="{{index}}"></textarea>
  6. <image mode="scaleToFill" src="../../../image/addImg.png" class="addImg" catchTap="openImg"/>
  7. </view>
  8. <view style="background:#fff;padding:0 28rpx;" a:if="{{items.file_list[0]}}" class="flex-box flex-v-ce">
  9. <view a:for="{{items.file_list}}" key="index" a:for-item="imgs" a:for-index="imgIndex" style="position:relative">
  10. <text class="detele" data-itemIndx="{{index}}" data-index="{{imgIndex}}" catchTap="deteleImg">×</text>
  11. <image mode="scaleToFill" class="showImg" src="{{imgs}}" data-index="{{imgIndex}}" data-item="{{items.file_list}}" catchTap="showImg"/>
  12. </view>
  13. </view>
  14. <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
  15. <view class="label">指定规则</view>
  16. <view class="flex-1"></view>
  17. <switch onChange="switchChange" checked="{{items.checked}}" color="#26A2FF"></switch>
  18. </view>
  19. <view class="flex-box flex-v-ce li" data-ruleId="{{items.item_id}}" a:if="{{items.checked}}" data-num="3" catchTap="openSelect">
  20. <view class="label isBt">选择规则</view>
  21. <view class="flex-1" a:if="{{selectRule}}">已选择1条</view>
  22. <view class="flex-1" a:else></view>
  23. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  24. </view>
  25. <view class="flex-box flex-v-ce li" a:else data-ruleId="{{items.rule_id2}}" data-num="4" catchTap="openSelect">
  26. <view class="label isBt">选择分类</view>
  27. <view class="flex-1">{{items.rule_name}}</view>
  28. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  29. </view>
  30. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx" a:if="{{items.checked}}">
  31. <view class="label isBt" style="position: relative;top:8rpx;">任务积分</view>
  32. <text class="red" style="position: relative;top:8rpx;" a:if="{{isArrindex==true}}">+</text>
  33. <text class="green" a:else style="position: relative;top:8rpx;">-</text>
  34. <view class="flex-1">
  35. <view class="flex-box flex-v-ce">
  36. <view a:if="{{selectRule.range_type==1&&selectRule.min_point==selectRule.max_point}}" style="padding-left:10rpx; height:60rpx;line-height:60rpx;" class="flex-1">{{items.base_point}}</view>
  37. <input a:else value="{{items.base_point}}" placeholder="0" type="number" onInput="bindKeyInput1" class="flex-1"/>
  38. <view class="picker-box" catchTap="bindPickerChange" a:if="{{selectRule.range_type!=1}}">
  39. <view class="{{isArrindex==true? 'picker-right':'picker-left'}} yuan"></view>
  40. <view class="flex-box flex-v-ce">
  41. <text class="red flex-1">奖</text>
  42. <text class="green flex-1">扣</text>
  43. </view>
  44. </view>
  45. </view>
  46. <block a:if="{{selectRule}}">
  47. <view style="color: #333; margin-bottom: 5px; margin-top: 10px;text-align:left">{{selectRule.remark}}</view>
  48. <view class="fontColorD input_text" a:if="{{selectRule.range_type==1&&selectRule.min_point==selectRule.max_point}}">固定:{{selectRule.min_point}} {{items.pt_name}}</view>
  49. <view class="fontColorD input_text" a:else> 范围(可修改):{{selectRule.min_point}}至{{selectRule.max_point}}
  50. <text>{{items.pt_name}}</text>
  51. </view>
  52. </block>
  53. </view>
  54. </view>
  55. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx" a:else>
  56. <view class="label isBt" style="position: relative;top:10rpx;">任务积分</view>
  57. <text class="red" style="position: relative;top:10rpx;"></text>
  58. <view class="flex-1">
  59. <input value="{{items.base_point2}}" placeholder="0" type="number" onInput="bindKeyInput2" class="flex-1"/>
  60. </view>
  61. </view>
  62. <view class="flex-box flex-v-ce form-top" catchTap="openSelect" data-num="1">
  63. <view class="label isBt">执行人</view>
  64. <view class="flex-1 font-flex-word userList">
  65. <block a:for="{{users}}">
  66. <text style="font-size:32rpx">{{item.name}},</text>
  67. </block>
  68. </view>
  69. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  70. </view>
  71. <view class="flex-box flex-v-ce li" data-num="2" data-item="{{{id:items.reviewer_id,name:items.revieweName}}}" catchTap="openSelect">
  72. <view class="label isBt">审批人</view>
  73. <view class="flex-1">{{items.revieweName}}</view>
  74. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  75. </view>
  76. <view class="flex-box flex-v-ce li margin-bottom" catchTap="openDate" data-index="{{index}}">
  77. <view class="label isBt">截止时间</view>
  78. <view class="flex-1">{{items.expire_time}}</view>
  79. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  80. </view>
  81. <view class="li">
  82. <textarea maxlength="100" value="{{items.task_remark}}" onInput="bindTextAreaBlur2" placeholder="请输入任务备注" data-index="{{index}}"></textarea>
  83. </view>
  84. <view class="flex-box li" style="padding:15rpx 28rpx;">
  85. <view class="label2" style="position: relative;top:10rpx;">提前奖分(天)</view>
  86. <text class="red" style="position: relative;top:10rpx;">+</text>
  87. <view class="flex-box-ce flex-1">
  88. <input value="{{items.ahead_award_point}}" data-name="ahead_award_point" placeholder="提前奖多少分" type="number" onInput="bindKeyInput3"/>
  89. <input style="border-left:1px solid #f1f1f1" data-name="ahead_award_point_limit" value="{{items.ahead_award_point_limit}}" placeholder="奖分上限" type="number" onInput="bindKeyInput3"/>
  90. </view>
  91. </view>
  92. <view class="flex-box li" style="padding:15rpx 28rpx;">
  93. <view class="label2" style="position: relative;top:10rpx;">逾期扣分(天)</view>
  94. <text class="green" style="position: relative;top:10rpx;">-</text>
  95. <view class="flex-1 flex-box-ce">
  96. <input value="{{items.timeout_deduction_point}}" data-name="timeout_deduction_point" placeholder="逾期扣多少分" type="number" onInput="bindKeyInput3"/>
  97. <input style="border-left:1px solid #f1f1f1" data-name="timeout_deduction_point_limit" value="{{items.timeout_deduction_point_limit}}" placeholder="扣分上限" type="number" onInput="bindKeyInput3"/>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="btn-area">
  102. <button type="default" loading="{{disabled}}" class="defBtn" disabled="{{disabled}}" catchTap="formSubmit">确定修改</button>
  103. </view>
  104. </view>
  105. <view class="box" animation="{{animationInfo}}">
  106. <select-rule defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectItem" onClose="onClose" a:if="{{isShowType=='3'}}"/>
  107. <select-type defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectType" onClose="onClose" a:if="{{isShowType=='4'}}"/>
  108. <select-section-staff isLeadership="{{true}}" isAllSelect="{{false}}" isBoss="{{true}}" selectUser="{{users}}" onClose="onClose" onConfirm="onSelectUser" a:if="{{isShowType=='1'}}"/>
  109. <select-section-staff-two islead="{{true}}" selectUser="{{reviewerObj}}" onClose="onClose" onConfirm="onSelectUser2" a:if="{{isShowType=='2'}}"/>
  110. </view>
  111. </view>