Commit 896bd014 authored by 华国豪's avatar 华国豪 🙄

新增很多页面

parent 126afeb5
......@@ -186,6 +186,9 @@ table { border-collapse:collapse; border-spacing:0; }
font-size: 14px;
font-weight: bold;
}
.bold{
font-weight: bold;
}
textarea{
resize:none!important;
}
......@@ -200,7 +203,11 @@ textarea{
font-size: 12px;
}
.wap1{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* flex */
.flex-center{
display: flex;
......
......@@ -12,11 +12,11 @@
<i class="iconfont iconVerifiedcustomername"></i>
</div>
<div class="title">新建客户</div>
<div class="result">10</div>
<div class="result">{{Briefing.customerNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconzujiantubiaokupx_- red"></i>
<span class="val red">30%</span>
<span class="val red">{{Briefing.customerRate}}%</span>
</div>
</div>
<div class="shang-list-item">
......@@ -24,11 +24,11 @@
<i class="iconfont iconlianxiren"></i>
</div>
<div class="title">新建联系人</div>
<div class="result">30</div>
<div class="result">{{Briefing.contactNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconic_trending_down_px green"></i>
<span class="val green">5%</span>
<span class="val green">{{Briefing.contactRate}}%</span>
</div>
</div>
<div class="shang-list-item">
......@@ -36,11 +36,11 @@
<i class="iconfont iconshangji-"></i>
</div>
<div class="title">新建商机</div>
<div class="result">5</div>
<div class="result">{{Briefing.businessNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconchiping"></i>
<span class="val red">持平</span>
<span class="val red">{{Briefing.businessRate}}</span>
</div>
</div>
<div class="shang-list-item">
......@@ -48,11 +48,11 @@
<i class="iconfont icondingdan"></i>
</div>
<div class="title">新建订单</div>
<div class="result">9</div>
<div class="result">{{Briefing.orderNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconzujiantubiaokupx_- red"></i>
<span class="val red">80%</span>
<span class="val red">{{Briefing.orderRate}}%</span>
</div>
</div>
<div class="shang-list-item">
......@@ -60,11 +60,11 @@
<i class="iconfont iconjine"></i>
</div>
<div class="title">订单金额</div>
<div class="result">3,000,000</div>
<div class="result">{{Briefing.orderPriceNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconic_trending_down_px green"></i>
<span class="val green">1%</span>
<span class="val green">{{Briefing.orderPriceRate}}%</span>
</div>
</div>
<div class="shang-list-item">
......@@ -72,11 +72,11 @@
<i class="iconfont iconmoney"></i>
</div>
<div class="title">新建收款</div>
<div class="result">200,000</div>
<div class="result">{{Briefing.financePriceNum}}</div>
<div class="eq">
较上月
<i class="iconfont iconzujiantubiaokupx_- red"></i>
<span class="val red">10%</span>
<span class="val red">{{Briefing.financePriceRate}}%</span>
</div>
</div>
<div class="shang-list-item">
......@@ -116,14 +116,14 @@
<el-col :span="16">
<div class="money-box">
<small></small>
16000.00
{{Briefing.totalCommission}}
</div>
<div class="tips">本月提成</div>
</el-col>
</el-row>
</div>
<div class="tic-chart">
<ticheng />
<div class="tic-chart" v-if="Briefing.sixMonthCommissionList">
<ticheng :MYdata="Briefing.sixMonthCommissionList"/>
</div>
</el-card>
<el-card class="zhou-card" shadow="never">
......@@ -131,29 +131,29 @@
<el-col :span="10" class="title">本周销冠</el-col>
<el-col :span="14" class="money-box">
<small></small>
560000.00
{{Briefing.model.TotalPrice}}
</el-col>
</el-row>
<el-row>
<el-col span="24">
<el-col :span="24">
<span class="zhou-head">
<img
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1580985297255&di=d10539f3a69a8507564aaa3ac4fc131b&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_mini%2Cc_zoom%2Cw_640%2Fimages%2F20170728%2F5843abd8cdb74745a2fe2349879cb055.jpeg"
:src="Briefing.model.EmployeeImg"
alt
/>
</span>
</el-col>
</el-row>
<div class="zhou-name">吴彦祖(香港)</div>
<div class="zhou-name">{{Briefing.model.EmployeeName}}</div>
<div class="zhou-depart">
香港印象
<b>·</b>销售一组
{{Briefing.model.BranchName}}
<b>·</b>{{Briefing.model.DeptName}}
</div>
</el-card>
</el-col>
</el-row>
<el-row :gutter="25" style="margin-top:25px;">
<el-col span="10">
<el-col :span="10">
<el-card class="sum-card" shadow="never">
<div slot="header" class="clearfix">
<span>数据汇总</span>
......@@ -164,11 +164,11 @@
<div class="item-name">客户汇总</div>
<div class="item-hui">
新建客户
<b>0</b>
<b>{{Briefing.allCustomerCount}}</b>
</div>
<div class="item-hui">
转成交客户
<b>0</b>
<b>{{Briefing.caclCount}}</b>
</div>
</div>
<div class="sum-list-item">
......@@ -176,11 +176,11 @@
<div class="item-name">跟进汇总</div>
<div class="item-hui">
跟进客户
<b>0</b>
<b>{{Briefing.followUpCount}}</b>
</div>
<div class="item-hui">
新建客户中未跟进
<b>0</b>
<b>{{Briefing.notFollowUpCount}}</b>
</div>
</div>
<div class="sum-list-item">
......@@ -188,11 +188,11 @@
<div class="item-name">商机汇总</div>
<div class="item-hui">
新建商机
<b>0</b>
<b>{{Briefing.allBusinessCount}}</b>
</div>
<div class="item-hui">
赢单商机
<b>0</b>
<b>{{Briefing.winningBusiness}}</b>
</div>
</div>
<div class="sum-list-item">
......@@ -200,11 +200,11 @@
<div class="item-name">订单汇总</div>
<div class="item-hui">
新建订单
<b>0</b>
<b>{{Briefing.allOrderCount}}</b>
</div>
<div class="item-hui">
订单金额
<b>0</b>
<b>{{Briefing.allOrderPrice}}</b>
</div>
</div>
<!-- <div class="sum-list-item">
......@@ -220,10 +220,10 @@
<el-card class="notinmoney-card" shadow="never">
<div class="title">待收款汇总</div>
<div class="money">
<small></small>3,600,000.00
<small></small>{{Briefing.DueInMoney}}
</div>
<div class="charts-box">
<notincome />
<div class="charts-box" v-if="Briefing.sixOrderList">
<notincome :MYdata='Briefing.sixOrderList'/>
</div>
</el-card>
</el-col>
......@@ -237,42 +237,42 @@
<div class="icon"></div>
<div class="item-name">超过7天未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.sevenDayNum}}</b>
</div>
</div>
<div class="sum-list-item">
<div class="icon green"></div>
<div class="item-name">超过15天未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.fifteenDayNum}}</b>
</div>
</div>
<div class="sum-list-item">
<div class="icon blue"></div>
<div class="item-name">超过30天未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.ThirtyDayNum}}</b>
</div>
</div>
<div class="sum-list-item">
<div class="icon zi"></div>
<div class="item-name">超过3个月未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.threeMonthNum}}</b>
</div>
</div>
<div class="sum-list-item">
<div class="icon qing"></div>
<div class="item-name">超过6个月未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.sixMonthNum}}</b>
</div>
</div>
<div class="sum-list-item">
<div class="icon block"></div>
<div class="item-name">逾期未联系的客户</div>
<div class="item-hui">
<b>0</b>
<b>{{Briefing.beOverdueNum}}</b>
</div>
</div>
</div>
......@@ -288,85 +288,33 @@
<span>排行榜</span>
</el-col>
<el-col :span="12" class="option-item" style="">
<el-select v-model="rankType" size="mini" style="width:120px;" placeholder="请选择">
<el-option label="销售额排名" value="1"></el-option>
<el-option label="新建客户排名" value="2"></el-option>
<el-option label="新建商机排名" value="3"></el-option>
<el-select v-model="rankType" size="mini" style="width:120px;" placeholder="请选择" @change="GetRankingList">
<el-option label="销售额排名" :value="1"></el-option>
<el-option label="新建客户排名" :value="2"></el-option>
<el-option label="新建商机排名" :value="3"></el-option>
</el-select>
</el-col>
</el-row>
</div>
<div class="rank-list">
<div class="rank-list-item">
<div class="rank red">NO.1</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
</div>
<div class="score">33,000,000</div>
</div>
<div class="rank-list-item">
<div class="rank zi">NO.2</div>
<div class="rank-list-item" v-for="(item, index) in RankingList" :key="index">
<div class="rank red">NO.{{item.RankNum}}</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
<el-avatar :size="40" :src="item.EmpPhoto"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
<div class="rn">{{item.EmpName}}</div>
<div>{{item.DeptName}}</div>
</div>
<div class="score">33,000,000</div>
<div class="score">{{item.TotalNum}}</div>
</div>
<div class="rank-list-item">
<div class="rank blue">NO.3</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
</div>
<div class="score">33,000,000</div>
</div>
<div class="rank-list-item">
<div class="rank">NO.4</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
</div>
<div class="score">33,000,000</div>
</div>
<div class="rank-list-item">
<div class="rank">NO.5</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
</div>
<div class="score">33,000,000</div>
</div>
<div class="rank-list-item">
<div class="rank">NO.6</div>
<div class="head">
<el-avatar :size="40" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar>
</div>
<div class="rank-name">
<div class="rn">尼尔小姐姐</div>
<div>机械印象 销售一组</div>
</div>
<div class="score">33,000,000</div>
<div v-if="RankingList.length < 1" class="nodata font-color-info">
<p>暂无数据</p>
</div>
</div>
</el-card>
</el-col>
<el-col span="8">
<el-col :span="8">
<el-card class="loudou-card" shadow="never">
<div slot="header" class="clearfix">
<el-row>
......@@ -381,7 +329,10 @@
</el-row>
</div>
<div style="width:100%;height:100%;">
<sjld/>
<!-- <sjld :MYdata="[]"/> -->
<div v-if="RankingList.length < 1" class="nodata font-color-info">
<p>努力开发中</p>
</div>
</div>
</el-card>
</el-col>
......@@ -401,8 +352,30 @@ export default {
},
data() {
return {
rankType: "1"
rankType: 1,
RankingList: [],
Briefing: {model: {TotalPrice: 0}}
};
},
mounted() {
this.GetRankingList()
this.GetBriefing()
},
methods: {
GetBriefing(){
this.apipost('/api/CustomerDashboard/GetBriefing', {}, res=>{
if (res.data.resultCode == 1) {
this.Briefing = res.data.data
}
})
},
GetRankingList(){
this.apipost('/api/CustomerDashboard/GetRankingList', {rankType: this.rankType}, res=>{
if (res.data.resultCode == 1) {
this.RankingList = res.data.data
}
})
}
}
};
</script>
......@@ -473,7 +446,7 @@ export default {
font-weight: bold;
}
.box-card .shang-list .shang-list-item .eq {
width: 180px;
width: 200px;
font-size: 12px;
color: gray;
}
......
......@@ -71,7 +71,7 @@
@click="changeMenu(item, index)"
>
<div>
<i :class="[item.MenuStyle ? JSON.parse(item.MenuStyle).icon : '']"></i>
<i class="iconfont" :class="[item.MenuStyle ? JSON.parse(item.MenuStyle).icon : '']"></i>
<span>{{item.MenuName}}</span>
</div>
</li>
......
<style>
.MyCoupon{
background-color: RGBA(246, 245, 248, 1);
height: 100%;
}
.MyCoupon .menu_list ul{
height: 40px;
line-height: 40px;
}
.MyCoupon .menu_list ul li{
float: left;
width: 137px;
text-align: center;
cursor: pointer;
}
.MyCoupon .menu_list ul li:last-child{
float: right;
width: 60px;
}
.MyCoupon .menu_list ul li .__cp i{
padding-left: 25px;
}
.MyCoupon .menu_list ul li span.__cp{
font-size: 14px;
}
.MyCoupon .menu_list ul li span.__cp._active{
color: rgba(13, 36, 129, 1);
border-bottom: 2px solid rgba(13, 36, 129, 1);
display: inline-block;
}
.Coupon-box{
position: relative;
max-height: calc(100vh - 45px);
overflow: auto;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-flow:row wrap;
}
.Coupon-item{
position: relative;
height: 205px;
margin-bottom: 25px;
width: 218px;
margin-right: 25px;
}
.Coupon-item .top{
position: absolute;
width: calc(100%);
height: 104px;
background: url('../../assets/img/cust/bg1.png');
background-repeat: no-repeat;
background-size: 100% 100%;
padding: 10px 30px;
box-sizing: border-box;
color: white
}
.Coupon-item .top2{
background: url('../../assets/img/cust/bg2.png');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.Coupon-item .top3{
background: url('../../assets/img/cust/bg3.png');
background-repeat: no-repeat;
background-size: 100% 100%;
}
.Coupon-item .top .zhe{
font-size: 30px;
}
.Coupon-item .top .zhe span{
font-size: 20px;
}
.Coupon-item .top .di{
font-size: 20px;
}
.Coupon-item .top .di span{
font-size: 30px;
}
.Coupon-item .top .man{
color: white;
font-size: 12px;
margin-bottom: 5px;
}
.Coupon-item .top .time{
font-size: 12px;
color: rgba(80, 105, 204, 1);
}
.Coupon-item .bottom{
position: absolute;
top: 104px;
background-color: white;
width: calc(100%);
padding: 10px 14px;
box-sizing: border-box;
}
.Coupon-item .bottom .bold{
margin-bottom: 4px;
}
</style>
<template>
<div class="MyCoupon">
<el-row class="menu_list">
<ul class="clearfix">
<li>
<el-dropdown trigger="click" placement="bottom-start">
<span class="el-dropdown-link">
<span class="__cp">
{{dropdownText}}
<i class="el-icon-arrow-down"></i>
</span>
</span>
<el-dropdown-menu class="changelanguage" slot="dropdown">
<el-dropdown-item @click.native="dropdownText = '不限', msg.couponsUseScope = 0, getList(), resetPageIndex()">不限</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '通用', msg.couponsUseScope = 1, getList(), resetPageIndex()">通用</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '跟团游', msg.couponsUseScope = 2, getList(), resetPageIndex()">跟团游</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '当地游'">当地游</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '定制游'">定制游</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '签证', msg.couponsUseScope = 3, getList(), resetPageIndex()">签证</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '机票', msg.couponsUseScope = 4, getList(), resetPageIndex()">机票</el-dropdown-item>
<el-dropdown-item @click.native="dropdownText = '酒店', msg.couponsUseScope = 10, getList(), resetPageIndex()">酒店</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</li>
<li>
<span class="__cp" :class="{_active: typeActive === 1 }" @click="typeActive = 1, msg.couponsType = 0, msg.couponEffectStatus = 1, getList(), resetPageIndex()">全部优惠券</span>
</li>
<li>
<span class="__cp" :class="{_active: typeActive === 2 }" @click="typeActive = 2, msg.couponsType = 2, msg.couponEffectStatus = 1, getList(), resetPageIndex()">折扣券</span>
</li>
<li>
<span class="__cp" :class="{_active: typeActive === 3 }" @click="typeActive = 3, msg.couponsType = 1, msg.couponEffectStatus = 1, getList(), resetPageIndex()">抵扣券</span>
</li>
<li>
<span class="__cp" :class="{_active: typeActive === 4 }" @click="typeActive = 4, msg.couponEffectStatus = 3, getList(), resetPageIndex()">已过期</span>
</li>
<li>
<img src="../../assets/img/cust/close.png" alt="" @click="$emit('handleClose')">
</li>
</ul>
</el-row>
<div class="Coupon-box" v-loading="loading">
<div class="Coupon-item" v-for="(item, index) in dataList" :key="index">
<div class="top" :class="{'top2': item.couponsType !== 1, 'top3': item.couponEffectStatus===3}">
<p class="zhe" v-if="item.couponsType !== 1">{{item.denomination}} <span></span></p>
<p class="di" v-else><span>{{item.denomination}}</span></p>
<p class="man">{{item.useCondition}}可用</p>
<p class="time" :style="{'color': item.couponsType !== 1 && tem.couponEffectStatus !== 3 ? 'rgba(197, 120, 80, 1)': item.couponEffectStatus===3 ? 'rgba(153, 153, 153, 1)' : ''}">{{item.effectDate | YMD}}-{{item.expirationDate | YMD}}</p>
</div>
<div class="bottom font-size-12">
<p class="bold">可用系列及线路</p>
<p class="font-color-info" style="margin-bottom: 5px;">{{item.lineName === '' ? '不限' : item.lineName}}-{{item.lineTeamName === '' ? '不限' : item.lineTeamName}}</p>
<p class="bold">优惠券来源</p>
<p class="font-color-info">{{item.remark}}</p>
</div>
</div>
</div>
<div v-if="dataList.length < 1" class="nodata font-color-info">
<p>暂无数据</p>
</div>
</div>
</template>
<script>
import moment from 'moment'
export default {
props: ['CustomerAccountId'],
data() {
return {
loading: false,
dropdownText: "不限",
typeActive: 1,
msg: {
pageIndex: 1,
pageSize: 999,
useState: 1,
lineId: 0,
lineteamId: 0,
couponsName: "",
couponsType: "",
couponStatus: 1,
couponEffectStatus: 1,
couponsUseScope: 0,
userId:'',
},
dataList: [],
totalCount: 0,
Count: 0,
};
},watch:{
},
mounted() {
this.getList()
},
methods: {
// 获取数据
getList() {
this.msg.userId = this.CustomerAccountId
this.loading = true;
this.apiJavaPost(
"/api/b2b/user/getUserCouponAllotList",
this.msg,
res => {
let nowTime = moment().format("YYYY-MM-DD HH:mm:ss");
if (res.data.resultCode == 1) {
let data = res.data.data.pageData;
data.forEach((x, i) => {
let cha = this.DateDiff(nowTime, x.expirationDate);
if (cha < 3) {
x.warning = true;
} else {
x.warning = false;
}
});
this.dataList = data;
this.totalCount = res.data.data.pageCount;
this.Count = res.data.data.count;
this.$forceUpdate()
} else {
this.Error(res.data.message);
}
this.loading = false;
},
null
);
},
//查询初始化页码
resetPageIndex() {
this.msg.pageIndex = 1;
},
}
}
</script>
\ No newline at end of file
......@@ -38,6 +38,26 @@
.perceItem .el-progress-bar__outer{
border-radius: 0
}
.Linetext{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin:39px auto;
color:#2C3343;
width: 100px;
height:70px;
}
.circleItem{
width: 28%;
text-align:center;
display: inline-block;
}
.third .perRow{
display: flex;
align-items: center;
}
</style>
<template>
<div class="Transaction" v-loading="loading">
......@@ -74,7 +94,7 @@
<p class="font-size-12">优惠券</p>
<div>
<img src="../../assets/img/cust/qianbao.png" alt="">
<span class="font-color-link">{{datainfo.CouponNum}}</span>
<span class="font-color-link cp" @click="CustomerAccountId = datainfo.CustomerAccountId, drawer = true">{{datainfo.CouponNum}}</span>
</div>
</div>
</div>
......@@ -89,9 +109,17 @@
<p style="color:#2C3343;margin-bottom:30px" class="font-14-blod">价格区间占比</p>
<div v-for="(item,index) in datainfo.priceList" :key="index" class="perceItem">
<el-row :gutter="18">
<el-col style="color:#9D9FA6;font-size:12px;margin-top: 2px;" :span="7"><span>{{item.TypeName}}</span></el-col>
<el-col class="wap1" style="color:#9D9FA6;font-size:12px;margin-top: 2px;" :span="7">
<el-tooltip class="item" effect="dark" :content="item.TypeName" placement="top">
<span>{{item.TypeName}}</span>
</el-tooltip>
</el-col>
<el-col :span="12" style="margin-top:4px"><el-progress :show-text="false" :stroke-width="14" :percentage="Number(item.Total)"></el-progress></el-col>
<el-col :span="5"><span style="color:#2C3343;font-size:14px">{{Number(item.Total)}}%,{{item.TotalGuestNum}}</span></el-col>
<el-col :span="5" class="wap1">
<el-tooltip class="item" effect="dark" :content="`${Number(item.Total)}%,${item.TotalGuestNum}人`" placement="top">
<span style="color:#2C3343;font-size:14px">{{Number(item.Total)}}%,{{item.TotalGuestNum}}</span>
</el-tooltip>
</el-col>
</el-row>
</div>
</div>
......@@ -104,15 +132,15 @@
<el-row>
<el-col :span="6">
<div>
<p style="color:#5D78FF"><span style="font-size:14px"></span><span style="font-size:28px">{{datainfo.yearTotalPrice}}</span></p>
<p style="color:#5D78FF"><span style="font-size:14px"></span><span style="font-size:14px">{{datainfo.yearTotalPrice}}</span></p>
<p style="color:#93959A;font-size:10px">本年预计收益</p>
</div>
<div style="margin-top:20px">
<p style="color:#2C3343"><span style="font-size:14px"></span><span style="font-size:20px">{{datainfo.allianceTotalYearPrice}}</span></p>
<p style="color:#2C3343"><span style="font-size:14px"></span><span style="font-size:12px">{{datainfo.allianceTotalYearPrice}}</span></p>
<p style="color:#93959A;font-size:10px">本年交易金额</p>
</div>
<div style="margin-top:20px">
<p style="color:#93959A"><span style="font-size:14px"></span><span style="font-size:20px">{{datainfo.yeayGoTotalPrice}}</span></p>
<p style="color:#93959A"><span style="font-size:14px"></span><span style="font-size:12px">{{datainfo.yeayGoTotalPrice}}</span></p>
<p style="color:#93959A;font-size:10px">去年收益</p>
</div>
</el-col>
......@@ -132,8 +160,8 @@
</el-col>
<el-col :span="8">
<span v-if="item.ActivateState==2"><img style="width:20px;height:20px" src="../../assets/img/cust/gou.png" alt=""></span>
<span style="font-size:14px;font-weight:bold;color:#2C3343" v-if="item.ActivateState==0">未开启</span>
<span style="font-size:14px;font-weight:bold;color:#2C3343" v-if="item.ActivateState==1">还差 ¥{{item.PriceSpread}}满足</span>
<span style="font-size:12px;font-weight:bold;color:#2C3343" v-if="item.ActivateState==0">未开启</span>
<span style="font-size:12px;font-weight:bold;color:#2C3343" v-if="item.ActivateState==1">还差 ¥{{item.PriceSpread}}满足</span>
</el-col>
</el-row>
</div>
......@@ -153,7 +181,7 @@
<div v-for="(item,index) in datainfo.LineIdList" :key="index+100" class="circleItem">
<div style="height:126px;position:relative">
<div class="Linetext">
<p style="font-size:34px">{{Number(item.Total)}}<span style="font-size:14px">%</span></p>
<p style="font-size:18px">{{Number(item.Total)}}<span style="font-size:14px">%</span></p>
<p style="font-size:14px">{{item.TypeName}}</p>
</div>
<el-progress :color="item.color" :show-text="false" type="circle" :stroke-width="16" :percentage="Number(item.Total)"></el-progress>
......@@ -163,203 +191,220 @@
</div>
</el-col>
</el-row>
<el-drawer
:with-header="false"
size='70%'
:visible.sync="drawer"
direction="rtl"
:modal="false"
:before-close="handleClose">
<Coupon :CustomerAccountId="CustomerAccountId" @handleClose="drawer = false"/>
</el-drawer>
</div>
</template>
<script>
import Coupon from "./Coupon"
export default {
props: ['CustomerId'],
data() {
return {
colorList: ["#FFB822","#FD3995","#5D78FF","#59C5F8","#34BFA3"],
datainfo: {},
datedata:[],
loading: false,
date:[],
};
},watch:{
},
mounted() {
this.getData()
// this.init()
},
methods: {
init() {
let myChart = this.$echarts.init(this.$refs.myLineRank);
let dataAlias = ["今年", "去年"];
let data2 = [{
name: "今年",
value: '80'
}, {
name:"去年",
value: '20',
}];
let data3 = [{
name: "今年",
value: '80'
}, {
name:"去年",
value: '20',
}];
let option = {
color:['#0D2481', '#E6ECF8'],
tooltip: {
show:false
},
graphic: [
{
type: "text",
left:'center',
top: "center",
style: {
text: '日本线',
textAlign: "center",
fontSize: 14,
width: 120
components: {
Coupon
},
props: ['CustomerId'],
data() {
return {
colorList: ["#FFB822","#FD3995","#5D78FF","#59C5F8","#34BFA3"],
datainfo: {},
datedata:[],
loading: false,
date:[],
drawer: false,
CustomerAccountId: 0
};
},watch:{
},
mounted() {
this.getData()
// this.init()
},
methods: {
handleClose(done) {
done();
},
init() {
let myChart = this.$echarts.init(this.$refs.myLineRank);
let dataAlias = ["今年", "去年"];
let data2 = [{
name: "今年",
value: '80'
}, {
name:"去年",
value: '20',
}];
let data3 = [{
name: "今年",
value: '80'
}, {
name:"去年",
value: '20',
}];
let option = {
color:['#0D2481', '#E6ECF8'],
tooltip: {
show:false
},
graphic: [
{
type: "text",
left:'center',
top: "center",
style: {
text: '日本线',
textAlign: "center",
fontSize: 14,
width: 120
}
}
}
],
calculable: true,
series: [
{
name: "日本线",
type: "pie",
radius: ["70%", "90%"],
hoverAnimation: false,
legendHoverLink:false,
tooltip:false,
startAngle:90,
itemStyle: {
],
calculable: true,
series: [
{
name: "日本线",
type: "pie",
radius: ["70%", "90%"],
hoverAnimation: false,
legendHoverLink:false,
tooltip:false,
startAngle:90,
itemStyle: {
normal: {
label: {
show: false
},
labelLine: {
show: false
}
}
},
data: data2
},
{
type: "pie",
radius: ["50%", "60%"],
hoverAnimation: false,
legendHoverLink:false,
tooltip:false,
startAngle:90,
itemStyle: {
emphasis: {
barBorderRadius: 30
},
normal: {
label: {
show: false
},
labelLine: {
show: false
}
show: false
},
}
},
data: data2
},
{
type: "pie",
radius: ["50%", "60%"],
hoverAnimation: false,
legendHoverLink:false,
tooltip:false,
startAngle:90,
itemStyle: {
emphasis: {
barBorderRadius: 30
},
normal: {
label: {
show: false
},
labelLine: {
show: false
},
data: data3
}
},
data: data3
]
};
myChart.setOption(option);
},
colorMethod(item){
if(item.ActivateState==2){
return '#34BFA3';
}
]
};
myChart.setOption(option);
},
colorMethod(item){
if(item.ActivateState==2){
return '#34BFA3';
}
if(item.ActivateState==1){
return '#FFB822';
}else{
return '#ebeef5';
}
},
getData(){
this.loading=true;
this.apipost2('app_customer_GetCustomerOrderInfo', {customerId:this.CustomerId}, res => {
this.loading=false;
if (res.data.resultCode == 1) {
res.data.data.LineIdList.forEach(item => {
this.colorList.forEach(color=>{
item.color=color;
if(item.ActivateState==1){
return '#FFB822';
}else{
return '#ebeef5';
}
},
getData(){
this.loading=true;
this.apipost2('app_customer_GetCustomerOrderInfo', {customerId:this.CustomerId}, res => {
this.loading=false;
if (res.data.resultCode == 1) {
res.data.data.LineIdList.forEach(item => {
this.colorList.forEach(color=>{
item.color=color;
})
});
this.datainfo = res.data.data;
res.data.data.yearMonthList.forEach(item=>{
this.date.push(item.TypeName.substr(2,8));
this.datedata.push(item.Total);
})
});
this.datainfo = res.data.data;
res.data.data.yearMonthList.forEach(item=>{
this.date.push(item.TypeName.substr(2,8));
this.datedata.push(item.Total);
})
this.datedata = [200,21,20,55,88,99,66,99,456,564,233,5]
this.LineChart();
} else {}
}, err => {})
},
LineChart(){
var that = this;
var myChart = this.$echarts.init(document.getElementById('chartsMap'));
var option={
grid: {
left: '5%',
right: '5%',
bottom: 60
},
dataZoom: [{
startValue: this.date[0],
fillerColor:"rgba(13, 36, 129, .2)", //选中范围的填充颜色。
borderColor:"rgba(238, 238, 238, 1)", //边框颜色。
}, {
type: 'inside'
}],
title: {
text: '近12月交易走势',
color:"#2C3343",
textStyle: {
fontSize: 14,
fontWeight: 'bold'
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: this.date
},
yAxis: {
type: 'value',
splitLine:{
show:true,
lineStyle:{
type:'dashed'
}
}
},
series: [{
data: that.datedata,
type: 'line',
smooth: true,
itemStyle: {
opacity: 0
},
lineStyle: {
color: "#0D2481",
shadowBlur: 2,
width: 1,
shadowColor: "#0D2481"
},
areaStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "rgba(13, 36, 129, 1)" },
{ offset: .8, color: "rgba(13, 36, 129, 0)" }
])
this.LineChart();
} else {}
}, err => {})
},
LineChart(){
var that = this;
var myChart = this.$echarts.init(document.getElementById('chartsMap'));
var option={
grid: {
left: '10%',
right: '5%',
bottom: 60
},
dataZoom: [{
startValue: this.date[0],
fillerColor:"rgba(13, 36, 129, .2)", //选中范围的填充颜色。
borderColor:"rgba(238, 238, 238, 1)", //边框颜色。
}, {
type: 'inside'
}],
title: {
text: '近12月交易走势',
color:"#2C3343",
textStyle: {
fontSize: 14,
fontWeight: 'bold'
}
},
}]
};
myChart.setOption(option);
},
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: this.date
},
yAxis: {
type: 'value',
splitLine:{
show:true,
lineStyle:{
type:'dashed'
}
}
},
series: [{
data: that.datedata,
type: 'line',
smooth: true,
itemStyle: {
opacity: 0
},
lineStyle: {
color: "#0D2481",
shadowBlur: 2,
width: 1,
shadowColor: "#0D2481"
},
areaStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "rgba(13, 36, 129, 1)" },
{ offset: .8, color: "rgba(13, 36, 129, 0)" }
])
}
},
}]
};
myChart.setOption(option);
},
}
}
</script>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<div class="tools">
<h1>商机管理</h1>
<div style="width: 340px;">
<el-input placeholder="请输入商机名" v-model="msg.BusinessName" class="input-with-select">
<el-input placeholder="请输入商机名" v-model="msg.KeyWord" class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="getList"></el-button>
</el-input>
</div>
......@@ -59,7 +59,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -174,7 +174,7 @@
</el-table>
</div>
<div>
<!-- <el-pagination
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -183,7 +183,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-drawer
:with-header="false"
......@@ -370,7 +370,7 @@ export default {
EmpId: '',
},
msg: {
BusinessName: '',
KeyWord: '',
pageIndex: 1,
pageSize: 30,
ContactNumber: '',
......
......@@ -5,74 +5,13 @@
</template>
<script>
export default {
props:{
data:{
type:Array,
default:[]
}
},
props: ['MYdata'],
data() {
return {
datatwo:[]
};
},
mounted() {
this.data=[
{
dataStr:'8月',
preferPrice:12000
},
{
dataStr:'9月',
preferPrice:120000
},
{
dataStr:'10月',
preferPrice:80000
},
{
dataStr:'11月',
preferPrice:85000
},
{
dataStr:'12月',
preferPrice:7000
},
{
dataStr:'1月',
preferPrice:160000
},
{
dataStr:'2月',
preferPrice:300000
},
]
this.datatwo=[
{
dataStr:'9月',
preferPrice:480000
},
{
dataStr:'10月',
preferPrice:120000
},
{
dataStr:'11月',
preferPrice:850000
},
{
dataStr:'12月',
preferPrice:70000
},
{
dataStr:'1月',
preferPrice:320000
},
{
dataStr:'2月',
preferPrice:700000
},
]
this.init();
},
methods: {
......@@ -80,12 +19,11 @@ export default {
let myChart = this.$echarts.init(this.$refs.myLineRank);
var dataAxis = [];
var data2 = [];
this.data.forEach(x=>{
dataAxis.push(x.dataStr)
data2.push(x.preferPrice)
this.MYdata.forEach(x=>{
dataAxis.push(x.StartTime)
data2.push(x.DueInMoney)
})
let option = {
// backgroundColor: "#0abb87", //"#19133e6e",
title: {
show: false
},
......
......@@ -5,17 +5,12 @@
</template>
<script>
export default {
props: {
data: {
type: Array,
default: []
}
},
props: ['MYdata'],
data() {
return {};
},
mounted() {
this.data = [
this.MYdata = [
{
dataStr: "9月",
preferPrice: 12000
......@@ -48,7 +43,7 @@ export default {
let myChart = this.$echarts.init(this.$refs.myLineRank);
var dataAxis = [];
var data2 = [];
this.data.forEach(x => {
this.MYdata.forEach(x => {
dataAxis.push(x.dataStr);
data2.push(x.preferPrice);
});
......
......@@ -5,42 +5,11 @@
</template>
<script>
export default {
props:{
data:{
type:Array,
default:[]
}
},
props:['MYdata'],
data() {
return {};
},
mounted() {
this.data=[
{
dataStr:'9月',
preferPrice:12000
},
{
dataStr:'10月',
preferPrice:8000
},
{
dataStr:'11月',
preferPrice:8500
},
{
dataStr:'12月',
preferPrice:7000
},
{
dataStr:'1月',
preferPrice:16000
},
{
dataStr:'2月',
preferPrice:0
},
]
this.init();
},
methods: {
......@@ -48,9 +17,9 @@ export default {
let myChart = this.$echarts.init(this.$refs.myLineRank);
var dataAxis = [];
var data2 = [];
this.data.forEach(x=>{
dataAxis.push(x.dataStr)
data2.push(x.preferPrice)
this.MYdata.forEach(x=>{
dataAxis.push(x.Periods)
data2.push(x.CommissionMoney)
})
let option = {
// backgroundColor: "#0abb87", //"#19133e6e",
......
<style>
@import '../../assets/css/customerManage.css';
.tools{
/* .tools{
padding-bottom: 0
}
.tools-item{
......@@ -19,14 +19,15 @@
.tools-item .active{
color: rgb(35, 98, 251);
border-color: rgb(35, 98, 251);
}
} */
</style>
<template>
<div class="customerManage">
<div class="tools">
<div class="tools-item">
<h1 class="cp" :class="[activeMenu === 1 ? 'active' : '']" @click="activeMenu = 1, getList()">客户线索管理</h1>
<h1 class="cp" :class="[activeMenu === 2 ? 'active' : '']" @click="activeMenu = 2">直客线索管理</h1>
<h1>线索管理</h1>
<!-- <h1 class="cp" :class="[activeMenu === 1 ? 'active' : '']" @click="activeMenu = 1, getList()">客户线索管理</h1>
<h1 class="cp" :class="[activeMenu === 2 ? 'active' : '']" @click="activeMenu = 2">直客线索管理</h1> -->
</div>
<div style="width: 340px;">
<el-input placeholder="请输入线索名称/手机" v-model="msg.CustomerName" class="input-with-select">
......@@ -35,7 +36,13 @@
</div>
<div class="rightmenu">
<!-- <el-button class="crm-btn query-btn" @click="getList">查询</el-button> -->
<el-button icon="el-icon-plus" class="crm-btn org-btn" @click="CustomerId = 0, dialogTableVisibleName = '新建线索', dialogTableVisible=true">新建线索</el-button>
<el-dropdown @command="handleCommand">
<el-button icon="el-icon-plus" class="crm-btn org-btn">新建线索</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1"><i class="iconfont iconkehu"></i> 客户线索</el-dropdown-item>
<el-dropdown-item command="2"><i class="iconfont icontongxunlu"></i> 直客线索</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-dropdown>
<el-button class="crm-btn crm-btn-more easy-btn margin-right0">
<i class="iconfont icongengduo"></i>
......@@ -48,8 +55,8 @@
</div>
</div>
<div class="query-box">
<div v-if="!multipleSelection.length">
<div>
<el-row v-if="!multipleSelection.length" :gutter="30">
<el-col :span="4">
<span class="font-size-12" style="padding-right: 10px">场景</span>
<el-select size="mini" v-model="msg.WhereType" placeholder="请选择" @change="getList">
<el-option
......@@ -59,8 +66,15 @@
:value="item.id">
</el-option>
</el-select>
</div>
</div>
</el-col>
<el-col :span="4">
<span class="font-size-12" style="padding-right: 10px">客户类型</span>
<el-select size="mini" v-model="msg.CustomerType" placeholder="请选择" @change="getList">
<el-option key="0" label="客户" :value="0"></el-option>
<el-option key="1" label="直客" :value="1"></el-option>
</el-select>
</el-col>
</el-row>
<div v-else class="flex-center">
<p class="font-size-12">已选 <span class="font-color-link">{{multipleSelection.length}}</span></p>
<div class="selection-box">
......@@ -84,7 +98,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -193,7 +207,7 @@
</el-table>
</div>
<div>
<!-- <el-pagination
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -202,7 +216,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-drawer
:with-header="false"
......@@ -212,9 +226,20 @@
:before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" @transferS="transfer" @deleteClue="deleteClue" @watersS="waters" @editCustS="editCust"/>
</el-drawer>
<el-drawer
:with-header="false"
size='70%'
:visible.sync="drawer2"
direction="rtl"
:before-close="handleClose">
<guestInfoBox :CustomerId="CustomerId" @transferS="transfer" @deleteClue="deleteClue" @watersS="waters" @editCustS="editCust"/>
</el-drawer>
<div v-if="dialogTableVisible">
<customerDialogBox @getList="getList" :name="dialogTableVisibleName" :CustomerId="CustomerId"/>
</div>
<div v-if="guestDialogBoxShow">
<guestDialogBox @getList="getList" :name="dialogTableVisibleName" :CustomerId="CustomerId"/>
</div>
<el-dialog :visible.sync="transferVisible" :close-on-click-modal="false" width="450px" custom-class="transfer-box add-box add-box2">
<div class="add-tit" slot="title">
<p><span></span>线索转移</p>
......@@ -247,14 +272,20 @@
import mySelect from "../dialogModel/select";
import customerInfoBox from "./customerInfoBox";
import customerDialogBox from "./customerDialogBox";
import guestDialogBox from "./guestDialogBox";
import guestInfoBox from "./guestInfoBox";
export default {
components: {
mySelect,
customerInfoBox,
customerDialogBox
customerDialogBox,
guestDialogBox,
guestInfoBox
},
data() {
return {
guestDialogBoxShow: false,
drawer2: false,
activeMenu: 1,
queryType2: [
{
......@@ -346,7 +377,8 @@ export default {
pageSize: 30,
ContactNumber: '',
WhereType: -1,
OrderBy: ''
OrderBy: '',
CustomerType: 0,
},
total: 0,
WhereTypeList: [
......@@ -391,9 +423,19 @@ export default {
let $this = this
this.MsgBus.$on('closeCustomerDialogBox', function (){
$this.dialogTableVisible = false
$this.guestDialogBoxShow = false
})
},
methods: {
handleCommand(command){
this.CustomerId = 0
if (command === '1') {
this.dialogTableVisibleName = '新建线索'
this.dialogTableVisible = true
} else {
this.guestDialogBoxShow = true
}
},
Employee(){
let msg = {
RB_Group_id: this.userInfo.RB_Group_id,
......@@ -436,6 +478,7 @@ export default {
if (res.data.resultCode == 1) {
if (type === 1) {} {
this.drawer = false
this.drawer2 = false
}
this.multipleSelection = []
this.$message.success(res.data.message);
......@@ -473,10 +516,15 @@ export default {
this.multipleSelection.map((x, i)=>{
str = str + x + ','
})
this.apipost('/api/Customer/UpdateCustomerClue', {CustomerIds: str.substring(0, str.length - 1)}, res=>{
let msg = {
CustomerIds: str.substring(0, str.length - 1),
CustomerType: this.msg.CustomerType
}
this.apipost('/api/Customer/UpdateCustomerClue', msg, res=>{
if (res.data.resultCode == 1) {
if (type === 1) {} {
this.drawer = false
this.drawer2 = false
}
this.multipleSelection = []
this.$message.success(res.data.message);
......@@ -521,6 +569,7 @@ export default {
this.transferVisible = false
if (type === 3) {} {
this.drawer = false
this.drawer2 = false
}
this.$message.success(res.data.message);
this.getList()
......@@ -540,15 +589,22 @@ export default {
this.getList()
}
},
editCust(){
editCust(type){
this.dialogTableVisibleName = '修改线索'
this.dialogTableVisible = true
if (type === 1) {
this.dialogTableVisible = true
} else {
this.guestDialogBoxShow = true
}
},
openDetails(scope){
this.drawer = true
openDetails(scope){
this.CustomerId = scope.row.CustomerId
this.CustomerName = scope.row.CustomerName
this.drawer = true
if (this.msg.CustomerType === 0) {
this.drawer = true
} else {
this.drawer2 = true
}
},
handleSizeChange(val) {
this.msg.pageSize = val
......
<style>
.customerDialogBox.add-box .add-tit{
display: flex;
justify-content: space-between;
align-items: center;
height: 20px;
}
.customerDialogBox.add-box .add-tit p{
display: flex;
align-items: center;
font-weight: bold;
color:rgba(17,17,17,1);
font-size:14px;
}
.customerDialogBox.add-box .add-tit p span{
display: inline-block;
width:6px;
height:6px;
background:rgba(13,36,129,1);
border-radius:50%;
margin-right: 10px;
}
.customerDialogBox.add-box .el-dialog__header{
padding: 15px 20px;
background:rgba(255,255,255,1);
}
.customerDialogBox.add-box .dialog-footer{
text-align: center;
background-color: rgba(248,250,251,1);
padding-bottom: 20px;
}
.customerDialogBox.add-box .el-dialog__footer{
padding: 0;
}
.customerDialogBox.add-box .el-dialog__body{
background-color: rgba(248,250,251,1);
padding-top: 20px;
max-height: 500px;
overflow: auto;
}
.customerDialogBox .add-box-btn.el-button{
border-radius: 0;
background-color: rgba(13, 36, 129, .8);
border-color: rgba(13, 36, 129, .8);
color: white;
padding: 12px 43px;
}
.customerDialogBox .add-box-btn.el-button:hover{
background-color: rgba(13, 36, 129, 1);
border-color: rgba(13, 36, 129, 1);
color: white;
}
.customerDialogBox .add-box-btn.el-button.add-box-cancel{
color: rgba(13, 36, 129, .8);
background-color: white;
}
.customerDialogBox .add-box-btn.el-button.add-box-cancel:hover{
color: rgba(13, 36, 129, 1);
background-color: white;
}
.customerDialogBox .el-input .el-input-group__append {
background-color: rgba(13, 36, 129, 1);
border-color: rgba(13, 36, 129, 1);
color: #fff;
}
.customerDialogBox .form-box .form-box-tit{
display: flex;
align-items: center;
margin-bottom: 20px;
}
.customerDialogBox .form-box .radius{
display: flex;
width:4px;
height:4px;
background:rgba(255,164,117,1);
border-radius:50%;
margin-right: 10px;
}
.customerDialogBox .up-img-box .uib-item{
margin-right: 30px;
width: 120px;
height: 120px;
background-color: white;
position: relative;
margin-bottom: 30px;
}
.customerDialogBox .up-img-box .uib-item p{
position: absolute;
bottom: -30px;
font-size: 12px;
text-align: center;
width: 100%;
}
.customerDialogBox .up-img-box .uib-item:hover .imgzhe-btn{
opacity: 1
}
.customerDialogBox .imgzhe {
width: 100%;
height: 100%;
position: absolute;
top: 0;
}
.customerDialogBox .imgzhe .imgzhe-btn{
background: rgba(0, 0, 0, 0.6);
width: 100%;
height: 100%;
text-align: center;
line-height: 120px;
position: absolute;
top: 0;
opacity: 1;
transition: all linear .5s
}
.customerDialogBox .imgzhe .imgzhe-btn i{
font-size: 22px;
margin-right: 5px;
color: white;
cursor: pointer;
}
.customerDialogBox .up-ctrl{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.customerDialogBox .up-ctrl>div{
width: 100%;
height: 100%;
text-align: center;
line-height: 140px;
}
</style>
<template>
<el-dialog :visible.sync="dialogTableVisible" @closed="closedDialog" :close-on-click-modal="false" class="add-box add-box1 customerDialogBox">
<div class="add-tit" slot="title">
<p><span></span>{{name}}</p>
<span icon="el-icon-close"></span>
</div>
<div class="form-box" v-if="show">
<el-form :model="form" ref="form" class="MyEditForm" :rules="rules">
<p class="form-box-tit"><span class="radius"></span> 基本信息</p>
<el-row :gutter="30">
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="客户名称" prop="GusetName">
<el-input placeholder="请输入客户姓名" v-model="form.GusetName"></el-input>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="电话" prop="MobilePhone">
<el-input placeholder="请输入联系电话" v-model="form.MobilePhone"></el-input>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="所属客户">
<el-select v-model="form.CustomerID" placeholder="请选择所属客户">
<el-option
v-for='item in CustomerList'
:key="item.CustomerId"
:label="item.CustomerName"
:value="item.CustomerId">
</el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="性别">
<el-select v-model="form.Sex">
<el-option :key="0" label="保密" :value="0"></el-option>
<el-option :key="1" label="男" :value="1"></el-option>
<el-option :key="2" label="女" :value="2"></el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="生日" prop="Birthday">
<el-date-picker
:clearable="false"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="form.Birthday"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="婚姻">
<el-select v-model="form.Marriage">
<el-option :key="0" label="保密" :value="0"></el-option>
<el-option :key="1" label="未婚" :value="1"></el-option>
<el-option :key="2" label="已婚" :value="2"></el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="职务">
<el-input placeholder="请输入职务" v-model="form.Duty"></el-input>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="是否高校学生">
<el-select v-model="form.IsHightSchool">
<el-option :key="1" label="是" :value="1"></el-option>
<el-option :key="2" label="否" :value="2"></el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="客户级别" prop="CustomerLevel">
<el-select v-model="form.CustomerLevel" placeholder="请选择客户级别">
<el-option
v-for="item in CustomerLevelEnum"
:key="item.ID"
:label="item.Name"
:value="item.ID">
</el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="国籍">
<el-select
v-model="form.Nationality" placeholder="国家">
<el-option
v-for="item in countryList"
:key="item.ID"
:label="item.Name"
:value="item.ID">
</el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="客户来源" prop="CustomerSourceType">
<el-select v-model="form.CustomerSourceType" placeholder="请选择客户来源">
<el-option
v-for="item in SourceEnum"
:key="item.ID"
:label="item.Name"
:value="item.ID">
</el-option>
</el-select>
</el-form-item>
</div>
</el-col>
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="下次拜访时间">
<el-date-picker
:clearable="false"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="form.NextContactTime"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24" v-if="form.CustomerSourceType === 6">
<div class="MyEditForm-item">
<el-form-item label="客户来源信息" prop="CustomerSource">
<el-input type="textarea" placeholder="请输入客户来源信息" v-model="form.CustomerSource"></el-input>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="备注">
<el-input type="textarea" placeholder="客户的特殊喜好" v-model="form.Remarks"></el-input>
</el-form-item>
</div>
</el-col>
</el-row>
<p class="form-box-tit"><span class="radius"></span> 位置信息</p>
<el-row>
<el-col :span="24">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="定位">
<el-input type="textarea" placeholder="请输入详情地址" v-model="form.Address"></el-input>
</el-form-item>
</div>
</el-col>
</el-row>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('form')">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="dialogTableVisible = false, resetForm('form')">取 消</el-button>
</div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</el-dialog>
</template>
<script>
export default {
props:{
CustomerId: {
type: Number,
default: 0
},
name: {
type: String,
default: '新建客户'
}
},
data() {
return {
dialogTableVisible: false,
SourceEnum: [],
countryList: "",
provinceList: "",
dialogImageUrl: '',
dialogVisible: false,
cityList: "",
district: "",
jycs: [],
fileList: [],
CustomerLevelEnum: [],
CustomerBrandList: [],
form: {
ID: 0,
GusetName: '',
Sex: 0,
Birthday: '',
Nationality: '',
Marriage: 0,
Duty: '',
IsHightSchool: 2,
IdCard: '',
Tel: '',
MobilePhone: '',
NextContactTime: '',
CustomerSourceType: '',
CustomerSource: '',
CustomerLevel: '',
Remarks: '',
Address: '',
CustomerID: '',
CustomerType: 1,
Nationality: 0,
},
rules:{
GusetName: [
{ required: true, message: '请输入客户名称', trigger: 'blur' }
],
CustomerSource: [
{ required: true, message: '请输入客户来源信息', trigger: 'blur' }
],
CustomerLevel: [
{ required: true, message: '请选择客户级别', trigger: 'change' }
],
CustomerSourceType: [
{ required: true, message: '请选择客户来源', trigger: 'change' }
],
MobilePhone: [
{ required: true, message: '请输入联系电话', trigger: 'blur' }
],Birthday: [
{ required: true, message: '请选择客户生日', trigger: 'blur' }
],
},
show: true,
CustomerList: [],
};
},watch:{
CustomerId: {
handler(val, oldVal){
console.log(val)
},
deep:true
}
},
mounted() {
this.GetCustomerLevelEnum()
this.getJycs()
this.getCustomerBrandList()
this.getCountryList()
this.GetCustomerSourceEnum()
this.getCustomerList()
let $this = this
setTimeout(()=>{
$this.dialogTableVisible = true
},50)
if (this.CustomerId!==0) {
this.apipost('/api/Customer/GetAllGuesstCustomerModel', {ID: this.CustomerId}, res=>{
if (res.data.resultCode == 1) {
let data = res.data.data
if(!data.HousePhotos){
data.HousePhotos = []
}
if(!data.BusinessCardPhotos){
data.BusinessCardPhotos = []
}
if(!data.Images){
data.Images = []
}
if(!data.CustomerSourceType){
data.CustomerSourceType = ''
}
if(!data.CustomerSource){
data.CustomerSource = ''
}
if(!data.Province){
data.Province = ''
}
if(!data.Country){
data.Country = ''
}
if(!data.City){
data.City = ''
}
if(!data.District){
data.District = ''
}
if(data.Country){
this.getProvinceList2(data.Country, 1)
}
if(data.Province){
this.getProvinceList2(data.Province, 2)
}
if(data.City){
this.getProvinceList2(data.City, 3)
}
this.form = data
}
})
}
},
methods: {
getCustomerList(){
this.apipost('/api/Customer/GetCustomerListByCreateInfo', {}, res=>{
if (res.data.resultCode == 1) {
this.CustomerList = res.data.data
}
})
},
closedDialog(){
this.MsgBus.$emit('closeCustomerDialogBox')
},
addData(){
if (this.form.CustomerID === '') {
this.form.CustomerID = 0
}
this.apipost('/api/Customer/CreateGuestCustomerClue', this.form, res=>{
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
// 有id 发送更新抽屉消息
if(this.CustomerId !== 0) {
this.$message.success('修改直客成功');
this.MsgBus.$emit('RefreshInfoBox')
} else {
this.$message.success('新建直客成功');
}
this.$emit('getList')
this.resetForm("form");
}
})
},
submitForm(addMsg) {
//提交创建、修改表单
this.$refs[addMsg].validate(valid => {
if (valid) {
this.addData();
} else {
return false;
}
});
},
resetForm(formName) { // 重置表单
this.form = {
ID: 0,
GusetName: '',
Sex: 0,
Birthday: '',
Nationality: '',
Marriage: 0,
Duty: '',
IsHightSchool: 2,
IdCard: '',
Tel: '',
MobilePhone: '',
NextContactTime: '',
CustomerSourceType: '',
CustomerSource: '',
CustomerLevel: '',
Remarks: '',
Address: '',
CustomerID: '',
CustomerType: 1,
Nationality: 0,
}
this.$refs[formName].resetFields();
},
getCustomerBrandList() { // 获取品牌
this.apipost2('app_get_customer_brand', {}, res => {
if (res.data.resultCode == 1) {
this.CustomerBrandList = res.data.data;
} else {
this.$message.error(res.data.message)
}
}, err => {})
},
getJycs() {
this.apipost2('app_today_visit_GetCustomerPremisesEnum', {}, res => {
if (res.data.resultCode == 1) {
this.jycs = res.data.data
}
}, err => {})
},
GetCustomerLevelEnum(){
this.apipost('/api/Customer/GetCustomerLevelEnum', {}, res=>{
if (res.data.resultCode == 1) {
this.CustomerLevelEnum = res.data.data
}
})
},
GetCustomerSourceEnum(){
this.apipost('/api/Customer/GetCustomerSourceEnum', {}, res=>{
if (res.data.resultCode == 1) {
this.SourceEnum = res.data.data
}
})
},
getProvinceList2(ID, type) {
let msg = {
Id: ID
};
this.apipost2(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data;
} else if (type == 3) {
this.district = res.data.data;
}
},
err => {}
);
},
//获取国家
getCountryList() {
this.apipost2(
"dict_post_Destination_GetCountry", {},
res => {
this.countryList = res.data.data;
},
err => {}
);
},
//根据省份获取城市
getProvinceList(ID, type) {
let msg = {
Id: ID
};
if (type == 1) {
this.form.Province = "";
this.form.City = "";
this.form.District = "";
} else if (type == 2) {
this.form.City = "";
this.form.District = "";
} else if (type == 3) {
this.form.District = "";
}
if (this.QCountry !== "") {
this.apipost2(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data;
} else if (type == 3) {
this.district = res.data.data;
}
},
err => {}
);
}
},
uploadImg(file) {
//上传
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.form.Images.push(url);
});
},
uploadImg2(file) {
//上传
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.form.BusinessCardPhotos.push(url);
});
},
uploadImg3(file) {
//上传
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.form.HousePhotos.push(url);
});
},
showImg(i){
let url = ''
if (i === 1) {
url = this.form.Images[0]
} else if (i === 2) {
url = this.form.BusinessCardPhotos[0]
} else if (i === 3) {
url = this.form.HousePhotos[0]
}
this.dialogImageUrl = url;
this.dialogVisible = true;
},
delImg(i){
if (i === 1) {
this.form.Images = []
} else if (i === 2) {
this.form.BusinessCardPhotos = []
} else if (i === 3) {
this.form.HousePhotos = []
}
},
}
}
</script>
\ No newline at end of file
<style>
.drawer-box{
height: 100%;
}
.drawer-header{
height: 83px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
}
.drawer-header .left{
display: flex;
align-items: center;
}
.drawer-header .left img{
display: inline-block;
margin-right: 10px;
}
.drawer-body{
height: calc( 100% - 83px);
}
.drawer-body .top-info{
height: 115px;
padding: 30px;
box-sizing: border-box;
font-size: 12px;
background-color: #F6F4FC;
}
.drawer-body .top-info .info-lable{
display: inline-block;
width: 80px;
color: #999999;
}
.margin-bottom-25{
margin-bottom: 25px;
}
.drawer-box .el-tabs__nav-wrap::after{
height: 0;
}
.drawer-body .el-tabs__header{
padding: 0 25px;
margin-bottom: 0;
}
.drawer-body>.content{
height: calc(100% - 115px);
}
.drawer-body .el-tabs{
height: 100%;
}
.drawer-body .el-tabs__content{
background-color: #F6F4FC;
height: calc(100% - 40px);
box-sizing: border-box;
}
.drawer-body .el-tabs__content .el-tab-pane{
height: 100%;
position: absolute;
width: calc(100%);
padding: 17px 20px;
box-sizing: border-box
}
</style>
<template>
<div class="drawer-box" v-if="loading">
<div class="drawer-header">
<div class="left">
<img src="../../assets/img/cust/kehu2.png" alt="">
<p>{{detailsData.GusetName}}</p>
</div>
<div class="right">
<el-button class="crm-btn query-btn" @click="editCust" >编辑</el-button>
<el-dropdown @command="handleCommand" style="top: 1px;" >
<el-button class="crm-btn crm-btn-more easy-btn margin-right0">
<i class="iconfont icongengduo"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="z"><i class="iconfont iconplus-transfer"></i> 转移</el-dropdown-item>
<el-dropdown-item command="d"><i class="iconfont icondelete"></i> 删除</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div class="drawer-body">
<div class="top-info">
<el-row class="margin-bottom-25">
<el-col :span="12">
<span class="info-lable">客户级别:</span><span>{{detailsData.CustomerIdLevelStr}}</span>
</el-col>
<el-col :span="12">
<span class="info-lable">创建时间:</span><span>{{detailsData.CreateDate ? detailsData.CreateDate : ''}}</span>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<span class="info-lable">负责人:</span><span>{{detailsData.PersonChargeStr}}</span>
</el-col>
<el-col :span="12">
<span class="info-lable">更新时间:</span><span>{{detailsData.UpdateTime ? detailsData.UpdateTime : ''}}</span>
</el-col>
</el-row>
</div>
<div class="content">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="活动" name="1">
<Activity v-if="activeName === '1'" :CustomerId="CustomerId" :showType="2"/>
</el-tab-pane>
<el-tab-pane label="详细资料" name="2">
<Details v-if="activeName === '2'" :detailsData="detailsData"/>
</el-tab-pane>
<el-tab-pane label="附件" name="8">
<Enclosure :ID='CustomerId' :type='1' :isGuest="true" v-if="activeName === '8'"/>
</el-tab-pane>
<el-tab-pane label="操作记录" name="9">
<Record v-if="activeName === '9'" :CustomerId="CustomerId"/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</template>
<script>
import Activity from "../guestManagement/Activity";
import Details from "../guestManagement/Details";
import Enclosure from "../clueManagement/Enclosure";
import Record from "../guestManagement/Record";
export default {
components: {
Activity,
Details,
Enclosure,
Record
},
props:{
CustomerId: {
type: Number,
default: 0
}
},
data() {
return {
activeName: '1',
detailsData: {},
loading: false,
};
},watch:{
CustomerId: {
handler(val, oldVal){
this.init()
this.activeName = '1'
},
deep:true
}
},
mounted() {
let $this = this
$this.init()
// 监听修改更新界面
this.MsgBus.$on('RefreshInfoBox', function () {
$this.init()
})
},
methods: {
init(){
this.apipost('/api/Customer/GetAllGuesstCustomerModel', {ID: this.CustomerId}, res=>{
if (res.data.resultCode == 1) {
let data = res.data.data
if(!data.HousePhotos){
data.HousePhotos = []
}
if(!data.BusinessCardPhotos){
data.BusinessCardPhotos = []
}
if(!data.Images){
data.Images = []
}
if(!data.CustomerSourceType){
data.CustomerSourceType = ''
}
if(!data.CustomerSource){
data.CustomerSource = ''
}
if(!data.Province){
data.Province = ''
}
if(!data.Country){
data.Country = ''
}
if(!data.City){
data.City = ''
}
if(!data.District){
data.District = ''
}
this.detailsData = data
this.loading = true
}
})
},
handleCommand(command){
if (command === 'z') {
this.$emit('transferS', 3);
} else if (command === 'g') {
}
},
handleClick(tab, event) {},
editCust(){
this.$emit('editCustS', 2)
},
handleClose(done) {
done();
}
}
}
</script>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<div class="tools">
<h1>联系人管理</h1>
<div style="width: 340px;">
<el-input placeholder="请输入联系人名" v-model="msg.ContactName" class="input-with-select">
<el-input placeholder="请输入联系人名" v-model="msg.KeyWord" class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="getList"></el-button>
</el-input>
</div>
......@@ -59,7 +59,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -163,8 +163,8 @@
</el-table-column>
</el-table>
</div>
<div>
<!-- <el-pagination
<div class="pagination">
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -173,7 +173,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-dialog :visible.sync="transferVisible" :close-on-click-modal="false" width="450px" custom-class="transfer-box add-box add-box2">
<div class="add-tit" slot="title">
......@@ -330,7 +330,7 @@ export default {
EmpId: '',
},
msg: {
ContactName: '',
KeyWord: '',
pageIndex: 1,
pageSize: 30,
ContactNumber: '',
......
......@@ -86,7 +86,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12">
<!-- @selection-change="handleSelectionChange" -->
......@@ -243,6 +243,18 @@
</el-table-column>
</el-table>
</div>
<div>
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
:page-sizes="[30, 60, 90, 100]"
:page-size="msg.pageSize"
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination>
</div>
</div>
</template>
<script>
......@@ -253,6 +265,7 @@ export default {
},
data () {
return {
total: 0,
tableData: [],
dataList: [],
WhereTypeList: [],
......@@ -366,6 +379,7 @@ export default {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
this.dataList.forEach(x => {
// let Url = "http://yx.oytour.com";
let Url = "http://testerp.oytour.com";
......@@ -483,6 +497,14 @@ export default {
);
});
},
handleSizeChange(val) {
this.msg.pageSize = val
this.getList();
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
//复制URL
CopyUrl(item) {
var oInput = document.createElement('input');
......
......@@ -6,7 +6,7 @@
<div class="tools">
<h1>客户管理</h1>
<div style="width: 340px;">
<el-input placeholder="请输入客户名称/手机" v-model="msg.CustomerName" class="input-with-select">
<el-input placeholder="请输入客户名称/手机" v-model="msg.KeyWord" class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="getList"></el-button>
</el-input>
</div>
......@@ -61,7 +61,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -238,7 +238,7 @@
</el-table>
</div>
<div>
<!-- <el-pagination
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -247,7 +247,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-drawer
:with-header="false"
......@@ -475,7 +475,7 @@ export default {
TransferOther: [] //1-联系人,2-商机,3-合同
},
msg: {
CustomerName: '',
KeyWord: '',
Contact: '',
pageIndex: 1,
pageSize: 30,
......
......@@ -259,7 +259,9 @@
<template>
<div class="activity" id="activity">
<div class="btn-list">
<div class="btn-list-item" v-for="(item, index) in btnList" :key="index" :class="{'active': type === item.id}" @click="ChangeType(item)"><i class="iconfont icontianjia"></i>{{item.name}}</div>
<template v-for="(item, index) in btnList">
<div class="btn-list-item" v-if="showType === 2 && index < 1" :key="index" :class="{'active': type === item.id}" @click="ChangeType(item)"><i class="iconfont icontianjia"></i>{{item.name}}</div>
</template>
</div>
<!-- 写跟进 -->
<template>
......@@ -466,6 +468,10 @@ export default {
CustomerId: {
type: Number,
default: 0
},
showType: {
type: Number,
default: 0
}
},
data() {
......
......@@ -61,7 +61,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -189,7 +189,7 @@
</el-table>
</div>
<div>
<!-- <el-pagination
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -198,7 +198,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-drawer
:with-header="false"
......
......@@ -61,7 +61,7 @@
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
height="730"
height="660"
border
row-class-name="font-size-12"
@selection-change="handleSelectionChange">
......@@ -222,7 +222,7 @@
</el-table>
</div>
<div>
<!-- <el-pagination
<el-pagination
class="Mypagination"
background
@current-change="handleCurrentChange"
......@@ -231,7 +231,7 @@
layout="sizes, prev, pager, next"
@size-change="handleSizeChange"
:total="total">
</el-pagination> -->
</el-pagination>
</div>
<el-drawer
:with-header="false"
......
......@@ -15,9 +15,9 @@ export default {
let locationName = window.location.hostname;
if (this.isOnline()) {
if (window.location.host.indexOf('testb2b.oytour.com') != -1)
domainUrl = "http://testapi.oytour.com"
domainUrl = "crm.oytour.com"
else if (window.location.host.indexOf('oytour.com') != -1)
domainUrl = "https://reborn.oytour.com"
domainUrl = "crm.oytour.com"
}
var obj = {
//主地址
......
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