feat: CRM 客户限制
This commit is contained in:
parent
6369b334e3
commit
a7f86dfd8b
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-collapse v-model="activeNames">
|
<ContentWrap>
|
||||||
|
<el-collapse class="" v-model="activeNames">
|
||||||
<el-collapse-item name="basicInfo">
|
<el-collapse-item name="basicInfo">
|
||||||
<template #title>
|
<template #title>
|
||||||
<span class="text-base font-bold">基本信息</span>
|
<span class="text-base font-bold">基本信息</span>
|
||||||
@ -42,7 +43,9 @@
|
|||||||
{{ customer.detailAddress }}
|
{{ customer.detailAddress }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="下次联系时间">
|
<el-descriptions-item label="下次联系时间">
|
||||||
{{ customer.contactNextTime ? formatDate(customer.contactNextTime, 'YYYY-MM-DD') : '空' }}
|
{{
|
||||||
|
customer.contactNextTime ? formatDate(customer.contactNextTime, 'YYYY-MM-DD') : '空'
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="最后跟进时间">
|
<el-descriptions-item label="最后跟进时间">
|
||||||
{{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
|
{{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
|
||||||
@ -77,6 +80,7 @@
|
|||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import * as CustomerApi from '@/api/crm/customer'
|
import * as CustomerApi from '@/api/crm/customer'
|
||||||
|
@ -66,8 +66,7 @@
|
|||||||
<el-col>
|
<el-col>
|
||||||
<el-tabs>
|
<el-tabs>
|
||||||
<el-tab-pane label="详细资料">
|
<el-tab-pane label="详细资料">
|
||||||
<!-- TODO wanwan:这个 ml-2 是不是可以优化下,不要整个左移,而是里面的内容有个几 px 的偏移,不顶在框里 -->
|
<CustomerDetails :customer="customer" />
|
||||||
<CustomerDetails class="ml-2" :customer="customer" />
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="活动" lazy> 活动</el-tab-pane>
|
<el-tab-pane label="活动" lazy> 活动</el-tab-pane>
|
||||||
<el-tab-pane label="邮件" lazy> 邮件</el-tab-pane>
|
<el-tab-pane label="邮件" lazy> 邮件</el-tab-pane>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<el-button type="primary" plain @click="handleQuery">
|
||||||
|
<Icon icon="ep:refresh" class="mr-5px" /> 刷新
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
@ -7,7 +10,13 @@
|
|||||||
>
|
>
|
||||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="list"
|
||||||
|
:stripe="true"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
class="mt-4"
|
||||||
|
>
|
||||||
<el-table-column label="编号" align="center" prop="id" />
|
<el-table-column label="编号" align="center" prop="id" />
|
||||||
<el-table-column label="规则类型" align="center" prop="type" />
|
<el-table-column label="规则类型" align="center" prop="type" />
|
||||||
<el-table-column label="规则适用人群" align="center" prop="userNames" />
|
<el-table-column label="规则适用人群" align="center" prop="userNames" />
|
||||||
@ -122,6 +131,12 @@ const handleDelete = async (id: number) => {
|
|||||||
|
|
||||||
const { confType } = defineProps<{ confType: LimitConfType }>()
|
const { confType } = defineProps<{ confType: LimitConfType }>()
|
||||||
|
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
const handleQuery = () => {
|
||||||
|
queryParams.pageNo = 1
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
|
||||||
/** 初始化 **/
|
/** 初始化 **/
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getList()
|
getList()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-tabs tab-position="left" style="height: 200px">
|
<el-tabs tab-position="left">
|
||||||
<el-tab-pane label="拥有客户数限制">
|
<el-tab-pane label="拥有客户数限制">
|
||||||
<CustomerQuantityLimit :confType="LimitConfType.CUSTOMER_QUANTITY_LIMIT" />
|
<CustomerQuantityLimit :confType="LimitConfType.CUSTOMER_QUANTITY_LIMIT" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
Loading…
Reference in New Issue
Block a user