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
bcf779ba
Commit
bcf779ba
authored
Oct 19, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
6afe225f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
.env.development
.env.development
+1
-2
country.js
src/api/country.js
+8
-0
delivery.vue
src/views/jiedao/profile/delivery.vue
+19
-6
No files found.
.env.development
View file @
bcf779ba
...
...
@@ -3,7 +3,6 @@ ENV = 'development'
NODE_ENV = 'development'
# base api
#VUE_APP_BASE_API = 'https://apitest.groupage.cn'
VUE_APP_BASE_API = 'http://apitest.groupage.cn'
VUE_APP_BASE_API = 'https://apitest.groupage.cn'
VUE_APP_HOME_API = 'https://apitest.groupage.cn'
src/api/country.js
View file @
bcf779ba
...
...
@@ -13,3 +13,11 @@ export function locale() {
method
:
'
get
'
})
}
export
function
checkCountryCode
(
params
){
return
request
({
url
:
'
/app-api/ecw/region/check/dest-currency/area-code/
'
,
method
:
'
get
'
,
params
})
}
src/views/jiedao/profile/delivery.vue
View file @
bcf779ba
...
...
@@ -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