Commit 4575644a by xinla

--no commit message

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