feat(visit): 访问列表同步拜访类型、拜访日期、提交人姓名
配合小程序客户拜访表单新增字段,管理端同步展示与编辑: - 表格新增「拜访类型」「拜访日期」两列 - 详情弹窗新增三项 - 编辑弹窗新增拜访类型下拉、拜访日期、提交人姓名输入
This commit is contained in:
@@ -17,6 +17,12 @@ export interface YxeVisitList {
|
||||
location?: string;
|
||||
// 拜访人员
|
||||
name?: string;
|
||||
// 拜访对象类型: 门店/门店经理/其他
|
||||
visitType?: string;
|
||||
// 拜访日期
|
||||
visitDate?: string;
|
||||
// 提交人姓名(拜访人自填)
|
||||
submitterName?: string;
|
||||
// 沟通内容
|
||||
content?: string;
|
||||
// 小结
|
||||
|
||||
@@ -18,6 +18,15 @@
|
||||
<a-descriptions-item label="拜访人员">
|
||||
{{ formatText(detailData?.name) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="拜访类型">
|
||||
{{ formatText(detailData?.visitType) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="拜访日期">
|
||||
{{ formatText(detailData?.visitDate) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="提交人姓名">
|
||||
{{ formatText(detailData?.submitterName) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="状态">
|
||||
<a-tag v-if="detailData?.status === 0">待审核</a-tag>
|
||||
<a-tag v-else-if="detailData?.status === 1" color="green">
|
||||
|
||||
@@ -54,6 +54,31 @@
|
||||
v-model:value="form.name"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="拜访类型" name="visitType">
|
||||
<a-select
|
||||
allow-clear
|
||||
placeholder="请选择拜访类型"
|
||||
v-model:value="form.visitType"
|
||||
>
|
||||
<a-select-option value="门店">门店</a-select-option>
|
||||
<a-select-option value="门店经理">门店经理</a-select-option>
|
||||
<a-select-option value="其他">其他</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item label="拜访日期" name="visitDate">
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入拜访日期, 如 2026-10-11"
|
||||
v-model:value="form.visitDate"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="提交人姓名" name="submitterName">
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入提交人姓名"
|
||||
v-model:value="form.submitterName"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="沟通内容" name="content">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -161,6 +186,9 @@
|
||||
lng: undefined,
|
||||
location: undefined,
|
||||
name: undefined,
|
||||
visitType: undefined,
|
||||
visitDate: undefined,
|
||||
submitterName: undefined,
|
||||
content: undefined,
|
||||
summary: undefined,
|
||||
photos: undefined,
|
||||
|
||||
@@ -177,6 +177,22 @@
|
||||
align: 'center',
|
||||
minWidth: 140
|
||||
},
|
||||
{
|
||||
title: '拜访类型',
|
||||
dataIndex: 'visitType',
|
||||
key: 'visitType',
|
||||
align: 'center',
|
||||
width: 110,
|
||||
customRender: ({ text }) => formatText(text)
|
||||
},
|
||||
{
|
||||
title: '拜访日期',
|
||||
dataIndex: 'visitDate',
|
||||
key: 'visitDate',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
customRender: ({ text }) => formatText(text)
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
|
||||
Reference in New Issue
Block a user