|
@@ -16,7 +16,7 @@
|
|
|
<div class="mt-10" style="min-width: 220px;">{{$t(`近12月报价次数趋势分析`)}}</div>
|
|
<div class="mt-10" style="min-width: 220px;">{{$t(`近12月报价次数趋势分析`)}}</div>
|
|
|
<div class="in">
|
|
<div class="in">
|
|
|
<div class="inline-16 mt-10">
|
|
<div class="inline-16 mt-10">
|
|
|
- <departmentSalesperson ref="departmentSalesperson" class="inline-16" @depSelect="depSelect" @personSelect="personSelect" :isFull="isFull"></departmentSalesperson>
|
|
|
|
|
|
|
+ <departmentSalesperson ref="departmentSalesperson" class="inline-16" @depSelect="depSelect" @personSelect="personSelect" :isFull="isFull" :isNewDep="true"></departmentSalesperson>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mt-10 inline-16">
|
|
<div class="mt-10 inline-16">
|
|
|
<p class="search__label">{{$t('状态')}}:</p>
|
|
<p class="search__label">{{$t('状态')}}:</p>
|
|
@@ -130,7 +130,8 @@ export default {
|
|
|
async listData(val,type,state){
|
|
async listData(val,type,state){
|
|
|
if (state == '状态'){
|
|
if (state == '状态'){
|
|
|
this.$refs.departmentSalesperson.person = ''
|
|
this.$refs.departmentSalesperson.person = ''
|
|
|
- this.param.content.dataid = this.param.content.type == 0?-1:val
|
|
|
|
|
|
|
+ this.param.content.type = 1
|
|
|
|
|
+ this.param.content.dataid = this.$refs.departmentSalesperson.depmentid ? this.$refs.departmentSalesperson.depmentid : -1
|
|
|
}else {
|
|
}else {
|
|
|
this.param.content.dataid = val?val : this.dataid
|
|
this.param.content.dataid = val?val : this.dataid
|
|
|
}
|
|
}
|
|
@@ -142,7 +143,7 @@ export default {
|
|
|
this.totalamount = res.data.totalamount
|
|
this.totalamount = res.data.totalamount
|
|
|
this.totalqty = res.data.totalqty
|
|
this.totalqty = res.data.totalqty
|
|
|
this.cusamount = res.data.cusamount
|
|
this.cusamount = res.data.cusamount
|
|
|
- state == '状态' ?this.personData():''
|
|
|
|
|
|
|
+ state == '状态' ?this.personData(this.$refs.departmentSalesperson.depmentid):''
|
|
|
},
|
|
},
|
|
|
/*获取报价分析数据*/
|
|
/*获取报价分析数据*/
|
|
|
async queryQuotation(val,type) {
|
|
async queryQuotation(val,type) {
|
|
@@ -207,26 +208,35 @@ export default {
|
|
|
depSelect(val){
|
|
depSelect(val){
|
|
|
this.plotParam.content.type = 1
|
|
this.plotParam.content.type = 1
|
|
|
this.param.content.type = 1
|
|
this.param.content.type = 1
|
|
|
- this.plotParam.content.dataid = val
|
|
|
|
|
- this.dataid = val
|
|
|
|
|
- this.listData(val,this.plotParam.content.where.isleave)
|
|
|
|
|
- this.queryQuotationModel(val,this.plotParam.content.where.isleave)
|
|
|
|
|
|
|
+ this.plotParam.content.dataid = val?val:-1
|
|
|
|
|
+ this.dataid = val?val:-1
|
|
|
|
|
+ this.listData(this.dataid,this.plotParam.content.where.isleave)
|
|
|
|
|
+ this.queryQuotationModel(this.dataid,this.plotParam.content.where.isleave)
|
|
|
|
|
+ this.personData(this.dataid)
|
|
|
},
|
|
},
|
|
|
/*选择业务员*/
|
|
/*选择业务员*/
|
|
|
personSelect(val){
|
|
personSelect(val){
|
|
|
- this.plotParam.content.type = 0
|
|
|
|
|
- this.param.content.type = 0
|
|
|
|
|
- this.plotParam.content.dataid = val
|
|
|
|
|
- this.dataid = val
|
|
|
|
|
- this.listData(val,this.plotParam.content.where.isleave)
|
|
|
|
|
- this.queryQuotationModel(val,this.plotParam.content.where.isleave)
|
|
|
|
|
|
|
+ if (val || this.$refs.departmentSalesperson.depmentid){
|
|
|
|
|
+ this.plotParam.content.type = val?0:1
|
|
|
|
|
+ this.param.content.type = val?0:1
|
|
|
|
|
+ this.plotParam.content.dataid = val?val:this.$refs.departmentSalesperson.depmentid
|
|
|
|
|
+ this.dataid = val?val:this.$refs.departmentSalesperson.depmentid
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.plotParam.content.type = 1
|
|
|
|
|
+ this.param.content.type = 1
|
|
|
|
|
+ this.plotParam.content.dataid = -1
|
|
|
|
|
+ this.dataid = -1
|
|
|
|
|
+ }
|
|
|
|
|
+ this.listData(this.dataid,this.plotParam.content.where.isleave)
|
|
|
|
|
+ this.queryQuotationModel(this.dataid,this.plotParam.content.where.isleave)
|
|
|
},
|
|
},
|
|
|
/*获取新的业务员列表*/
|
|
/*获取新的业务员列表*/
|
|
|
- async personData(){
|
|
|
|
|
|
|
+ async personData(depid){
|
|
|
let param = {
|
|
let param = {
|
|
|
id: 20230620102004,
|
|
id: 20230620102004,
|
|
|
content: {
|
|
content: {
|
|
|
- isleave:this.plotParam.content.where.isleave
|
|
|
|
|
|
|
+ isleave:this.plotParam.content.where.isleave,
|
|
|
|
|
+ depid:depid
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
const res = await this.$api.requested(param)
|
|
const res = await this.$api.requested(param)
|