Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
66ff10d0
authored
Jan 22, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRM:code review 跟进记录,
parent
213af427
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
src/api/crm/followup/index.ts
+2
-2
src/views/crm/followup/FollowUpRecordForm.vue
+4
-0
src/views/crm/followup/components/BusinessTableSelect.vue
+4
-0
src/views/crm/followup/components/ContactTableSelect.vue
+4
-0
No files found.
src/api/crm/followup/index.ts
View file @
66ff10d0
...
...
@@ -7,8 +7,8 @@ export interface FollowUpRecordVO {
bizId
:
number
// 数据编号
type
:
number
// 跟进类型
content
:
string
// 跟进内容
picUrls
:
string
[]
fileUrls
:
string
[]
picUrls
:
string
[]
// 图片
fileUrls
:
string
[]
// 附件
nextTime
:
Date
// 下次联系时间
businessIds
:
number
[]
// 关联的商机编号数组
contactIds
:
number
[]
// 关联的联系人编号数组
...
...
src/views/crm/followup/FollowUpRecordForm.vue
View file @
66ff10d0
...
...
@@ -141,14 +141,18 @@ const submitForm = async () => {
}
}
/** 关联联系人 */
const
contactTableSelectRef
=
ref
<
InstanceType
<
typeof
ContactTableSelect
>>
()
const
handleAddContact
=
()
=>
{
contactTableSelectRef
.
value
?.
open
()
}
/** 关联商机 */
const
businessTableSelectRef
=
ref
<
InstanceType
<
typeof
BusinessTableSelect
>>
()
const
handleAddBusiness
=
()
=>
{
businessTableSelectRef
.
value
?.
open
()
}
/** 重置表单 */
const
resetForm
=
()
=>
{
formRef
.
value
?.
resetFields
()
...
...
src/views/crm/followup/components/BusinessTableSelect.vue
View file @
66ff10d0
<!-- 商机的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
<
template
>
<Dialog
v-model=
"dialogVisible"
:appendToBody=
"true"
title=
"选择商机"
width=
"700"
>
<el-table
...
...
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
defineOptions
({
name
:
'BusinessTableSelect'
})
withDefaults
(
defineProps
<
{
modelValue
:
number
[]
}
>
(),
{
modelValue
:
()
=>
[]
})
const
list
=
ref
<
BusinessApi
.
BusinessVO
[]
>
([])
// 列表的数据
const
loading
=
ref
(
false
)
// 列表的加载中
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
formLoading
=
ref
(
false
)
// 确认选择时的触发事件
const
emits
=
defineEmits
<
{
(
e
:
'update:modelValue'
,
v
:
number
[]):
void
...
...
@@ -71,6 +74,7 @@ const getList = async () => {
loading
.
value
=
false
}
}
/** 打开弹窗 */
const
open
=
async
()
=>
{
dialogVisible
.
value
=
true
...
...
src/views/crm/followup/components/ContactTableSelect.vue
View file @
66ff10d0
<!-- 联系人的选择列表 TODO 芋艿:后面看看要不要搞到统一封装里 -->
<
template
>
<Dialog
v-model=
"dialogVisible"
:appendToBody=
"true"
title=
"选择联系人"
width=
"700"
>
<el-table
...
...
@@ -35,10 +36,12 @@ import { ElTable } from 'element-plus'
defineOptions
({
name
:
'ContactTableSelect'
})
withDefaults
(
defineProps
<
{
modelValue
:
number
[]
}
>
(),
{
modelValue
:
()
=>
[]
})
const
list
=
ref
<
ContactApi
.
ContactVO
[]
>
([])
// 列表的数据
const
loading
=
ref
(
false
)
// 列表的加载中
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
formLoading
=
ref
(
false
)
// 确认选择时的触发事件
const
emits
=
defineEmits
<
{
(
e
:
'update:modelValue'
,
v
:
number
[]):
void
...
...
@@ -70,6 +73,7 @@ const getList = async () => {
loading
.
value
=
false
}
}
/** 打开弹窗 */
const
open
=
async
()
=>
{
dialogVisible
.
value
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment