Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-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-customer-new-master
Commits
25985162
Commit
25985162
authored
Oct 19, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单下单校验收货人手机区号是否与目的国一致
parent
f975bcb8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
create_order.vue
src/pages/create_order/create_order.vue
+27
-1
create.js
src/static/lang/zh/create.js
+2
-0
No files found.
src/pages/create_order/create_order.vue
View file @
25985162
...
...
@@ -1479,6 +1479,14 @@
if
(
router
){
this
.
currentDstCountryIndex
=
this
.
dstCountryList
.
findIndex
(
item
=>
item
.
id
==
router
.
objectiveId
)
this
.
currentDstCityIndex
=
this
.
filteredDstCityList
.
findIndex
(
item
=>
item
.
id
==
router
.
objectiveId
)
this
.
$set
(
this
.
params
,
'
objectiveId
'
,
router
.
destCityId
)
// 找出始发城市
const
startCityIdIndex
=
this
.
config
.
tradeCity1
.
value
.
findIndex
(
item
=>
item
==
router
.
startCityId
)
if
(
startCityIdIndex
>
-
1
){
this
.
config
.
tradeCity1
.
index
=
startCityIdIndex
this
.
$set
(
this
.
params
,
'
departureId
'
,
router
.
startCityId
)
}
}
}
if
(
e
.
target
.
dataset
.
key
==
'
lineId
'
&&
that
.
params
.
isCargoControl
){
...
...
@@ -1791,7 +1799,25 @@
}
this
.
isClick
=
false
},
creatOrder
(){
async
creatOrder
(){
if
(
this
.
hasConsignee
){
const
res
=
await
this
.
$request
.
post
(
'
/app-api/ecw/region/check/dest-currency/area-code/
'
,
{
areaCode
:
this
.
params
.
congineeAreaCode
,
currencyId
:
this
.
dstCountryList
[
this
.
currentDstCountryIndex
].
guojia
})
console
.
log
(
"
目的地货币校验
"
,
res
)
if
(
!
res
.
data
){
const
res
=
await
uni
.
showModal
({
title
:
this
.
$lang
.
lang
.
create
.
tips
,
content
:
this
.
$lang
.
lang
.
create
.
areaCodeAndDestCountryCheckFail
,
showCancel
:
true
})
console
.
log
(
"
确认结果
"
,
res
)
if
(
!
res
[
1
].
confirm
){
return
}
}
}
this
.
$request
.
post
(
'
/app-api/my/order/create
'
,
{...
this
.
params
,
hasConsignee
:
this
.
hasConsignee
}).
then
(
res
=>
{
this
.
isClick
=
false
if
(
res
.
code
==
0
&&
res
.
data
){
...
...
src/static/lang/zh/create.js
View file @
25985162
...
...
@@ -121,4 +121,6 @@ export default {
"
billLadingPrice
"
:
"
提单是否显示价格
"
,
"
displayBillLadingPrice
"
:
"
显示
"
,
"
hideBillLadingPrice
"
:
"
不显示
"
,
"
tips
"
:
"
提示
"
,
"
areaCodeAndDestCountryCheckFail
"
:
"
电话所在国与目的国不一致,请检查
"
,
}
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