Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiangyang-PDA
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xujian
xiangyang-PDA
Commits
edf0c12b
Commit
edf0c12b
authored
Feb 04, 2026
by
胡笑坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联查询结果
parent
32a8fc91
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
163 deletions
+137
-163
index.vue
src/views/ManualOperation/QueryResults/index.vue
+119
-155
index.vue
src/views/ManualOperation/ScanBarcodes/index.vue
+18
-8
No files found.
src/views/ManualOperation/QueryResults/index.vue
View file @
edf0c12b
This diff is collapsed.
Click to expand it.
src/views/ManualOperation/ScanBarcodes/index.vue
View file @
edf0c12b
...
...
@@ -29,12 +29,9 @@
</p>
<p
class=
"info-row"
>
<span
class=
"Titles"
>
盒码值:
</span>
<span
class=
"Conts"
>
{{
item.qrCode
}}
</span>
<span
class=
"Conts"
>
{{
formatQrCode(item.qrCode)
}}
</span>
</p>
<!-- <p class="info-row">-->
<!-- <span class="Titles">件码值:</span>-->
<!-- <span class="Conts">{{ item.parentCode }}</span>-->
<!-- </p>-->
<p
class=
"info-row"
>
<span
class=
"Titles"
>
机台号:
</span>
<span
class=
"Conts"
>
{{ item.boxBarProductLineDeviceCode }}
</span>
...
...
@@ -104,6 +101,19 @@ export default {
},
computed
:
{},
methods
:
{
// 新增方法:格式化盒码值
formatQrCode
(
qrCode
)
{
// 先判断是否为有效字符串
if
(
!
qrCode
||
typeof
qrCode
!==
'string'
)
{
return
qrCode
||
''
;
}
// 如果长度超过35位,截取最后10位并拼接...
if
(
qrCode
.
length
>
35
)
{
return
'...'
+
qrCode
.
slice
(
-
25
);
}
// 否则返回原字符串
return
qrCode
;
},
queryQrCode
(
qrCode
)
{
let
query
=
{
qrCode
:
qrCode
...
...
@@ -164,12 +174,12 @@ export default {
color
:
#ffffff
;
}
#centerDiv
{
height
:
9
4
%
;
height
:
9
3
%
;
}
:deep
(
.erricon
)
{
font-size
:
0.35rem
;
background
:
#f3f4f6
;
margin-left
:
5
5%
;
margin-left
:
7
5%
;
box-sizing
:
border-box
;
width
:
0.65rem
;
height
:
0.65rem
;
...
...
@@ -263,4 +273,4 @@ export default {
word-wrap
:
break-word
;
white-space
:
normal
;
}
</
style
>
</
style
>
\ No newline at end of file
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