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
84a521f2
Commit
84a521f2
authored
Feb 06, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单的bug
parent
7e5dd92f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
detail.vue
src/views/ecw/order/detail.vue
+5
-0
edit.vue
src/views/ecw/order/edit.vue
+14
-6
No files found.
src/views/ecw/order/detail.vue
View file @
84a521f2
...
@@ -191,6 +191,11 @@
...
@@ -191,6 +191,11 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('快递单号')"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
expressNo
}}
</
template
>
</el-table-column>
</el-table>
</el-table>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
:label=
"$t('订单动态')"
name=
"second"
>
<el-tab-pane
:label=
"$t('订单动态')"
name=
"second"
>
...
...
src/views/ecw/order/edit.vue
View file @
84a521f2
...
@@ -745,12 +745,16 @@ export default {
...
@@ -745,12 +745,16 @@ export default {
this
.
$set
(
this
.
form
,
'
ccIds
'
,
arr
.
join
(
"
,
"
))
this
.
$set
(
this
.
form
,
'
ccIds
'
,
arr
.
join
(
"
,
"
))
},
},
// 始发地
// 始发地
'
form.departureId
'
(){
'
form.departureId
'
(
departureId
,
oldDepartureId
){
this
.
getOpenedRouterList
()
this
.
getOpenedRouterList
()
// 修改始发地后需要重新选择路线
if
(
oldDepartureId
&&
oldDepartureId
!=
departureId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
},
},
// 目的地
// 目的地
'
form.objectiveId
'
(){
'
form.objectiveId
'
(
objectiveId
,
oldObjectiveId
){
this
.
getOpenedRouterList
()
this
.
getOpenedRouterList
()
// 修改目的地后需要重新选择路线
if
(
oldObjectiveId
&&
oldObjectiveId
!=
objectiveId
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
null
)
},
},
'
form.transportId
'
(
transportId
,
oldTransportId
){
'
form.transportId
'
(
transportId
,
oldTransportId
){
// 海运拼柜给表单默认值
// 海运拼柜给表单默认值
...
@@ -821,7 +825,9 @@ export default {
...
@@ -821,7 +825,9 @@ export default {
}, */
}, */
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
selectedRouter
(
val
){
selectedRouter
(
val
){
if
(
!
val
)
return
if
(
!
val
){
return
}
[
'
1
'
,
'
4
'
].
forEach
(
service
=>
{
[
'
1
'
,
'
4
'
].
forEach
(
service
=>
{
if
(
this
.
routeOtherServices
.
indexOf
(
service
)
<
0
&&
this
.
form
.
type
.
indexOf
(
service
)
>
-
1
){
if
(
this
.
routeOtherServices
.
indexOf
(
service
)
<
0
&&
this
.
form
.
type
.
indexOf
(
service
)
>
-
1
){
this
.
form
.
type
.
splice
(
this
.
form
.
type
.
findIndex
(
item
=>
item
==
service
),
1
)
this
.
form
.
type
.
splice
(
this
.
form
.
type
.
findIndex
(
item
=>
item
==
service
),
1
)
...
@@ -838,9 +844,7 @@ export default {
...
@@ -838,9 +844,7 @@ export default {
created
()
{
created
()
{
defaultFormData
=
Object
.
assign
({},
this
.
form
)
defaultFormData
=
Object
.
assign
({},
this
.
form
)
if
(
this
.
$route
.
query
.
id
){
this
.
getOrder
()
}
else
this
.
addProduct
()
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
...
@@ -856,6 +860,10 @@ export default {
...
@@ -856,6 +860,10 @@ export default {
})
})
})
})
if
(
this
.
$route
.
query
.
id
){
this
.
getOrder
()
}
else
this
.
addProduct
()
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
initing
=
false
this
.
initing
=
false
})
})
...
...
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