Skip to content

Commit 66ff10d

Browse files
committed
CRM:code review 跟进记录,
1 parent 213af42 commit 66ff10d

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/api/crm/followup/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export interface FollowUpRecordVO {
77
bizId: number // 数据编号
88
type: number // 跟进类型
99
content: string // 跟进内容
10-
picUrls: string[]
11-
fileUrls: string[]
10+
picUrls: string[] // 图片
11+
fileUrls: string[] // 附件
1212
nextTime: Date // 下次联系时间
1313
businessIds: number[] // 关联的商机编号数组
1414
contactIds: number[] // 关联的联系人编号数组

src/views/crm/followup/FollowUpRecordForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,18 @@ const submitForm = async () => {
141141
}
142142
}
143143
144+
/** 关联联系人 */
144145
const contactTableSelectRef = ref<InstanceType<typeof ContactTableSelect>>()
145146
const handleAddContact = () => {
146147
contactTableSelectRef.value?.open()
147148
}
149+
150+
/** 关联商机 */
148151
const businessTableSelectRef = ref<InstanceType<typeof BusinessTableSelect>>()
149152
const handleAddBusiness = () => {
150153
businessTableSelectRef.value?.open()
151154
}
155+
152156
/** 重置表单 */
153157
const resetForm = () => {
154158
formRef.value?.resetFields()

src/views/crm/followup/components/BusinessTableSelect.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- 商机的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
12
<template>
23
<Dialog v-model="dialogVisible" :appendToBody="true" title="选择商机" width="700">
34
<el-table
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
3536
3637
defineOptions({ name: 'BusinessTableSelect' })
3738
withDefaults(defineProps<{ modelValue: number[] }>(), { modelValue: () => [] })
39+
3840
const list = ref<BusinessApi.BusinessVO[]>([]) // 列表的数据
3941
const loading = ref(false) // 列表的加载中
4042
const dialogVisible = ref(false) // 弹窗的是否展示
4143
const formLoading = ref(false)
44+
4245
// 确认选择时的触发事件
4346
const emits = defineEmits<{
4447
(e: 'update:modelValue', v: number[]): void
@@ -71,6 +74,7 @@ const getList = async () => {
7174
loading.value = false
7275
}
7376
}
77+
7478
/** 打开弹窗 */
7579
const open = async () => {
7680
dialogVisible.value = true

src/views/crm/followup/components/ContactTableSelect.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- 联系人的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
12
<template>
23
<Dialog v-model="dialogVisible" :appendToBody="true" title="选择联系人" width="700">
34
<el-table
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
3536
3637
defineOptions({ name: 'ContactTableSelect' })
3738
withDefaults(defineProps<{ modelValue: number[] }>(), { modelValue: () => [] })
39+
3840
const list = ref<ContactApi.ContactVO[]>([]) // 列表的数据
3941
const loading = ref(false) // 列表的加载中
4042
const dialogVisible = ref(false) // 弹窗的是否展示
4143
const formLoading = ref(false)
44+
4245
// 确认选择时的触发事件
4346
const emits = defineEmits<{
4447
(e: 'update:modelValue', v: number[]): void
@@ -70,6 +73,7 @@ const getList = async () => {
7073
loading.value = false
7174
}
7275
}
76+
7377
/** 打开弹窗 */
7478
const open = async () => {
7579
dialogVisible.value = true

0 commit comments

Comments
 (0)