1
MrShi
2025-01-18 b417a422c08ceabd31fa7feaba42fd8a7b1e86d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<template>
    <GlobalWindow
        width="100%"
        :title="title"
        :withFooter="false"
        :visible.sync="visible"
        :confirm-working="isWorking"
        @confirm="confirm">
        <div class="zd">
            <div class="zd_list">
                <div class="zd_list_row">
                    <span>待收款账单数</span>
                    <span>{{info.inAmount || 0}}</span>
                </div>
                <div class="zd_list_row">
                    <span>待收款金额</span>
                    <span>¥{{info.inFee || 0}}</span>
                </div>
                <div class="zd_list_row">
                    <span>待付款账单数</span>
                    <span>{{info.payAmount || 0}}</span>
                </div>
                <div class="zd_list_row">
                    <span>待付款金额</span>
                    <span>¥{{info.payFee || 0}}</span>
                </div>
            </div>
            <div class="zd_content">
                <div class="zd_content_label">
                    <span>账单</span>
                </div>
                <el-table
                    :data="info.ywContractBillList"
                    border
                    style="width: 100%">
                    <el-table-column
                        prop="date"
                        label="账单编号">
                    </el-table-column>
                    <el-table-column
                        label="费用类型">
                        <template slot-scope="{row}">
                            <span v-if="row.costType === 0">租赁费</span>
                            <span v-if="row.costType === 1">物业费</span>
                            <span v-if="row.costType === 2">租赁押金</span>
                            <span v-if="row.costType === 3">物业押金</span>
                            <span v-if="row.costType === 4">水电费</span>
                            <span v-if="row.costType === 5">杂项费</span>
                            <span v-if="row.costType === 6">其他</span>
                            <span v-if="row.costType === 7">保证金</span>
                        </template>
                    </el-table-column>
                    <el-table-column
                        label="计费周期">
                        <template slot-scope="{row}">
                            {{row.startDate}}~{{row.endDate}}
                        </template>
                    </el-table-column>
                    <el-table-column
                        prop="receivableFee"
                        label="应收付金额/原始应收付">
                    </el-table-column>
                    <el-table-column
                        prop="actReceivableFee"
                        label="实收/付金额">
                    </el-table-column>
                    <el-table-column
                        prop="needReceivableFee"
                        label="需收/付金额">
                    </el-table-column>
                    <el-table-column
                        prop="receivableFee"
                        label="应收/付日期">
                    </el-table-column>
                </el-table>
            </div>
        </div>
    </GlobalWindow>
</template>
 
<script>
  import GlobalWindow from '@/components/common/GlobalWindow'
  import BaseOpera from '@/components/base/BaseOpera'
  import { getWaitDealList } from '@/api/ywContractBill'
  export default {
    name: 'pendingBills',
    components: {
      GlobalWindow
    },
    extends: BaseOpera,
    data () {
      return {
        info: []
      }
    },
    methods: {
      open (title, contractId) {
        this.title = title
        getWaitDealList(contractId)
            .then(res => {
              this.info = res
              this.visible = true
            })
      }
    }
  }
</script>
 
<style lang="scss" scoped>
    .zd {
        width: 100%;
        .zd_list {
            width: 100%;
            background: #f2f2f2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 20px;
            padding: 20px;
            box-sizing: border-box;
            border-radius: 10px;
            .zd_list_row {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                span {
                    &:nth-child(1) {
                        font-size: 14px;
                        color: #333333;
                    }
                    &:nth-child(2) {
                        font-size: 20px;
                        color: #333333;
                        margin-top: 10px;
                    }
                }
            }
        }
        .zd_content {
            width: 100%;
            margin-top: 20px;
            .zd_content_label {
                display: flex;
                align-items: center;
                margin-bottom: 20px;
                span {
                    font-weight: 500;
                    font-size: 18px;
                    color: #2080f7;
                }
            }
        }
    }
</style>