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
55717174
Commit
55717174
authored
Nov 30, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跳转新增报价bug修复
parent
58c674ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
17 deletions
+28
-17
edit.vue
src/views/ecw/offer/edit.vue
+28
-17
No files found.
src/views/ecw/offer/edit.vue
View file @
55717174
...
...
@@ -1088,13 +1088,19 @@ export default {
},
activated
()
{
if
(
this
.
$route
.
query
.
id
&&
this
.
form
.
offerId
!==
this
.
$route
.
query
.
id
)
{
console
.
log
(
"
编辑报价单跳转
"
)
// if (this.$route.query.id) {
this
.
getOffer
()
}
if
(
this
.
$route
.
query
.
copyId
&&
this
.
form
.
copyId
!==
this
.
$route
.
query
.
copyId
)
{
console
.
log
(
"
copy报价单跳转
"
)
// if (this.$route.query.copyId) {
this
.
getOffer
()
}
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
===
1
)
{
console
.
log
(
"
客户页面跳转
"
)
this
.
getCustomerContactsListByCustomer
()
}
},
async
created
()
{
await
this
.
getChannelList
()
...
...
@@ -1108,28 +1114,17 @@ export default {
competitorListAll
().
then
((
res
)
=>
(
this
.
competitorList
=
res
.
data
))
if
(
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
copyId
)
{
console
.
log
(
"
编辑或复制报价单转进
"
)
this
.
getOffer
()
}
else
{
}
else
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
1
)
{
console
.
log
(
"
客户转进
"
)
this
.
getCustomerContactsListByCustomer
()
}
else
{
console
.
log
(
"
新增报价单转进
"
)
// alert(this.$route.query.customer.defaultContactPhone)
this
.
addProduct
()
}
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
===
1
)
{
let
res
=
await
getCustomerContactsListByCustomer
({
customerId
:
parseInt
(
this
.
$route
.
query
.
customerId
||
0
)
})
this
.
customer
=
res
.
data
.
find
((
item
)
=>
item
.
isDefault
)
if
(
this
.
$route
.
query
.
customerType
)
{
// 客户类型不为空时
const
types
=
this
.
$route
.
query
.
customerType
.
split
(
"
,
"
)
if
(
types
.
includes
(
"
0
"
))
{
this
.
form
.
relation
=
1
}
else
{
this
.
form
.
relation
=
2
}
}
}
else
{
// this.form.relation = 1
}
},
methods
:
{
async
getChannelList
()
{
...
...
@@ -1146,6 +1141,22 @@ export default {
}
this
.
tradeCityList
=
(
await
getTradeCityList
(
query
)).
data
||
[]
},
getCustomerContactsListByCustomer
(){
getCustomerContactsListByCustomer
({
customerId
:
parseInt
(
this
.
$route
.
query
.
customerId
||
0
)
}).
then
((
res
)
=>
{
this
.
customer
=
res
.
data
.
find
((
item
)
=>
item
.
isDefault
)
if
(
this
.
$route
.
query
.
customerType
)
{
// 客户类型不为空时
const
types
=
this
.
$route
.
query
.
customerType
.
split
(
"
,
"
)
console
.
log
(
"
客户类型:
"
,
types
)
if
(
types
.
includes
(
"
0
"
))
{
this
.
form
.
relation
=
1
}
else
{
this
.
form
.
relation
=
2
}
}
})
},
getOffer
()
{
//加了是否从全部客户列表中报价按钮进来的判断
if
(
this
.
$route
.
query
.
type
!==
1
)
{
...
...
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