Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-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-web-master
Commits
3a277b31
Commit
3a277b31
authored
Oct 19, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
解决合并冲突
parents
aa0e9f51
bcf779ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
delivery.vue
src/views/jiedao/profile/delivery.vue
+19
-6
No files found.
src/views/jiedao/profile/delivery.vue
View file @
3a277b31
...
...
@@ -1580,6 +1580,7 @@ import DictTag from '@/components/DictTag'
import
SupplierSelector
from
'
@/components/SupplierSelector
'
import
Pagination
from
'
@/components/Pagination
'
import
SectionTitle
from
'
@/views/jiedao/profile/components/SectionTitle.vue
'
import
{
checkCountryCode
}
from
'
@/api/country
'
export
default
{
name
:
'
OrderEdit
'
,
components
:
{
...
...
@@ -2053,7 +2054,7 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
await
getOrderDetail
(
this
.
$route
.
query
.
id
).
then
(
async
(
res
)
=>
{
this
.
form
=
Object
.
assign
({},
res
.
data
,
{
orderItemVOList
:
[]
})
this
.
form
=
Object
.
assign
({},
res
.
data
,
{
orderItemVOList
:
[]
,
destCountryId
:
null
})
this
.
form
.
deliveryDate
=
res
.
data
.
deliveryDate
if
(
res
.
data
.
consigneeVO
){
this
.
$set
(
this
.
form
,
'
consigneePhone
'
,
res
.
data
.
consigneeVO
.
phone
)
...
...
@@ -2067,7 +2068,7 @@ export default {
if
(
this
.
form
.
type
){
this
.
form
.
type
=
this
.
form
.
type
.
split
(
"
,
"
).
filter
(
item
=>
!!
item
)
}
}
else
this
.
form
.
type
=
[]
await
this
.
getOpenedRouterList
()
this
.
handleChangeLineId
()
...
...
@@ -2586,14 +2587,14 @@ export default {
item
.
channelIds
=
Array
.
from
(
item
.
channelIdSet
).
join
(
'
,
'
)
}
})
this
.
form
.
type
=
this
.
form
.
type
?.
join
(
"
,
"
)
this
.
form
.
status
=
status
// 修改的提交
if
(
this
.
form
.
orderId
)
{
const
data
=
Object
.
assign
({},
this
.
form
,
{
customDraweeVOList
:
this
.
customDraweeList
,
// transportUpdateReqVOList: this.transportList.filter(item => item._enabled),
orderItemVOList
:
this
.
getProductListWithDefaultValue
()
orderItemVOList
:
this
.
getProductListWithDefaultValue
(),
type
:
this
.
form
.
type
?.
join
(
"
,
"
)
})
updateOrder
(
data
).
then
((
response
)
=>
{
this
.
$message
({
...
...
@@ -2611,11 +2612,23 @@ export default {
})
return
}
const
data
=
Object
.
assign
(
this
.
form
,
{
const
data
=
Object
.
assign
(
{},
this
.
form
,
{
customDraweeVOList
:
this
.
customDraweeList
,
// transportUpdateReqVOList: this.transportList.filter(item => item._enabled),
orderItemVOList
:
this
.
getProductListWithDefaultValue
()
orderItemVOList
:
this
.
getProductListWithDefaultValue
(),
type
:
this
.
form
.
type
?.
join
(
"
,
"
)
})
// 校验目的国与收货人手机号地区是否匹配
if
(
this
.
hasConsignee
&&
data
.
countryCode
){
const
res
=
await
checkCountryCode
({
areaCode
:
data
.
countryCode
,
currencyId
:
this
.
form
.
destCountryId
})
// 并不一致则提示
if
(
!
res
.
data
){
await
this
.
$confirm
(
this
.
$t
(
'
电话所在国与目的国不一致,请检查
'
))
}
}
// 添加的提交
createOrder
(
data
).
then
((
response
)
=>
{
if
(
status
!=
0
)
{
...
...
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