123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <template>
- <view class="report">
- <view class="report-header">
- <view class="report-header-left">
- 收费员业绩统计
- </view>
- <view class="report-header-right">
- <view class="int">
- <u--input placeholder="开始日期" border="surround" v-model="form.startDate" :readonly="true" @focus="startDateShow = true">
- </u--input>
- <u-calendar :show="startDateShow" @confirm="startDateConfirm" @close="startDateShow = false"></u-calendar>
- </view>至
- <view class="int">
- <u--input placeholder="结束日期" border="surround" v-model="form.endDate" :readonly="true" @focus="endDateShow = true"></u--input>
- <u-calendar :show="endDateShow" @confirm="endDateConfirm" @close="endDateShow = false"></u-calendar>
- </view>
- </view>
- </view>
- <view class="report-total">
- <view>应收金额 <text>447437.00</text>元,实收金额 <text>301719.00</text>元,现金收入
- <text>285.00</text>元,非现金收<text>301434.00</text>元
- </view>
- </view>
- <view class="report-table">
- <t-table>
- <t-tr style="width: 1270rpx; background-color: #e6e6e6;">
- <t-th v-for="(item, index) in table.header" :key="index" style="width: 140rpx;">{{ item }}</t-th>
- </t-tr>
- <t-tr style="width: 1270rpx;background-color: #fff;" v-for="(item, index) in table.list" :key="index"
- :class="{'last-child': index === table.list.length - 1}">
- <t-td style="width: 140rpx;">{{ item.workNo }}</t-td>
- <t-td style="width: 140rpx;">{{ item.name }}</t-td>
- <t-td style="width: 140rpx;">{{ item.roadName }}</t-td>
- <t-td style="width: 140rpx;">{{ item.shouldMoney }}</t-td>
- <t-td style="width: 140rpx;">{{ item.realMoney }}</t-td>
- <t-td style="width: 140rpx;">{{ item.arrearsMoney }}</t-td>
- <t-td style="width: 140rpx;">{{ item.h5Money }}</t-td>
- <t-td style="width: 140rpx;">{{ item.pdaMoney }}</t-td>
- <t-td style="width: 140rpx;">{{ item.cashMoney }}</t-td>
- </t-tr>
- </t-table>
- </view>
- </view>
- </template>
- <script>
- import tTable from '@/components/t-table/t-table.vue';
- import tTh from '@/components/t-table/t-th.vue';
- import tTr from '@/components/t-table/t-tr.vue';
- import tTd from '@/components/t-table/t-td.vue';
- export default {
- components: {
- tTable,
- tTh,
- tTr,
- tTd
- },
- data() {
- return {
- form: {
- startDate: '',
- endDate: ''
- },
- startDateShow: false,
- endDateShow: false,
- table: {
- header: ['工号', '姓名', '所属路段', '应收金额(元)', '实收金额(元)', '欠费金额(元)', '移动端支付(元)', 'PDA扫码收入(元)', '现金收入(元)'],
- list: [{
- workNo: '00001',
- name: '张政林',
- roadName: '丰林路',
- shouldMoney: '0.00',
- realMoney: '0.00',
- arrearsMoney: '2.00',
- h5Money: '3.00',
- pdaMoney: '6.00',
- cashMoney: '0.00'
- },
- {
- workNo: '00008',
- name: '运维人员',
- roadName: '玉兔山路',
- shouldMoney: '0.00',
- realMoney: '0.00',
- arrearsMoney: '2.00',
- h5Money: '3.00',
- pdaMoney: '6.00',
- cashMoney: '0.00'
- },
- {
- workNo: '00012',
- name: '陈静',
- roadName: '教育路',
- shouldMoney: '0.00',
- realMoney: '0.00',
- arrearsMoney: '2.00',
- h5Money: '3.00',
- pdaMoney: '6.00',
- cashMoney: '0.00'
- },
- {
- workNo: '00013',
- name: '孟大顺',
- roadName: '党固路三段',
- shouldMoney: '0.00',
- realMoney: '0.00',
- arrearsMoney: '2.00',
- h5Money: '3.00',
- pdaMoney: '6.00',
- cashMoney: '0.00'
- },
- {
- workNo: '00014',
- name: '田志英',
- roadName: '本杰路',
- shouldMoney: '0.00',
- realMoney: '0.00',
- arrearsMoney: '2.00',
- h5Money: '3.00',
- pdaMoney: '6.00',
- cashMoney: '0.00'
- }
- ]
- }
- }
- },
- methods: {
- startDateConfirm(val) {
- console.log(val)
- this.form.startDate = val[0]
- this.startDateShow = false
- },
- endDateConfirm(val) {
- console.log(val)
- this.form.endDate = val[0]
- this.endDateShow = false
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .report {
- padding: 28rpx;
- font-family: PingFangSC-regular;
- &-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- &-left {
- border-left: solid 4px #EC0D0D;
- padding-left: 10rpx;
- color: #101010;
- font-size: 30rpx;
- }
- &-right {
- display: flex;
- align-items: center;
- font-size: 26rpx;
- .int {
- width: 210rpx;
- }
- }
- }
- &-total {
- font-size: 28rpx;
- color: #101010;
- margin: 40rpx 0;
- line-height: 40rpx;
- text {
- color: #FFB253;
- }
- }
- }
- </style>
|