Commit 7711d955 authored by 华国豪's avatar 华国豪 🙄

客户异常状态显示以及客户修改异常以及百度地图ak更换

parent 0f973b19
......@@ -321,8 +321,7 @@
}
.MycustomerTable th,.MycustomerTable td{
text-align: left;
text-indent: 25px;
padding-left:25px
}
.MyCustomerDetailbottomLayer{overflow: auto; position:absolute;height:200px;
z-index:50;bottom:0;left: 0;border-top:1px solid #d1d1d1;background-color:#FFFFFF;padding: 20px 20px 0;width: 100%;}
......@@ -352,7 +351,17 @@
height: 148px;
display: block;
}
.yichangde{
display: inline-block;
border-radius: 50%;
color: red;
border: 1px solid red;
font-size: 12px;
width: 18px;
height: 18px;
text-align: center;
cursor:pointer;
}
</style>
<template>
<div class="page_MyCustomer MyCustomerDiv">
......@@ -394,7 +403,7 @@
<tr>
<th>姓名</th>
<th>联系电话</th>
<th>联系地址</th>
<th>门店名称</th>
<th>近期约访</th>
<th>最近拜访</th>
<th>累计拜访</th>
......@@ -407,7 +416,24 @@
</tr>
<tr v-for="(item,i) in dataList" :key="i">
<td>{{item.contact}}</td>
<td>
<span>{{item.contact}}</span>
<el-popover width="280" popper-class="pd20" trigger="click">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="_color_666">
<th>异常名称</th>
<th>创建人</th>
<th>创建时间</th>
</tr>
<tr v-for="(unionItem,x) in CustomerException">
<td>{{unionItem.ExceptionName}}</td>
<td>{{unionItem.CreateByName}}</td>
<td>{{unionItem.CreateTimestr}}</td>
</tr>
</table>
<span v-show="item.exceptionCount > 0" slot="reference" class="yichangde" @click="yichangde(item)"></span>
</el-popover>
</td>
<td>{{item.contactNumber}}</td>
<td>{{item.customerName}}</td>
<td>
......@@ -611,6 +637,19 @@
<el-input class='w200' v-model='updateMsg.Contact'></el-input>
</el-form-item>
</el-col>
<el-col :span="6" v-if="updateMsg.customerExceptionList.length > 0">
<el-form-item label="解决异常">
<el-select class='w200' filterable multiple
clearable
collapse-tags v-model='updateMsg.CustomerExceptionIds'>
<el-option v-for='item in updateMsg.customerExceptionList'
:label='item.exceptionName'
:value='item.exceptionId'
:key='item.exceptionId'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
</el-col>
</el-row>
......@@ -842,7 +881,9 @@
District:0,
HousePhotos:[],
BusinessCardPhotos:[],
Images:[],
Images:[],
customerExceptionList: [],
CustomerExceptionIds: [],
},
cityList:[],
regionList:[],
......@@ -850,10 +891,18 @@
ImagesNew:'',
BusinessCardPhotosNew:'',
HousePhotosNew:'',
CustomerException: [],
JYExceptionList: [],
}
},
methods: {
yichangde(obj){
this.apipost("app_get_GetCustomerException", {customerId: obj.customerId},res => {
if (res.data.resultCode == 1) {
this.CustomerException = res.data.data
}
})
},
EditMsg(item){
this.addLayer1=true;
this.id=item.customerId;
......@@ -957,14 +1006,16 @@
// }
// this.contact=res.data.data.contact
this.updateMsg.CustomerName=x.customerName
this.updateMsg.Contact=x.ContactName
this.updateMsg.Contact=x.contactName
this.updateMsg.CustomerId=x.customerId
this.updateMsg.Address=x.address
this.updateMsg.Address=x.address.split(',')[1]
this.updateMsg.Province=x.province
this.getCityNew()
this.updateMsg.City=x.city
this.getRegionNew()
this.updateMsg.District=x.district
this.updateMsg.customerExceptionList=x.customerExceptionList
this.updateMsg.CustomerExceptionIds = []
this.updateMsg.District=x.district
if(x.businessCardPhotos&&x.businessCardPhotos.length>0)
{
this.BusinessCardPhotos=x.businessCardPhotos[0]
......
......@@ -165,7 +165,7 @@ export default {
let start_time=timestamp.getTime()/1000
let end_time=start_time+86400
let url='?ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX&service_id=203768&entity_name='+this.account+'&start_time='+start_time+'&end_time='+end_time+'&is_processed=1&process_option=need_denoise=1,need_vacuate=1,need_mapmatch=1';
let url='?ak=L5Qw0GlbbCIMwgR4Uug3ogM40Imkd3CV&service_id=203768&entity_name='+this.account+'&start_time='+start_time+'&end_time='+end_time+'&is_processed=1&process_option=need_denoise=1,need_vacuate=1,need_mapmatch=1';
this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/track/gettrack'+url).then(res=>{
let xy=res.data.points
this.Point=[]
......
......@@ -60,6 +60,16 @@
</el-select>
</li>
<li>
<span>
<em>是否异常</em>
</span>
<el-select filterable class='multiple_input' v-model='msg.ExceptionCount ' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option label="是" :value="1"></el-option>
<el-option label="否" :value="2"></el-option>
</el-select>
</li>
<li>
<span class="fl mt10">
<em>{{$t('admin.admin_Department')}}</em>
......@@ -187,6 +197,21 @@
>
{{item.CustomerName}}<i class="iconfont icon-shimingrenzheng" :class="{'_class_b': item.RealNameAuthentication===1}"></i>
</label>
<el-popover width="280" popper-class="pd20" trigger="click">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="_color_666">
<th>异常名称</th>
<th>创建人</th>
<th>创建时间</th>
</tr>
<tr v-for="(unionItem,x) in CustomerException">
<td>{{unionItem.ExceptionName}}</td>
<td>{{unionItem.CreateByName}}</td>
<td>{{unionItem.CreateTimestr}}</td>
</tr>
</table>
<span v-if="item.ExceptionCount > 0" slot="reference" class="yichangde" @click="yichangde(item)"></span>
</el-popover>
</td>
<td>{{item.Contact}}</td>
<td>
......@@ -528,6 +553,7 @@ export default {
children: node.ChildList
};
},
CustomerException: [],
datainfo:{},
CustomerBrandList:[],
DepartmentId: null,
......@@ -546,6 +572,7 @@ export default {
jySort: 'desc',
rtsSort: '',
orderBy: 'TradeMoney desc',
ExceptionCount: 0,
},
RecipientMsg: {
CustomerIdArr: [],
......@@ -736,6 +763,13 @@ export default {
this.$message.info("已取消删除!");
});
},
yichangde(obj){
this.apipost("app_get_GetCustomerException", {customerId: obj.CustomerIdS},res => {
if (res.data.resultCode == 1) {
this.CustomerException = res.data.data
}
})
},
saveVisa() {
// 保存
if (this.addMsg.District == "") {
......@@ -1425,4 +1459,15 @@ export default {
.customerTransfer .el-button-group{
padding-top: 10px;
}
.yichangde{
display: inline-block;
border-radius: 50%;
color: red;
border: 1px solid red;
font-size: 12px;
width: 18px;
height: 18px;
text-align: center;
cursor:pointer;
}
</style>
......@@ -366,7 +366,7 @@ export default {
defaultImg:
'this.src="' + require("../../assets/img/litheader.png") + '"',
mapType: "1",
keys: "?ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX&service_id=203768",
keys: "?ak=L5Qw0GlbbCIMwgR4Uug3ogM40Imkd3CV&service_id=203768",
dateTime: "",
entity_name: "",
msg: {
......
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