MrShi
2025-02-07 7de835dea145fe8229f5f0100e2a90094e6d5b22
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
<template>
    <GlobalWindow
        :title="title"
        :visible.sync="visible"
        :withFooter="false"
        :confirm-working="isWorking"
        @close="close"
        @confirm="confirm">
        <div class="main">
            <div class="main_head">
                <span>租客:{{info.renterName}}</span>
                <span>合同编号: {{info.code}}</span>
            </div>
            <div class="title">房源信息</div>
            <div class="list">
                <el-table :data="info.roomList" stripe>
                    <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip />
                    <el-table-column prop="buildingName" label="楼宇名称" show-overflow-tooltip />
                    <el-table-column label="楼层/房号" show-overflow-tooltip>
                        <template slot-scope="{row}">
                            {{row.floorName}}/{{row.roomNum}}
                        </template>
                    </el-table-column>
                    <el-table-column label="面积" show-overflow-tooltip>
                        <template slot-scope="{row}">
                            {{row.area}}㎡
                        </template>
                    </el-table-column>
                </el-table>
            </div>
            <div class="title">退租信息</div>
            <div class="list">
                <div class="item">
                    <div class="la">退租类型</div>
                    <div class="val" v-if="info.btType === 0">到期退租</div>
                    <div class="val" v-if="info.btType === 1">换房退租</div>
                    <div class="val" v-if="info.btType === 2">违约退租</div>
                    <div class="val" v-if="info.btType === 3">协商退租</div>
                </div>
                <div class="item">
                    <div class="la">退租日期</div>
                    <div class="val">{{ info.btDate }}</div>
                </div>
                <div class="item">
                    <div class="la">经办人</div>
                    <div class="val">{{ info.userName }}</div>
                </div>
                <div class="item">
                    <div class="la">协议签订日期</div>
                    <div class="val">{{ info.signDate }}</div>
                </div>
                <div class="item">
                    <div class="la">退租原因</div>
                    <div class="val">{{ info.btInfo }}</div>
                </div>
            </div>
        </div>
    </GlobalWindow>
</template>
 
<script>
  import GlobalWindow from '@/components/common/GlobalWindow'
  import BaseOpera from '@/components/base/BaseOpera'
  import { getById } from '@/api/contract'
  export default {
    name: "terminationAgreement",
    components: {
      GlobalWindow
    },
    extends: BaseOpera,
    data() {
      return {
        id: null,
        info: {}
      }
    },
    methods: {
      open (title, id) {
        this.title = title
        this.id = id
        this.getData()
      },
      getData () {
        getById(this.id)
          .then(res => {
            this.info = res
            this.visible = true
          })
      },
    }
  }
</script>
 
<style lang="scss" scoped>
    @import '@/assets/style/variables.scss';
    
    .main {
        .main_head {
            width: 100%;
            display: flex;
            flex-direction: column;
            padding: 0 0 30px 0;
            box-sizing: border-box;
            span {
                font-size: 15px;
                color: #333333;
                font-weight: 700;
                margin-bottom: 10px;
                &:last-child {
                    margin: 0 !important;
                }
            }
        }
        
        .title {
            font-weight: 500;
            font-size: 18px;
            color: $primary-color;
            margin-bottom: 15px;
        }
        
        .list {
            display: flex;
            flex-wrap: wrap;
            /*background: #F7F7F7;*/
            border-radius: 2px;
            /*padding: 15px 20px;*/
            margin-bottom: 20px;
            
            .item {
                width: 25%;
                margin-bottom: 16px;
                
                .la {
                    color: #7f7f7f;
                    margin-bottom: 10px;
                }
            }
        }
    }
</style>