reallyReceivable.vue 2.2 KB

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