checkorderreportcount.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view class="wrap">
  3. <uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="返回"
  4. @clickLeft="toBack">
  5. <view class="nav-title">
  6. <text>{{title}}</text>
  7. </view>
  8. </uni-nav-bar>
  9. <view class="container">
  10. <uni-table ref="order_table" border stripe type="" emptyText="暂无更多数据">
  11. <uni-tr>
  12. <uni-th width="140" align="center">
  13. <view style="text-align: center;color: black;">运维人员姓名</view>
  14. </uni-th>
  15. <uni-th align="center">
  16. <view style="text-align: center;color: black;">任务数量</view>
  17. </uni-th>
  18. <uni-th align="center">
  19. <view style="text-align: center;color: black;">处理中</view>
  20. </uni-th>
  21. <uni-th align="center">
  22. <view style="text-align: center;color: black;">已处理</view>
  23. </uni-th>
  24. </uni-tr>
  25. <uni-tr v-for="(item, index) in tableData" :key="index">
  26. <uni-td>
  27. <view style="text-align: center;">{{ item.servicePersonName }}</view>
  28. </uni-td>
  29. <uni-td align="center">
  30. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  31. @click="onCheckOrderCountClick(item)">{{ item.orderCount }}</view>
  32. </uni-td>
  33. <uni-td align="center">
  34. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  35. @click="onCheckOrderProcessCountClick(item)">{{ item.processingOrderCount }}
  36. </view>
  37. </uni-td>
  38. <uni-td align="center">
  39. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  40. @click="onCheckOrderReportCountClick(item)">{{ item.reportOrderCount }}
  41. </view>
  42. </uni-td>
  43. </uni-tr>
  44. </uni-table>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import http from '@/http/api.js';
  50. export default {
  51. components: {
  52. },
  53. onLoad(option) {
  54. this.getCountInfo();
  55. },
  56. data() {
  57. return {
  58. title: '维修任务统计报表',
  59. tableData: [],
  60. }
  61. },
  62. computed: {
  63. },
  64. onShow() {
  65. },
  66. methods: {
  67. toBack() {
  68. uni.navigateBack({
  69. delta: 1
  70. })
  71. },
  72. onCheckOrderCountClick(item){
  73. var url = '/pages/check-order/servicepersoncheckorderlist?type=1&userId='+item.userId;
  74. uni.navigateTo({
  75. url: url
  76. })
  77. },
  78. onCheckOrderProcessCountClick(item){
  79. var url = '/pages/check-order/servicepersoncheckorderlist?type=2&userId='+item.userId;
  80. uni.navigateTo({
  81. url: url
  82. })
  83. },
  84. onCheckOrderReportCountClick(item){
  85. var url = '/pages/check-order/servicepersoncheckorderlist?type=3&userId=' + item.userId;
  86. uni.navigateTo({
  87. url: url
  88. })
  89. },
  90. getCountInfo() {
  91. var that = this;
  92. http.request({
  93. url: '/galaxy-business/rtu/check/order/statistics',
  94. method: 'GET',
  95. }).then(res => {
  96. if (res.data != null) {
  97. that.tableData = res.data;
  98. }
  99. }).catch(err => {
  100. console.log(err)
  101. })
  102. },
  103. }
  104. }
  105. </script>
  106. <style>
  107. </style>
  108. <style lang="scss" scoped>
  109. .wrap {
  110. padding: 0 0 100rpx;
  111. }
  112. </style>