|
|
@@ -39,7 +39,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">业绩</span>
|
|
|
- <myRadio :value1="param1.content" key1="type" @clickBtn="getPerformance" :btnOptions="[{label:'本年',value:3},{label:'本季',value:2},{label:'本月',value:1}]">
|
|
|
+ <myRadio :value1="param1.content" :value2="param1.content.where" key1="type" @clickBtn="getPerformance" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
</div>
|
|
|
<myNewCard
|
|
|
@@ -84,7 +84,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">订单</span>
|
|
|
- <myRadio :value1="param2.content" key1="isAll" @clickBtn="refreshTable('param2','dingdan')" :btnOptions="[{label:'全部',value:1},{label:'本年',value:0}]">
|
|
|
+ <myRadio :value1="param2.content" :value2="param2.content.where" key1="type" @clickBtn="refreshTable('param2','dingdan')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
<el-select style="margin-left:24px" v-model="param2.content.where.type" clearable size="mini" placeholder="请选择订单类型" @change="typeChange('param2','dingdan')">
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
@@ -94,7 +94,7 @@
|
|
|
<myCard
|
|
|
:list="
|
|
|
[
|
|
|
- {title:'订单数量',value:$refs.dingdan && $refs.dingdan.list && $refs.dingdan.list[0] && $refs.dingdan.list[0].allOrderQty,bg:'#F3F9FC',color:'#3874F6'},
|
|
|
+ {title:'订单数量',value:$refs.dingdan && $refs.dingdan.list && $refs.dingdan.list[0] && $refs.dingdan.list[0].allOrderQty,bg:'#F3F9FC',color:'#3874F6'},
|
|
|
{title:'订单总金额',value:unitCompile($refs.dingdan && $refs.dingdan.list && $refs.dingdan.list[0] && $refs.dingdan.list[0].allAmount || 0),bg:'#E8F7EC',color:'#78B32B'},
|
|
|
{title:'订单回款金额',value:unitCompile($refs.dingdan && $refs.dingdan.list && $refs.dingdan.list[0] && $refs.dingdan.list[0].cashbillAmount || 0),bg:'#F9F2E5',color:'#FF7603'},
|
|
|
{title:'订单未出货金额',value:unitCompile($refs.dingdan && $refs.dingdan.list && $refs.dingdan.list[0] && $refs.dingdan.list[0].allunAmount || 0),bg:'#FDF3F3',color:'#E85B5B'},
|
|
|
@@ -153,7 +153,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">销售线索</span>
|
|
|
- <myRadio :value1="param3.content" key1="type" @clickBtn="refreshTable('param3','xiansuo');param8.content.type=param3.content.type;refreshTable('param8','fllow')" :btnOptions="[{label:'本年',value:3},{label:'本季',value:2},{label:'本月',value:1}]">
|
|
|
+ <myRadio :value1="param3.content" :value2="param3.content.where" key1="type" @clickBtn="refreshTable('param3','xiansuo');param8.content.type=param3.content.type;refreshTable('param8','fllow')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
</div>
|
|
|
<myCard
|
|
|
@@ -210,13 +210,13 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">客户</span>
|
|
|
- <myRadio :value1="param4.content" key1="type" @clickBtn="refreshTable('param4','kehu');param9.content.type=param4.content.type;refreshTable('param9','fllowkehu')" :btnOptions="[{label:'本年',value:3},{label:'本季',value:2},{label:'本月',value:1}]">
|
|
|
+ <myRadio :value1="param4.content" :value2="param4.content.where" key1="type" @clickBtn="refreshTable('param4','kehu');param9.content.type=param4.content.type;refreshTable('param9','fllowkehu')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
</div>
|
|
|
<myCard
|
|
|
:list="
|
|
|
[
|
|
|
- {title:'客户数',value:$refs.kehu && $refs.kehu.list.length,bg:'#F3F9FC',color:'#3874F6'},
|
|
|
+ {title:'客户数',value:$refs.kehu && $refs.kehu.list[0].isEmpty === 0 && $refs.kehu.list.length,bg:'#F3F9FC',color:'#3874F6'},
|
|
|
{title:'新增客户数',value:$refs.kehu && $refs.kehu.list[0] && $refs.kehu.list[0].customersSize,bg:'#E8F7EC',color:'#78B32B'},
|
|
|
{title:'跟进次数',value:$refs.fllowkehu && $refs.fllowkehu.list && $refs.fllowkehu.list[0] && $refs.fllowkehu.list[0].followSize,bg:'#F9F2E5',color:'#FF7603'},
|
|
|
// {title:'跟进频率',value:$refs.fllowkehu && $refs.fllowkehu.list && $refs.fllowkehu.list[0] && $refs.fllowkehu.list[0].followfrequency,descript:'平均跟进天数,跟进频率=(总跟进天数-节假日)÷总跟进次数',bg:'#FDF3F3',color:'#E85B5B'},
|
|
|
@@ -279,7 +279,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">项目</span>
|
|
|
- <myRadio :value1="param5.content" key1="type" @clickBtn="refreshTable('param5','project');param10.content.type=param5.content.type;refreshTable('param10','projectfllow')" :btnOptions="[{label:'本年',value:3},{label:'本季',value:2},{label:'本月',value:1}]">
|
|
|
+ <myRadio :value1="param5.content" :value2="param5.content.where" key1="type" @clickBtn="refreshTable('param5','project');param10.content.type=param5.content.type;refreshTable('param10','projectfllow')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
</div>
|
|
|
<myCard
|
|
|
@@ -353,7 +353,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">报价单</span>
|
|
|
- <myRadio :value1="param6.content" key1="isAll" @clickBtn="refreshTable('param6','baojiadan')" :btnOptions="[{label:'全部',value:1},{label:'本年',value:0}]">
|
|
|
+ <myRadio :value1="param6.content" :value2="param6.content.where" key1="type" @clickBtn="refreshTable('param6','baojiadan')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
</div>
|
|
|
<myCard
|
|
|
@@ -396,7 +396,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span class="myTitle">合同</span>
|
|
|
- <myRadio :value1="param7.content" key1="isAll" @clickBtn="refreshTable('param7','hetong')" :btnOptions="[{label:'全部',value:1},{label:'本年',value:0}]">
|
|
|
+ <myRadio :value1="param7.content" :value2="param7.content.where" key1="type" @clickBtn="refreshTable('param7','hetong')" :btnOptions="[{label:'全部',value:0},{label:'本年',value:1},{label:'本季',value:2},{label:'本月',value:3}]">
|
|
|
</myRadio>
|
|
|
<el-select style="margin-left:24px" v-model="param7.content.where.type" clearable size="mini" placeholder="请选择合同类型" @change="typeChange('param7','hetong')">
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
@@ -427,6 +427,9 @@
|
|
|
<div v-if="scope.data.columnname == 'signAmount'">
|
|
|
{{scope.data.data.signAmount && tool.formatAmount(scope.data.data.signAmount || 0,2,'¥') }}
|
|
|
</div>
|
|
|
+ <div v-else-if="scope.data.columnname == 'enddate'">
|
|
|
+ {{scope.data.data.begdate + '至' + scope.data.data.enddate }}
|
|
|
+ </div>
|
|
|
<div v-else>
|
|
|
{{ scope.data.data[scope.data.columnname] }}
|
|
|
</div>
|
|
|
@@ -462,8 +465,12 @@ export default {
|
|
|
param1: {
|
|
|
"id": 20230717100404,
|
|
|
"content": {
|
|
|
- "type":3,
|
|
|
- "hrid":this.$route.query.id
|
|
|
+ "type":0,
|
|
|
+ "hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//订单
|
|
|
@@ -472,10 +479,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "isAll":1,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
"where": {
|
|
|
- "type":''
|
|
|
+ "type":'',
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
},
|
|
|
"sort":[{
|
|
|
"reversed": 1,//1降序,0升序
|
|
|
@@ -490,8 +499,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//线索跟进
|
|
|
@@ -500,9 +513,14 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
- }
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
//客户
|
|
|
param4: {
|
|
|
@@ -510,8 +528,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//客户跟进
|
|
|
@@ -520,8 +542,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//项目
|
|
|
@@ -530,8 +556,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
- "hrid":this.$route.query.id
|
|
|
+ "type":0,
|
|
|
+ "hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//项目跟进
|
|
|
@@ -540,8 +570,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "type":3,
|
|
|
- "hrid":this.$route.query.id
|
|
|
+ "type":0,
|
|
|
+ "hrid":this.$route.query.id,
|
|
|
+ "where":{
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//报价单
|
|
|
@@ -550,10 +584,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "isAll":1,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
"where":{
|
|
|
- "type":""
|
|
|
+ "type":"",
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -563,10 +599,12 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "isAll":1,
|
|
|
+ "type":0,
|
|
|
"hrid":this.$route.query.id,
|
|
|
"where":{
|
|
|
- "type":""
|
|
|
+ "type":"",
|
|
|
+ "begdate":'',
|
|
|
+ "enddate":''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -617,6 +655,16 @@ export default {
|
|
|
this.stageList = res3.data
|
|
|
},
|
|
|
refreshTable (param,el) {
|
|
|
+ if (param === 'param8'){
|
|
|
+ this.param8.content.where.begdate = this.param3.content.where.begdate
|
|
|
+ this.param8.content.where.enddate = this.param3.content.where.enddate
|
|
|
+ }else if (param === 'param9'){
|
|
|
+ this.param9.content.where.begdate = this.param4.content.where.begdate
|
|
|
+ this.param9.content.where.enddate = this.param4.content.where.enddate
|
|
|
+ }else if (param === 'param10'){
|
|
|
+ this.param10.content.where.begdate = this.param5.content.where.begdate
|
|
|
+ this.param10.content.where.enddate = this.param5.content.where.enddate
|
|
|
+ }
|
|
|
this[param].content.pageNumber = 1
|
|
|
this.$refs[el] && this.$refs[el].listData()
|
|
|
},
|