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
6056e844
Commit
6056e844
authored
Oct 21, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跳转报价创建页面携带客户信息bug修复
parent
f1d2f60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
query.vue
src/views/ecw/customer/query.vue
+8
-9
No files found.
src/views/ecw/customer/query.vue
View file @
6056e844
...
...
@@ -1044,15 +1044,14 @@ export default {
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}
).
then
(
r
=>
{
this
.
customerContacts
=
r
.
data
if
(
this
.
customerContacts
.
length
>
0
)
{
this
.
customerContacts
.
forEach
(
contacts
=>
{
if
(
contacts
.
isDefault
===
1
)
{
this
.
customer
.
defaultContactName
=
this
.
isChinese
?
contacts
.
nameZh
:
contacts
.
nameEn
;
this
.
customer
.
defaultContactId
=
contacts
.
id
;
this
.
customer
.
defaultContactPhone
=
contacts
.
phoneNew
;
this
.
customer
.
defaultCountryCode
=
contacts
.
areaCode
;
this
.
customer
.
defaultEmail
=
contacts
.
email
;
}
}
);
const
contacts
=
this
.
customerContacts
.
findIndex
(
contacts
=>
contacts
.
isDefault
===
1
);
if
(
contacts
.
isDefault
===
1
)
{
this
.
customer
.
defaultContactName
=
this
.
isChinese
?
contacts
.
nameZh
:
contacts
.
nameEn
;
this
.
customer
.
defaultContactId
=
contacts
.
id
;
this
.
customer
.
defaultContactPhone
=
contacts
.
phoneNew
;
this
.
customer
.
defaultCountryCode
=
contacts
.
areaCode
;
this
.
customer
.
defaultEmail
=
contacts
.
email
;
}
let
list
=
this
.
customerContacts
.
filter
(
r
=>
r
.
userid
)
if
(
list
.
length
>
0
)
{
memberUserList
({
ids
:
list
.
map
(
i
=>
i
.
userid
).
join
(
'
,
'
)
}
).
then
(
r
=>
{
...
...
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