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
06a52e3f
Commit
06a52e3f
authored
Aug 27, 2024
by
dragondean@qq.com
Committed by
332784038@qq.com
Sep 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓单电话脱敏
parent
2d4f54e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
PrintWarehouseReceipt.vue
src/views/ecw/order/components/PrintWarehouseReceipt.vue
+18
-2
No files found.
src/views/ecw/order/components/PrintWarehouseReceipt.vue
View file @
06a52e3f
...
...
@@ -5,7 +5,7 @@
<div
id=
"myproa"
>
<p
style=
"padding-bottom:10px;font-size:16px;"
>
{{
$t
(
'
订单号
'
)
}}
:
{{
detail
.
orderNo
}}
{{
$t
(
'
发货人电话
'
)
}}
:
{{
detail
.
consignorVO
.
countryCode
}}
{{
detail
.
consignorVO
.
phone
}}
{{
$t
(
'
发货人电话
'
)
}}
:
+
{{
detail
.
consignorVO
.
countryCode
}}
{{
detail
.
consignorVO
.
phone
|
maskPhoneNumber
}}
{{
$t
(
'
提货地点
'
)
}}
:
{{
$l
(
objective
,
'
title
'
)
}}
<img
:src=
"qrcode"
style=
"margin-left: 10px;width:17mm;vertical-align:middle"
/>
</p>
...
...
@@ -111,7 +111,23 @@ import {getOrderWarehouseIn, getOrderDetail} from '@/api/ecw/order'
import
qrcode
from
'
qrcode
'
import
Decimal
from
'
decimal.js
'
export
default
{
filters
:
{
parseTime
},
filters
:
{
parseTime
,
maskPhoneNumber
(
phoneNumber
)
{
const
length
=
phoneNumber
.
length
;
if
(
length
<=
5
)
{
return
phoneNumber
.
slice
(
0
,
-
3
)
+
'
*
'
.
repeat
(
Math
.
min
(
3
,
length
));
}
const
mid
=
Math
.
floor
(
length
/
2
);
const
offset
=
length
%
2
===
0
?
2
:
3
;
const
start
=
mid
-
offset
;
const
end
=
mid
+
3
;
return
phoneNumber
.
slice
(
0
,
start
)
+
'
*
'
.
repeat
(
5
)
+
phoneNumber
.
slice
(
end
);
}
},
components
:
{
},
props
:{
orderId
:
[
String
,
Number
]
...
...
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