<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.rentArea}}㎡ 
 | 
                        </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> 
 |