Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
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
ximai
mes-pda-scan
Commits
5cad3eee
Commit
5cad3eee
authored
Jul 01, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加长宽高扫码功能
parent
3fda39f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
index.vue
pages/index/index.vue
+1
-1
metering.vue
pages/packing/metering.vue
+15
-1
No files found.
pages/index/index.vue
View file @
5cad3eee
...
...
@@ -41,7 +41,7 @@ export default {
},
{
src
:
require
(
'@/static/images/cgrk.png'
),
text
:
'质量异常'
,
text
:
'质量异常
下架
'
,
url
:
'/pages/abnormal/abnormalRemove'
},
{
...
...
pages/packing/metering.vue
View file @
5cad3eee
...
...
@@ -10,7 +10,7 @@
长(cm):
</u-col>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"form.long"
></uni-easyinput>
<uni-easyinput
v-model=
"form.long"
@
input=
"updateWeight"
></uni-easyinput>
</u-col>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
...
@@ -98,6 +98,20 @@ export default {
}
},
methods
:
{
updateWeight
(
e
)
{
const
reg
=
/^
\d
+
\*\d
+
\*\d
+
\-\d
+$/
// 验证格式,判断是否是扫码
if
(
reg
.
test
(
e
))
{
const
arr
=
e
.
split
(
'*'
)
this
.
$nextTick
(()
=>
{
this
.
form
.
long
=
arr
[
0
]
this
.
form
.
wide
=
arr
[
1
]
const
data
=
arr
[
2
].
split
(
'-'
)
this
.
form
.
high
=
data
[
0
]
this
.
form
.
zxntgew
=
data
[
1
]
})
}
}
}
};
</
script
>
...
...
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