assaign.axml 9.1 KB

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