Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
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
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
9288e561
Commit
9288e561
authored
Nov 05, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
条码扫描
parent
24d76fdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ScanBar.vue
src/page/sampling-list/components/ScanBar.vue
+2
-2
No files found.
src/page/sampling-list/components/ScanBar.vue
View file @
9288e561
...
@@ -57,12 +57,12 @@
...
@@ -57,12 +57,12 @@
barcode
=
null
;
barcode
=
null
;
let
that
=
this
;
let
that
=
this
;
if
(
!
barcode
)
{
if
(
!
barcode
)
{
barcode
=
new
plus
.
barcode
.
Barcode
(
'bcid'
,
[
plus
.
barcode
.
EAN13
],
{
barcode
=
new
plus
.
barcode
.
Barcode
(
'bcid'
,
[
plus
.
barcode
.
EAN13
,
plus
.
barcode
.
EAN8
],
{
frameColor
:
'#00FF00'
,
frameColor
:
'#00FF00'
,
scanbarColor
:
'#00FF00'
scanbarColor
:
'#00FF00'
});
});
barcode
.
onmarked
=
function
(
type
,
result
)
{
barcode
.
onmarked
=
function
(
type
,
result
)
{
if
(
type
===
plus
.
barcode
.
EAN13
)
{
if
(
type
===
plus
.
barcode
.
EAN13
||
type
===
plus
.
barcode
.
EAN8
)
{
that
.
_getSample
(
result
)
that
.
_getSample
(
result
)
}
else
{
}
else
{
that
.
$toast
(
'扫描失败!'
)
that
.
$toast
(
'扫描失败!'
)
...
...
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