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
809a5356
Commit
809a5356
authored
Sep 23, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电话区号判断
parent
b9a688ff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
20 deletions
+50
-20
detail.vue
src/views/ecw/offer/detail.vue
+18
-12
pending.vue
src/views/ecw/order/pending.vue
+8
-2
singleApply.vue
src/views/ecw/order/singleApply.vue
+8
-2
splitApply.vue
src/views/ecw/order/splitApply.vue
+8
-2
weightDeal.vue
src/views/ecw/order/weightDeal.vue
+8
-2
No files found.
src/views/ecw/offer/detail.vue
View file @
809a5356
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
{{
consigneeData
.
length
>
0
?
consigneeData
[
0
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
0
?
consigneeData
[
0
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('手机号:')"
>
<el-descriptions-item
:label=
"$t('手机号:')"
>
{{
consigneeData
.
length
>
0
?(
c
onsigneeData
[
0
].
areaCode
+
consigneeData
[
0
].
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
0
?(
c
heckCode
(
consigneeData
[
0
].
areaCode
)
+
consigneeData
[
0
].
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
{{
consigneeData
.
length
>
0
?
consigneeData
[
0
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
0
?
consigneeData
[
0
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('手机号:')"
>
<el-descriptions-item
:label=
"$t('手机号:')"
>
{{
consigneeData
.
length
>
1
?(
c
onsigneeData
[
1
].
areaCode
+
consigneeData
[
1
].
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
1
?(
c
heckCode
(
consigneeData
[
1
].
areaCode
)
+
consigneeData
[
1
].
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
<div
slot=
"header"
class=
"card-title"
>
{{$t('通用信息')}}
</div>
<div
slot=
"header"
class=
"card-title"
>
{{$t('通用信息')}}
</div>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
<el-descriptions-item
:label=
"$t('唛头')"
>
<el-descriptions-item
:label=
"$t('唛头')"
>
{{list.marks}}
{{list.marks
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('报关方式')"
>
<el-descriptions-item
:label=
"$t('报关方式')"
>
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"list.customsType"
></dict-tag>
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"list.customsType"
></dict-tag>
...
@@ -242,13 +242,13 @@
...
@@ -242,13 +242,13 @@
</el-descriptions>
</el-descriptions>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
<el-descriptions-item
:label=
"$t('预计结束时间')"
>
<el-descriptions-item
:label=
"$t('预计结束时间')"
>
{{list.stopTime}}
{{list.stopTime
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('控货')"
>
<el-descriptions-item
:label=
"$t('控货')"
>
{{list.control?$t('是'):$t('否')}}
{{list.control?$t('是'):$t('否')}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('竞争对手')"
>
<el-descriptions-item
:label=
"$t('竞争对手')"
>
{{list.competitor}}
{{list.competitor
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('重要程度')"
>
<el-descriptions-item
:label=
"$t('重要程度')"
>
<el-rate
v-model=
"list.importance"
></el-rate>
<el-rate
v-model=
"list.importance"
></el-rate>
...
@@ -265,7 +265,7 @@
...
@@ -265,7 +265,7 @@
</el-descriptions>
</el-descriptions>
<el-descriptions
>
<el-descriptions
>
<el-descriptions-item
:label=
"$t('备注')"
>
<el-descriptions-item
:label=
"$t('备注')"
>
{{list.remarks}}
{{list.remarks
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
...
@@ -276,12 +276,12 @@
...
@@ -276,12 +276,12 @@
<div
class=
"line"
>
<div
class=
"line"
>
<el-descriptions>
<el-descriptions>
<el-descriptions-item
:label=
"[3,4].indexOf(list.transportId)>-1?$t('空运路线'):$t('海运路线')"
>
<el-descriptions-item
:label=
"[3,4].indexOf(list.transportId)>-1?$t('空运路线'):$t('海运路线')"
>
{{getRouterNameById(list.lineId)}}
{{getRouterNameById(list.lineId)
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
<el-descriptions
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
<el-descriptions-item
:label=
"$t('出货渠道')"
>
<el-descriptions-item
:label=
"$t('出货渠道')"
>
{{channelName}}
{{channelName
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</div>
</div>
...
@@ -292,12 +292,12 @@
...
@@ -292,12 +292,12 @@
</el-descriptions>
</el-descriptions>
<el-descriptions
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
<el-descriptions
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
<el-descriptions-item
:label=
"$t('航空公司')"
>
<el-descriptions-item
:label=
"$t('航空公司')"
>
{{getSupplierData(list.transportVO.airlineCompany)}}
{{getSupplierData(list.transportVO.airlineCompany)
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
v-if=
"list.transportId==2"
>
<el-descriptions
v-if=
"list.transportId==2"
>
<el-descriptions-item
:label=
"$t('船公司')"
>
<el-descriptions-item
:label=
"$t('船公司')"
>
{{getSupplierData(list.transportVO.shippingCompany)}}
{{getSupplierData(list.transportVO.shippingCompany)
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
v-if=
"[2,3,4].indexOf(list.transportId) > -1"
>
<el-descriptions
v-if=
"[2,3,4].indexOf(list.transportId) > -1"
>
...
@@ -307,7 +307,7 @@
...
@@ -307,7 +307,7 @@
</el-descriptions>
</el-descriptions>
<el-descriptions
v-if=
"[2,3,4].indexOf(list.transportId) > -1"
>
<el-descriptions
v-if=
"[2,3,4].indexOf(list.transportId) > -1"
>
<el-descriptions-item
:label=
"$t('清关证书备注')"
>
<el-descriptions-item
:label=
"$t('清关证书备注')"
>
{{list.transportVO.remarks}}
{{list.transportVO.remarks
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
class=
"card"
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
<el-descriptions
class=
"card"
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
...
@@ -330,7 +330,7 @@
...
@@ -330,7 +330,7 @@
</el-descriptions>
</el-descriptions>
<el-descriptions>
<el-descriptions>
<el-descriptions-item
:label=
"$t('特殊要求备注')"
>
<el-descriptions-item
:label=
"$t('特殊要求备注')"
>
{{list.transportVO.packageRemarks}}
{{list.transportVO.packageRemarks
||'/'
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
...
@@ -466,6 +466,12 @@
...
@@ -466,6 +466,12 @@
}
}
},
},
methods
:
{
methods
:
{
checkCode
(
data
){
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
return
data
},
getOrderData
(
id
)
{
getOrderData
(
id
)
{
let
that
=
this
let
that
=
this
that
.
loading
=
true
;
that
.
loading
=
true
;
...
...
src/views/ecw/order/pending.vue
View file @
809a5356
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('发货电话')"
>
<el-descriptions-item
:label=
"$t('发货电话')"
>
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
phone
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
((
orderData
.
consignorVO
.
countryCode
?
checkCode
(
orderData
.
consignorVO
.
countryCode
):
''
)
+
orderData
.
consignorVO
.
phone
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收货电话')"
>
<el-descriptions-item
:label=
"$t('收货电话')"
>
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
phone
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
((
orderData
.
consigneeVO
.
countryCode
?
checkCode
(
orderData
.
consigneeVO
.
countryCode
):
''
)
+
orderData
.
consigneeVO
.
phone
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
...
@@ -151,6 +151,12 @@ export default {
...
@@ -151,6 +151,12 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
checkCode
(
data
){
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
return
data
},
getOrders
(){
getOrders
(){
getOrder
(
this
.
orderId
).
then
(
response
=>
{
getOrder
(
this
.
orderId
).
then
(
response
=>
{
this
.
orderData
=
response
.
data
this
.
orderData
=
response
.
data
...
...
src/views/ecw/order/singleApply.vue
View file @
809a5356
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('发货电话')"
>
<el-descriptions-item
:label=
"$t('发货电话')"
>
{{
!
orderData
.
consignorVO
?
$t
(
'
无
'
):
!
orderData
.
consignorVO
.
phone
?
$t
(
'
无
'
):(
orderData
.
consignorVO
.
countryCode
+
orderData
.
consignorVO
.
phone
)
}}
{{
!
orderData
.
consignorVO
?
$t
(
'
无
'
):
!
orderData
.
consignorVO
.
phone
?
$t
(
'
无
'
):(
checkCode
(
orderData
.
consignorVO
.
countryCode
)
+
orderData
.
consignorVO
.
phone
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收货电话')"
>
<el-descriptions-item
:label=
"$t('收货电话')"
>
{{
!
orderData
.
consigneeVO
?
$t
(
'
无
'
):
!
orderData
.
consigneeVO
.
phone
?
$t
(
'
无
'
):(
orderData
.
consigneeVO
.
countryCode
+
orderData
.
consigneeVO
.
phone
)
}}
{{
!
orderData
.
consigneeVO
?
$t
(
'
无
'
):
!
orderData
.
consigneeVO
.
phone
?
$t
(
'
无
'
):(
checkCode
(
orderData
.
consigneeVO
.
countryCode
)
+
orderData
.
consigneeVO
.
phone
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
...
@@ -209,6 +209,12 @@ export default {
...
@@ -209,6 +209,12 @@ export default {
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
},
},
methods
:
{
methods
:
{
checkCode
(
data
){
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
return
data
},
/** 查询列表 */
/** 查询列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/ecw/order/splitApply.vue
View file @
809a5356
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('发货电话')"
>
<el-descriptions-item
:label=
"$t('发货电话')"
>
{{
!
orderData
.
consignorVO
?
$t
(
'
无
'
):
!
orderData
.
consignorVO
.
phone
?
$t
(
'
无
'
):(
orderData
.
consignorVO
.
countryCode
+
orderData
.
consignorVO
.
phone
)
}}
{{
!
orderData
.
consignorVO
?
$t
(
'
无
'
):
!
orderData
.
consignorVO
.
phone
?
$t
(
'
无
'
):(
checkCode
(
orderData
.
consignorVO
.
countryCode
)
+
orderData
.
consignorVO
.
phone
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收货电话')"
>
<el-descriptions-item
:label=
"$t('收货电话')"
>
{{
!
orderData
.
consigneeVO
?
$t
(
'
无
'
):
!
orderData
.
consigneeVO
.
phone
?
$t
(
'
无
'
):(
orderData
.
consigneeVO
.
countryCode
+
orderData
.
consigneeVO
.
phone
)
}}
{{
!
orderData
.
consigneeVO
?
$t
(
'
无
'
):
!
orderData
.
consigneeVO
.
phone
?
$t
(
'
无
'
):(
checkCode
(
orderData
.
consigneeVO
.
countryCode
)
+
orderData
.
consigneeVO
.
phone
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
...
@@ -359,6 +359,12 @@ export default {
...
@@ -359,6 +359,12 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
checkCode
(
data
){
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
return
data
},
getOrder
(){
getOrder
(){
this
.
loading
=
true
;
this
.
loading
=
true
;
getOrder
(
this
.
queryParams
.
orderId
).
then
(
response
=>
{
getOrder
(
this
.
queryParams
.
orderId
).
then
(
response
=>
{
...
...
src/views/ecw/order/weightDeal.vue
View file @
809a5356
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('发货电话')"
>
<el-descriptions-item
:label=
"$t('发货电话')"
>
{{
orderData
.
consignorVO
?
orderData
.
consignorVO
.
phone
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consignorVO
?
((
orderData
.
consignorVO
.
countryCode
?
checkCode
(
orderData
.
consignorVO
.
countryCode
):
''
)
+
orderData
.
consignorVO
.
phone
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-descriptions
:column=
"4"
>
<el-descriptions
:column=
"4"
>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收货电话')"
>
<el-descriptions-item
:label=
"$t('收货电话')"
>
{{
orderData
.
consigneeVO
?
orderData
.
consigneeVO
.
phone
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
orderData
.
consigneeVO
?
((
orderData
.
consigneeVO
.
countryCode
?
checkCode
(
orderData
.
consigneeVO
.
countryCode
):
''
)
+
orderData
.
consigneeVO
.
phone
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
...
@@ -147,6 +147,12 @@ export default {
...
@@ -147,6 +147,12 @@ export default {
this
.
getOrders
()
this
.
getOrders
()
});
});
},
},
checkCode
(
data
){
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
return
data
},
getOrders
(){
getOrders
(){
getOrder
(
this
.
list
.
orderId
).
then
(
response
=>
{
getOrder
(
this
.
list
.
orderId
).
then
(
response
=>
{
this
.
orderData
=
response
.
data
this
.
orderData
=
response
.
data
...
...
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