propertyFeeStatistics.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <div class="main">
  3. <div class="search">
  4. <el-select v-model="mixins_query.communityId" placeholder="选择社区" clearable>
  5. <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
  6. </el-select>
  7. <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
  8. <div class="search-icon">
  9. <el-tooltip class="item" effect="light" placement="bottom" content="导出">
  10. <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
  11. </el-tooltip>
  12. </div>
  13. </div>
  14. <zz-table
  15. :cols="cols"
  16. :settings="{ showIndex: false, stripe: true, summaryCol: summaryColData }"
  17. :loading="mixins_onQuery"
  18. :summaryData="{}"
  19. :data="mixins_list"
  20. :pageset="mixins_pageset"
  21. @page-change="pageChange"
  22. >
  23. </zz-table>
  24. </div>
  25. </template>
  26. <script>
  27. import list from '@utils/list.js';
  28. export default {
  29. mixins: [list],
  30. data() {
  31. return {
  32. cols: [
  33. {
  34. label: '缴费情况',
  35. prop: 'communityName'
  36. },
  37. {
  38. label: '01月',
  39. prop: 'amount'
  40. },
  41. {
  42. label: '02月',
  43. prop: 'amount'
  44. },
  45. {
  46. label: '03月',
  47. prop: 'amount'
  48. },
  49. {
  50. label: '04月',
  51. prop: 'amount'
  52. },
  53. {
  54. label: '05月',
  55. prop: 'amount'
  56. },
  57. {
  58. label: '06月',
  59. prop: 'amount'
  60. },
  61. {
  62. label: '07月',
  63. prop: 'amount'
  64. },
  65. {
  66. label: '08月',
  67. prop: 'amount'
  68. },
  69. {
  70. label: '09月',
  71. prop: 'amount'
  72. },
  73. {
  74. label: '10月',
  75. prop: 'amount'
  76. },
  77. {
  78. label: '11月',
  79. prop: 'amount'
  80. },
  81. {
  82. label: '12月',
  83. prop: 'amount'
  84. },
  85. {
  86. label: '合计',
  87. prop: 'total'
  88. }
  89. ],
  90. mixins_post: 'post',
  91. summaryColData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13],
  92. communityArr: []
  93. };
  94. },
  95. created() {
  96. this.mixins_dataUrl = '/sc-charge/payment/record/page';
  97. this.mixins_query = {
  98. accountType: 1,
  99. paymentType: 1
  100. };
  101. this.mixins_search();
  102. this.getorgTree();
  103. },
  104. mounted() {},
  105. methods: {
  106. exportExcel() {
  107. this.__exportExcel('/sc-charge/payment/record/export/excel', this.mixins_query);
  108. },
  109. getorgTree() {
  110. this.$http
  111. .get('/sc-community/assets/community/list')
  112. .then((data) => {
  113. this.communityArr = data.data;
  114. this.$store.commit('setAreaSelect', data.data);
  115. })
  116. .catch(function () {});
  117. }
  118. }
  119. };
  120. </script>