Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
98214d11
Commit
98214d11
authored
Jun 23, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户联系人
parent
f631b513
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
10 deletions
+30
-10
customerContacts.js
src/api/ecw/customerContacts.js
+10
-1
index.vue
src/components/CustomerFollow/index.vue
+3
-4
edit.vue
src/views/ecw/customer/edit.vue
+10
-3
query.vue
src/views/ecw/customer/query.vue
+7
-2
No files found.
src/api/ecw/customerContacts.js
View file @
98214d11
...
...
@@ -37,7 +37,7 @@ export function getCustomerContacts(id) {
// 获得客户联系人列表
export
function
getCustomerContactsList
()
{
return
request
({
url
:
'
/ecw/customer-contacts/
page
'
,
url
:
'
/ecw/customer-contacts/
list
'
,
method
:
'
get
'
})
}
...
...
@@ -60,3 +60,12 @@ export function exportCustomerContactsExcel(query) {
responseType
:
'
blob
'
})
}
// 根据客户ID获得联系人列表
export
function
getCustomerContactsListByCustomer
(
query
)
{
return
request
({
url
:
'
/ecw/customer-contacts/list-by-customer
'
,
method
:
'
get
'
,
params
:
query
})
}
src/components/CustomerFollow/index.vue
View file @
98214d11
...
...
@@ -124,7 +124,7 @@
<
script
>
import
{
createCustomerFollow
,
getCustomerFollowPage
}
from
"
@/api/ecw/customerFollow
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
getCustomerContactsList
}
from
"
@/api/ecw/customerContacts
"
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
{
parseTime
}
from
'
@/utils/ruoyi
'
export
default
{
...
...
@@ -154,9 +154,8 @@ export default {
created
()
{
this
.
resetCustomerFollowForm
()
getCustomerContactsList
().
then
(
r
=>
{
// todo 接口不对,临时用page
this
.
customerContactsList
=
r
.
data
.
list
if
(
!!
this
.
customerId
)
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
this
.
customerContactsList
=
r
.
data
})
listServiceUser
().
then
(
r
=>
{
this
.
serviceUserList
=
r
.
data
...
...
src/views/ecw/customer/edit.vue
View file @
98214d11
...
...
@@ -380,6 +380,7 @@ import CustomerLineTable from '@/components/CustomerLineTable'
import
{
getCustomerSelect
}
from
"
@/api/ecw/customer
"
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
{
getZhongPaoPage
}
from
'
@/api/ecw/zhongPao
'
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
export
default
{
name
:
"
edit
"
,
...
...
@@ -392,8 +393,13 @@ export default {
},
created
()
{
this
.
reset
()
if
(
this
.
customerId
!==
'
0
'
)
this
.
getCustomer
(
this
.
customerId
)
if
(
this
.
customerId
!==
'
0
'
)
{
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
this
.
form
.
customerContacts
=
r
.
data
})
})
}
getNodeList
().
then
(
r
=>
{
this
.
nodeList
=
r
.
data
...
...
@@ -455,6 +461,7 @@ export default {
paoLines
:
[],
// 泡货线路
}
},
methods
:
{
/** 取消按钮 */
cancel
()
{
...
...
@@ -528,7 +535,7 @@ export default {
this
.
resetForm
(
"
form
"
);
},
getCustomer
(
id
)
{
getCustomer
(
id
).
then
(
response
=>
{
return
getCustomer
(
id
).
then
(
response
=>
{
this
.
form
=
{
...
this
.
form
,
...
response
.
data
,
id
:
this
.
customerId
};
this
.
open
=
true
;
this
.
title
=
"
修改客户
"
;
...
...
src/views/ecw/customer/query.vue
View file @
98214d11
...
...
@@ -45,7 +45,7 @@
<
h3
>
联系人
<
/h3
>
<
el
-
table
:
data
=
"
customer
.customer
Contacts
"
:
data
=
"
customerContacts
"
style
=
"
width: 100%
"
border
>
...
...
@@ -181,6 +181,7 @@ import CustomerFollow from "@/components/CustomerFollow"
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
CustomerComplaint
from
'
@/views/ecw/customerComplaint
'
import
{
listServiceUser
}
from
'
@/api/system/user
'
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
export
default
{
name
:
'
query
'
,
...
...
@@ -198,6 +199,10 @@ export default {
}
)
getCustomer
(
this
.
customerId
).
then
(
response
=>
{
this
.
customer
=
{
...
this
.
customer
,
...
response
.
data
}
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}
).
then
(
r
=>
{
this
.
customerContacts
=
r
.
data
}
)
}
)
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
...
...
@@ -219,6 +224,7 @@ export default {
productTypeList
:
[],
customerSelect
:
[],
serviceUserList
:
[],
customerContacts
:
[],
customer
:
{
id
:
undefined
,
number
:
undefined
,
...
...
@@ -238,7 +244,6 @@ export default {
source
:
undefined
,
picture
:
undefined
,
customerService
:
undefined
,
customerContacts
:
[],
customerLines
:
[],
promoter
:
undefined
,
status
:
undefined
,
...
...
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