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
d0ef76f9
Commit
d0ef76f9
authored
Nov 06, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web端入仓单,电话号码取值为空,调整为跟后台一样,脱敏
parent
9299c56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
PrintWarehouseReceipt.vue
...views/jiedao/profile/components/PrintWarehouseReceipt.vue
+19
-2
No files found.
src/views/jiedao/profile/components/PrintWarehouseReceipt.vue
View file @
d0ef76f9
...
...
@@ -5,7 +5,7 @@
<div
id=
"myproa"
>
<p
style=
"padding-bottom:10px;font-size:16px;"
>
{{
$t
(
'
printWarehouseReceipt.orderNo
'
)
}}
:
{{
detail
.
orderNo
}}
{{
$t
(
'
printWarehouseReceipt.phone
'
)
}}
:
{{
detail
.
name
}}
{{
detail
.
phone
}}
{{
$t
(
'
printWarehouseReceipt.phone
'
)
}}
:
+
{{
detail
.
consignorVO
.
countryCode
}}
{{
detail
.
consignorVO
.
phone
|
maskPhoneNumber
}}
{{
$t
(
'
printWarehouseReceipt.address
'
)
}}
:
{{
objective
.
titleZh
}}
<img
:src=
"qrcode"
style=
"margin-left: 10px;width:17mm;vertical-align:middle"
>
</p>
...
...
@@ -76,7 +76,24 @@ import lodop from '@/utils/lodop'
import
{
getOrderWarehouseIn
,
getOrderDetail
}
from
'
@/api/order
'
import
qrcode
from
'
qrcode
'
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
plainLength
=
length
-
5
;
// 尾部保留的明文字符数
const
after
=
Math
.
floor
(
plainLength
/
2
)
// 前面保留的明文字符数
const
before
=
plainLength
-
after
;
return
phoneNumber
.
slice
(
0
,
before
)
+
'
*
'
.
repeat
(
5
)
+
phoneNumber
.
slice
(
-
after
);
}
},
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