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;
......
This diff is collapsed.
......@@ -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
This diff is collapsed.
......@@ -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
......
This diff is collapsed.
<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