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
f5979366
Commit
f5979366
authored
Jan 15, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单的渠道,目的城市,线路联动
parent
b17c0dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
edit.vue
src/views/ecw/offer/edit.vue
+28
-10
No files found.
src/views/ecw/offer/edit.vue
View file @
f5979366
...
...
@@ -795,8 +795,10 @@ export default {
this
.
getOpenedRouterList
()
},
// 目的地
'
form.objectiveId
'
(){
this
.
getOpenedRouterList
()
async
'
form.objectiveId
'
(){
await
this
.
$nextTick
()
await
this
.
getChannelList
()
this
.
getOpenedRouterList
()
},
'
form.transportId
'
(
transportId
,
oldTransportId
){
// 海空联运默认数据
...
...
@@ -818,20 +820,22 @@ export default {
this
.
$set
(
this
.
form
,
'
lineId
'
,
undefined
)
}
},
'
form.channelId
'
(){
async
'
form.channelId
'
(){
await
this
.
getTradeCity
()
this
.
getOpenedRouterList
()
this
.
calculationPrice
(
'
form.channelId
'
)
},
'
form.lineId
'
(
lineId
){
async
'
form.lineId
'
(
lineId
){
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
if
(
router
){
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
}
this
.
$nextTick
(()
=>
{
this
.
calculationPrice
(
'
form.lineId
'
)
})
await
this
.
$nextTick
()
await
this
.
getChannelList
()
await
this
.
getTradeCity
()
await
this
.
calculationPrice
(
'
form.lineId
'
)
},
'
form.transportVO.packageTypeArr
'
(
val
){
this
.
$set
(
this
.
form
.
transportVO
,
'
packageType
'
,
(
val
||
[]).
join
(
'
,
'
))
...
...
@@ -851,10 +855,10 @@ export default {
this
.
getOffer
()
}
},
created
()
{
async
created
()
{
await
this
.
getChannelList
()
await
this
.
getTradeCity
()
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
this
.
transportList
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_TRANSPORT_TYPE
)
...
...
@@ -864,6 +868,20 @@ export default {
}
else
this
.
addProduct
()
},
methods
:
{
async
getChannelList
(){
let
query
=
{
cityId
:
this
.
form
.
objectiveId
,
lineId
:
this
.
form
.
lineId
}
this
.
channelList
=
(
await
getChannelList
(
query
)).
data
||
[]
},
async
getTradeCity
(){
let
query
=
{}
if
(
this
.
form
.
channelId
){
query
.
channelId
=
this
.
form
.
channelId
}
this
.
tradeCityList
=
(
await
getTradeCityList
(
query
)).
data
||
[]
},
getOffer
(){
getOffer
(
this
.
$route
.
query
.
id
).
then
(
res
=>
{
let
formData
=
res
.
data
...
...
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