|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
<div>
|
|
|
<basicDetails
|
|
<basicDetails
|
|
|
ref="details"
|
|
ref="details"
|
|
|
- :titleText="mainData.enterprisename"
|
|
|
|
|
|
|
+ :titleText="mainData.name"
|
|
|
formPath="marketing2/saler"
|
|
formPath="marketing2/saler"
|
|
|
:editData="mainData"
|
|
:editData="mainData"
|
|
|
:mainAreaData="mainAreaData"
|
|
:mainAreaData="mainAreaData"
|
|
@@ -10,7 +10,7 @@
|
|
|
idname="sa_salearea_hrid"
|
|
idname="sa_salearea_hrid"
|
|
|
ownertable="sa_salearea_hr"
|
|
ownertable="sa_salearea_hr"
|
|
|
tags=""
|
|
tags=""
|
|
|
- :tabs="['详细信息']"
|
|
|
|
|
|
|
+ :tabs="['详细信息','业绩目标']"
|
|
|
@pageChange="pageChange"
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="tags">
|
|
<div slot="tags">
|
|
@@ -28,6 +28,9 @@
|
|
|
<to_void class="inline-16" v-if="tool.checkAuth($route.name,'toVoid')" :id="mainData.sa_customersid" @onshow="onSuccess" @toVoidSuccess="onSuccess"></to_void>
|
|
<to_void class="inline-16" v-if="tool.checkAuth($route.name,'toVoid')" :id="mainData.sa_customersid" @onshow="onSuccess" @toVoidSuccess="onSuccess"></to_void>
|
|
|
<recovery class="inline-16" v-if="tool.checkAuth($route.name,'recovery') " :data="mainData" @onshow="onSuccess" @backSuccess="onSuccess"></recovery>-->
|
|
<recovery class="inline-16" v-if="tool.checkAuth($route.name,'recovery') " :data="mainData" @onshow="onSuccess" @backSuccess="onSuccess"></recovery>-->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div slot="slot0" >
|
|
|
|
|
+ <detailed ref="detailed"></detailed>
|
|
|
|
|
+ </div>
|
|
|
<!-- <div slot="slot0" >
|
|
<!-- <div slot="slot0" >
|
|
|
<detailed ref="detailed"></detailed>
|
|
<detailed ref="detailed"></detailed>
|
|
|
</div>
|
|
</div>
|
|
@@ -50,49 +53,63 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
- async query_salermain () {
|
|
|
|
|
|
|
+ async queryMainData (id) {
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
"classname": "webmanage.sale.salearea.salearea",
|
|
"classname": "webmanage.sale.salearea.salearea",
|
|
|
"method": "query_salermain",
|
|
"method": "query_salermain",
|
|
|
"content": {
|
|
"content": {
|
|
|
- "sa_salearea_hrid":this.$route.query.id
|
|
|
|
|
|
|
+ "sa_salearea_hrid":id
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- this.salerInfo = res.data
|
|
|
|
|
- console.log(res.data)
|
|
|
|
|
- },
|
|
|
|
|
- async queryMainData (id) {
|
|
|
|
|
- const res = await this.$api.requested({
|
|
|
|
|
- "id": "20221012164302",
|
|
|
|
|
- "content": {
|
|
|
|
|
- "sa_customersid":id
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- this.$refs.details.param.content.where.sa_customerpoolid = this.$route.query.tabIndex
|
|
|
|
|
- this.$refs.details.param.content.isExport = false
|
|
|
|
|
this.mainData = res.data
|
|
this.mainData = res.data
|
|
|
console.log("输出获取的数据")
|
|
console.log("输出获取的数据")
|
|
|
- console.log(this.mainData.freeget)
|
|
|
|
|
- console.log(this.mainData);
|
|
|
|
|
- this.length = this.mainData.leader.length
|
|
|
|
|
- console.log(this.length)
|
|
|
|
|
- this.getDataTag(this.mainData.sa_customersid)
|
|
|
|
|
|
|
+ console.log(this.mainData)
|
|
|
this.changeDataStructure()
|
|
this.changeDataStructure()
|
|
|
- this.$refs.detailed.detailedList(this.mainData)
|
|
|
|
|
- this.flag = true
|
|
|
|
|
},
|
|
},
|
|
|
// 监听切换数据,上一页,下一页
|
|
// 监听切换数据,上一页,下一页
|
|
|
- pageChange (id,rowindex,tabIndex) {
|
|
|
|
|
- tabIndex = this.$route.query.tabIndex
|
|
|
|
|
|
|
+ pageChange (id,rowindex) {
|
|
|
this.flag = false
|
|
this.flag = false
|
|
|
- this.$router.replace({path:'/PublicCustomerDetail',query:{id:id,rowindex:rowindex,tabIndex:tabIndex}})
|
|
|
|
|
|
|
+ this.$router.replace({path:'/saler_detail',query:{id:id,rowindex:rowindex}})
|
|
|
this.queryMainData(id)
|
|
this.queryMainData(id)
|
|
|
},
|
|
},
|
|
|
|
|
+ changeDataStructure () {
|
|
|
|
|
+ this.mainAreaData = [
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'业务员名称',
|
|
|
|
|
+ value:this.mainData.name
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'编号',
|
|
|
|
|
+ value:this.mainData.hrcode
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'部门',
|
|
|
|
|
+ value:this.mainData.depname
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'手机号',
|
|
|
|
|
+ value:this.mainData.phonenumber
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'邮箱',
|
|
|
|
|
+ value:this.mainData.email
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'负责区域',
|
|
|
|
|
+ value:this.mainData.areaname
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'汇报对象',
|
|
|
|
|
+ value:this.mainData.reporthrname
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
/*this.query_salermain()*/
|
|
/*this.query_salermain()*/
|
|
|
|
|
|
|
|
console.log("id"+'_____'+this.$route.query.id)
|
|
console.log("id"+'_____'+this.$route.query.id)
|
|
|
|
|
+ this.queryMainData(this.$route.query.id)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|