123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!-- 应收实收分析 -->
- <template>
- <view class="container">
- <view class="table">
- <view class="table-date" v-if="params.queryDate">{{ params.title }}</view>
- <view class="table-box">
- <uni-table emptyText="暂无更多数据" :loading="loading">
- <!-- 表头行 -->
- <uni-tr>
- <uni-th class="table-box-th" align="center" v-for="(item, index) in tableTh" :key="index"
- :width="item.width || ''">{{ item.field }}
- </uni-th>
- </uni-tr>
- <!-- 表格数据行 -->
- <uni-tr v-for="(item, index) in tableData.list" :key="index">
- <uni-td class="table-box-td" align="center" v-for="(field, fIndex) in tableTh" :key="fIndex">
- {{ item[field.key] }}</uni-td>
- </uni-tr>
- </uni-table>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- tableTh: {
- type: Array,
- default: () => {
- return [{
- field: '时间',
- width: 120,
- key: 'statisTime'
- },
- {
- field: '应收金额(元)',
- width: 80,
- key: 'payAmount'
- },
- {
- field: '实收金额(元)',
- width: 80,
- key: 'realAmount'
- },
- {
- field: '逃费金额(元)',
- width: 80,
- key: 'runawayAmount'
- },
- {
- field: `“一分钱停车”减免`,
- width: 120,
- key: 'oneAmount'
- },
- {
- field: '“八折停车”减免',
- width: 110,
- key: 'eightAmount'
- },
- {
- field: '欠费金额(元)',
- width: 80,
- key: 'amtOwe'
- },
- {
- field: '退款金额(元)',
- width: 80,
- key: 'backAmount'
- }
- ]
- }
- }
- },
- data() {
- return {
- currentDate: [],
- tableData: {
- list: []
- },
- params: {
- reportType: 2,
- queryDate: '',
- title: ''
- },
- loading: false
- }
- },
- methods: {
- tabClick(item) {
- this.tabCurName = item.value
- this.getReallyReceivableList()
- },
- getData(obj) {
- this.params = obj
- this.getReallyReceivableList()
- },
- getReallyReceivableList() {
- this.loading = true
- uni.$u.api.statisticalReportApi.getReallyReceivableListApi(this.params).then(res => {
- if (res.code === 200) {
- this.tableData.list = res.data.itemList
- }
- this.loading = false
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import './report.scss';
- </style>
|