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
b871f627
Commit
b871f627
authored
Jan 07, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单渠道,路线,城市 根据国家相互关联
https://zentao.test.jdshangmen.com/task-view-3301.html
parent
3d3079ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
edit.vue
src/views/ecw/order/edit.vue
+30
-9
No files found.
src/views/ecw/order/edit.vue
View file @
b871f627
...
...
@@ -896,13 +896,20 @@ export default {
}
},
// 目的地
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
this
.
getOpenedRouterList
()
// 修改目的地后需要重新选择路线
if
(
oldObjectiveId
&&
oldObjectiveId
!=
objectiveId
&&
!
this
.
initing
){
console
.
log
(
'
修改目的地,重置lineId
'
,
oldObjectiveId
,
objectiveId
)
async
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
// 重新获取路线
await
this
.
getOpenedRouterList
()
// 如果已选择的路线不在可用路线里则重置
if
(
this
.
form
.
lineId
&&
!
this
.
routerList
.
find
(
item
=>
item
.
id
==
this
.
form
.
lineId
)){
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
}
// 重新获取渠道
await
this
.
getChannelList
()
// 如果已选择的渠道不在可用渠道里则重置
if
(
this
.
form
.
channelId
&&
!
this
.
channelList
.
find
(
item
=>
item
.
channelId
==
this
.
form
.
channelId
)){
this
.
$set
(
this
.
form
,
'
channelId
'
,
null
)
}
},
'
form.transportId
'
(
transportId
,
oldTransportId
){
// 空运
...
...
@@ -941,11 +948,19 @@ export default {
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
// 选择渠道后需要筛选目的城市和线路
// 有点卡,改异步
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(
async
()
=>
{
// 更新目的城市备选
this
.
getTradeCity
()
await
this
.
getTradeCity
()
// 如果已选择城市,在切换后不可用则重置
if
(
this
.
form
.
objectiveId
&&
!
this
.
importList
.
find
(
item
=>
item
.
id
==
this
.
form
.
objectiveId
)){
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
null
)
}
// 更新线路备选
this
.
getOpenedRouterList
()
await
this
.
getOpenedRouterList
()
// 如果已选择路线且切换后原路线不可用则重置
if
(
this
.
form
.
lineId
&&
!
this
.
routerList
.
find
(
item
=>
item
.
id
==
this
.
form
.
lineId
)){
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
}
})
},
'
form.consigneeCountryCode
'
(){
...
...
@@ -1093,7 +1108,7 @@ export default {
})
this
.
productAttrList
=
(
await
getProductAttrList
()).
data
this
.
channelList
=
(
await
getChannelList
()).
data
await
this
.
getChannelList
()
await
this
.
getTradeCity
()
this
.
currencyList
=
(
await
getCurrencyList
()).
data
this
.
unitList
=
(
await
getUnitList
()).
data
...
...
@@ -1125,6 +1140,12 @@ export default {
}
this
.
tradeCityList
=
(
await
getTradeCityList
(
query
)).
data
},
async
getChannelList
(){
let
query
=
{
cityId
:
this
.
form
.
objectiveId
}
this
.
channelList
=
(
await
getChannelList
(
query
)).
data
},
onTableMounted
(
e
){
// console.warn('onTableMounted', e)
},
...
...
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