offerAreward_set.axml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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">
  15. <view class="label isBt">任务类型</view>
  16. <view class="flex-1 flex-box-end flex-flex-v-ce">
  17. <view a:for="{{types}}">
  18. <text a:if="{{item.code!=='JX'}}" catchTap="openType" data-id="{{item.id}}" class="van-radio {{items.pt_id==item.id? 'isTypes':''}}">{{item.name}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="flex-box flex-v-ce li" style="padding:26rpx 28rpx;">
  23. <view class="label">指定规则</view>
  24. <view class="flex-1"></view>
  25. <switch onChange="switchChange" checked="{{items.checked}}" color="#26A2FF"></switch>
  26. </view>
  27. <view class="flex-box flex-v-ce li" data-ruleId="{{items.item_id}}" a:if="{{items.checked}}" data-num="3" catchTap="openSelect">
  28. <view class="label isBt">选择规则</view>
  29. <view class="flex-1" a:if="{{selectRule}}">已选择1条</view>
  30. <view class="flex-1" a:else></view>
  31. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  32. </view>
  33. <view class="flex-box flex-v-ce li" a:else data-ruleId="{{items.rule_id2}}" data-num="4" catchTap="openSelect">
  34. <view class="label isBt">选择分类</view>
  35. <view class="flex-1">{{items.rule_name}}</view>
  36. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  37. </view>
  38. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx" a:if="{{items.checked}}">
  39. <view class="label isBt" style="position: relative;top:8rpx;">任务积分</view>
  40. <text class="red" style="position: relative;top:8rpx;" a:if="{{isArrindex==true}}">+</text>
  41. <text class="green" a:else style="position: relative;top:8rpx;">-</text>
  42. <view class="flex-1">
  43. <view class="flex-box flex-v-ce">
  44. <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>
  45. <input a:else value="{{items.base_point}}" placeholder="0" type="number" onInput="bindKeyInput1" class="flex-1"/>
  46. <view class="picker-box" catchTap="bindPickerChange" a:if="{{selectRule.range_type!=1}}">
  47. <view class="{{isArrindex==true? 'picker-right':'picker-left'}} yuan"></view>
  48. <view class="flex-box flex-v-ce">
  49. <text class="red flex-1">奖</text>
  50. <text class="green flex-1">扣</text>
  51. </view>
  52. </view>
  53. </view>
  54. <block a:if="{{selectRule}}">
  55. <view style="color: #333; margin-bottom: 5px; margin-top: 10px;text-align:left">{{selectRule.remark}}</view>
  56. <view class="fontColorD input_text" a:if="{{selectRule.range_type==1&&selectRule.min_point==selectRule.max_point}}">固定:{{selectRule.min_point}} {{items.pt_name}}</view>
  57. <view class="fontColorD input_text" a:else> 范围(可修改):{{selectRule.min_point}}至{{selectRule.max_point}}
  58. <text>{{items.pt_name}}</text>
  59. </view>
  60. </block>
  61. </view>
  62. </view>
  63. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx" a:else>
  64. <view class="label isBt" style="position: relative;top:10rpx;">任务积分</view>
  65. <text class="red" style="position: relative;top:10rpx;"></text>
  66. <view class="flex-1">
  67. <input value="{{items.base_point2}}" placeholder="0" type="number" onInput="bindKeyInput2" class="flex-1"/>
  68. </view>
  69. </view>
  70. <view class="flex-box flex-v-ce li" data-num="2" data-item="{{{id:items.reviewer_id,name:items.revieweName}}}" catchTap="openSelect">
  71. <view class="label isBt">审批人</view>
  72. <view class="flex-1">{{items.revieweName}}</view>
  73. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  74. </view>
  75. <view class="flex-box flex-v-ce li margin-bottom" catchTap="openDate" data-index="{{index}}">
  76. <view class="label isBt">截止时间</view>
  77. <view class="flex-1">{{items.expire_time}}</view>
  78. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  79. </view>
  80. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx">
  81. <view class="label isBt" style="position: relative;top:10rpx;">抢单名额</view>
  82. <text class="red" style="position: relative;top:10rpx;"></text>
  83. <view class="flex-1">
  84. <input value="{{items.chance}}" placeholder="请输入名额(最多100名)" type="number" onInput="bindKeyInput4"/>
  85. </view>
  86. </view>
  87. <view class="li">
  88. <textarea maxlength="100" value="{{items.task_remark}}" onInput="bindTextAreaBlur2" placeholder="请输入任务备注" data-index="{{index}}"></textarea>
  89. </view>
  90. <view class="flex-box li" style="padding:15rpx 28rpx;">
  91. <view class="label2" style="position: relative;top:10rpx;">提前奖分(天)</view>
  92. <text class="red" style="position: relative;top:10rpx;">+</text>
  93. <view class="flex-box-ce flex-1">
  94. <input value="{{items.ahead_award_point}}" data-name="ahead_award_point" placeholder="提前奖多少分" type="number" onInput="bindKeyInput3"/>
  95. <input style="border-left:1px solid #f1f1f1" data-name="ahead_award_point_limit" value="{{items.ahead_award_point_limit}}" placeholder="奖分上限" type="number" onInput="bindKeyInput3"/>
  96. </view>
  97. </view>
  98. <view class="flex-box li" style="padding:15rpx 28rpx;">
  99. <view class="label2" style="position: relative;top:10rpx;">逾期扣分(天)</view>
  100. <text class="green" style="position: relative;top:10rpx;">-</text>
  101. <view class="flex-box-ce flex-1">
  102. <input value="{{items.timeout_deduction_point}}" data-name="timeout_deduction_point" placeholder="逾期扣多少分" type="number" onInput="bindKeyInput3"/>
  103. <input style="border-left:1px solid #f1f1f1" data-name="timeout_deduction_point_limit" value="{{items.timeout_deduction_point_limit}}" placeholder="扣分上限" type="number" onInput="bindKeyInput3"/>
  104. </view>
  105. </view>
  106. <view class="flex-box flex-v-ce li">
  107. <view class="label" style="width:auto">可见范围<text style="font-size:24rpx;color:#ccc">(没有指定部门与人员时默认全公司可见)</text></view>
  108. </view>
  109. <view class="flex-box flex-v-ce li" data-num="1" catchTap="openSelect">
  110. <view class="label">指定部门</view>
  111. <view class="flex-1 font-flex-word userList">
  112. <block a:for="{{defaultSection}}">
  113. <text style="font-size:32rpx">{{item.name}},</text>
  114. </block>
  115. </view>
  116. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  117. </view>
  118. <view class="flex-box flex-v-ce li" data-num="5" catchTap="openSelect">
  119. <view class="label">指定人员</view>
  120. <view class="flex-1 font-flex-word userList">
  121. <block a:for="{{employeeList}}">
  122. <text style="font-size:32rpx">{{item.name}},</text>
  123. </block>
  124. </view>
  125. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  126. </view>
  127. </view>
  128. <view class="btn-area">
  129. <button type="default" loading="{{disabled}}" class="defBtn" disabled="{{disabled}}" catchTap="formSubmit">确定修改</button>
  130. </view>
  131. </view>
  132. <view class="box" animation="{{animationInfo}}">
  133. <select-rule defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectItem" onClose="onClose" a:if="{{isShowType=='3'}}"/>
  134. <select-type defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectType" onClose="onClose" a:if="{{isShowType=='4'}}"/>
  135. <select-section-bottom defaultSection="{{defaultSection}}" onClose="onClose" onConfirm="onSelectSection" a:if="{{isShowType=='1'}}"/>
  136. <select-section-staff-two islead="{{true}}" selectUser="{{reviewerObj}}" onClose="onClose" onConfirm="onSelectUser2" a:if="{{isShowType=='2'}}"/>
  137. <select-section-staff selectUser="{{employeeList}}" onClose="onClose" onConfirm="onSelectUser" a:if="{{isShowType=='5'}}" />
  138. </view>
  139. </view>