glz_execute.axml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <view>
  2. <view class="{{popupCx}}">
  3. <view class="flex-box flex-v-ce selectItems border-bottom">
  4. <view data-index="1" class="{{dataIndex == 1? 'active':''}} flex-1" catchTap="activeItem">奖扣完成情况</view>
  5. <view data-index="2" class="{{dataIndex == 2? 'active':''}} flex-1" catchTap="activeItem" a:if="{{false}}">奖扣执行对比</view>
  6. </view>
  7. <view class="flex-box flex-v-ce tab">
  8. <view class="flex-1" onTap="openDate">
  9. <text class="{{showDate? 'activeView':''}}">{{month}}</text>
  10. </view>
  11. <view class="flex-1" onTap="selectTissue">
  12. <text class="{{showTissue? 'activeView':''}}" a:if="{{tissueValName}}">{{tissueValName}}</text>
  13. </view>
  14. <view class="flex-1" a:if="{{dataIndex==2}}">
  15. <picker onChange="bindPickerChange" value="{{activeIndex}}" range="{{array}}" range-key="name">
  16. <text class="picker">{{array[activeIndex].name}}</text>
  17. </picker>
  18. </view>
  19. </view>
  20. <block a:if="{{dataIndex == 2}}">
  21. <view class="flex-box flex-v-ce titles">
  22. <view class="flex-2" style="font-size:28rpx">管理者
  23. <text class="text2" catchTap="showText">?</text></view>
  24. <view class="flex-1">人均奖分(次)</view>
  25. <view class="flex-1">人均扣分(次)</view>
  26. </view>
  27. <view class="main">
  28. <scroll-view scroll-y="{{true}}" style="height: calc(100vh - 2.7rem);" a:if="{{list.length>0}}" onScrollToLower="onScrollToLower">
  29. <view catchTap="openDetail" data-item="{{item}}" class="flex-box flex-v-ce item border-bottom" a:for="{{list}}">
  30. <view class="flex-2 flex-box flex-v-ce">
  31. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  32. <view class="users">
  33. <view class="name">{{item.name}}</view>
  34. <view class="num2">管理{{item.scope_count}}人</view>
  35. </view>
  36. </view>
  37. <view class="flex-1">{{item.reward_count}}</view>
  38. <view class="flex-1">{{item.deduct_count}}</view>
  39. </view>
  40. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  41. </scroll-view>
  42. <no-data a:if="{{list.length==0}}" content="暂无数据"></no-data>
  43. </view>
  44. </block>
  45. <block a:else>
  46. <view class="flex-box flex-v-ce staff-all">
  47. <view class="flex-1"></view>
  48. <label class="flex-box-ce">
  49. <text class="rule-all-text">只看全部达标</text>
  50. <checkbox onChange="ruleActiveAll" checked="{{isAllChecked}}"></checkbox>
  51. </label>
  52. </view>
  53. <scroll-view scroll-y="{{true}}" style="height: calc(100vh - 2.5rem);" a:if="{{listTwo.length>0}}" onScrollToLower="onScrollToLower2">
  54. <view class="headed-box margin-top" a:for="{{listTwo}}" catchTap="openDetail" data-item="{{item}}">
  55. <view class="flex-box flex-v-ce">
  56. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx" fSize="24rpx"></img-box>
  57. <view class="name">{{item.name}}</view>
  58. <text class="index" a:if="{{item.status==1}}">全部达标</text>
  59. </view>
  60. <view class="flex-box flex-v-ce target_items">
  61. <view class="flex-1">
  62. <view class="num">{{item.reward.point}}</view>
  63. <view class="jiangfen">奖分</view>
  64. <view class="target">目标{{item.reward.target}}</view>
  65. </view>
  66. <view class="flex-1">
  67. <view class="num">{{item.deduction.point}}</view>
  68. <view class="jiangfen">扣分</view>
  69. <view class="target">目标{{item.deduction.target}}</view>
  70. </view>
  71. <view class="flex-1">
  72. <view class="num" a:if="{{item.ratio.enable==1}}">{{item.ratio.reward_ratio }}:1</view>
  73. <view class="num" a:else>-</view>
  74. <view class="jiangfen">奖扣比例</view>
  75. <view class="target">目标{{item.ratio.target}}:1</view>
  76. </view>
  77. <view class="flex-1">
  78. <view class="num">{{item.exec.count}}</view>
  79. <view class="jiangfen">奖扣人次</view>
  80. <view class="target">目标{{item.exec.target}}</view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="noDatas" a:if="{{isData2}}">没有更多咯</view>
  85. </scroll-view>
  86. <no-data a:if="{{listTwo.length==0}}" content="暂无数据"></no-data>
  87. </block>
  88. </view>
  89. <select-section defaultSection="{{tissueVal}}" isShow="{{showTissue}}" a:if="{{showTissue==true}}" onClose="onClose" onConfirm="onConfirmTissue"></select-section>
  90. </view>