Commit 7d2cefdc by 怪兽?别跑

update

1 parent fdc57864
<script> <script>
import { import {
updateBirthday, updateBirthday,
getDetail, getDetail,
findCustomerAddWay, findCustomerAddWay,
getFollowUpRecord, getFollowUpRecord,
getCustomerInfoByUserId, getCustomerInfoByUserId
} from '@/api/customer' } from '@/api/customer'
import { getList } from '@/api/salesCenter/businessConver.js' import { getList } from '@/api/salesCenter/businessConver.js'
import { dictJoinGroupType, dictTrackState } from '@/utils/dictionary' import { 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() {
...@@ -24,14 +24,14 @@ export default { ...@@ -24,14 +24,14 @@ export default {
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() return time.getTime() > Date.now()
}, }
}, },
dictAddType: {}, dictAddType: {},
dictJoinGroupType, dictJoinGroupType,
dictTrackState, dictTrackState,
active: 0, active: 0,
openedTabs: ['0'], openedTabs: ['0']
} }
}, },
created() { created() {
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
}, },
methods: { methods: {
findCustomerAddWay() { findCustomerAddWay() {
findCustomerAddWay().then(({ data }) => { api.findCustomerAddWay().then(({ data }) => {
data.forEach((element) => { data.forEach((element) => {
this.dictAddType[element.code] = element.value this.dictAddType[element.code] = element.value
}) })
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
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 (
...@@ -104,8 +104,8 @@ export default { ...@@ -104,8 +104,8 @@ export default {
// this.customer.customerName + (item.remarkCorpName ? '-' + item.remarkCorpName : '') // this.customer.customerName + (item.remarkCorpName ? '-' + item.remarkCorpName : '')
// ) // )
// } // }
}, }
} }
</script> </script>
<template> <template>
...@@ -180,11 +180,13 @@ export default { ...@@ -180,11 +180,13 @@ export default {
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"></info-tab> :userId="item.trackUserId"
></info-tab>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -192,21 +194,21 @@ export default { ...@@ -192,21 +194,21 @@ export default {
</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; flex: none;
} }
.info-wrap { .info-wrap {
margin-left: 20px; margin-left: 20px;
.info { .info {
color: #aaa; color: #aaa;
line-height: 32px; 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;
...@@ -216,8 +218,8 @@ export default { ...@@ -216,8 +218,8 @@ export default {
&.woman { &.woman {
color: #f753b2; color: #f753b2;
} }
} }
.g-card-title { .g-card-title {
margin-bottom: 5px; margin-bottom: 5px;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!