tollCollectorPerformance.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!-- 收费员业绩统计 -->
  2. <template>
  3. <view class="container">
  4. <view class="table">
  5. <view class="table-date" v-if="currentDate">{{ currentDate.join(' 至 ') }}</view>
  6. <view class="table-box">
  7. <uni-table emptyText="暂无更多数据">
  8. <!-- 表头行 -->
  9. <uni-tr>
  10. <uni-th class="table-box-th" align="center" v-for="(item, index) in tableTh" :key="index" :width="item.width || ''">{{ item.field }}
  11. </uni-th>
  12. </uni-tr>
  13. <!-- 表格数据行 -->
  14. <uni-tr v-for="(item, index) in tableData.list" :key="index">
  15. <uni-td class="table-box-td" align="center">{{ item.num }}</uni-td>
  16. <uni-td class="table-box-td" align="center">{{ item.name }}</uni-td>
  17. <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
  18. <uni-td class="table-box-td" align="center">{{ item.should }}</uni-td>
  19. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  20. </uni-tr>
  21. </uni-table>
  22. </view>
  23. <view class="table-pagination">
  24. <uni-pagination show-icon="true" :total="tableData.total" :current="tableData.current"></uni-pagination>
  25. </view>
  26. </view>
  27. <view class="total">
  28. <view>
  29. 应收金额<text>{{ totalData.should }}</text>元,实收金额<text>{{ totalData.really }}</text>元
  30. </view>
  31. <view>
  32. 现金收入<text>{{ totalData.cash }}</text>元,非现金收入<text>{{ totalData.noCash }}</text>元
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. props: {
  40. currentDate: {
  41. type: Array,
  42. default: []
  43. },
  44. tableTh: {
  45. type: Array,
  46. default: () => {
  47. return [
  48. { field: '工号', width: 80 },
  49. { field: '姓名', width: 80 },
  50. { field: '所属路段', width: 120 },
  51. { field: '应收金额(元)', width: 80 },
  52. { field: '实收金额(元)', width: 80 }
  53. ]
  54. }
  55. },
  56. tableData: {
  57. type: Object,
  58. default: () => {
  59. return {
  60. current: 1,
  61. total: 30,
  62. list: [{
  63. num: 1001,
  64. name: 'xxx',
  65. road: '金科路',
  66. should: 100,
  67. really: 80
  68. },
  69. {
  70. num: 1001,
  71. name: 'xxx',
  72. road: '金科路',
  73. should: 100,
  74. really: 80
  75. },
  76. {
  77. num: 1001,
  78. name: 'xxx',
  79. road: '金科路',
  80. should: 100,
  81. really: 80
  82. },
  83. {
  84. num: 1001,
  85. name: 'xxx',
  86. road: '金科路',
  87. should: 100,
  88. really: 80
  89. },
  90. {
  91. num: 1001,
  92. name: 'xxx',
  93. road: '金科路',
  94. should: 100,
  95. really: 80
  96. },
  97. {
  98. num: 1001,
  99. name: 'xxx',
  100. road: '金科路',
  101. should: 100,
  102. really: 80
  103. },
  104. {
  105. num: 1001,
  106. name: 'xxx',
  107. road: '金科路',
  108. should: 100,
  109. really: 80
  110. },
  111. {
  112. num: 1001,
  113. name: 'xxx',
  114. road: '金科路',
  115. should: 100,
  116. really: 80
  117. },
  118. {
  119. num: 1001,
  120. name: 'xxx',
  121. road: '金科路',
  122. should: 100,
  123. really: 80
  124. }
  125. ]
  126. }
  127. }
  128. },
  129. totalData: {
  130. type: Object,
  131. default: () => {
  132. return {
  133. should: 100,
  134. really: 80,
  135. cash: 500,
  136. noCash: 200
  137. }
  138. }
  139. }
  140. }
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. @import './report.scss';
  145. </style>