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
9c37f493
Commit
9c37f493
authored
Feb 13, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化基础数据加载
parent
70ceb1ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
edit.vue
src/views/ecw/order/edit.vue
+15
-11
No files found.
src/views/ecw/order/edit.vue
View file @
9c37f493
...
...
@@ -755,15 +755,22 @@ export default {
},
// 始发地
'
form.departureId
'
(
departureId
,
oldDepartureId
){
console
.
log
(
'
departureId
'
,
departureId
)
this
.
getOpenedRouterList
()
// 修改始发地后需要重新选择路线
if
(
oldDepartureId
&&
oldDepartureId
!=
departureId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
if
(
oldDepartureId
&&
oldDepartureId
!=
departureId
){
console
.
log
(
'
修改始发地,重置lineId
'
,
oldDepartureId
,
departureId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
}
},
// 目的地
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
this
.
getOpenedRouterList
()
// 修改目的地后需要重新选择路线
if
(
oldObjectiveId
&&
oldObjectiveId
!=
objectiveId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
if
(
oldObjectiveId
&&
oldObjectiveId
!=
objectiveId
){
console
.
log
(
'
修改目的地,重置lineId
'
,
oldObjectiveId
,
objectiveId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
}
},
'
form.transportId
'
(
transportId
,
oldTransportId
){
// 海运拼柜给表单默认值
...
...
@@ -796,7 +803,6 @@ export default {
'
form.lineId
'
(
lineId
){
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
if
(
!
router
){
console
.
log
(
'
未选择路线
'
,
router
,
lineId
,
JSON
.
stringify
(
this
.
routerList
))
return
}
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
...
...
@@ -850,16 +856,14 @@ export default {
this
.
getOrder
()
}
},
created
()
{
async
created
()
{
defaultFormData
=
Object
.
assign
({},
this
.
form
)
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
.
productAttrList
=
(
await
getProductAttrList
()).
data
this
.
channelList
=
(
await
getChannelList
()).
data
this
.
tradeCityList
=
(
await
getTradeCityList
()).
data
this
.
currencyList
=
(
await
getCurrencyList
()).
data
this
.
unitList
=
(
await
getUnitList
()).
data
this
.
transportList
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_TRANSPORT_TYPE
)
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_CUSTOM_DRAWEE
).
forEach
(
item
=>
{
this
.
customDraweeList
.
push
({
...
...
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