reallyReceivable.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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.road }}</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.num }}</uni-td>
  22. <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
  23. </uni-tr>
  24. </uni-table>
  25. </view>
  26. <view class="table-pagination">
  27. <uni-pagination show-icon="true" :total="tableData.total" :current="tableData.current"></uni-pagination>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. props: {
  35. currentDate: {
  36. type: Array,
  37. default: []
  38. },
  39. tableTh: {
  40. type: Array,
  41. default: () => {
  42. return [
  43. { field: '时间', width: 120 },
  44. { field: '应收金额(元)', width: 80 },
  45. { field: '实收金额(元)', width: 80 },
  46. { field: '逃费金额(元)', width: 80 },
  47. { field: `“一分钱停车”减免`, width: 120 },
  48. { field: '“八折停车”减免', width: 110 },
  49. { field: '欠费金额(元)', width: 80 },
  50. { field: '退款金额(元)', width: 80 }
  51. ]
  52. }
  53. },
  54. tableData: {
  55. type: Object,
  56. default: () => {
  57. return {
  58. current: 1,
  59. total: 30,
  60. list: [{
  61. num: 1001,
  62. name: 'xxx',
  63. road: '金科路',
  64. really: 80
  65. },
  66. {
  67. num: 1001,
  68. name: 'xxx',
  69. road: '金科路',
  70. should: 100,
  71. really: 80
  72. },
  73. {
  74. num: 1001,
  75. name: 'xxx',
  76. road: '金科路',
  77. should: 100,
  78. really: 80
  79. },
  80. {
  81. num: 1001,
  82. name: 'xxx',
  83. road: '金科路',
  84. should: 100,
  85. really: 80
  86. },
  87. {
  88. num: 1001,
  89. name: 'xxx',
  90. road: '金科路',
  91. should: 100,
  92. really: 80
  93. },
  94. {
  95. num: 1001,
  96. name: 'xxx',
  97. road: '金科路',
  98. should: 100,
  99. really: 80
  100. },
  101. {
  102. num: 1001,
  103. name: 'xxx',
  104. road: '金科路',
  105. should: 100,
  106. really: 80
  107. },
  108. {
  109. num: 1001,
  110. name: 'xxx',
  111. road: '金科路',
  112. should: 100,
  113. really: 80
  114. },
  115. {
  116. num: 1001,
  117. name: 'xxx',
  118. road: '金科路',
  119. should: 100,
  120. really: 80
  121. }
  122. ]
  123. }
  124. }
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. @import './report.scss';
  131. </style>