Commit 406a0403 authored by 余金瑶's avatar 余金瑶

选择客户页面,点击更多联系人,弹框是遮罩

parent ca4d9052
<template>
<div style="display: inline-block">
<span @click="visible = true"> <slot></slot></span>
<el-dialog title="更多联系人" :visible.sync="visible">
<span @click="visible = true"> <slot></slot></span>
<el-dialog title="更多联系人" :visible.sync="visible" append-to-body>
<div v-if="info">
<div style="text-align: center;margin-bottom: 20px;" v-for="(item, index) in info" :key="index">
联系人{{index + 1}}{{$l(item, 'name')}} &ensp;&ensp;&ensp; 联系方式{{index + 1}}:+{{item.areaCode}} {{item.phoneNew}}<br/>
......
......@@ -412,9 +412,6 @@ export default {
},
created() {
this.getList();
getProductTypeList().then((r) => {
this.productTypeList = r.data;
});
},
methods: {
init() {
......
......@@ -6,7 +6,7 @@
<h2>{{$t('查看')}}</h2>
<div>
<el-button type="primary" size="small" v-has-permi="['ecw:customer:query-edit']" @click="$router.push('/customer/add-edit/' + id)">{{$t('编辑')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-quoted-price']" @click="$router.push('/offer/create')" type="primary" size="small">{{$t('报价')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-quoted-price']" @click="quote" type="primary" size="small">{{$t('报价')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-follow-up']" type="primary" size="small" @click="customerFollowFn('follow')">{{$t('跟进')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-customer-complaint']" type="primary" size="small" @click="customerFollowFn('complain')">{{$t('客诉')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-delete']" type="danger" size="small" @click="deleteCustomerFn()">{{$t('删除')}}</el-button>
......@@ -863,7 +863,7 @@ import { getNodeList } from '@/api/ecw/node'
import CustomerFollow from "./components/customerFollow"
import { parseTime } from '@/utils/ruoyi'
import CustomerComplaint from '@/views/ecw/customerComplaint'
import { listServiceUser } from '@/api/system/user'
import { listServiceUser, getUserProfile } from '@/api/system/user'
import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
import {getOrderPage, getRegionList} from "@/api/ecw/order";
import Template from "@/views/cms/template";
......@@ -929,8 +929,9 @@ export default {
this.getOrderStatistics()//数据
// this.creditScoreStatisticFn() //信用日志
// this.infoListReceiptFn()//账单
this.getData();
this.getData()
this.getWarehouseList()
this.getUserProfile()
},
watch:{
activeName(val){
......@@ -1162,6 +1163,7 @@ export default {
customerFollowTotal: 0,
customerFollowList: [],
currencyList: [],
userId: undefined,
}
},
computed: {
......@@ -1214,6 +1216,11 @@ export default {
}
},
methods:{
getUserProfile() {
getUserProfile().then((res) => {
this.userId = res.data.id;
})
},
customerFollowFn(val){
this.activeName = val
this.$nextTick(()=>{
......@@ -1227,6 +1234,14 @@ export default {
}
})
},
quote(){
const row = this.customer
if (row.customerService != this.userId) {
this.$message.error(this.$t("此客户属于其他客户经理名下的客户。"));
return;
}
this.$router.push({ path: "/offer/create", query: { customer: row, type: 1 } })
},
handleCustomerFollow(row, flag) {
this.customerFollowVisible = true
this.$nextTick(_ => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment