review.axml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <view>
  2. <view class="header margin-bottom">
  3. <!-- <view class="flex-box flex-v-ce selectItems border-bottom">
  4. <view data-index="1" class="{{activeIndex == 1? 'active':''}} flex-1" catchTap="activeItem">待复核</view>
  5. <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-1" catchTap="activeItem">已复核</view>
  6. <view class="selectImg" a:if="{{activeIndex == 2}}">
  7. <picker class="picker" onChange="bindObjPickerChange" value="{{arrIndex}}" range="{{objectArray}}" range-key="name">
  8. <view style="padding:20rpx 30rpx;">
  9. <image mode="scaleToFill" src="../../../image/sx.png"/>
  10. </view>
  11. </picker>
  12. </view>
  13. </view> -->
  14. <view class="flex-box flex-v-ce tab border-bottom">
  15. <view class="flex-1">
  16. <picker onChange="activeItem" value="{{minuteIndex}}" range="{{minuteArray}}" range-key="name">
  17. <text>{{minuteArray[minuteIndex].name}}</text>
  18. </picker>
  19. </view>
  20. <view class="flex-1" catchTap="selectStaff">
  21. <text class="{{showStaff? 'activeView blue':''}}">{{staffVal}}</text>
  22. </view>
  23. <view class="flex-1" a:if="{{minuteIndex==1}}">
  24. <picker class="picker" onChange="bindObjPickerChange" value="{{arrIndex}}" range="{{objectArray}}" range-key="name">
  25. <text>{{objectArray[arrIndex].name}}</text>
  26. </picker>
  27. </view>
  28. </view>
  29. <form onReset="onReset" class="flex-box-ce" style="padding:16rpx 28rpx;">
  30. <view class="search flex-box flex-v-ce">
  31. <image mode="scaleToFill" src="../../../image/ss.png"/>
  32. <input placeholder="输入关键字查找" onInput="bindKeyInput" onConfirm="bindKeyInput" class="flex-1"/>
  33. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  34. </view>
  35. <button style="width: 100px;" a:if="{{minuteIndex == 0}}" size="mini" type="primary" catchTap="openPl">批量复核</button>
  36. </form>
  37. <!-- <view class="staff-all" a:if="{{isPl}}">
  38. <label class="flex-box-ce">
  39. <checkbox onChange="ruleActiveAll" disabled="{{item.disabled}}" checked="{{isAllChecked}}"></checkbox>
  40. <text class="rule-all-text">全选</text>
  41. </label>
  42. </view> -->
  43. </view>
  44. <view class="main scroll">
  45. <no-bata a:if="{{dataList.length==0}}"></no-bata>
  46. <scroll-view class="scroll" scroll-y="{{true}}" a:if="{{dataList.length>0}}" onScrollToLower="onScrollToLower">
  47. <view class="flex-box li border-bottom" a:for="{{dataList}}" data-item="{{item}}" catchTap="openDetail">
  48. <view style="padding-right:28rpx;padding-top:20rpx;" a:if="{{isPl}}">
  49. <checkbox checked="{{item.checked}}" name="{{item.id}}"></checkbox>
  50. </view>
  51. <view class="flex-box flex-1">
  52. <img-box name="{{item.employee_name}}" id="{{item.employee_id}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  53. <view class="flex-1 main-right">
  54. <view class="name flex-box-ce">
  55. <text class="flex-1">{{item.employee_name}}</text>
  56. <block a:if="{{minuteIndex == 1}}">
  57. <text class="greenBox" style="font-size:0.28rem" a:if="{{item.dc_status == 1}}">通过</text>
  58. <text class="redBox" style="font-size:0.28rem" a:if="{{item.dc_status == 2}}">不通过</text>
  59. </block>
  60. </view>
  61. <view class="context" style="height:80rpx">{{item.remark}}</view>
  62. <view class="flex-box flex-v-ce" style="padding-bottom:20rpx">
  63. <view class="date flex-1">{{item.event_time}}</view>
  64. <view class="flex-box flex-v-ce" a:if="{{minuteIndex == 0&&!isPl}}">
  65. <text catchTap="openBh" data-index="1" data-item="{{item}}" class="text">通过</text>
  66. <text catchTap="openBh" data-index="2" data-item="{{item}}" class="red">不通过</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  73. <view style="height:60px">
  74. </view>
  75. </scroll-view>
  76. </view>
  77. <view class="flex-box-ce footer " style="padding-bottom:0.3rem" a:if="{{isPl}}">
  78. <view class="flex-1" catchTap="selectAll">全选</view>
  79. <!-- <view class="flex-1 red" catchTap="openBh" style="border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;">批量驳回</view> -->
  80. <view class="flex-2 blue" style="border-left:1px solid #f1f1f1" catchTap="openTg">批量通过</view>
  81. </view>
  82. <!-- 弹出框 -->
  83. <view class="windows" a:if="{{isBh}}">
  84. <view class="windows-box">
  85. <view class="windows-title">确认不通过</view>
  86. <view class="windows-content">
  87. <textarea value="{{textArea}}" onInput="bindTextAreaBlur" maxlength="50" placeholder="请输入不通过原因"/>
  88. </view>
  89. <view class="windows-btn flex-box flex-v-ce">
  90. <view class="flex-1" catchTap="closeBh">取消</view>
  91. <button type="default" loading="{{disabled}}" class="flex-1" disabled="{{disabled}}" catchTap="confirmBh">确定</button>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 结果弹窗 -->
  96. <view class="windows" a:if="{{isResult}}">
  97. <view class="windows-box" style="margin-top:15%">
  98. <view class="windows-title">复核结果</view>
  99. <block a:if="{{!isShowError}}">
  100. <view class="windows-content" style="padding:20rpx;">
  101. <progress percent="{{percentage}}" show-info stroke-width="10" />
  102. <view class="resultsBox">
  103. <view class="flex-box-ce results">
  104. <view style="width:60rpx;padding:0;text-align:center"></view>
  105. <view class="flex-1">奖扣对象</view>
  106. <view class="flex-2">事件内容</view>
  107. <view class="flex-1">积分</view>
  108. <view class="flex-2">处理结果</view>
  109. </view>
  110. <view a:for="{{results}}" class="flex-box-ce results">
  111. <view style="width:60rpx;padding:0;text-align:center">{{results.length-index}}</view>
  112. <view class="flex-1">{{item.name}}</view>
  113. <view class="flex-2" style="padding: 0.1rem 0.1rem;">{{item.remark}}</view>
  114. <view class="flex-1">
  115. {{ item.point>0? '+'+item.point:item.point }}
  116. <text>{{ item.pt_id==3? 'B分':'A分' }}</text>
  117. </view>
  118. <view class="green flex-2" a:if="{{item.msg=='提交成功'}}">{{item.msg}}</view>
  119. <view class="red flex-2" a:else>{{item.msg}}</view>
  120. </view>
  121. </view>
  122. </view>
  123. <view class="windows-btn flex-box flex-v-ce" a:if="{{results.length==resultList.length}}">
  124. <button type="default" class="flex-1" catchTap="closeTc">确定</button>
  125. </view>
  126. </block>
  127. <view a:else class="windows-content" style="padding:20rpx;">
  128. <view style="text-align: center;margin-bottom:20rpx" class="red">服务器繁忙,请稍后再试</view>
  129. <view class="windows-btn flex-box flex-v-ce">
  130. <button type="default" class="flex-1" catchTap="closeTc">确定</button>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <select-staff defaultUser="{{employee_ids}}" isAllSelect="{{false}}" isShow="{{showStaff}}" a:if="{{showStaff==true}}" onClose="onClose" onConfirm="onConfirmStaff"></select-staff>
  136. </view>