taskStatistical.axml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <view>
  2. <view class="{{popupCx}}">
  3. <view class="userSelect" a:if="{{isAdministrator}}" catchTap="openSelect">
  4. <text class="{{isAllChecked? 'zk':''}} msg">{{names}}</text>
  5. <text class="ren">{{users.length}}人</text>
  6. </view>
  7. <view class="flex-box flex-v-ce staff-all">
  8. <view class="flex-1"></view>
  9. <label a:if="{{isAdministrator}}" class="flex-box-ce">
  10. <text class="rule-all-text">只看自己</text>
  11. <checkbox onChange="ruleActiveAll" checked="{{isAllChecked}}"></checkbox>
  12. </label>
  13. </view>
  14. <view class="header margin-bottom">
  15. <view class="title">任务现状</view>
  16. <view>
  17. <view class="flex-box-ce item" style="border-bottom:1px solid #FAFAFB">
  18. <text class="flex-1 flex-box-ce" style="border-right:1px solid #FAFAFB" catchTap="openUrl" data-index="1">
  19. <view class="img" style="background-color: rgba(245,108,108,0.1);">
  20. <image mode="scaleToFill" src="../../../image/yq.png" /></view>
  21. <view class="msg">
  22. <view class="num">{{result.now.expired}}</view>
  23. <text>逾期未完成</text>
  24. </view>
  25. </text>
  26. <text class="flex-1 flex-box-ce" style="padding-left:0.32rem" catchTap="openUrl" data-index="2">
  27. <view class="img" style="background-color: rgba(230,162,60,0.1);">
  28. <image mode="scaleToFill" src="../../../image/jr.png" /></view>
  29. <view class="msg">
  30. <view class="num">{{result.now.today_expire}}</view>
  31. <text>今日到期</text>
  32. </view>
  33. </text>
  34. </view>
  35. <view class="flex-box-ce item">
  36. <text class="flex-1 flex-box-ce" style="border-right:1px solid #FAFAFB" catchTap="openUrl" data-index="3">
  37. <view class="img" style="background-color: rgba(38,162,255,0.1);">
  38. <image mode="scaleToFill" src="../../../image/jxz.png" /></view>
  39. <view class="msg">
  40. <view class="num">{{result.now.doing}}</view>
  41. <text>进行中</text>
  42. </view>
  43. </text>
  44. <text class="flex-1 flex-box-ce" style="padding-left:0.32rem" catchTap="openUrl" data-index="4">
  45. <view class="img" style="background-color: rgba(103,194,58,0.1);">
  46. <image mode="scaleToFill" src="../../../image/dsp.png" /></view>
  47. <view class="msg">
  48. <view class="num">{{result.now.reviewing}}</view>
  49. <text>待审批</text>
  50. </view>
  51. </text>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="main margin-bottom">
  56. <view class="title flex-box-ce flex-d-center">
  57. <text catchTap="showText" data-index="2">任务完成统计 <text class="text2">?</text></text>
  58. <view class="flex-box-ce" catchTap="showText" data-index="5">
  59. <text class="blue jt" data-num="1">{{start_date}}</text>
  60. <text style="padding:0 10rpx">~</text>
  61. <text class="blue jt" data-num="2">{{end_date}}</text>
  62. </view>
  63. <!-- <view class="jt" catchTap="openDate">{{date}}</view> -->
  64. </view>
  65. <view>
  66. <view style="position: relative;">
  67. <f2 onInit="onInitChart"></f2>
  68. <view class="bfb">{{bfb}}%</view>
  69. </view>
  70. <view class="flex-box-ce">
  71. <view class="item2 flex-1">
  72. <text>{{result.complete.all}}条</text>
  73. <view>总任务数</view>
  74. </view>
  75. <view class="item2 flex-1">
  76. <text>{{result.complete.done}}条</text>
  77. <view>完成任务数</view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="main" style="margin-bottom:1rem">
  83. <view class="title" catchTap="showText" data-index="3">完成情况占比 <text class="text2">?</text></view>
  84. <view style="position: relative;">
  85. <f2 onInit="onInitChart2"></f2>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="box" animation="{{animationInfo}}">
  90. <select-section-staff isLeadership="{{true}}" a:if="{{showStaff}}" isBoss="{{true}}" selectUser="{{users}}" onClose="onClose" onConfirm="onSelectUser" />
  91. </view>
  92. <view a:if="{{isBh=='5'}}" class="windows">
  93. <view class="windows-box">
  94. <view class="windows-title">请选择时间区间</view>
  95. <view class="windows-content" style="height:2rem">
  96. <view class="flex-box-ce flex-center-center" style="padding-top:0.6rem">
  97. <text class="blue jt" data-num="1" catchTap="openDate">{{start_date2}}</text>
  98. <text style="padding:0 20rpx">~</text>
  99. <text class="blue jt" data-num="2" catchTap="openDate">{{end_date2}}</text>
  100. </view>
  101. </view>
  102. <view class="btns flex-box flex-v-ce">
  103. <view class="flex-1" catchTap="showText" data-index="4">取消</view>
  104. <view class="flex-1" catchTap="qrDate">确定</view>
  105. </view>
  106. </view>
  107. </view>
  108. <view a:if="{{isBh=='2'}}" class="windows">
  109. <view class="windows-box" style="top:30%">
  110. <view class="windows-title">温馨提示</view>
  111. <view class="windows-content">
  112. <view class="chu">支持自定义选择时间范围</view>
  113. <view class="chu">总任务数</view>
  114. <view>只要任务从开始到截止与选择时间段有交叉,或者在选择时间段内完成的,都会加入统计</view>
  115. <view class="chu">完成任务数</view>
  116. <view>只已经完成的任务,包含待审批和已审批通过的,不计算审批驳回的</view>
  117. <view class="chu">百分比计算方式</view>
  118. <view>完成百分比=完成任务数/总任务数</view>
  119. </view>
  120. <view class="windows-btn flex-box flex-v-ce">
  121. <view class="flex-1" catchTap="showText" data-index="4">我知道了</view>
  122. </view>
  123. </view>
  124. </view>
  125. <view a:if="{{isBh=='3'}}" class="windows">
  126. <view class="windows-box">
  127. <view class="windows-title">温馨提示</view>
  128. <view class="windows-content">
  129. <view class="chu">按时完成数</view>
  130. <view>按时完成任务为截止时间之前完成的任务</view>
  131. </view>
  132. <view class="windows-btn flex-box flex-v-ce">
  133. <view class="flex-1" catchTap="showText" data-index="4">我知道了</view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>