| | |
| | | <el-tag type="info" v-if="info.status === 3">退租结算中</el-tag> |
| | | <el-tag type="info" v-if="info.status === 4">已退租</el-tag> |
| | | </div> |
| | | <el-button plain type="danger" v-if="[0, 1, 2].includes(info.status)" @click="refund">退租</el-button> |
| | | <div> |
| | | <el-button type="primary" @click="$refs.pendingBills.open('待处理账单')">查看待处理账单</el-button> |
| | | <el-button @click="$refs.terminationAgreement.open('退租协议')">查看退租协议</el-button> |
| | | <el-button plain type="danger" v-if="[0, 1, 2].includes(info.status)" @click="refund">退租</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="remark" v-if="info">{{info.remark}}</div> |
| | | <div class="remark" v-if="info && info.status === 3">{{info.btRemark}}</div> |
| | |
| | | label="账单来源"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type === 0">合同账单</span> |
| | | <span v-if="row.type === 1">自建账单</span> |
| | | <span v-else>自建账单</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </div> |
| | | <!-- 退租 --> |
| | | <TerminateLease ref="terminateLease" @success="getData" /> |
| | | <!-- 待处理账单 --> |
| | | <PendingBills ref="pendingBills" /> |
| | | <!-- 退租协议 --> |
| | | <TerminationAgreement ref="terminationAgreement" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import TerminateLease from './terminateLease' |
| | | import PendingBills from './pendingBills' |
| | | import TerminationAgreement from './terminationAgreement' |
| | | import { getById } from '@/api/contract' |
| | | import { fetchList } from '@/api/bill' |
| | | export default { |
| | | components: { |
| | | GlobalWindow, |
| | | TerminateLease |
| | | TerminateLease, |
| | | PendingBills, |
| | | TerminationAgreement |
| | | }, |
| | | extends: BaseOpera, |
| | | data() { |
| | |
| | | page: 1, |
| | | total: 0, |
| | | tableData: [], |
| | | |
| | | |
| | | loading: false |
| | | } |
| | | }, |