Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
336ffbd8
Commit
336ffbd8
authored
Feb 11, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a51b01ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
2 deletions
+47
-2
MyCustomer.vue
src/components/SalesModule/MyCustomer.vue
+47
-2
No files found.
src/components/SalesModule/MyCustomer.vue
View file @
336ffbd8
...
...
@@ -1686,9 +1686,54 @@
this
.
allowAdd
=
true
}
else
{
if
(
res
.
data
.
message
.
indexOf
(
'已注册客户信息'
)
!=
-
1
)
{
this
.
allowAdd
=
false
this
.
allowAdd
=
false
;
let
tipsInfo
=
""
;
if
(
res
.
data
.
data
.
isMain
==
1
){
tipsInfo
=
"系统已存在"
+
res
.
data
.
data
.
customerInfo
.
customerName
+
"("
+
res
.
data
.
data
.
customerInfo
.
contactNumber
+
")是否加入团队?"
;
}
else
if
(
res
.
data
.
data
.
isMain
==
0
){
//联系人已存在于系统客户(康辉驷马桥门店/17333。。。。。)是否加入团队?
tipsInfo
=
"联系人已存在于系统客户("
+
res
.
data
.
data
.
customerInfo
.
customerName
+
"/"
+
res
.
data
.
data
.
customerInfo
.
contactNumber
+
")是否加入团队?"
;
}
else
if
(
res
.
data
.
data
.
isMain
==
4
||
res
.
data
.
data
.
isMain
==
5
){
tipsInfo
=
"该客户已存在系统,可以立即转入你的名下,是否立即转入?"
;
}
//弹出提示:加入团队
this
.
$confirm
(
tipsInfo
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'pub.yes'
),
cancelButtonText
:
this
.
$t
(
'pub.no'
),
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
"app_JoinCustomerTeam"
,
{
IsMain
:
res
.
data
.
data
.
isMain
,
CustomerId
:
res
.
data
.
data
.
customerInfo
.
customerId
,
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
cancelEdit
();
this
.
addLayer1
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
}).
catch
(()
=>
{
this
.
cancelEdit
();
this
.
addLayer1
=
false
;
// this.$message({
// type: 'info',
// message: this.$t(res.data.message)
// });
});
}
else
{
if
(
res
.
data
.
data
.
IsMain
==
2
){
this
.
cancelEdit
();
this
.
addLayer1
=
false
;
}
this
.
$message
.
error
(
res
.
data
.
message
)
}
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
...
...
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