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
22285a92
Commit
22285a92
authored
Jan 29, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单线路未回显
parent
d50d6e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
edit.vue
src/views/ecw/order/edit.vue
+12
-10
No files found.
src/views/ecw/order/edit.vue
View file @
22285a92
...
@@ -893,26 +893,26 @@ export default {
...
@@ -893,26 +893,26 @@ export default {
console
.
log
(
'
departureId
'
,
departureId
)
console
.
log
(
'
departureId
'
,
departureId
)
this
.
getOpenedRouterList
()
this
.
getOpenedRouterList
()
// 修改始发地后需要重新选择路线
// 修改始发地后需要重新选择路线
if
(
oldDepartureId
&&
oldDepartureId
!=
departureId
&&
!
this
.
initing
){
/*
if(oldDepartureId && oldDepartureId != departureId && !this.initing){
console.log('修改始发地,重置lineId', oldDepartureId, departureId)
console.log('修改始发地,重置lineId', oldDepartureId, departureId)
this.$set(this.form, 'lineId', null)
this.$set(this.form, 'lineId', null)
}
}
*/
},
},
// 目的地
// 目的地
async
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
async
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
// 重新获取路线
// 重新获取路线
await
this
.
getOpenedRouterList
()
await
this
.
getOpenedRouterList
()
// 如果已选择的路线不在可用路线里则重置
// 如果已选择的路线不在可用路线里则重置
if
(
this
.
form
.
lineId
&&
!
this
.
routerList
.
find
(
item
=>
item
.
id
==
this
.
form
.
lineId
)){
/*
if(this.form.lineId && !this.routerList.find(item => item.id == this.form.lineId)){
this.$set(this.form, 'lineId', null)
this.$set(this.form, 'lineId', null)
}
}
*/
// 重新获取渠道
// 重新获取渠道
await
this
.
getChannelList
()
await
this
.
getChannelList
()
// 如果已选择的渠道不在可用渠道里则重置
// 如果已选择的渠道不在可用渠道里则重置
if
(
this
.
form
.
channelId
&&
!
this
.
channelList
.
find
(
item
=>
item
.
channelId
==
this
.
form
.
channelId
)){
/*
if(this.form.channelId && !this.channelList.find(item => item.channelId == this.form.channelId)){
this.$set(this.form, 'channelId', null)
this.$set(this.form, 'channelId', null)
}
}
*/
},
},
'
form.transportId
'
(
transportId
,
oldTransportId
){
'
form.transportId
'
(
transportId
,
oldTransportId
){
// 空运
// 空运
...
@@ -928,10 +928,10 @@ export default {
...
@@ -928,10 +928,10 @@ export default {
})
})
}
}
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
if
(
oldTransportId
&&
oldTransportId
!=
transportId
&&
transportId
!=
this
.
selectedRouter
?.
transportType
&&
!
this
.
initing
){
/*
if(oldTransportId && oldTransportId != transportId && transportId != this.selectedRouter?.transportType && !this.initing){
console.log('重置路线',oldTransportId, transportId, this.selectedRouter?.transportType)
console.log('重置路线',oldTransportId, transportId, this.selectedRouter?.transportType)
this.$set(this.form, 'lineId', undefined)
this.$set(this.form, 'lineId', undefined)
}
}
*/
// 选择海运拼柜和海运整柜清空渠道值
// 选择海运拼柜和海运整柜清空渠道值
if
(
transportId
==
1
||
transportId
==
2
){
if
(
transportId
==
1
||
transportId
==
2
){
...
@@ -960,10 +960,10 @@ export default {
...
@@ -960,10 +960,10 @@ export default {
}
}
// 更新线路备选
// 更新线路备选
await
this
.
getOpenedRouterList
()
await
this
.
getOpenedRouterList
()
// 如果已选择路线且切换后原路线不可用则重置
/
* /
/ 如果已选择路线且切换后原路线不可用则重置
if(this.form.lineId && !this.routerList.find(item => item.id == this.form.lineId)){
if(this.form.lineId && !this.routerList.find(item => item.id == this.form.lineId)){
this.$set(this.form, 'lineId', null)
this.$set(this.form, 'lineId', null)
}
}
*/
})
})
},
},
'
form.consigneeCountryCode
'
(){
'
form.consigneeCountryCode
'
(){
...
@@ -979,6 +979,7 @@ export default {
...
@@ -979,6 +979,7 @@ export default {
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
},
},
async
'
form.lineId
'
(
lineId
){
async
'
form.lineId
'
(
lineId
){
console
.
log
(
"
路线修改
"
,
lineId
)
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
if
(
!
router
){
if
(
!
router
){
return
return
...
@@ -1250,6 +1251,7 @@ export default {
...
@@ -1250,6 +1251,7 @@ export default {
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
initing
=
false
this
.
initing
=
false
console
.
log
(
"
initing
"
,
this
.
initing
)
})
})
},
100
)
},
100
)
...
...
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