Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cc89de3a
authored
Feb 10, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
c368acd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
pages/tag/print.vue
pages/tag/repairPrint.vue
pages/tag/print.vue
View file @
cc89de3a
...
...
@@ -168,7 +168,7 @@
console
.
log
(
'搜索设备start'
,
res
);
uni
.
onBluetoothDeviceFound
(
function
(
el
)
{
//找到对应蓝牙设备名字
if
(
el
.
devices
[
0
].
name
==
'HM-A300-
87d9
'
)
{
if
(
el
.
devices
[
0
].
name
==
'HM-A300-
647a
'
)
{
that
.
deviceId
=
el
.
devices
[
0
].
deviceId
;
//成功后存储设备id
that
.
stopBluetoothDevicesDiscovery
();
//关闭搜索
console
.
log
(
"成功搜索设备"
,
el
);
...
...
@@ -264,7 +264,7 @@
//发送数据 二进制
let
data
=
[];
if
(
this
.
printLabelData
.
length
>
0
)
{
data
.
push
(
"!
1
0 200 200 200 1\r\n"
);
data
.
push
(
"!
6
0 200 200 200 1\r\n"
);
data
.
push
(
"T 8 0 10 20 入仓号:"
+
this
.
printLabelData
[
this
.
print_number
].
erp_order_sn
+
"\r\n"
);
if
(
this
.
form
.
print_type
==
1
)
{
data
.
push
(
"T 8 0 10 70 总箱数:"
+
this
.
printLabelData
[
this
.
print_number
].
label_num
+
"箱\r\n"
);
...
...
pages/tag/repairPrint.vue
View file @
cc89de3a
...
...
@@ -146,7 +146,7 @@
console
.
log
(
'搜索设备start'
,
res
);
uni
.
onBluetoothDeviceFound
(
function
(
el
)
{
//找到对应蓝牙设备名字
if
(
el
.
devices
[
0
].
name
==
'HM-A300-
87d9
'
)
{
if
(
el
.
devices
[
0
].
name
==
'HM-A300-
647a
'
)
{
that
.
deviceId
=
el
.
devices
[
0
].
deviceId
;
//成功后存储设备id
that
.
stopBluetoothDevicesDiscovery
();
//关闭搜索
console
.
log
(
"成功搜索设备"
,
el
);
...
...
@@ -241,7 +241,7 @@
//发送数据 二进制
let
data
=
[];
if
(
this
.
printLabelData
.
length
>
0
)
{
data
.
push
(
"!
1
0 200 200 200 1\r\n"
);
data
.
push
(
"!
6
0 200 200 200 1\r\n"
);
data
.
push
(
"T 8 0 10 20 入仓号:"
+
this
.
printLabelData
[
this
.
print_number
].
erp_order_sn
+
"\r\n"
);
if
(
this
.
print_type
==
1
)
{
data
.
push
(
"T 8 0 10 70 总箱数:"
+
this
.
printLabelData
[
this
.
print_number
].
label_num
+
"箱\r\n"
);
...
...
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