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
1cdd2480
Commit
1cdd2480
authored
Nov 13, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控货订单的收货人手机号不能是国内号码
parent
7d0031b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
edit.vue
src/views/ecw/order/edit.vue
+17
-4
No files found.
src/views/ecw/order/edit.vue
View file @
1cdd2480
...
...
@@ -850,10 +850,17 @@ export default {
})
return
ids
},
importCountryIds
(){
let
ids
=
[]
this
.
destCountryList
.
forEach
(
item
=>
{
ids
.
push
(
item
.
guojia
)
})
return
ids
},
importCityIds
(){
let
ids
=
[]
this
.
impor
tCityList
.
forEach
(
item
=>
{
ids
.
push
(
item
.
id
)
this
.
des
tCityList
.
forEach
(
item
=>
{
ids
.
push
(
item
.
shi
)
})
return
ids
},
...
...
@@ -1529,6 +1536,9 @@ export default {
if
(
this
.
form
.
departureId
){
params
.
startCityId
=
this
.
form
.
departureId
}
if
(
this
.
form
.
destCountryId
){
params
.
destCountryId
=
this
.
form
.
destCountryId
}
if
(
this
.
form
.
objectiveId
){
params
.
destCityId
=
this
.
form
.
objectiveId
}
...
...
@@ -1540,10 +1550,10 @@ export default {
}
console
.
log
(
"
获取路线,参数
"
,
params
)
// 始发,目的和运输方式都没有的时候不获取
if
(
!
params
.
startCityId
&&
!
params
.
destCityId
&&
!
params
.
transportType
)
return
false
if
(
!
params
.
startCityId
&&
!
params
.
destC
ountryId
&&
!
params
.
destC
ityId
&&
!
params
.
transportType
)
return
false
return
getOpenedRouterList
(
params
).
then
(
res
=>
{
this
.
routerList
=
res
.
data
.
filter
(
item
=>
{
return
this
.
exportCityIds
.
indexOf
(
item
.
startCityId
)
>
-
1
&&
this
.
importC
ityIds
.
indexOf
(
item
.
destCityId
)
>
-
1
return
this
.
exportCityIds
.
indexOf
(
item
.
startCityId
)
>
-
1
&&
this
.
importC
ountryIds
.
indexOf
(
item
.
destCountryId
)
>
-
1
&&
(
this
.
importCityIds
&&
this
.
importCityIds
.
indexOf
(
item
.
destCityId
)
>
-
1
)
})
console
.
log
(
`已获取到路线
${
res
.
data
?.
length
}
条,有效路线
$
{
this
.
routerList
.
length
}
条
,
参数
:
$
{
JSON
.
stringify
(
params
)}
`
)
console
.
table
([
...
...
@@ -1660,6 +1670,9 @@ export default {
// 校验手机号跟目的国是否匹配
if
(
this
.
hasConsignee
&&
this
.
form
.
consigneeCountryCode
&&
this
.
form
.
consigneePhone
){
if
(
this
.
form
.
isCargoControl
&&
(
this
.
form
.
consigneeCountryCode
==
"
86
"
||
this
.
form
.
consigneeCountryCode
==
"
+86
"
)){
return
this
.
$message
.
error
(
$t
(
"
控货订单的收货人手机号不能是国内号码
"
))
}
const
res
=
await
checkCountryCode
({
areaCode
:
this
.
form
.
consigneeCountryCode
,
currencyId
:
this
.
form
.
destCountryId
...
...
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