Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
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
黄天晨
bh_face_counter
Commits
03514c94
Commit
03514c94
authored
Jan 26, 2021
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化打印机连接
parent
ac52cf32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
android
android
+1
-1
CounterMixins.js
src/pages/CounterMixins.js
+2
-8
No files found.
android
@
c8c06aeb
Subproject commit
baab8abedf9e86b923151a4fa61bc968f358e22a
Subproject commit
c8c06aeb3b1938888aecd245c3838466a9dce74e
src/pages/CounterMixins.js
View file @
03514c94
...
@@ -120,6 +120,8 @@ const CounterMixins = ComposeComponent => {
...
@@ -120,6 +120,8 @@ const CounterMixins = ComposeComponent => {
await
handleScan
();
await
handleScan
();
this
.
barcode
=
''
;
this
.
barcode
=
''
;
});
});
const
isConnected
=
await
Printer
.
isConnected
();
if
(
!
isConnected
)
await
Printer
.
usbConnect
();
// 尝试连接打印机模块
this
.
listen
();
this
.
listen
();
};
};
...
@@ -412,14 +414,6 @@ const CounterMixins = ComposeComponent => {
...
@@ -412,14 +414,6 @@ const CounterMixins = ComposeComponent => {
};
};
print
=
async
()
=>
{
print
=
async
()
=>
{
const
isConnected
=
await
Printer
.
isConnected
();
if
(
!
isConnected
)
{
const
success
=
await
Printer
.
usbConnect
();
if
(
!
success
)
{
Toast
.
info
(
'打印机模块未连接,无法打印'
);
return
;
}
}
let
total
=
0
;
let
total
=
0
;
let
goods
=
[];
let
goods
=
[];
this
.
state
.
printer
.
map
(
v
=>
{
this
.
state
.
printer
.
map
(
v
=>
{
...
...
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