File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ export interface FollowUpRecordVO {
7
7
bizId : number // 数据编号
8
8
type : number // 跟进类型
9
9
content : string // 跟进内容
10
- picUrls : string [ ]
11
- fileUrls : string [ ]
10
+ picUrls : string [ ] // 图片
11
+ fileUrls : string [ ] // 附件
12
12
nextTime : Date // 下次联系时间
13
13
businessIds : number [ ] // 关联的商机编号数组
14
14
contactIds : number [ ] // 关联的联系人编号数组
Original file line number Diff line number Diff line change @@ -141,14 +141,18 @@ const submitForm = async () => {
141
141
}
142
142
}
143
143
144
+ /** 关联联系人 */
144
145
const contactTableSelectRef = ref <InstanceType <typeof ContactTableSelect >>()
145
146
const handleAddContact = () => {
146
147
contactTableSelectRef .value ?.open ()
147
148
}
149
+
150
+ /** 关联商机 */
148
151
const businessTableSelectRef = ref <InstanceType <typeof BusinessTableSelect >>()
149
152
const handleAddBusiness = () => {
150
153
businessTableSelectRef .value ?.open ()
151
154
}
155
+
152
156
/** 重置表单 */
153
157
const resetForm = () => {
154
158
formRef .value ?.resetFields ()
Original file line number Diff line number Diff line change
1
+ <!-- 商机的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
1
2
<template >
2
3
<Dialog v-model =" dialogVisible" :appendToBody =" true" title =" 选择商机" width =" 700" >
3
4
<el-table
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
35
36
36
37
defineOptions ({ name: ' BusinessTableSelect' })
37
38
withDefaults (defineProps <{ modelValue: number [] }>(), { modelValue : () => [] })
39
+
38
40
const list = ref <BusinessApi .BusinessVO []>([]) // 列表的数据
39
41
const loading = ref (false ) // 列表的加载中
40
42
const dialogVisible = ref (false ) // 弹窗的是否展示
41
43
const formLoading = ref (false )
44
+
42
45
// 确认选择时的触发事件
43
46
const emits = defineEmits <{
44
47
(e : ' update:modelValue' , v : number []): void
@@ -71,6 +74,7 @@ const getList = async () => {
71
74
loading .value = false
72
75
}
73
76
}
77
+
74
78
/** 打开弹窗 */
75
79
const open = async () => {
76
80
dialogVisible .value = true
Original file line number Diff line number Diff line change
1
+ <!-- 联系人的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
1
2
<template >
2
3
<Dialog v-model =" dialogVisible" :appendToBody =" true" title =" 选择联系人" width =" 700" >
3
4
<el-table
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
35
36
36
37
defineOptions ({ name: ' ContactTableSelect' })
37
38
withDefaults (defineProps <{ modelValue: number [] }>(), { modelValue : () => [] })
39
+
38
40
const list = ref <ContactApi .ContactVO []>([]) // 列表的数据
39
41
const loading = ref (false ) // 列表的加载中
40
42
const dialogVisible = ref (false ) // 弹窗的是否展示
41
43
const formLoading = ref (false )
44
+
42
45
// 确认选择时的触发事件
43
46
const emits = defineEmits <{
44
47
(e : ' update:modelValue' , v : number []): void
@@ -70,6 +73,7 @@ const getList = async () => {
70
73
loading .value = false
71
74
}
72
75
}
76
+
73
77
/** 打开弹窗 */
74
78
const open = async () => {
75
79
dialogVisible .value = true
You can’t perform that action at this time.
0 commit comments