parkingReallyIncome.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. <TableRanking :loading="loading" :padding="'0'" :tableTh="tableTh" :tableData="tableData"
  8. @pageChange="pageChange" />
  9. </view>
  10. </view>
  11. <view class="total">
  12. <view>
  13. 停车数量<text>{{ totalData.num || 0 }}</text>辆,实收金额<text>{{ totalData.really || 0 }}</text>元
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import TableRanking from '@/components/tableRanking.vue'
  20. export default {
  21. components: {
  22. TableRanking
  23. },
  24. props: {
  25. tableTh: {
  26. type: Array,
  27. default: () => {
  28. return [{
  29. field: '停车场名称',
  30. width: 120
  31. },
  32. {
  33. field: '停车数量(次)',
  34. width: 120
  35. },
  36. {
  37. field: '实收金额(元)',
  38. width: 80
  39. }
  40. ]
  41. }
  42. }
  43. },
  44. data() {
  45. return {
  46. loading: false,
  47. tableData: {
  48. current: 1,
  49. total: 0,
  50. list: []
  51. },
  52. totalData: {},
  53. currentDate: [],
  54. beginTime: undefined,
  55. endTime: undefined
  56. }
  57. },
  58. methods: {
  59. getData(data) {
  60. if (data.length) {
  61. this.beginTime = data[0]
  62. this.endTime = data[1]
  63. }
  64. this.currentDate = data
  65. this.tableData.current = 1
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. @import './report.scss';
  72. </style>