|
@@ -13,7 +13,6 @@
|
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="tags">
|
|
|
- <tagPanl slot="tags" :data="tags" :id="mainData.sa_customersid" @onSuccess="queryMainData"></tagPanl>
|
|
|
<!-- 使用此插槽可不传[tags] -->
|
|
|
<!-- :tabs="['经销商团队','代理区域','营销类别','账户余额']" -->
|
|
|
<!-- <tagPanl slot="tags" :data="tags" :id="mainData.sa_customersid" @onSuccess="queryMainData"/>-->
|
|
@@ -33,7 +32,7 @@
|
|
|
<transaction_status v-if="tool.checkAuth($route.name,'transaction')" :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></transaction_status>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus === 0">
|
|
|
- <lock v-if="tool.checkAuth($route.name,'lock')" :id="mainData.sa_customersid" @onshow="onSuccess"></lock>
|
|
|
+ <lock v-if="tool.checkAuth($route.name,'lock')" :id="mainData.sa_customersid" @onshow="onSuccess"></lock>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus === 2">
|
|
|
<unlock v-if="tool.checkAuth($route.name,'unlock')" :id="mainData.sa_customersid" @onshow="onSuccess"></unlock>
|
|
@@ -41,8 +40,8 @@
|
|
|
<div class="normal-margin">
|
|
|
<share v-if="tool.checkAuth($route.name,'share') && mainData.poolname === ''" :id="mainData.sa_customersid" @onshow="onSuccess" @shareSuccess="onSuccess"></share>
|
|
|
</div>
|
|
|
- <div class="normal-margin">
|
|
|
- <send_back v-if="tool.checkAuth($route.name,'back')" :id="mainData.sa_customersid" @onshow="onSuccess" @backSuccess="onSuccess"></send_back>
|
|
|
+ <div class="normal-margin" >
|
|
|
+ <send_back v-if="tool.checkAuth($route.name,'back') " :data="mainData" @onshow="onSuccess" @backSuccess="onSuccess"></send_back>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus !== 1">
|
|
|
<to_void v-if="tool.checkAuth($route.name,'toVoid')" :id="mainData.sa_customersid" @onshow="onSuccess" @toVoidSuccess="onSuccess"></to_void>
|
|
@@ -51,13 +50,13 @@
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
<div slot="slot0" >
|
|
|
- <detailed :data="this.$route.query.id"></detailed>
|
|
|
+ <detailed ref="detailed"></detailed>
|
|
|
</div>
|
|
|
- <div slot="slot1" class="container normal-panel">
|
|
|
- <contacts :data="this.$route.query.data"></contacts>
|
|
|
+ <div slot="slot1" class="container normal-panel" >
|
|
|
+ <contacts :data="mainData" @onSuccess="onSuccess" v-if="flag"></contacts>
|
|
|
</div>
|
|
|
<div slot="slot2" class="container normal-panel">
|
|
|
- <address_manage :data="this.$route.query.data"></address_manage>
|
|
|
+ <address_manage :data="mainData" v-if="flag"></address_manage>
|
|
|
</div>
|
|
|
</basicDetails>
|
|
|
</div>
|
|
@@ -67,7 +66,7 @@
|
|
|
import detailed from './modules/detailedData'
|
|
|
import contacts from './modules/contacts/list'
|
|
|
import address_manage from './modules/addressManage/list'
|
|
|
-import transactionUser from "./modules/operation/transactionUser";
|
|
|
+import transactionUser from "./modules/operation/transactionUser"
|
|
|
import lock from './modules/operation/lock'
|
|
|
import unlock from './modules/operation/unlock'
|
|
|
import share from './modules/operation/share'
|
|
@@ -89,13 +88,14 @@ export default {
|
|
|
userid:''
|
|
|
},
|
|
|
users:[],
|
|
|
+ flag:false
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
detailed,
|
|
|
contacts,
|
|
|
- address_manage
|
|
|
- ,transactionUser,
|
|
|
+ address_manage,
|
|
|
+ transactionUser,
|
|
|
lock,
|
|
|
unlock,
|
|
|
share,
|
|
@@ -114,9 +114,9 @@ export default {
|
|
|
this.mainData = res.data
|
|
|
this.$refs['details'].param.content.type = this.$route.query.tabIndex
|
|
|
this.$refs['details'].param.content.isExport = false
|
|
|
- this.$refs['details'].param.content.sa_customersid = [this.mainData.sa_customersid]
|
|
|
this.changeDataStructure()
|
|
|
- this.queryTags(this.mainData.sa_customersid)
|
|
|
+ this.$refs.detailed.detailedList(this.mainData)
|
|
|
+ this.flag = true
|
|
|
},
|
|
|
show(){
|
|
|
this.visible = false
|
|
@@ -145,7 +145,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label:'负责人',
|
|
|
- value:this.mainData.leadername
|
|
|
+ value:this.mainData.leader[0].name
|
|
|
},
|
|
|
{
|
|
|
label:'最近跟近时间',
|
|
@@ -158,8 +158,10 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
// 监听切换数据,上一页,下一页
|
|
|
- pageChange (id,rowindex) {
|
|
|
- this.$router.replace({path:'/customerDetail',query:{id:id,rowindex:rowindex}})
|
|
|
+ pageChange (id,rowindex,tabIndex) {
|
|
|
+ this.flag = false
|
|
|
+ tabIndex = this.$route.query.tabIndex
|
|
|
+ this.$router.replace({path:'/customerDetail',query:{id:id,rowindex:rowindex,tabIndex:tabIndex}})
|
|
|
this.queryMainData(id)
|
|
|
},
|
|
|
async queryTags(id){
|
|
@@ -183,13 +185,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.tool.checkAuth(this.$route.name,'update')?'':this.$router.go(-1)
|
|
|
- /*this.tool.checkAuth(this.$route.name,'toVoid')?'':this.$router.go(-1)*/
|
|
|
- // this.tool.checkAuth(this.$route.name,'responsible')?'':this.$router.go(-1)
|
|
|
- // this.tool.checkAuth(this.$route.name,'transaction')?'':this.$router.go(-1)
|
|
|
- // this.tool.checkAuth(this.$route.name,'lock')?'':this.$router.go(-1)
|
|
|
- // this.tool.checkAuth(this.$route.name,'unlock')?'':this.$router.go(-1)
|
|
|
- // this.tool.checkAuth(this.$route.name,'share')?'':this.$router.go(-1)
|
|
|
- // this.tool.checkAuth(this.$route.name,'back')?'':this.$router.go(-1)
|
|
|
}
|
|
|
}
|
|
|
</script>
|