|
@@ -3,7 +3,11 @@
|
|
|
<div class="customer-title" >
|
|
|
<div class="customer-name">
|
|
|
{{ showDuplicate?item.customerName+"[从]":item.customerName}}
|
|
|
- <el-button size="mini" v-if="showDuplicate" v-hasPermi="['crm:customer:lookDuplicate']" @click=" handleDuplicate()" >主客户</el-button>
|
|
|
+ <el-button size="mini" v-if="showDuplicate" v-hasPermi="['crm:customer:lookDuplicate']" @click=" getDetails" >主客户</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-if="repetition !== null" style="margin-left:10px">
|
|
|
+ <el-link @click="handleShow(repetition)" :underline="false" type="primary" >重客户编码: {{ repetition.customerCode }}</el-link>
|
|
|
+ <!-- <span class="font-small" >重客户编码: {{ repetition.customerCode }}</span> -->
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button size="mini" v-hasPermi="['crm:customer:edit']" @click=" handleEdit()">修改客户</el-button>
|
|
@@ -263,6 +267,7 @@
|
|
|
customerExts:[],
|
|
|
activeName:"",
|
|
|
item:null,
|
|
|
+ repetition:null,
|
|
|
showDuplicate:false,
|
|
|
dCustomerId:null,
|
|
|
|
|
@@ -293,6 +298,9 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleShow(repetition){
|
|
|
+ this.getDetails(repetition.customerId);
|
|
|
+ },
|
|
|
handleEdit() {
|
|
|
this.customer.open = true;
|
|
|
var that=this;
|
|
@@ -381,6 +389,7 @@
|
|
|
});
|
|
|
});
|
|
|
getCustomerDetails(data).then(response => {
|
|
|
+ this.repetition = response.repetition;
|
|
|
this.item = response.customer;
|
|
|
this.isReceive=response.isReceive;
|
|
|
if(this.item.extJson!=null){
|