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
24773a6e
authored
Nov 26, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crm:code review 客户详情
parent
e1f9e16a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
14 deletions
+19
-14
src/views/crm/clue/ClueForm.vue
+1
-0
src/views/crm/config/customerLimitConfig/customerLimitConfig.ts
+0
-4
src/views/crm/customer/detail/CustomerBasicInfo.vue
+3
-1
src/views/crm/customer/detail/CustomerDetails.vue
+3
-1
src/views/crm/customer/detail/CustomerDetailsHeader.vue
+10
-6
src/views/crm/customer/detail/index.vue
+2
-2
No files found.
src/views/crm/clue/ClueForm.vue
View file @
24773a6e
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<el-form-item
label=
"线索名称"
prop=
"name"
>
<el-form-item
label=
"线索名称"
prop=
"name"
>
<el-input
v-model=
"formData.name"
placeholder=
"请输入线索名称"
/>
<el-input
v-model=
"formData.name"
placeholder=
"请输入线索名称"
/>
</el-form-item>
</el-form-item>
<!-- TODO 芋艿:后续客户的选择 -->
<el-form-item
label=
"客户"
prop=
"customerId"
>
<el-form-item
label=
"客户"
prop=
"customerId"
>
<el-select
v-model=
"formData.customerId"
clearable
placeholder=
"请选择客户"
>
<el-select
v-model=
"formData.customerId"
clearable
placeholder=
"请选择客户"
>
<el-option
<el-option
...
...
src/views/crm/config/customerLimitConfig/customerLimitConfig.ts
deleted
100644 → 0
View file @
e1f9e16a
// TODO 可以挪到它对应的 api.ts 文件里哈
/**
* 客户限制配置类型
*/
src/views/crm/customer/detail/CustomerBasicInfo.vue
View file @
24773a6e
...
@@ -12,5 +12,7 @@
...
@@ -12,5 +12,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
*
as
CustomerApi
from
'@/api/crm/customer'
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
</
script
>
</
script
>
src/views/crm/customer/detail/CustomerDetails.vue
View file @
24773a6e
...
@@ -87,7 +87,9 @@ import * as CustomerApi from '@/api/crm/customer'
...
@@ -87,7 +87,9 @@ import * as CustomerApi from '@/api/crm/customer'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
formatDate
}
from
'@/utils/formatTime'
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
// 展示的折叠面板
// 展示的折叠面板
const
activeNames
=
ref
([
'basicInfo'
,
'systemInfo'
])
const
activeNames
=
ref
([
'basicInfo'
,
'systemInfo'
])
...
...
src/views/crm/customer/detail/CustomerDetails
Top
.vue
→
src/views/crm/customer/detail/CustomerDetails
Header
.vue
View file @
24773a6e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</div>
</div>
<div>
<div>
<!-- 右上:按钮 -->
<!-- 右上:按钮 -->
<el-button
v-hasPermi=
"['crm:customer:update']"
@
click=
"openForm(
'update',
customer.id)"
>
<el-button
v-hasPermi=
"['crm:customer:update']"
@
click=
"openForm(customer.id)"
>
编辑
编辑
</el-button>
</el-button>
<el-button>
更改成交状态
</el-button>
<el-button>
更改成交状态
</el-button>
...
@@ -70,16 +70,20 @@
...
@@ -70,16 +70,20 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
// TODO @wanwan:是不是把 CustomerBasicInfo 也放进来。
import
CustomerBasicInfo
from
'@/views/crm/customer/detail/CustomerBasicInfo.vue'
import
CustomerBasicInfo
from
'@/views/crm/customer/detail/CustomerBasicInfo.vue'
import
CustomerForm
from
'@/views/crm/customer/CustomerForm.vue'
import
CustomerForm
from
'@/views/crm/customer/CustomerForm.vue'
const
{
customer
,
loading
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
;
loading
:
boolean
}
>
()
const
{
customer
,
loading
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
const
openForm
=
(
type
:
string
,
id
?:
number
)
=>
{
loading
:
boolean
formRef
.
value
.
open
(
type
,
id
)
}
>
()
}
/** 修改操作 */
const
formRef
=
ref
()
const
formRef
=
ref
()
const
openForm
=
(
id
?:
number
)
=>
{
formRef
.
value
.
open
(
'update'
,
id
)
}
const
emit
=
defineEmits
([
'refresh'
])
// 定义 success 事件,用于操作成功后的回调
const
emit
=
defineEmits
([
'refresh'
])
// 定义 success 事件,用于操作成功后的回调
</
script
>
</
script
>
src/views/crm/customer/detail/index.vue
View file @
24773a6e
<
template
>
<
template
>
<CustomerDetails
Top
:customer=
"customer"
:loading=
"loading"
@
refresh=
"getCustomerData(id)"
/>
<CustomerDetails
Header
:customer=
"customer"
:loading=
"loading"
@
refresh=
"getCustomerData(id)"
/>
<el-col>
<el-col>
<el-tabs>
<el-tabs>
<el-tab-pane
label=
"详细资料"
>
<el-tab-pane
label=
"详细资料"
>
...
@@ -66,7 +66,7 @@ const loading = ref(true) // 加载中
...
@@ -66,7 +66,7 @@ const loading = ref(true) // 加载中
/**
/**
* 获取详情
* 获取详情
*
*
* @param id
* @param id
客户编号
*/
*/
const
customer
=
ref
<
CustomerApi
.
CustomerVO
>
({}
as
CustomerApi
.
CustomerVO
)
// 客户详情
const
customer
=
ref
<
CustomerApi
.
CustomerVO
>
({}
as
CustomerApi
.
CustomerVO
)
// 客户详情
const
getCustomerData
=
async
(
id
:
number
)
=>
{
const
getCustomerData
=
async
(
id
:
number
)
=>
{
...
...
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