|
|
@@ -1,13 +1,8 @@
|
|
|
<template>
|
|
|
- <div class="list-view">
|
|
|
+ <div class="list-view" v-loading="tableLoading">
|
|
|
<div class="filters-container">
|
|
|
<el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
|
|
|
|
|
|
- <el-button @click="onCurrentChange(1)" type="primary" icon="el-icon-search" class="filter-item"
|
|
|
- >搜索
|
|
|
- </el-button>
|
|
|
-
|
|
|
- <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加</el-button>
|
|
|
<el-select
|
|
|
filterable
|
|
|
v-model="saleId"
|
|
|
@@ -53,6 +48,10 @@
|
|
|
:value="item.value"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
+ <el-button @click="onCurrentChange(1)" type="primary" icon="el-icon-search" class="filter-item"
|
|
|
+ >搜索
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加</el-button>
|
|
|
</div>
|
|
|
<el-table
|
|
|
:data="tableData"
|
|
|
@@ -65,16 +64,10 @@
|
|
|
cell-class-name="table-cell"
|
|
|
v-loading="$store.state.fetchingData"
|
|
|
>
|
|
|
- <el-table-column align="center" v-if="multipleMode" type="selection" width="50"></el-table-column>
|
|
|
+ <el-table-column v-if="multipleMode" type="selection" width="50"></el-table-column>
|
|
|
<el-table-column type="index" width="50"></el-table-column>
|
|
|
- <el-table-column align="center" prop="contractNumber" label="合同编号" width="200">
|
|
|
- <!-- <template slot="header" slot-scope="{column}">
|
|
|
- <sortable-header :column="column" :current-sort="sort"
|
|
|
- @changeSort="changeSort">
|
|
|
- </sortable-header>
|
|
|
- </template>-->
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="center" prop="contractEndTime" label="距离合同到期时间" width="200">
|
|
|
+ <el-table-column prop="contractNumber" label="合同编号" width="200"> </el-table-column>
|
|
|
+ <el-table-column prop="contractEndTime" label="距离合同到期时间" width="200">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
@@ -96,82 +89,73 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <!-- <el-table-column align="center" prop="payType" label="15天内应收款项"-->
|
|
|
+ <!-- <el-table-column prop="payType" label="15天内应收款项"-->
|
|
|
<!-- width="300">-->
|
|
|
|
|
|
<!-- <template slot-scope="{row}">-->
|
|
|
<!-- {{yingCycle(row,1)}}-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
- <!-- <el-table-column align="center" prop="payType" label="30天内应收款项"-->
|
|
|
+ <!-- <el-table-column prop="payType" label="30天内应收款项"-->
|
|
|
<!-- width="300">-->
|
|
|
<!-- <template slot-scope="{row}">-->
|
|
|
<!-- {{yingCycle(row,2)}}-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
- <el-table-column align="center" prop="customer.customerNumber" label="客户编号" width="150">
|
|
|
- <template slot="header" slot-scope="{ column }">
|
|
|
- <sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="center" prop="customer.coFullName" label="公司全称" width="200">
|
|
|
+ <el-table-column prop="customer.customerNumber" label="客户编号" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="customer.coSimpleName" label="公司简称" width="150">
|
|
|
- <template slot="header" slot-scope="{ column }">
|
|
|
- <sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
- </template>
|
|
|
+ <el-table-column prop="customer.coFullName" label="公司全称" width="200"> </el-table-column>
|
|
|
+ <el-table-column prop="customer.coSimpleName" label="公司简称" width="150">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button v-if="row.customer" @click="customerLook(row)">{{
|
|
|
- row.customer.coSimpleName
|
|
|
- }}</el-button>
|
|
|
+ <el-link v-if="row.customer" @click="customerLook(row)">{{ row.customer.coSimpleName }}</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="bedsAmount" label="总床位数" width="100">
|
|
|
+ <el-table-column prop="bedsAmount" label="总床位数" width="100">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="房型床位" width="80">
|
|
|
+ <el-table-column label="房型床位" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="openRoomDataDialog(row.roomList)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="flowBet" label="押金" width="100">
|
|
|
+ <el-table-column prop="flowBet" label="押金" width="100">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="monthlyRent" label="月租金" width="100">
|
|
|
+ <el-table-column prop="monthlyRent" label="月租金" width="100">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="contractTotalRent" label="合同总租金" width="150">
|
|
|
+ <el-table-column prop="contractTotalRent" label="合同总租金" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="contractBeginTime" label="合同开始时间" width="150">
|
|
|
+ <el-table-column prop="contractBeginTime" label="合同开始时间" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="contractEndTime" label="合同结束时间" width="150">
|
|
|
+ <el-table-column prop="contractEndTime" label="合同结束时间" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="contractDays" label="合同期(天)" width="150">
|
|
|
+ <el-table-column prop="contractDays" label="合同期(天)" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="payType" label="付款方式" width="150">
|
|
|
+ <el-table-column prop="payType" label="付款方式" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
@@ -185,106 +169,94 @@
|
|
|
width="150"
|
|
|
></el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="enclosure" label="附件" width="150">
|
|
|
+ <el-table-column prop="enclosure" label="附件" width="150">
|
|
|
<template slot-scope="{ row }">
|
|
|
<a :href="row.enclosure">下载</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="contractSource" label="合同来源" width="300">
|
|
|
- <template slot="header" slot-scope="{ column }">
|
|
|
- <sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
- </template>
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-popover trigger="hover" placement="top">
|
|
|
- <p>{{ contractSourceLabel(row.contractSource) }}</p>
|
|
|
- <div slot="reference" class="name-wrapper">
|
|
|
- <el-tag size="medium">{{ contractSourceLabel(row.contractSource) }}</el-tag>
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="contractSource" label="合同来源" width="300"> </el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="customerSource" label="客户来源" width="300">
|
|
|
+ <el-table-column prop="customerSource" label="客户来源" width="300">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-popover trigger="hover" placement="top">
|
|
|
- <p>{{ sourceLabel(row.customerSource) }}</p>
|
|
|
- <div slot="reference" class="name-wrapper">
|
|
|
- <el-tag size="medium">{{ sourceLabel(row.customerSource) }}</el-tag>
|
|
|
- </div>
|
|
|
+ <span>{{ sourceLabel(row.customerSource) }}</span>
|
|
|
+ <span slot="reference" class="name-wrapper">
|
|
|
+ {{ sourceLabel(row.customerSource) }}
|
|
|
+ </span>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="customerIndustry" label="客户行业" width="150">
|
|
|
+ <el-table-column prop="customerIndustry" label="客户行业" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="联系人" width="80">
|
|
|
+ <el-table-column label="联系人" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="openContactsDataDialog(row.contactsList)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="saleName" label="销售员" width="150">
|
|
|
+ <el-table-column prop="saleName" label="销售员" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column align="center" label="续约订单信息" width="100">-->
|
|
|
+ <!-- <el-table-column label="续约订单信息" width="100">-->
|
|
|
<!-- <template slot-scope="{row}">-->
|
|
|
<!-- <el-button @click="renewalList(row.contractNumber)" size="mini" plain>查看</el-button>-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
- <el-table-column align="center" label="退宿信息" width="100">
|
|
|
+ <el-table-column label="退宿信息" width="100">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="residenceList(row.contractNumber)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="contractRenewals" label="续约次数" width="150">
|
|
|
+ <el-table-column prop="contractRenewals" label="续约次数" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="收款周期" width="80">
|
|
|
+ <el-table-column label="收款周期" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="openCycleDataDialog(row.cycles)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="合同人员" width="80">
|
|
|
+ <el-table-column label="合同人员" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="openStaffDataDialog(row)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" label="房间信息查看" width="80">
|
|
|
+ <el-table-column label="房间信息查看" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="openRoomInfoDataDialog(row.contractStoreList)" size="mini" plain>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="center" prop="contactAddress" label="联系地址" width="200">
|
|
|
+ <el-table-column prop="contactAddress" label="联系地址" width="200">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="status" label="状态(在住/已退)" width="150">
|
|
|
+ <el-table-column prop="status" label="状态(在住/已退)" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }">{{ statusLabel(row.status) }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="checkInType" label="合作模式" width="150">
|
|
|
+ <el-table-column prop="checkInType" label="合作模式" width="150">
|
|
|
<template slot="header" slot-scope="{ column }">
|
|
|
<sortable-header :column="column" :current-sort="sort" @changeSort="changeSort"></sortable-header>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }">{{ CustomerCooperationLabel(row.checkInType) }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" min-width="300">
|
|
|
+ <el-table-column label="操作" fixed="right" min-width="300">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="renewalRow(row)" type="success" size="mini" plain>续约</el-button>
|
|
|
<el-button @click="residenceDialog(row)" type="warning" size="mini" plain>退宿</el-button>
|
|
|
@@ -1237,5 +1209,8 @@ export default {
|
|
|
flex-grow: 1;
|
|
|
flex-basis: 0;
|
|
|
}
|
|
|
+ .el-link {
|
|
|
+ font-size: inherit;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|