Commit 4575644a by xinla

--no commit message

1 parent 9e4eb267
......@@ -61,8 +61,8 @@ li {
.flex {
display: flex;
}
.flex1 {
flex: 1;
.fxat {
flex: auto;
}
.fxbw {
display: flex;
......
<template>
<div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card flex1 mr20">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20">
<el-form-item label="活码名称" prop="taskName">
<el-input v-model="form.taskName" maxlength="30" show-word-limit placeholder="请输入名称" clearable />
</el-form-item>
......
......@@ -150,7 +150,7 @@ export default {
<template>
<div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card flex1 mr20">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20">
<el-form-item label="活码名称" prop="codeName">
<el-input v-model="form.codeName" maxlength="30" show-word-limit placeholder="请输入" clearable></el-input>
</el-form-item>
......
<template>
<div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card flex1 mr20">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20">
<el-form-item label="任务名称" prop="taskName">
<el-input
type="textarea"
......
<script>
import { updateBirthday, getDetail, getSummary, getFollowUpRecord, getCustomerInfoByUserId } from '@/api/customer'
import { getList } from '@/api/salesCenter/businessConver.js'
import { updateBirthday, getDetail, getSummary, getFollowUpRecord, getCustomerInfoByUserId } from '@/api/customer'
import { getList } from '@/api/salesCenter/businessConver.js'
import { dictAddType, dictJoinGroupType, dictTrackState } from '@/utils/dictionary'
import InfoTab from './customer/infoTab.vue'
import { dictAddType, dictJoinGroupType, dictTrackState } from '@/utils/dictionary'
import InfoTab from './customer/infoTab.vue'
export default {
name: 'CustomerDetail',
components: { InfoTab },
data() {
return {
datePickerVisible: false,
customer: {
// weFlowerCustomerRels: [{}]
},
birthday: '',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now()
}
export default {
name: 'CustomerDetail',
components: { InfoTab },
data() {
return {
datePickerVisible: false,
customer: {
// weFlowerCustomerRels: [{}]
},
birthday: '',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now()
},
dictAddType,
dictJoinGroupType,
dictTrackState,
},
dictAddType,
dictJoinGroupType,
dictTrackState,
active: 0,
openedTabs: ['0']
}
active: 0,
openedTabs: ['0'],
}
},
created() {
this.getDetail()
this.getStage()
},
methods: {
getStage() {
getList().then((res) => {
this.stageList = res.data
})
},
created() {
this.getDetail()
this.getStage()
setValue(data) {
let str = ''
this.stageList.forEach((dd) => {
if (dd.stageVal == data) {
str = dd.stageKey
}
})
return str
},
methods: {
getStage() {
getList().then((res) => {
this.stageList = res.data
})
},
setValue(data) {
let str = ''
this.stageList.forEach((dd) => {
if (dd.stageVal == data) {
str = dd.stageKey
}
})
return str
},
// updateBirthday() {
// if (!this.birthday || this.birthday == this.customer.birthday) {
// return
// }
// let data = {
// externalUserid: this.customer.externalUserid,
// birthday: this.birthday,
// firstUserId: this.customer.firstUserId
// }
// updateBirthday(data).then((response) => {
// this.msgSuccess('操作成功')
// // this.getDetail()
// this.$set(this.customer, 'birthday', this.birthday)
// // this.datePickerVisible = false
// })
// },
/**
*客户详情基础(基础信息+社交关系)
* @param {*}
* externalUserid 是 当前客户id
* userId 是 当前跟进人id
*/
getDetail() {
getDetail({ ...this.$route.query, delFlag: this.$route.query.isDelete ? 1 : 0 }).then(({ data }) => {
data.companyTags && (data.companyTags = data.companyTags.split(','))
this.customer = data
// updateBirthday() {
// if (!this.birthday || this.birthday == this.customer.birthday) {
// return
// }
// let data = {
// externalUserid: this.customer.externalUserid,
// birthday: this.birthday,
// firstUserId: this.customer.firstUserId
// }
// updateBirthday(data).then((response) => {
// this.msgSuccess('操作成功')
// // this.getDetail()
// this.$set(this.customer, 'birthday', this.birthday)
// // this.datePickerVisible = false
// })
// },
/**
*客户详情基础(基础信息+社交关系)
* @param {*}
* externalUserid 是 当前客户id
* userId 是 当前跟进人id
*/
getDetail() {
getDetail({ ...this.$route.query, delFlag: this.$route.query.isDelete ? 1 : 0 }).then(({ data }) => {
data.companyTags && (data.companyTags = data.companyTags.split(','))
this.customer = data
if (data.trackUsers && data.trackUsers.length === 1) {
this.openedTabs = [data.trackUsers[0].trackUserId]
}
this.birthday = data.birthday
})
},
changeTab(tab) {
this.openedTabs.includes(tab.$attrs.id) || this.openedTabs.push(tab.$attrs.id)
}
if (data.trackUsers && data.trackUsers.length === 1) {
this.openedTabs = [data.trackUsers[0].trackUserId]
}
this.birthday = data.birthday
})
},
changeTab(tab) {
this.openedTabs.includes(tab.$attrs.id) || this.openedTabs.push(tab.$attrs.id)
},
// remark(item) {
// return (
// item.remark ||
// this.customer.customerName + (item.remarkCorpName ? '-' + item.remarkCorpName : '')
// )
// }
}
}
// remark(item) {
// return (
// item.remark ||
// this.customer.customerName + (item.remarkCorpName ? '-' + item.remarkCorpName : '')
// )
// }
},
}
</script>
<template>
......@@ -166,13 +166,11 @@
v-for="(item, index) of customer.trackUsers"
:key="index"
:label="item.userName"
:id="item.trackUserId"
>
:id="item.trackUserId">
<info-tab
v-if="openedTabs.includes(item.trackUserId)"
:stageList="stageList"
:userId="item.trackUserId"
></info-tab>
:userId="item.trackUserId"></info-tab>
</el-tab-pane>
</el-tabs>
</div>
......@@ -180,31 +178,32 @@
</template>
<style lang="scss" scoped>
.avatar {
width: 80px;
height: 80px;
border-radius: var(--border-radius-big);
}
.info-wrap {
margin-left: 20px;
.info {
color: #aaa;
line-height: 32px;
}
.avatar {
width: 80px;
height: 80px;
border-radius: var(--border-radius-big);
flex: none;
}
.info-wrap {
margin-left: 20px;
.info {
color: #aaa;
line-height: 32px;
}
}
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
color: #999;
&.man {
color: #13a2e8;
}
&.woman {
color: #f753b2;
}
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
color: #999;
&.man {
color: #13a2e8;
}
.g-card-title {
margin-bottom: 5px;
&.woman {
color: #f753b2;
}
}
.g-card-title {
margin-bottom: 5px;
}
</style>
......@@ -120,7 +120,7 @@ export default {
</script>
<template>
<div class="flex" v-loading="loading">
<el-form :model="form" ref="form" label-width="100px" class="g-card flex1 mr20">
<el-form :model="form" ref="form" label-width="100px" class="g-card fxat mr20">
<el-form-item label="类型" prop="codeType">
<el-radio-group v-model="form.codeType" @change="codeTypeChange">
<el-radio v-for="(value, key, index) in type" :key="index" :label="+key">{{ value }}</el-radio>
......
<template>
<div>
<div class="tab flex">
<div class="g-card mr20 flex1">
<div class="g-card mr20 fxat">
<div class="g-card-title">
门店导购码
<span class="desc mr10">根据客户最近位置,引导添加最近门店的导购</span>
......@@ -27,7 +27,7 @@
</div>
</div>
</div>
<div class="g-card mt0 flex1">
<div class="g-card mt0 fxat">
<div class="g-card-title">
门店群活码
<span class="desc mr10">根据客户最近位置,引导添加最近门店的客户群</span>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!