orgcheckorderreportcount.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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">机构名称</uni-th>
  13. <uni-th align="center">任务数量</uni-th>
  14. <uni-th align="center">未确认</uni-th>
  15. <uni-th align="center">处理中</uni-th>
  16. <uni-th align="center">已处理</uni-th>
  17. </uni-tr>
  18. <uni-tr v-for="(item, index) in tableData" :key="index">
  19. <uni-td>
  20. <view style="text-align: center;">{{ item.orgName }}</view>
  21. </uni-td>
  22. <uni-td align="center">
  23. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  24. @click="onCheckOrderCountClick(item)">{{ item.orderCount }}</view>
  25. </uni-td>
  26. <uni-td align="center">
  27. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  28. @click="onCheckOrderUnconfirmCountClick(item)">{{ item.unconfirmOrderCount }}
  29. </view>
  30. </uni-td>
  31. <uni-td align="center">
  32. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  33. @click="onCheckOrderProcessCountClick(item)">{{ item.processingOrderCount }}
  34. </view>
  35. </uni-td>
  36. <uni-td align="center">
  37. <view style="text-decoration-line: underline;text-align: center;color: coral;"
  38. @click="onCheckOrderReportCountClick(item)">{{ item.reportOrderCount }}
  39. </view>
  40. </uni-td>
  41. </uni-tr>
  42. </uni-table>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. import http from '@/http/api.js';
  48. export default {
  49. components: {},
  50. onLoad(option) {
  51. this.getCountInfo();
  52. },
  53. data() {
  54. return {
  55. title: '维修任务统计报表',
  56. tableData: [],
  57. }
  58. },
  59. computed: {},
  60. onShow() {},
  61. methods: {
  62. toBack() {
  63. uni.navigateBack({
  64. delta: 1
  65. })
  66. },
  67. onCheckOrderCountClick(item) {
  68. var url = '/pages/check-order/companycheckorderlist?type=1&deptId=' + item.deptId;
  69. uni.navigateTo({
  70. url: url
  71. })
  72. },
  73. onCheckOrderUnconfirmCountClick(item) {
  74. var url = '/pages/check-order/companycheckorderlist?type=2&deptId=' + item.deptId;
  75. uni.navigateTo({
  76. url: url
  77. })
  78. },
  79. onCheckOrderProcessCountClick(item) {
  80. var url = '/pages/check-order/companycheckorderlist?type=3&deptId=' + item.deptId;
  81. uni.navigateTo({
  82. url: url
  83. })
  84. },
  85. onCheckOrderReportCountClick(item){
  86. var url = '/pages/check-order/companycheckorderlist?type=4&deptId=' + item.deptId;
  87. uni.navigateTo({
  88. url: url
  89. })
  90. },
  91. getCountInfo() {
  92. var that = this;
  93. http.request({
  94. url: '/galaxy-business/rtu/check/order/org/statistics',
  95. method: 'GET',
  96. }).then(res => {
  97. if (res.data != null) {
  98. that.tableData = res.data;
  99. }
  100. }).catch(err => {
  101. console.log(err)
  102. })
  103. },
  104. }
  105. }
  106. </script>
  107. <style>
  108. </style>
  109. <style lang="scss" scoped>
  110. </style>