|
@@ -132,7 +132,13 @@
|
|
|
<el-table-column label="所属公司" align="center" prop="companyName" />
|
|
<el-table-column label="所属公司" align="center" prop="companyName" />
|
|
|
<el-table-column label="客户编号" width="120" align="center" prop="customerCode" />
|
|
<el-table-column label="客户编号" width="120" align="center" prop="customerCode" />
|
|
|
<el-table-column label="客户名称" align="center" prop="customerName" />
|
|
<el-table-column label="客户名称" align="center" prop="customerName" />
|
|
|
- <el-table-column label="手机" align="center" prop="mobile" />
|
|
|
|
|
|
|
+ <el-table-column label="手机" width="150" align="center" prop="mobile">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{scope.row.mobile}}
|
|
|
|
|
+ <el-button type="text" v-hasPermi="['crm:customer:queryPhone']" size="mini"
|
|
|
|
|
+ @click="handleQueryPhone(scope.row)" icon="el-icon-view">查看</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="性别" align="center" prop="sex">
|
|
<el-table-column label="性别" align="center" prop="sex">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in sexOptions" v-if="scope.row.sex==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in sexOptions" v-if="scope.row.sex==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
@@ -315,7 +321,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { assignCustomer,importLineTemplate,listLineCustomer, getLineCustomer, delLineCustomer, addLineCustomer, updateLineCustomer, exportLineCustomer } from "@/api/crm/customer";
|
|
|
|
|
|
|
+import { assignCustomer,importLineTemplate,listLineCustomer, getLineCustomer, delLineCustomer, addLineCustomer, updateLineCustomer, exportLineCustomer,queryPhone } from "@/api/crm/customer";
|
|
|
import {getCitys} from "@/api/store/city";
|
|
import {getCitys} from "@/api/store/city";
|
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { isAdmin } from "@/api/system/user";
|
|
import { isAdmin } from "@/api/system/user";
|
|
@@ -467,6 +473,14 @@ export default {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleQueryPhone(row) {
|
|
|
|
|
+ queryPhone(row.customerId).then(response => {
|
|
|
|
|
+ this.$alert(response.mobile, '手机号', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ callback: action => {}
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
handleScheduleTimeChange(val) {
|
|
handleScheduleTimeChange(val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.queryParams.beginTime = val[0];
|
|
this.queryParams.beginTime = val[0];
|