reallyReceivable.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!-- 应收实收分析 -->
  2. <template>
  3. <view class="container">
  4. <view class="table">
  5. <!-- <view class="table-date" v-if="params.queryDate">{{ params.title }}</view> -->
  6. <view class="table-box">
  7. <TableRanking :loading="loading" :tableTh="tableTh" :tableData="tableData" padding="0" :isScroll="true" />
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import TableRanking from '@/components/tableRanking.vue';
  14. export default {
  15. components: {
  16. TableRanking
  17. },
  18. props: {
  19. tableTh: {
  20. type: Array,
  21. default: () => {
  22. return [
  23. {
  24. field: '时间',
  25. width: 130,
  26. key: 'statisTime'
  27. },
  28. {
  29. field: '应收金额(元)',
  30. width: 80,
  31. key: 'payAmount'
  32. },
  33. {
  34. field: '实收金额(元)',
  35. width: 80,
  36. key: 'realAmount'
  37. },
  38. {
  39. field: '逃费金额(元)',
  40. width: 80,
  41. key: 'runawayAmount'
  42. },
  43. {
  44. field: `“一分钱停车”减免`,
  45. width: 120,
  46. key: 'oneAmount'
  47. },
  48. {
  49. field: '“八折停车”减免',
  50. width: 110,
  51. key: 'eightAmount'
  52. },
  53. {
  54. field: '欠费金额(元)',
  55. width: 80,
  56. key: 'amtOwe'
  57. },
  58. {
  59. field: '退款金额(元)',
  60. width: 80,
  61. key: 'backAmount'
  62. }
  63. ];
  64. }
  65. }
  66. },
  67. data() {
  68. return {
  69. currentDate: [],
  70. tableData: {
  71. list: []
  72. },
  73. params: {
  74. reportType: 2,
  75. queryDate: '',
  76. title: ''
  77. },
  78. loading: false
  79. };
  80. },
  81. methods: {
  82. tabClick(item) {
  83. this.tabCurName = item.value;
  84. this.getReallyReceivableList();
  85. },
  86. getData(obj) {
  87. this.params = obj;
  88. this.getReallyReceivableList();
  89. },
  90. getReallyReceivableList() {
  91. this.loading = true;
  92. uni.$u.api.statisticalReportApi.getParkingReallyReceivableListApi(this.params).then((res) => {
  93. if (res.code === 200) {
  94. this.tableData.list = res.data.itemList;
  95. }
  96. this.loading = false;
  97. });
  98. }
  99. }
  100. };
  101. </script>
  102. <style lang="scss" scoped>
  103. @import './../../styles/report.scss';
  104. </style>