|
|
@@ -1,15 +1,15 @@ |
|
|
|
<template> |
|
|
|
<div class="box-center"> |
|
|
|
<div class="toptab" style="cursor: pointer;" v-if="orgType!=2"> |
|
|
|
<div class="toptab" style="cursor: pointer" v-if="orgType != 2"> |
|
|
|
<div |
|
|
|
@click="tapclickyab(0)" |
|
|
|
:class="{ activecllasscet: activeTotal == 0 }" |
|
|
|
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' } " |
|
|
|
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' }" |
|
|
|
> |
|
|
|
楼盘 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
v-if="orgType==0" |
|
|
|
v-if="orgType == 0" |
|
|
|
@click="tapclickyab(1)" |
|
|
|
:class="{ activecllasscet: activeTotal == 1 }" |
|
|
|
:style="{ background: activeTotal == 1 ? '#2671E2' : '#ffffff' }" |
|
|
@@ -17,7 +17,7 @@ |
|
|
|
代理商 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
v-if="orgType==0||orgType==1" |
|
|
|
v-if="orgType == 0 || orgType == 1" |
|
|
|
@click="tapclickyab(2)" |
|
|
|
:class="{ activecllasscet: activeTotal == 2 }" |
|
|
|
:style="{ background: activeTotal == 2 ? '#2671E2' : '#ffffff' }" |
|
|
@@ -34,21 +34,21 @@ |
|
|
|
<div |
|
|
|
:class="{ tophove: searchForm.dateType == 4 }" |
|
|
|
@click="tabtimetap(4)" |
|
|
|
style="cursor: pointer;" |
|
|
|
style="cursor: pointer" |
|
|
|
> |
|
|
|
近7天 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class="{ tophove: searchForm.dateType == 5 }" |
|
|
|
@click="tabtimetap(5)" |
|
|
|
style="cursor: pointer;" |
|
|
|
style="cursor: pointer" |
|
|
|
> |
|
|
|
近15天 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class="{ tophove: searchForm.dateType == 6 }" |
|
|
|
@click="tabtimetap(6)" |
|
|
|
style="cursor: pointer;" |
|
|
|
style="cursor: pointer" |
|
|
|
> |
|
|
|
近30天 |
|
|
|
</div> |
|
|
@@ -69,7 +69,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
<div class="div-lab" v-if="orgType!=2"> |
|
|
|
<el-input |
|
|
|
v-model="changeValue" |
|
|
@@ -94,8 +94,7 @@ |
|
|
|
</el-input> |
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
|
|
<div class="div-lab" v-if="orgType==0"> |
|
|
|
<div class="div-lab" v-if="orgType == 0"> |
|
|
|
<el-input |
|
|
|
v-model="changeValue" |
|
|
|
clearable |
|
|
@@ -112,15 +111,26 @@ |
|
|
|
placeholder="请选择" |
|
|
|
@change="selChange" |
|
|
|
> |
|
|
|
<el-option v-if="activeTotal!=1" label="公司名称" value="1"></el-option> |
|
|
|
<el-option v-if="activeTotal != 2" label="代理商名称" value="2"></el-option> |
|
|
|
<el-option v-if="activeTotal == 0" label="楼盘名称" value="3"></el-option> |
|
|
|
<el-option |
|
|
|
v-if="activeTotal != 1" |
|
|
|
label="公司名称" |
|
|
|
value="1" |
|
|
|
></el-option> |
|
|
|
<el-option |
|
|
|
v-if="activeTotal != 2" |
|
|
|
label="代理商名称" |
|
|
|
value="2" |
|
|
|
></el-option> |
|
|
|
<el-option |
|
|
|
v-if="activeTotal == 0" |
|
|
|
label="楼盘名称" |
|
|
|
value="3" |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="div-lab" v-if="orgType==1"> |
|
|
|
<div class="div-lab" v-if="orgType == 1"> |
|
|
|
<el-input |
|
|
|
v-model="changeValue" |
|
|
|
clearable |
|
|
@@ -137,13 +147,19 @@ |
|
|
|
placeholder="请选择" |
|
|
|
@change="selChange" |
|
|
|
> |
|
|
|
<el-option v-if="activeTotal!=1" label="公司名称" value="1"></el-option> |
|
|
|
<el-option v-if="activeTotal == 0" label="楼盘名称" value="3"></el-option> |
|
|
|
<el-option |
|
|
|
v-if="activeTotal != 1" |
|
|
|
label="公司名称" |
|
|
|
value="1" |
|
|
|
></el-option> |
|
|
|
<el-option |
|
|
|
v-if="activeTotal == 0" |
|
|
|
label="楼盘名称" |
|
|
|
value="3" |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="app-titel" style="margin-top: 5px"> |
|
|
|
<div class="div-lab"> |
|
|
@@ -158,7 +174,7 @@ |
|
|
|
clearable |
|
|
|
></el-cascader> |
|
|
|
</div> |
|
|
|
<!-- <div class="div-lab" v-if="orgType == 0"> |
|
|
|
<!-- <div class="div-lab" v-if="orgType == 0"> |
|
|
|
<div class="label" style="min-width:70px;">系统运营:</div> |
|
|
|
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> |
|
|
|
</div> |
|
|
@@ -166,9 +182,9 @@ |
|
|
|
<div class="label" style="min-width:70px;">售后运营:</div> |
|
|
|
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> |
|
|
|
</div> --> |
|
|
|
<div v-if="orgType == 0||orgType == 1" class="div-lab"> |
|
|
|
<div v-if="orgType == 0 || orgType == 1" class="div-lab"> |
|
|
|
<div class="label">运营人员:</div> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
v-model="searchForm.operationStaffId" |
|
|
|
placeholder="请选择" |
|
|
|
class="div-inp" |
|
|
@@ -187,14 +203,15 @@ |
|
|
|
</div> |
|
|
|
<div class="app-titel" style="margin-top: 15px"> |
|
|
|
<div style="margin-left: 20px"> |
|
|
|
<el-button type="primary" @click="screen" |
|
|
|
>筛选</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="screen">筛选</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 20px"> |
|
|
|
<el-button @click="clascreen">清空筛选条件</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: auto;margin-right:10px;" v-if="cus_build_count_download"> |
|
|
|
<div |
|
|
|
style="margin-left: auto; margin-right: 10px" |
|
|
|
v-if="cus_build_count_download" |
|
|
|
> |
|
|
|
<el-button @click="downLoad">导出</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -202,8 +219,13 @@ |
|
|
|
|
|
|
|
<!-- 表格 --> |
|
|
|
<div class="cen-tab"> |
|
|
|
<el-table v-if="activeTotal==0" :data="tableData" stripe style="width: 100%"> |
|
|
|
<el-table-column prop="propertyName" label="楼盘名称" align="center"> |
|
|
|
<el-table |
|
|
|
v-if="activeTotal == 0" |
|
|
|
:data="tableData" |
|
|
|
stripe |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-table-column prop="propertyName" label="楼盘名称" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="orgName" label="公司名称" align="center"> |
|
|
|
</el-table-column> |
|
|
@@ -212,11 +234,15 @@ |
|
|
|
<el-table-column prop="equipmentNum" label="设备总数" align="center"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="area" label="地区" align="center"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column v-if="orgType!=2" prop="operationStaffName" label="运营人员" align="center"> |
|
|
|
<el-table-column |
|
|
|
v-if="orgType != 2" |
|
|
|
prop="operationStaffName" |
|
|
|
label="运营人员" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> |
|
|
|
</el-table-column> |
|
|
@@ -239,9 +265,17 @@ |
|
|
|
label="平均执行率" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
{{row.avgExacutiveRate||0}}% |
|
|
|
</template> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
{{ row.avgExacutiveRate || 0 }}% |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="" label="最高执行率" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="" label="未标记顾问" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="" label="有效接待" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="" label="无效接待" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="sumProhibitedQuantity" |
|
|
@@ -251,26 +285,41 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="200"> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<el-button type="text" v-if="cus_build_area_record" @click="goEquiment(row)" |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
v-if="cus_build_area_record" |
|
|
|
@click="goEquiment(row)" |
|
|
|
>设备使用统计</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-if="activeTotal==2" :data="tableData" stripe style="width: 100%"> |
|
|
|
<el-table |
|
|
|
v-if="activeTotal == 2" |
|
|
|
:data="tableData" |
|
|
|
stripe |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-table-column prop="orgName" label="公司名称" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="houseQuantityOfEnough" label="服务期内楼盘" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="houseQuantityOfEnough" |
|
|
|
label="服务期内楼盘" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="area" label="地区" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="operationStaffName" label="运营人员" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="operationStaffName" |
|
|
|
label="运营人员" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="equipmentNum" label="设备总数" align="center"> |
|
|
|
<el-table-column prop="equipmentNum" label="设备总数" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="noOnlineQuantity" |
|
|
@@ -291,9 +340,9 @@ |
|
|
|
label="平均执行率" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
{{row.avgExacutiveRate||0}}% |
|
|
|
</template> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
{{ row.avgExacutiveRate || 0 }}% |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="sumProhibitedQuantity" |
|
|
@@ -303,23 +352,38 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="200"> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<el-button type="text" @click="goDetail(row,2)">查看详情</el-button> |
|
|
|
<el-button type="text" @click="goDetail(row, 2)" |
|
|
|
>查看详情</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-table v-if="activeTotal==1" :data="tableData" stripe style="width: 100%"> |
|
|
|
<el-table |
|
|
|
v-if="activeTotal == 1" |
|
|
|
:data="tableData" |
|
|
|
stripe |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-table-column prop="agentName" label="代理商名称" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="area" label="地区" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="operationStaffName" label="运营人员" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="operationStaffName" |
|
|
|
label="运营人员" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="houseQuantityOfEnough" label="服务期内楼盘" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="houseQuantityOfEnough" |
|
|
|
label="服务期内楼盘" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sumReception" label="接待量" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="equipmentNum" label="设备总数" align="center"> |
|
|
|
<el-table-column prop="equipmentNum" label="设备总数" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sumRecordTime" label="接待时长" align="center"> |
|
|
|
</el-table-column> |
|
|
@@ -328,9 +392,9 @@ |
|
|
|
label="平均执行率" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
{{row.avgExacutiveRate||0}}% |
|
|
|
</template> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
{{ row.avgExacutiveRate || 0 }}% |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="sumProhibitedQuantity" |
|
|
@@ -340,7 +404,9 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="200"> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<el-button type="text" @click="goDetail(row,1)">查看详情</el-button> |
|
|
|
<el-button type="text" @click="goDetail(row, 1)" |
|
|
|
>查看详情</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@@ -369,7 +435,7 @@ export default { |
|
|
|
props: { |
|
|
|
lazy: true, |
|
|
|
checkStrictly: true, |
|
|
|
expandTrigger:'hover', |
|
|
|
expandTrigger: "hover", |
|
|
|
async lazyLoad(node, resolve) { |
|
|
|
const { level } = node; |
|
|
|
if (level == 0) { |
|
|
@@ -393,8 +459,8 @@ export default { |
|
|
|
}; |
|
|
|
}); |
|
|
|
resolve(nodes); |
|
|
|
}else{ |
|
|
|
resolve() |
|
|
|
} else { |
|
|
|
resolve(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@@ -408,7 +474,7 @@ export default { |
|
|
|
dialogVisible: false, |
|
|
|
houseList: [], |
|
|
|
time: [], |
|
|
|
orgType:localStorage.getItem('orgType'), |
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
searchForm: { |
|
|
|
propertyName: "", |
|
|
|
provinceId: "", |
|
|
@@ -419,64 +485,76 @@ export default { |
|
|
|
dateType: "4", |
|
|
|
startDate: "", |
|
|
|
endDate: "", |
|
|
|
operationStaffId:'' |
|
|
|
operationStaffId: "", |
|
|
|
}, |
|
|
|
currentPage: 1, |
|
|
|
selflag: "1", |
|
|
|
size: 10, |
|
|
|
total: 10, |
|
|
|
operaList:[] |
|
|
|
operaList: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
...mapGetters(["permissions"]), |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.cus_build_area_record = this.permissions["cus_build_area_record"]; |
|
|
|
this.cus_build_count_download = this.permissions["cus_build_count_download"]; |
|
|
|
this.cus_build_count_download = |
|
|
|
this.permissions["cus_build_count_download"]; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
if(this.orgType==1){ |
|
|
|
this.selflag='3' |
|
|
|
if (this.orgType == 1) { |
|
|
|
this.selflag = "3"; |
|
|
|
} |
|
|
|
// 获取楼盘列表 |
|
|
|
this.tabtimetap(4); |
|
|
|
this.getOperaList() |
|
|
|
this.getOperaList(); |
|
|
|
this.houseStatistics(); |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
downLoad(){ |
|
|
|
downLoad() { |
|
|
|
let obj = { |
|
|
|
...this.searchForm, |
|
|
|
agentId:localStorage.getItem('agentId'), |
|
|
|
orgCode:localStorage.getItem('orgCode'), |
|
|
|
houseId:localStorage.getItem('houseId'), |
|
|
|
orgType:localStorage.getItem('orgType'), |
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
orgCode: localStorage.getItem("orgCode"), |
|
|
|
houseId: localStorage.getItem("houseId"), |
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
}; |
|
|
|
if(this.activeTotal==0){ |
|
|
|
if(this.orgType==0){ |
|
|
|
obj.operationType=1 |
|
|
|
}else if(this.orgType==1){ |
|
|
|
obj.operationType=2 |
|
|
|
}else{ |
|
|
|
obj.operationType=null |
|
|
|
if (this.activeTotal == 0) { |
|
|
|
if (this.orgType == 0) { |
|
|
|
obj.operationType = 1; |
|
|
|
} else if (this.orgType == 1) { |
|
|
|
obj.operationType = 2; |
|
|
|
} else { |
|
|
|
obj.operationType = null; |
|
|
|
} |
|
|
|
// 楼盘 |
|
|
|
this.exportMethodPost('/autoSR/cusStageStatistics/houseStatisticsExport','楼盘数据',obj) |
|
|
|
}else if(this.activeTotal==1){ |
|
|
|
obj.operationType=null; |
|
|
|
this.exportMethodPost( |
|
|
|
"/autoSR/cusStageStatistics/houseStatisticsExport", |
|
|
|
"楼盘数据", |
|
|
|
obj |
|
|
|
); |
|
|
|
} else if (this.activeTotal == 1) { |
|
|
|
obj.operationType = null; |
|
|
|
// 代理商 |
|
|
|
this.exportMethodPost('/autoSR/cusStageStatistics/agentStatisticsExport','代理商',obj) |
|
|
|
}else{ |
|
|
|
if(this.orgType==0){ |
|
|
|
obj.operationType=1 |
|
|
|
}else if(this.orgType==1){ |
|
|
|
obj.operationType=2 |
|
|
|
}else{ |
|
|
|
obj.operationType=null |
|
|
|
this.exportMethodPost( |
|
|
|
"/autoSR/cusStageStatistics/agentStatisticsExport", |
|
|
|
"代理商", |
|
|
|
obj |
|
|
|
); |
|
|
|
} else { |
|
|
|
if (this.orgType == 0) { |
|
|
|
obj.operationType = 1; |
|
|
|
} else if (this.orgType == 1) { |
|
|
|
obj.operationType = 2; |
|
|
|
} else { |
|
|
|
obj.operationType = null; |
|
|
|
} |
|
|
|
this.exportMethodPost('/autoSR/cusStageStatistics/companyStatisticsExport','公司',obj) |
|
|
|
this.exportMethodPost( |
|
|
|
"/autoSR/cusStageStatistics/companyStatisticsExport", |
|
|
|
"公司", |
|
|
|
obj |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 导出.Excel公用方法 |
|
|
@@ -484,7 +562,7 @@ export default { |
|
|
|
axios({ |
|
|
|
method: "get", |
|
|
|
url: url, |
|
|
|
params:data, |
|
|
|
params: data, |
|
|
|
responseType: "blob", |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
@@ -514,11 +592,11 @@ export default { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
}, |
|
|
|
getOperaList(){ |
|
|
|
getOperaList() { |
|
|
|
if (this.orgType == 1) { |
|
|
|
this.$api.http |
|
|
|
.getAllOperationsStaffByAgent({ |
|
|
|
agentId: localStorage.getItem('agentId'), |
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.operaList = res.data; |
|
|
@@ -551,41 +629,41 @@ export default { |
|
|
|
houseId: row.id, |
|
|
|
startDate: this.searchForm.startDate, |
|
|
|
endDate: this.searchForm.endDate, |
|
|
|
timeType:this.searchForm.dateType |
|
|
|
timeType: this.searchForm.dateType, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
goDetail(row,i){ |
|
|
|
this.activeTotal=0 |
|
|
|
goDetail(row, i) { |
|
|
|
this.activeTotal = 0; |
|
|
|
console.log(row); |
|
|
|
if(i==1){ |
|
|
|
if (i == 1) { |
|
|
|
// 代理商 |
|
|
|
this.selflag='2' |
|
|
|
this.changeValue=row.agentName |
|
|
|
this.searchForm.agentName=row.agentName |
|
|
|
this.selflag = "2"; |
|
|
|
this.changeValue = row.agentName; |
|
|
|
this.searchForm.agentName = row.agentName; |
|
|
|
this.houseStatistics(); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
// 公司 |
|
|
|
this.selflag='1' |
|
|
|
this.changeValue=row.orgName |
|
|
|
this.searchForm.orgName=row.orgName |
|
|
|
this.selflag = "1"; |
|
|
|
this.changeValue = row.orgName; |
|
|
|
this.searchForm.orgName = row.orgName; |
|
|
|
this.houseStatistics(); |
|
|
|
} |
|
|
|
}, |
|
|
|
tapclickyab(i) { |
|
|
|
this.activeTotal = i; |
|
|
|
if(this.orgType==0){ |
|
|
|
if(i==1){ |
|
|
|
this.selflag='2'; |
|
|
|
}else if(i==2){ |
|
|
|
this.selflag='1'; |
|
|
|
} |
|
|
|
}else if(this.orgType==1){ |
|
|
|
if(i==2){ |
|
|
|
this.selflag='1'; |
|
|
|
} |
|
|
|
if (this.orgType == 0) { |
|
|
|
if (i == 1) { |
|
|
|
this.selflag = "2"; |
|
|
|
} else if (i == 2) { |
|
|
|
this.selflag = "1"; |
|
|
|
} |
|
|
|
} else if (this.orgType == 1) { |
|
|
|
if (i == 2) { |
|
|
|
this.selflag = "1"; |
|
|
|
} |
|
|
|
} |
|
|
|
this.clascreen() |
|
|
|
this.clascreen(); |
|
|
|
// this.houseStatistics(); |
|
|
|
}, |
|
|
|
timeChange(e) { |
|
|
@@ -598,7 +676,7 @@ export default { |
|
|
|
this.searchForm.startDate = ""; |
|
|
|
this.searchForm.endDate = ""; |
|
|
|
this.searchForm.dateType = idx; |
|
|
|
this.time=[] |
|
|
|
this.time = []; |
|
|
|
this.houseStatistics(); |
|
|
|
}, |
|
|
|
locationsChange(e) { |
|
|
@@ -641,49 +719,48 @@ export default { |
|
|
|
current: this.currentPage, |
|
|
|
size: this.size, |
|
|
|
...this.searchForm, |
|
|
|
agentId:localStorage.getItem('agentId'), |
|
|
|
orgCode:localStorage.getItem('orgCode'), |
|
|
|
houseId:localStorage.getItem('houseId'), |
|
|
|
orgType:localStorage.getItem('orgType'), |
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
orgCode: localStorage.getItem("orgCode"), |
|
|
|
houseId: localStorage.getItem("houseId"), |
|
|
|
orgType: localStorage.getItem("orgType"), |
|
|
|
}; |
|
|
|
if(this.activeTotal==0){ |
|
|
|
if(this.orgType==0){ |
|
|
|
obj.operationType=1 |
|
|
|
}else if(this.orgType==1){ |
|
|
|
obj.operationType=2 |
|
|
|
}else{ |
|
|
|
obj.operationType=null |
|
|
|
if (this.activeTotal == 0) { |
|
|
|
if (this.orgType == 0) { |
|
|
|
obj.operationType = 1; |
|
|
|
} else if (this.orgType == 1) { |
|
|
|
obj.operationType = 2; |
|
|
|
} else { |
|
|
|
obj.operationType = null; |
|
|
|
} |
|
|
|
// 楼盘 |
|
|
|
this.$api.api.houseStatistics1(obj).then((res) => { |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
}else if(this.activeTotal==1){ |
|
|
|
obj.operationType=null; |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
} else if (this.activeTotal == 1) { |
|
|
|
obj.operationType = null; |
|
|
|
// 代理商 |
|
|
|
this.$api.api.agentStatistics(obj).then((res) => { |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
if(this.orgType==0){ |
|
|
|
obj.operationType=1 |
|
|
|
}else if(this.orgType==1){ |
|
|
|
obj.operationType=2 |
|
|
|
}else{ |
|
|
|
obj.operationType=null |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
} else { |
|
|
|
if (this.orgType == 0) { |
|
|
|
obj.operationType = 1; |
|
|
|
} else if (this.orgType == 1) { |
|
|
|
obj.operationType = 2; |
|
|
|
} else { |
|
|
|
obj.operationType = null; |
|
|
|
} |
|
|
|
// 公司 |
|
|
|
this.$api.api.companyStatistics(obj).then((res) => { |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
// console.log(res); |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
handleSelectionChange(val) { |
|
|
|
this.multipleSelection = val; |
|
|
|