123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <!-- 营收统计 -->
- <template>
- <view class="container">
- <view class="table">
- <view class="table-date" v-if="currentDate">{{ currentDate.join(' 至 ') }}</view>
- <view class="table-box">
- <uni-table emptyText="暂无更多数据">
- <!-- 表头行 -->
- <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">{{ item.road }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.num }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.road }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.num }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
- <uni-td class="table-box-td" align="center">{{ item.really }}</uni-td>
- </uni-tr>
- </uni-table>
- </view>
- <view class="table-pagination">
- <uni-pagination show-icon="true" :total="tableData.total" :current="tableData.current"></uni-pagination>
- </view>
- </view>
- <view class="total">
- <view>
- 车辆<text>{{ totalData.num }}</text>辆,应收金额<text>{{ totalData.really }}</text>元,实收金额<text>{{ totalData.really }}</text>元,
- 欠费金额<text>{{ totalData.really }}</text>元,其中贵州银行快捷支付<text>{{ totalData.really }}</text>元,贵州银行聚合支付<text>{{ totalData.really }}</text>元,微信支付<text>{{ totalData.really }}</text>元,无感支付<text>{{ totalData.really }}</text>元,现金支付<text>{{ totalData.really }}</text>元
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- currentDate: {
- type: Array,
- default: []
- },
- tableTh: {
- type: Array,
- default: () => {
- return [
- { field: '路段名称', width: 120 },
- { field: '车辆(辆)', width: 80 },
- { field: '应收金额(元)', width: 80 },
- { field: '实收金额(次)', width: 80 },
- { field: '欠费金额(元)', width: 80 },
- { field: '贵州银行快捷支付(元)', width: 150 },
- { field: '贵州银行聚合支付(元)', width: 150 },
- { field: '微信(元)', width: 80 },
- { field: '无感(元)', width: 80 },
- { field: '现金(元)', width: 80 }
- ]
- }
- },
- tableData: {
- type: Object,
- default: () => {
- return {
- current: 1,
- total: 30,
- list: [{
- num: 1001,
- name: 'xxx',
- road: '金科路',
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- },
- {
- num: 1001,
- name: 'xxx',
- road: '金科路',
- should: 100,
- really: 80
- }
- ]
- }
- }
- },
- totalData: {
- type: Object,
- default: () => {
- return {
- num: 100,
- really: 80
- }
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import './report.scss';
- </style>
|