소스 검색

前端bug提交 7.28 zyp

阿拉蕾 1 년 전
부모
커밋
0aa7c104f6
2개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 0
      src/api/crm/customer.js
  2. 4 4
      src/views/crm/components/customerDetails.vue

+ 7 - 0
src/api/crm/customer.js

@@ -124,6 +124,13 @@ export function getCustomer1(customerId) {
   })
 }
 
+export function getCustomer2(customerId) {
+  return request({
+    url: '/crm/customer/query2/' + customerId,
+    method: 'get'
+  })
+}
+
 
 
 

+ 4 - 4
src/views/crm/components/customerDetails.vue

@@ -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;