Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
bc7ee194
Commit
bc7ee194
authored
Nov 18, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 盘点扫码完光标回到输入框
parent
cf91cfb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/views/warehouse/stockingPlan.vue
+4
-3
No files found.
src/views/warehouse/stockingPlan.vue
View file @
bc7ee194
...
@@ -951,6 +951,7 @@
...
@@ -951,6 +951,7 @@
<
/ElDialog
>
<
/ElDialog
>
<
ElDialog
v
-
model
=
"scanDialogVisible"
width
=
"800px"
title
=
"盘点"
>
<
ElDialog
v
-
model
=
"scanDialogVisible"
width
=
"800px"
title
=
"盘点"
>
<
el
-
input
<
el
-
input
ref
=
"scanInputRef"
v
-
model
=
"scanInput"
v
-
model
=
"scanInput"
placeholder
=
"请输入备货单号"
placeholder
=
"请输入备货单号"
style
=
"width: 90%"
style
=
"width: 90%"
...
@@ -2062,6 +2063,7 @@ const scan = async () => {
...
@@ -2062,6 +2063,7 @@ const scan = async () => {
}
finally
{
}
finally
{
loading
.
close
()
loading
.
close
()
scanInput
.
value
=
''
scanInput
.
value
=
''
scanInputRef
.
value
?.
focus
()
}
}
}
}
/**
/**
...
@@ -2069,13 +2071,12 @@ const scan = async () => {
...
@@ -2069,13 +2071,12 @@ const scan = async () => {
*/
*/
const
searchFormRef
=
ref
()
const
searchFormRef
=
ref
()
const
searchBtnRef
=
ref
()
const
searchBtnRef
=
ref
()
const
scanInputRef
=
ref
<
InstanceType
<
typeof
ElInput
>>
()
useEnterKeyTrigger
({
useEnterKeyTrigger
({
formRef
:
searchFormRef
,
formRef
:
searchFormRef
,
btnRef
:
searchBtnRef
,
btnRef
:
searchBtnRef
,
callback
:
(
event
:
KeyboardEvent
)
=>
{
callback
:
()
=>
{
console
.
log
(
'回车键被按下'
,
event
)
search
()
search
()
}
,
}
,
}
)
}
)
...
...
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