offerAreward.axml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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}} {{selectRule.pt_Obj[0].name}}</view>
  57. <view class="fontColorD input_text" a:else> 范围(可修改):{{selectRule.min_point}}至{{selectRule.max_point}}
  58. <text>{{selectRule.pt_Obj[0].name}}</text></view>
  59. </block>
  60. </view>
  61. </view>
  62. <view class="flex-box li margin-bottom" style="padding:15rpx 28rpx;margin-top:24rpx" a:else>
  63. <view class="label isBt" style="position: relative;top:10rpx;">任务积分</view>
  64. <text class="red" style="position: relative;top:10rpx;"></text>
  65. <view class="flex-1">
  66. <input value="{{items.base_point2}}" placeholder="0" type="number" onInput="bindKeyInput2" class="flex-1"/>
  67. </view>
  68. </view>
  69. <view class="flex-box flex-v-ce li" data-num="2" data-item="{{{id:items.reviewer_id,name:items.revieweName}}}" catchTap="openSelect">
  70. <view class="label isBt">审批人</view>
  71. <view class="flex-1">{{items.revieweName}}</view>
  72. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  73. </view>
  74. <view class="flex-box flex-v-ce li">
  75. <view class="label">重复周期</view>
  76. <view class="flex-1">
  77. <picker onChange="bindObjPickerChange" value="{{arrIndex}}" range="{{objectArray}}" range-key="name">
  78. <view class="row-extra">{{objectArray[arrIndex].name}}</view>
  79. </picker>
  80. </view>
  81. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  82. </view>
  83. <view class="flex-box flex-v-ce li margin-bottom">
  84. <view class="label isBt">截止时间</view>
  85. <view class="flex-1" a:if="{{items.task_cycle==0}}" catchTap="openDate">{{items.expire_time}}</view>
  86. <view class="flex-1" a:else>
  87. <picker onChange="activeDate" value="{{columnsIndex}}" range="{{columnsArray}}" range-key="name">
  88. <text >{{columnsArray[columnsIndex].name}}</text>
  89. </picker>
  90. </view>
  91. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  92. </view>
  93. <view class="li">
  94. <textarea maxlength="300" value="{{items.task_remark}}" onInput="bindTextAreaBlur2" placeholder="请输入任务备注" data-index="{{index}}"></textarea>
  95. </view>
  96. <view class="flex-box li" style="padding:15rpx 28rpx;">
  97. <view class="label2" style="position: relative;top:10rpx;">提前奖分(天)</view>
  98. <text class="red" style="position: relative;top:10rpx;">+</text>
  99. <view class="flex-box-ce flex-1">
  100. <input value="{{items.ahead_award_point}}" data-name="ahead_award_point" placeholder="提前奖多少分" type="number" onInput="bindKeyInput3"/>
  101. <input style="border-left:1px solid #f1f1f1" data-name="ahead_award_point_limit" value="{{items.ahead_award_point_limit}}" placeholder="奖分上限" type="number" onInput="bindKeyInput3"/>
  102. </view>
  103. </view>
  104. <view class="flex-box li" style="padding:15rpx 28rpx;">
  105. <view class="label2" style="position: relative;top:10rpx;">逾期扣分(天)</view>
  106. <text class="green" style="position: relative;top:10rpx;">-</text>
  107. <view class="flex-box-ce flex-1">
  108. <input value="{{items.timeout_deduction_point}}" data-name="timeout_deduction_point" placeholder="逾期扣多少分" type="number" onInput="bindKeyInput3"/>
  109. <input style="border-left:1px solid #f1f1f1" data-name="timeout_deduction_point_limit" value="{{items.timeout_deduction_point_limit}}" placeholder="扣分上限" type="number" onInput="bindKeyInput3"/>
  110. </view>
  111. </view>
  112. <view class="flex-box flex-v-ce li" data-num="1" catchTap="openSelect">
  113. <view class="label">可见范围</view>
  114. <view class="flex-1 font-flex-word userList">
  115. <block a:for="{{defaultSection}}">
  116. <text style="font-size:32rpx">{{item.name}},</text>
  117. </block>
  118. </view>
  119. <image mode="scaleToFill" src="../../../image/right.png" class="rightImg"/>
  120. </view>
  121. <!-- <view style="height:2rem">
  122. </view> -->
  123. </view>
  124. <view class="btn-area">
  125. <button type="default" loading="{{disabled}}" class="defBtn" disabled="{{disabled}}" catchTap="formSubmit">提交</button>
  126. </view>
  127. </view>
  128. <view class="box" animation="{{animationInfo}}">
  129. <select-rule defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectItem" onClose="onClose" a:if="{{isShowType=='3'}}"/>
  130. <select-type defaultId="{{defaultRuleId}}" isGzType="{{isGzType}}" onConfirm="onSelectType" onClose="onClose" a:if="{{isShowType=='4'}}"/>
  131. <select-section-bottom defaultSection="{{defaultSection}}" onClose="onClose" onConfirm="onSelectSection" a:if="{{isShowType=='1'}}"/>
  132. <select-section-staff-two islead="{{true}}" selectUser="{{reviewerObj}}" onClose="onClose" onConfirm="onSelectUser2" a:if="{{isShowType=='2'}}"/>
  133. </view>
  134. </view>