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
6fc3120d
Commit
6fc3120d
authored
Dec 02, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
潜在客户编辑业务调整
parent
11af381b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
edit.vue
src/views/ecw/customer/edit.vue
+24
-2
index.vue
src/views/ecw/customer/index.vue
+14
-1
No files found.
src/views/ecw/customer/edit.vue
View file @
6fc3120d
...
...
@@ -647,6 +647,25 @@ export default {
this
.
isCustomerServiceConfirmed
=
this
.
$route
.
query
.
isCustomerServiceConfirmed
?
true
:
false
this
.
getCustomerSelect
()
this
.
reset
()
if
(
this
.
potential
){
console
.
log
(
"
潜在客户编辑
"
)
this
.
rules
=
{
name
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
客户名称不能为空
"
),
trigger
:
"
blur
"
}
],
source
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
客户来源不能为空
"
),
trigger
:
"
blur
"
}
]
}
}
// this.getUserMemberUserFn()
if
(
this
.
customerId
!==
"
0
"
)
{
let
customerId
=
this
.
customerId
...
...
@@ -1017,7 +1036,7 @@ export default {
this
.
$modal
.
msgError
(
this
.
$t
(
"
至少填写一个联系人信息
"
))
return
}
if
(
this
.
form
.
competitorIds
==
0
)
{
if
(
this
.
form
.
competitorIds
==
0
&&
!
this
.
potential
)
{
this
.
$modal
.
msgError
(
this
.
$t
(
"
请重新选择主要竞争对手
"
))
return
}
...
...
@@ -1273,7 +1292,7 @@ export default {
})
},
changeCompetitor
(
val
)
{
if
(
val
==
0
)
{
if
(
val
==
0
&&
!
this
.
potential
)
{
this
.
$prompt
(
"
请输入主要竞争对手
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
cancelButtonText
:
"
取消
"
...
...
@@ -1301,6 +1320,9 @@ export default {
customerId
()
{
return
this
.
$route
.
params
.
customerId
},
potential
()
{
return
this
.
$route
.
query
.
potential
},
customerSelectFn
()
{
if
(
this
.
recommended
.
length
>
0
)
{
let
i
=
this
.
customerSelect
.
find
((
item
)
=>
item
.
id
===
this
.
recommended
[
0
].
id
)
...
...
src/views/ecw/customer/index.vue
View file @
6fc3120d
...
...
@@ -1252,7 +1252,20 @@ export default {
/** 修改按钮操作 */
handleUpdate
(
row
)
{
console
.
log
(
row
.
id
)
this
.
$router
.
push
(
"
/customer/add-edit/
"
+
row
.
id
)
switch
(
this
.
$route
.
path
)
{
case
"
/customer/customer
"
:
this
.
$router
.
push
(
"
/customer/add-edit/
"
+
row
.
id
)
break
case
"
/customer/department-customers
"
:
this
.
$router
.
push
(
"
/customer/add-edit/
"
+
row
.
id
)
break
case
"
/customer/potential
"
:
this
.
$router
.
push
(
"
/customer/add-edit/
"
+
row
.
id
+
"
?potential=true
"
)
break
default
:
this
.
$router
.
push
(
"
/customer/add-edit/
"
+
row
.
id
)
break
}
// this.reset();
// const id = row.id;
// getCustomer(id).then(response => {
...
...
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