revenueReport.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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.road }}</uni-td>
  16. <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
  17. <uni-td class="table-box-td" align="center">{{ item.num }}</uni-td>
  18. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  19. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  20. <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
  21. <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
  22. <uni-td class="table-box-td" align="center">{{ item.num }}</uni-td>
  23. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  24. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  25. </uni-tr>
  26. </uni-table>
  27. </view>
  28. <view class="table-pagination">
  29. <uni-pagination show-icon="true" :total="tableData.total" :current="tableData.current"></uni-pagination>
  30. </view>
  31. </view>
  32. <view class="total">
  33. <view>
  34. 车辆<text>{{ totalData.num }}</text>辆,应收金额<text>{{ totalData.really }}</text>元,实收金额<text>{{ totalData.really }}</text>元,
  35. 欠费金额<text>{{ totalData.really }}</text>元,其中贵州银行快捷支付<text>{{ totalData.really }}</text>元,贵州银行聚合支付<text>{{ totalData.really }}</text>元,微信支付<text>{{ totalData.really }}</text>元,无感支付<text>{{ totalData.really }}</text>元,现金支付<text>{{ totalData.really }}</text>元
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. currentDate: {
  44. type: Array,
  45. default: []
  46. },
  47. tableTh: {
  48. type: Array,
  49. default: () => {
  50. return [
  51. { field: '路段名称', width: 120 },
  52. { field: '车辆(辆)', width: 80 },
  53. { field: '应收金额(元)', width: 80 },
  54. { field: '实收金额(次)', width: 80 },
  55. { field: '欠费金额(元)', width: 80 },
  56. { field: '贵州银行快捷支付(元)', width: 150 },
  57. { field: '贵州银行聚合支付(元)', width: 150 },
  58. { field: '微信(元)', width: 80 },
  59. { field: '无感(元)', width: 80 },
  60. { field: '现金(元)', width: 80 }
  61. ]
  62. }
  63. },
  64. tableData: {
  65. type: Object,
  66. default: () => {
  67. return {
  68. current: 1,
  69. total: 30,
  70. list: [{
  71. num: 1001,
  72. name: 'xxx',
  73. road: '金科路',
  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. num: 1001,
  127. name: 'xxx',
  128. road: '金科路',
  129. should: 100,
  130. really: 80
  131. }
  132. ]
  133. }
  134. }
  135. },
  136. totalData: {
  137. type: Object,
  138. default: () => {
  139. return {
  140. num: 100,
  141. really: 80
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </script>
  148. <style lang="scss" scoped>
  149. @import './report.scss';
  150. </style>