|
@@ -81,213 +81,65 @@
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
|
|
|
- <el-table-column label="id" width="50" align="center" prop="id" />
|
|
|
- <el-table-column label="档期" align="center" prop="scheduleName" />
|
|
|
+ <el-table-column label="id" width="50" align="center" prop="id" />
|
|
|
+ <el-table-column label="档期" align="center" prop="scheduleName" />
|
|
|
<!-- <el-table-column label="公司名称" align="center" prop="companyName" /> -->
|
|
|
- <el-table-column label="所在部门" align="center" prop="deptName" />
|
|
|
- <el-table-column label="员工姓名" align="center" prop="userNickName" />
|
|
|
+ <el-table-column label="所在部门" align="center" prop="deptName" />
|
|
|
+ <el-table-column label="员工姓名" align="center" prop="userNickName" />
|
|
|
|
|
|
- <el-table-column label="总进线" width="60" align="center" prop="totalNum" />
|
|
|
- <el-table-column label="注册数" width="60" align="center" prop="registerNum" />
|
|
|
- <el-table-column label="上线数" width="60" align="center" prop="onlineNum" />
|
|
|
- <el-table-column label="完课数" width="60" align="center" prop="finishNum" />
|
|
|
- <el-table-column label="注册率" width="70" align="center" prop="registerRate" >
|
|
|
+ <el-table-column label="总进线" width="60" align="center" prop="totalNum" />
|
|
|
+ <el-table-column label="注册数" width="60" align="center" prop="registerNum" />
|
|
|
+ <el-table-column label="上线数" width="60" align="center" prop="onlineNum" />
|
|
|
+ <el-table-column label="完课数" width="60" align="center" prop="finishNum" />
|
|
|
+ <el-table-column label="注册率" width="80" align="center" prop="registerRate" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{(scope.row.registerRate*100).toFixed(2)+"%"}}
|
|
|
+ {{ renderTotalVal(scope.row,0) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="上线率" width="70" align="center" prop="onlineRate" >
|
|
|
+ <el-table-column label="上线率" width="80" align="center" prop="onlineRate" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{(scope.row.onlineRate*100).toFixed(2)+"%"}}
|
|
|
+ {{ renderTotalVal(scope.row,1) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="完课率" width="70" align="center" prop="finishRate" >
|
|
|
+ <el-table-column label="完课率" width="80" align="center" prop="finishRate" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{(scope.row.finishRate*100).toFixed(2)+"%"}}
|
|
|
+ {{ renderTotalVal(scope.row,2) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="累计总业绩" width="90" align="center" prop="totalMoney" >
|
|
|
+ <el-table-column label="累计总业绩" width="90" align="center" prop="totalMoney" >
|
|
|
<template slot-scope="scope">
|
|
|
{{!scope.row.totalMoney?0:(scope.row.totalMoney).toFixed(2)}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="累计总单" width="80" align="center" prop="totalOrder" >
|
|
|
+ <el-table-column label="累计总单" width="80" align="center" prop="totalOrder" >
|
|
|
<template slot-scope="scope">
|
|
|
{{!scope.row.totalOrder?0:scope.row.totalOrder}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="目标业绩" width="80" align="center" prop="targetMoney" >
|
|
|
+ <el-table-column label="目标业绩" width="80" align="center" prop="targetMoney" >
|
|
|
<template slot-scope="scope">
|
|
|
{{!scope.row.targetMoney?0:(scope.row.targetMoney).toFixed(2)}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="目标完成率" width="90" align="center" prop="targetRate" >
|
|
|
+ <el-table-column label="目标完成率" width="90" align="center" prop="targetRate" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{!scope.row.targetRate?0:(scope.row.targetRate*100).toFixed(2)+"%" }}
|
|
|
+ {{ renderTotalVal(scope.row,3) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" width="100">
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="一轮业绩" width="72" align="center" prop="round1Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round1Money?0:(scope.row.round1Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="一轮单数" width="72" align="center" prop="round1Order" ></el-table-column>
|
|
|
- <el-table-column label="一轮转化率" width="85" align="center" prop="count">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.onlineRate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="一轮客单" width="72" align="center" prop="round1Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round2Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
|
|
|
- <el-table-column label="二轮业绩" width="72" align="center" prop="round2Money" >
|
|
|
+ <el-table-column v-for='index in 36' :key='index' :label="renderLabel(index-1)" :width="(index-1)%4==2?'85':'72'" :prop="renderLabelProp(index)" align="center" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{!scope.row.round2Money?0:(scope.row.round2Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="二轮单数" width="72" align="center" prop="round2Order" ></el-table-column>
|
|
|
- <el-table-column label="二轮转化率" width="85" align="center" prop="round2Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round2Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="二轮客单" width="72" align="center" prop="round2Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round2Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
+ {{ runderValue(scope.row,index-1) }}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
- <el-table-column label="三轮业绩" width="72" align="center" prop="round3Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round3Money?0:(scope.row.round3Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="三轮单数" width="72" align="center" prop="round3Order" ></el-table-column>
|
|
|
- <el-table-column label="三轮转化率" width="85" align="center" prop="round3Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round3Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="三轮客单" width="72" align="center" prop="round3Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round3Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="四轮业绩" width="72" align="center" prop="round4Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round4Money?0:(scope.row.round4Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="四轮单数" width="72" align="center" prop="round4Order" ></el-table-column>
|
|
|
- <el-table-column label="四轮转化率" width="85" align="center" prop="round4Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round4Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="四轮客单" width="72" align="center" prop="round4Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round4Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="五轮业绩" width="72" align="center" prop="round5Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round5Money?0:(scope.row.round5Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="五轮单数" width="72" align="center" prop="round5Order" ></el-table-column>
|
|
|
- <el-table-column label="五轮转化率" width="85" align="center" prop="round5Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round5Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="五轮客单" width="72" align="center" prop="round5Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round5Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="六轮业绩" width="72" align="center" prop="round6Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round6Money?0:(scope.row.round6Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="六轮单数" width="72" align="center" prop="round6Order" ></el-table-column>
|
|
|
- <el-table-column label="六轮转化率" width="85" align="center" prop="round6Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round6Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="六轮客单" width="72" align="center" prop="round6Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round6Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="七轮业绩" width="72" align="center" prop="round7Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round7Money?0:(scope.row.round7Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="七轮单数" width="72" align="center" prop="round7Order" ></el-table-column>
|
|
|
- <el-table-column label="七轮转化率" width="85" align="center" prop="round7Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round7Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="七轮客单" width="72" align="center" prop="round7Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round7Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="八轮业绩" width="72" align="center" prop="round8Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round8Money?0:(scope.row.round8Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="八轮单数" width="72" align="center" prop="round8Order" ></el-table-column>
|
|
|
- <el-table-column label="八轮转化率" width="85" align="center" prop="round8Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round8Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="八轮客单" width="72" align="center" prop="round8Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round8Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="九轮业绩" width="72" align="center" prop="round9Money" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{!scope.row.round9Money?0:(scope.row.round9Money).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="九轮单数" width="72" align="center" prop="round9Order" ></el-table-column>
|
|
|
- <el-table-column label="九轮转化率" width="85" align="center" prop="round9Rate">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round9Rate*100).toFixed(2)+"%"}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="九轮客单" width="72" align="center" prop="round9Unit">
|
|
|
- <template slot-scope="scope1">
|
|
|
- {{(scope1.row.round9Unit).toFixed(2)}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
<!--
|
|
|
<el-table-column label="一轮业绩" align="center" prop="round1Money" />
|
|
@@ -351,7 +203,7 @@
|
|
|
import { treeselect } from "@/api/company/companyDept";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
-import { listTcmScheduleReport, getTcmScheduleReport, delTcmScheduleReport, addTcmScheduleReport, updateTcmScheduleReport, exportTcmScheduleReport,listSchedule } from "@/api/company/tcmScheduleReport";
|
|
|
+import { listTcmScheduleReport,listSchedule, getTcmScheduleReport, exportTcmScheduleReport } from "@/api/company/tcmScheduleReport";
|
|
|
|
|
|
export default {
|
|
|
name: "TcmScheduleReport",
|
|
@@ -374,6 +226,7 @@ export default {
|
|
|
// 中医档期业绩报表表格数据
|
|
|
tcmScheduleReportList: [],
|
|
|
scheduleList:[],
|
|
|
+ roundArr:["一轮","二轮","三轮","四轮","五轮","六轮","七轮","八轮","九轮"],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
@@ -395,7 +248,6 @@ export default {
|
|
|
onlineRate: null,
|
|
|
finishRate: null,
|
|
|
totalMoney: null,
|
|
|
-
|
|
|
},
|
|
|
users:[],
|
|
|
// 部门树选项
|
|
@@ -416,15 +268,85 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
- calcRegister(){
|
|
|
-
|
|
|
+ renderLabel(index){
|
|
|
+ var colls=parseInt(index/4);
|
|
|
+ var cell=parseInt(index%4);
|
|
|
+ var str=this.roundArr[colls];
|
|
|
+ if(cell==0){
|
|
|
+ str+="业绩"
|
|
|
+ }
|
|
|
+ else if(cell==1){
|
|
|
+ str+="单数"
|
|
|
+ }
|
|
|
+ else if(cell==2){
|
|
|
+ str+="转化率"
|
|
|
+ }
|
|
|
+ else if(cell==3){
|
|
|
+ str+="客单"
|
|
|
+ }
|
|
|
+ return str;
|
|
|
},
|
|
|
- calcOnline(){
|
|
|
-
|
|
|
+ renderLabelProp(index){
|
|
|
+ var colls=parseInt(index/4)+1;
|
|
|
+ var str=this.roundArr[colls];
|
|
|
+ if(colls==1){
|
|
|
+ str="round"+colls+"Money";
|
|
|
+ }
|
|
|
+ else if(colls==2){
|
|
|
+ str="round"+colls+"Order";
|
|
|
+ }
|
|
|
+ else if(colls==3){
|
|
|
+ str="round"+colls+"Rate";
|
|
|
+ }
|
|
|
+ else if(colls==4){
|
|
|
+ str="round"+colls+"Unit";
|
|
|
+ }
|
|
|
+ return str;
|
|
|
},
|
|
|
- calcFinish(){
|
|
|
-
|
|
|
+ runderValue(row,index){ //注册率=注册数/总进线 上线率=上线数/注册数 完课率=完课数/注册数 目标完成率=累计业绩/目标业绩 单线R值=累计业绩/总进线
|
|
|
+ var colls=parseInt(index/4)+1;
|
|
|
+ var cell=parseInt(index%4);
|
|
|
+ var value=0;
|
|
|
+ if(cell==0){ //业绩
|
|
|
+ value=!row["round"+colls+"Money"]?0:(row["round"+colls+"Money"]).toFixed(2);
|
|
|
+ }
|
|
|
+ else if(cell==1){ //订单数
|
|
|
+ value=row["round"+colls+"Order"];
|
|
|
+ }
|
|
|
+ else if(cell==2){ //转化率 =成单数/总进线
|
|
|
+ value=(row["round"+colls+"Order"]/row["totalNum"]*100.0).toFixed(3)+"%";
|
|
|
+ //value=(row["round"+colls+"Rate"]*100).toFixed(2)+"%";
|
|
|
+ }
|
|
|
+ else if(cell==3){ //客单=成交金额/成交单数
|
|
|
+ var roundMoney=row["round"+colls+"Money"];
|
|
|
+ var roundOrder=row["round"+colls+"Order"];
|
|
|
+ if(!!roundMoney && !!roundOrder){
|
|
|
+ value=(roundMoney/roundOrder*1.0).toFixed(2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+ },
|
|
|
+ renderTotalVal(row,index){
|
|
|
+ var value=0;
|
|
|
+ if(index==0){ //注册率=注册数/总进线
|
|
|
+ value=(row["registerNum"]/row["totalNum"]*100.0).toFixed(3)+"%";
|
|
|
+ }
|
|
|
+ else if(index==1){ //上线率=上线数/注册数
|
|
|
+ value=(row["onlineNum"]/row["registerNum"]*100.0).toFixed(3)+"%";
|
|
|
+ }
|
|
|
+ else if(index==2){ //完课率=完课数/注册数
|
|
|
+ value=(row["finishNum"]/row["registerNum"]*100.0).toFixed(3)+"%";
|
|
|
+ }
|
|
|
+ else if(index==3){ //目标完成率=累计业绩/目标业绩
|
|
|
+ value=(row["totalMoney"]/row["targetMoney"]*100.0).toFixed(3)+"%";
|
|
|
+ }
|
|
|
+ else if(index==4){ //人均业绩=总业绩/当期部门人数
|
|
|
+ value=(row["totalMoney"]/row["cuCount"]*1.0).toFixed(3);
|
|
|
+ }
|
|
|
+ else if(index==5){ //单线R值=累计业绩/总进线
|
|
|
+ value=(row["targetMoney"]/row["totalNum"]*1.0).toFixed(3);
|
|
|
+ }
|
|
|
+ return value;
|
|
|
},
|
|
|
getTreeselect() {
|
|
|
treeselect().then((response) => {
|