Browse Source

提交

newStyle
douzhuo 2 years ago
parent
commit
fa48b7501a
11 changed files with 2898 additions and 2206 deletions
  1. +10
    -3
      src/api/modules/http.js
  2. +2
    -1
      src/page/check/chose.vue
  3. +2
    -1
      src/page/check/index.vue
  4. +2
    -1
      src/page/login/userlogin.vue
  5. +1350
    -1131
      src/page/wel.vue
  6. +1
    -1
      src/views/Customer/index.vue
  7. +32
    -7
      src/views/ReceivingRecords/index.vue
  8. +1
    -2
      src/views/Statistics/ConsultantBrand.vue
  9. +1273
    -911
      src/views/Statistics/ReceptionOverview.vue
  10. +223
    -146
      src/views/building/Count.vue
  11. +2
    -2
      vue.config.js

+ 10
- 3
src/api/modules/http.js View File

@@ -521,6 +521,15 @@ export function overviewreceptionRanking(query) {
}) })
} }


// 获取访问系统排名
export function systemAccessranking(query) {
return request({
url: 'autoSR/cusStageStatistics/systemAccessranking',
method: 'get',
params: query
})
}



//销讲词执行率 //销讲词执行率
export function overviewreceptionOverviewZxl(query) { export function overviewreceptionOverviewZxl(query) {
@@ -845,12 +854,10 @@ export function operationStatisticsDetail(query) {
} }


// 单/批量转交客户至另一个顾问 // 单/批量转交客户至另一个顾问

export function theCirculation(query) { export function theCirculation(query) {
return request({ return request({
url: 'autoSR/customer/theCirculation', url: 'autoSR/customer/theCirculation',
method: 'get', method: 'get',
params: query params: query
}) })
}

}

+ 2
- 1
src/page/check/chose.vue View File

@@ -391,7 +391,8 @@ export default {
}, },
addLoginCount(houseId){ addLoginCount(houseId){
this.$api.api.addLoginCount({ this.$api.api.addLoginCount({
houseId
houseId: houseId,
serviceId: 'pig',
}).then(res=>{ }).then(res=>{
console.log(res); console.log(res);
}) })


+ 2
- 1
src/page/check/index.vue View File

@@ -175,7 +175,8 @@ export default {
}, },
addLoginCount(houseId){ addLoginCount(houseId){
this.$api.api.addLoginCount({ this.$api.api.addLoginCount({
houseId
houseId,
serviceId: 'pig',
}).then(res=>{ }).then(res=>{
console.log(res); console.log(res);
}) })


+ 2
- 1
src/page/login/userlogin.vue View File

@@ -303,7 +303,8 @@ export default {
}, },
addLoginCount(houseId){ addLoginCount(houseId){
this.$api.api.addLoginCount({ this.$api.api.addLoginCount({
houseId
houseId,
serviceId: 'pig',
}).then(res=>{ }).then(res=>{
console.log(res); console.log(res);
}) })


+ 1350
- 1131
src/page/wel.vue
File diff suppressed because it is too large
View File


+ 1
- 1
src/views/Customer/index.vue View File

@@ -349,7 +349,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="250" fixed="right"> <el-table-column label="操作" align="center" width="250" fixed="right">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<!-- <el-button type="text" v-if="cus_index_detail">客户详情</el-button> -->
<el-button type="text" v-if="cus_index_detail">客户详情</el-button>
<el-button <el-button
type="text" type="text"
@click="Receivedetailsabout(row)" @click="Receivedetailsabout(row)"


+ 32
- 7
src/views/ReceivingRecords/index.vue View File

@@ -308,6 +308,8 @@
<el-table-column label="操作" align="center" width="200" fixed="right"> <el-table-column label="操作" align="center" width="200" fixed="right">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" v-if="rec_index_show" @click="Receivedetailsabout(row)">查看</el-button> <el-button type="text" v-if="rec_index_show" @click="Receivedetailsabout(row)">查看</el-button>
<!-- To Doing?按钮未添加权限判断 -->
<el-button type="text" @click="deleteReceive(row)">删除</el-button>
<!-- <el-button type="text" v-if="rec_index_text">下载文本</el-button> <!-- <el-button type="text" v-if="rec_index_text">下载文本</el-button>
<el-button type="text" v-if="rec_index_voice">下载录音</el-button> --> <el-button type="text" v-if="rec_index_voice">下载录音</el-button> -->
</template> </template>
@@ -449,16 +451,27 @@ export default {
taboo:'', taboo:'',
zfal:'' zfal:''
}, },
rec_index_show: false, // 按钮权限
rec_index_text: false, // 按钮权限
rec_index_voice: false, // 按钮权限
rec_index_downLoad: false, // 按钮权限
}; };
}, },
computed: { computed: {
...mapGetters(["permissions"]), ...mapGetters(["permissions"]),
}, },
created() { created() {
this.rec_index_show = this.permissions["rec_index_show"];
this.rec_index_text = this.permissions["rec_index_text"];
this.rec_index_voice = this.permissions["rec_index_voice"];
this.rec_index_downLoad = this.permissions["rec_index_downLoad"];
if (this.$route.query.date) {
this.time = this.$route.query.date.split(',')
this.searchForm.staDate = this.time[0];
this.searchForm.endDate = this.time[1];
}
// console.log(this.$route.query.date.split(','))
console.log(this.$route)
this.rec_index_show = this.permissions["rec_index_show"] || false;
this.rec_index_text = this.permissions["rec_index_text"] || false;
this.rec_index_voice = this.permissions["rec_index_voice"] || false;
this.rec_index_downLoad = this.permissions["rec_index_downLoad"] || false;
}, },
mounted() { mounted() {


@@ -493,6 +506,10 @@ export default {
} }
}) })
}, },
// 删除此条接待记录
deleteReceive(row) {
console.log(row)
},
// 接待记录列表 // 接待记录列表
findbypage() { findbypage() {
let obj = { let obj = {
@@ -541,9 +558,17 @@ export default {
this.findUserListByHouseId(); this.findUserListByHouseId();
}, },
timeChange(e) { timeChange(e) {
this.searchForm.dateType=null
this.searchForm.staDate = e[0];
this.searchForm.endDate = e[1];
if (!e) {
this.searchForm.dateType=null
this.searchForm.staDate = "";
this.searchForm.endDate = "";
} else {
console.log(e, 'asdkasljdlksajl')
this.searchForm.dateType=null
this.searchForm.staDate = e[0];
this.searchForm.endDate = e[1];
}

this.houseChange(); this.houseChange();
}, },
screen() { screen() {


+ 1
- 2
src/views/Statistics/ConsultantBrand.vue View File

@@ -356,7 +356,7 @@
:style="'width:' + item.zxl1 + '%;'" :style="'width:' + item.zxl1 + '%;'"
></div> ></div>
</div> </div>
<div class="jinboxbott">{{ item.zxl1 }}</div>
<div class="jinboxbott">{{ item.zxl }}</div>
</div> </div>
</div> </div>
<div <div
@@ -629,7 +629,6 @@ export default {
if (type == 4) { if (type == 4) {
console.log(arr, 'arr4,ajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjaksl') console.log(arr, 'arr4,ajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjaksl')
arr = this.dealData(arr); arr = this.dealData(arr);
console.log(type);
} }
return arr; return arr;
}, },


+ 1273
- 911
src/views/Statistics/ReceptionOverview.vue
File diff suppressed because it is too large
View File


+ 223
- 146
src/views/building/Count.vue View File

@@ -1,15 +1,15 @@
<template> <template>
<div class="box-center"> <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 <div
@click="tapclickyab(0)" @click="tapclickyab(0)"
:class="{ activecllasscet: activeTotal == 0 }" :class="{ activecllasscet: activeTotal == 0 }"
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' } "
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' }"
> >
楼盘 楼盘
</div> </div>
<div <div
v-if="orgType==0"
v-if="orgType == 0"
@click="tapclickyab(1)" @click="tapclickyab(1)"
:class="{ activecllasscet: activeTotal == 1 }" :class="{ activecllasscet: activeTotal == 1 }"
:style="{ background: activeTotal == 1 ? '#2671E2' : '#ffffff' }" :style="{ background: activeTotal == 1 ? '#2671E2' : '#ffffff' }"
@@ -17,7 +17,7 @@
代理商 代理商
</div> </div>
<div <div
v-if="orgType==0||orgType==1"
v-if="orgType == 0 || orgType == 1"
@click="tapclickyab(2)" @click="tapclickyab(2)"
:class="{ activecllasscet: activeTotal == 2 }" :class="{ activecllasscet: activeTotal == 2 }"
:style="{ background: activeTotal == 2 ? '#2671E2' : '#ffffff' }" :style="{ background: activeTotal == 2 ? '#2671E2' : '#ffffff' }"
@@ -34,21 +34,21 @@
<div <div
:class="{ tophove: searchForm.dateType == 4 }" :class="{ tophove: searchForm.dateType == 4 }"
@click="tabtimetap(4)" @click="tabtimetap(4)"
style="cursor: pointer;"
style="cursor: pointer"
> >
近7天 近7天
</div> </div>
<div <div
:class="{ tophove: searchForm.dateType == 5 }" :class="{ tophove: searchForm.dateType == 5 }"
@click="tabtimetap(5)" @click="tabtimetap(5)"
style="cursor: pointer;"
style="cursor: pointer"
> >
近15天 近15天
</div> </div>
<div <div
:class="{ tophove: searchForm.dateType == 6 }" :class="{ tophove: searchForm.dateType == 6 }"
@click="tabtimetap(6)" @click="tabtimetap(6)"
style="cursor: pointer;"
style="cursor: pointer"
> >
近30天 近30天
</div> </div>
@@ -69,7 +69,7 @@
</div> </div>
</div> </div>


<!--
<!--
<div class="div-lab" v-if="orgType!=2"> <div class="div-lab" v-if="orgType!=2">
<el-input <el-input
v-model="changeValue" v-model="changeValue"
@@ -94,8 +94,7 @@
</el-input> </el-input>
</div> --> </div> -->



<div class="div-lab" v-if="orgType==0">
<div class="div-lab" v-if="orgType == 0">
<el-input <el-input
v-model="changeValue" v-model="changeValue"
clearable clearable
@@ -112,15 +111,26 @@
placeholder="请选择" placeholder="请选择"
@change="selChange" @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-select>
</el-input> </el-input>
</div> </div>



<div class="div-lab" v-if="orgType==1">
<div class="div-lab" v-if="orgType == 1">
<el-input <el-input
v-model="changeValue" v-model="changeValue"
clearable clearable
@@ -137,13 +147,19 @@
placeholder="请选择" placeholder="请选择"
@change="selChange" @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-select>
</el-input> </el-input>
</div> </div>


</div> </div>
<div class="app-titel" style="margin-top: 5px"> <div class="app-titel" style="margin-top: 5px">
<div class="div-lab"> <div class="div-lab">
@@ -158,7 +174,7 @@
clearable clearable
></el-cascader> ></el-cascader>
</div> </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> <div class="label" style="min-width:70px;">系统运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div> </div>
@@ -166,9 +182,9 @@
<div class="label" style="min-width:70px;">售后运营:</div> <div class="label" style="min-width:70px;">售后运营:</div>
<el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input> <el-input maxlength="10" clearable v-model="searchForm.linkman"></el-input>
</div> --> </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> <div class="label">运营人员:</div>
<el-select
<el-select
v-model="searchForm.operationStaffId" v-model="searchForm.operationStaffId"
placeholder="请选择" placeholder="请选择"
class="div-inp" class="div-inp"
@@ -187,14 +203,15 @@
</div> </div>
<div class="app-titel" style="margin-top: 15px"> <div class="app-titel" style="margin-top: 15px">
<div style="margin-left: 20px"> <div style="margin-left: 20px">
<el-button type="primary" @click="screen"
>筛选</el-button
>
<el-button type="primary" @click="screen">筛选</el-button>
</div> </div>
<div style="margin-left: 20px"> <div style="margin-left: 20px">
<el-button @click="clascreen">清空筛选条件</el-button> <el-button @click="clascreen">清空筛选条件</el-button>
</div> </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> <el-button @click="downLoad">导出</el-button>
</div> </div>
</div> </div>
@@ -202,8 +219,13 @@


<!-- 表格 --> <!-- 表格 -->
<div class="cen-tab"> <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>
<el-table-column prop="orgName" label="公司名称" align="center"> <el-table-column prop="orgName" label="公司名称" align="center">
</el-table-column> </el-table-column>
@@ -212,11 +234,15 @@
<el-table-column prop="equipmentNum" label="设备总数" align="center"> <el-table-column prop="equipmentNum" label="设备总数" align="center">
</el-table-column> </el-table-column>



<el-table-column prop="area" label="地区" align="center"> <el-table-column prop="area" label="地区" align="center">
</el-table-column> </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>
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> <el-table-column prop="onlineQuantity" label="在线设备" align="center">
</el-table-column> </el-table-column>
@@ -239,9 +265,17 @@
label="平均执行率" label="平均执行率"
align="center" 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>
<el-table-column <el-table-column
prop="sumProhibitedQuantity" prop="sumProhibitedQuantity"
@@ -251,26 +285,41 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200"> <el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="{ row }"> <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 >设备使用统计</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </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 prop="orgName" label="公司名称" align="center">
</el-table-column> </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>
<el-table-column prop="onlineQuantity" label="在线设备" align="center"> <el-table-column prop="onlineQuantity" label="在线设备" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="area" label="地区" align="center"> <el-table-column prop="area" label="地区" align="center">
</el-table-column> </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>
<el-table-column prop="equipmentNum" label="设备总数" align="center">
<el-table-column prop="equipmentNum" label="设备总数" align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="noOnlineQuantity" prop="noOnlineQuantity"
@@ -291,9 +340,9 @@
label="平均执行率" label="平均执行率"
align="center" align="center"
> >
<template slot-scope="{row}">
{{row.avgExacutiveRate||0}}%
</template>
<template slot-scope="{ row }">
{{ row.avgExacutiveRate || 0 }}%
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="sumProhibitedQuantity" prop="sumProhibitedQuantity"
@@ -303,23 +352,38 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200"> <el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="{ row }"> <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> </template>
</el-table-column> </el-table-column>
</el-table> </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 prop="agentName" label="代理商名称" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="area" label="地区" align="center"> <el-table-column prop="area" label="地区" align="center">
</el-table-column> </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>
<el-table-column prop="houseQuantityOfEnough" label="服务期内楼盘" align="center">
<el-table-column
prop="houseQuantityOfEnough"
label="服务期内楼盘"
align="center"
>
</el-table-column> </el-table-column>
<el-table-column prop="sumReception" label="接待量" align="center"> <el-table-column prop="sumReception" label="接待量" align="center">
</el-table-column> </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>
<el-table-column prop="sumRecordTime" label="接待时长" align="center"> <el-table-column prop="sumRecordTime" label="接待时长" align="center">
</el-table-column> </el-table-column>
@@ -328,9 +392,9 @@
label="平均执行率" label="平均执行率"
align="center" align="center"
> >
<template slot-scope="{row}">
{{row.avgExacutiveRate||0}}%
</template>
<template slot-scope="{ row }">
{{ row.avgExacutiveRate || 0 }}%
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="sumProhibitedQuantity" prop="sumProhibitedQuantity"
@@ -340,7 +404,9 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200"> <el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="{ row }"> <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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -369,7 +435,7 @@ export default {
props: { props: {
lazy: true, lazy: true,
checkStrictly: true, checkStrictly: true,
expandTrigger:'hover',
expandTrigger: "hover",
async lazyLoad(node, resolve) { async lazyLoad(node, resolve) {
const { level } = node; const { level } = node;
if (level == 0) { if (level == 0) {
@@ -393,8 +459,8 @@ export default {
}; };
}); });
resolve(nodes); resolve(nodes);
}else{
resolve()
} else {
resolve();
} }
}, },
}, },
@@ -408,7 +474,7 @@ export default {
dialogVisible: false, dialogVisible: false,
houseList: [], houseList: [],
time: [], time: [],
orgType:localStorage.getItem('orgType'),
orgType: localStorage.getItem("orgType"),
searchForm: { searchForm: {
propertyName: "", propertyName: "",
provinceId: "", provinceId: "",
@@ -419,64 +485,76 @@ export default {
dateType: "4", dateType: "4",
startDate: "", startDate: "",
endDate: "", endDate: "",
operationStaffId:''
operationStaffId: "",
}, },
currentPage: 1, currentPage: 1,
selflag: "1", selflag: "1",
size: 10, size: 10,
total: 10, total: 10,
operaList:[]
operaList: [],
}; };
}, },
computed: {
computed: {
...mapGetters(["permissions"]), ...mapGetters(["permissions"]),
}, },
created() { created() {
this.cus_build_area_record = this.permissions["cus_build_area_record"]; 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() { mounted() {
if(this.orgType==1){
this.selflag='3'
if (this.orgType == 1) {
this.selflag = "3";
} }
// 获取楼盘列表 // 获取楼盘列表
this.tabtimetap(4); this.tabtimetap(4);
this.getOperaList()
this.getOperaList();
this.houseStatistics(); this.houseStatistics();

}, },
methods: { methods: {
downLoad(){
downLoad() {
let obj = { let obj = {
...this.searchForm, ...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公用方法 // 导出.Excel公用方法
@@ -484,7 +562,7 @@ export default {
axios({ axios({
method: "get", method: "get",
url: url, url: url,
params:data,
params: data,
responseType: "blob", responseType: "blob",
}) })
.then((res) => { .then((res) => {
@@ -514,11 +592,11 @@ export default {
console.log(error); console.log(error);
}); });
}, },
getOperaList(){
getOperaList() {
if (this.orgType == 1) { if (this.orgType == 1) {
this.$api.http this.$api.http
.getAllOperationsStaffByAgent({ .getAllOperationsStaffByAgent({
agentId: localStorage.getItem('agentId'),
agentId: localStorage.getItem("agentId"),
}) })
.then((res) => { .then((res) => {
this.operaList = res.data; this.operaList = res.data;
@@ -551,41 +629,41 @@ export default {
houseId: row.id, houseId: row.id,
startDate: this.searchForm.startDate, startDate: this.searchForm.startDate,
endDate: this.searchForm.endDate, 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); 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(); 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(); this.houseStatistics();
} }
}, },
tapclickyab(i) { tapclickyab(i) {
this.activeTotal = 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(); // this.houseStatistics();
}, },
timeChange(e) { timeChange(e) {
@@ -598,7 +676,7 @@ export default {
this.searchForm.startDate = ""; this.searchForm.startDate = "";
this.searchForm.endDate = ""; this.searchForm.endDate = "";
this.searchForm.dateType = idx; this.searchForm.dateType = idx;
this.time=[]
this.time = [];
this.houseStatistics(); this.houseStatistics();
}, },
locationsChange(e) { locationsChange(e) {
@@ -641,49 +719,48 @@ export default {
current: this.currentPage, current: this.currentPage,
size: this.size, size: this.size,
...this.searchForm, ...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) => { 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) => { 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) => { 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) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;


+ 2
- 2
vue.config.js View File

@@ -3,8 +3,8 @@
* https://cli.vuejs.org/zh/config/ * https://cli.vuejs.org/zh/config/
*/ */
// const url = 'http://pigx-gateway' // const url = 'http://pigx-gateway'
const url = 'http://39.97.167.65:9999' //测试
// const url = 'http://192.168.31.167:9999' //长龙
// const url = 'http://39.97.167.65:9999' //测试
const url = 'http://192.168.31.167:9999' //长龙
// const url = 'http://192.168.31.134:9999' //嘉豪 // const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑 // const url = 'http://192.168.31.100:9999' //王笑
// const url = 'http://62.234.122.43:9999' //正式 // const url = 'http://62.234.122.43:9999' //正式


Loading…
Cancel
Save