|
@@ -14,7 +14,7 @@
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="手机号" >
|
|
|
<span v-if="item!=null">{{item.mobile}}</span>
|
|
|
- <el-button icon="el-icon-search" size="mini" @click="handleMobile" style="margin-left: 20px;" circle v-hasPermi="['crm:customer:query1']"></el-button>
|
|
|
+ <el-button icon="el-icon-search" size="mini" @click="handleMobile" style="margin-left: 20px;" circle v-hasPermi="['crm:customer:query2']"></el-button>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="性别" >
|
|
|
<span v-if="item!=null">
|
|
@@ -140,7 +140,7 @@
|
|
|
import customerVoiceLogsList from '../components/customerVoiceLogsList.vue';
|
|
|
import customerStoreOrderList from '../components/customerStoreOrderList.vue';
|
|
|
import customerContacts from './customerContacts.vue';
|
|
|
- import { getCustomer,getCustomer1 } from "@/api/crm/customer";
|
|
|
+ import { getCustomer,getCustomer1,getCustomer2 } from "@/api/crm/customer";
|
|
|
export default {
|
|
|
name: "customer",
|
|
|
components: { customerContacts,customerVisitList,customerLogsList,customerVoiceLogsList,customerStoreOrderList,customerSmsLogsList },
|
|
@@ -183,7 +183,7 @@
|
|
|
methods: {
|
|
|
handleMobile(){
|
|
|
const customerId = this.item.customerId;
|
|
|
- getCustomer1(customerId).then(response =>{
|
|
|
+ getCustomer2(customerId).then(response =>{
|
|
|
this.item.mobile = response.mobile;
|
|
|
})
|
|
|
},
|
|
@@ -208,7 +208,7 @@
|
|
|
}
|
|
|
},
|
|
|
getDetails(orderId) {
|
|
|
- getCustomer(orderId).then(response => {
|
|
|
+ getCustomer1(orderId).then(response => {
|
|
|
this.item = response.customer;
|
|
|
this.company = response.company;
|
|
|
var that=this;
|