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
2a6e65b2
Commit
2a6e65b2
authored
Dec 30, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建订单优化
parent
a3489fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
edit.vue
src/views/ecw/order/edit.vue
+19
-1
No files found.
src/views/ecw/order/edit.vue
View file @
2a6e65b2
...
...
@@ -939,6 +939,14 @@ export default {
'
form.channelId
'
(){
this
.
calculationPrice
()
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
// 选择渠道后需要筛选目的城市和线路
// 有点卡,改异步
this
.
$nextTick
(()
=>
{
// 更新目的城市备选
this
.
getTradeCity
()
// 更新线路备选
this
.
getOpenedRouterList
()
})
},
'
form.consigneeCountryCode
'
(){
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
...
...
@@ -1086,7 +1094,7 @@ export default {
this
.
productAttrList
=
(
await
getProductAttrList
()).
data
this
.
channelList
=
(
await
getChannelList
()).
data
this
.
tradeCityList
=
(
await
getTradeCityList
()).
data
await
this
.
getTradeCity
()
this
.
currencyList
=
(
await
getCurrencyList
()).
data
this
.
unitList
=
(
await
getUnitList
()).
data
this
.
transportList
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_TRANSPORT_TYPE
)
...
...
@@ -1110,6 +1118,13 @@ export default {
},
methods
:
{
async
getTradeCity
(){
let
query
=
{}
if
(
this
.
form
.
channelId
){
query
.
channelId
=
this
.
form
.
channelId
}
this
.
tradeCityList
=
(
await
getTradeCityList
(
query
)).
data
},
onTableMounted
(
e
){
// console.warn('onTableMounted', e)
},
...
...
@@ -1333,6 +1348,9 @@ export default {
if
(
this
.
form
.
transportId
){
params
.
transportType
=
this
.
form
.
transportId
}
if
(
this
.
form
.
channelId
){
params
.
channelId
=
this
.
form
.
channelId
}
// 始发,目的和运输方式都没有的时候不获取
if
(
!
params
.
startCityId
&&
!
params
.
destCityId
&&
!
params
.
transportType
)
return
false
getOpenedRouterList
(
params
).
then
(
res
=>
this
.
routerList
=
res
.
data
.
filter
(
item
=>
{
...
...
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