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
e49bf3ea
authored
Feb 16, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
记住放置托盘
parent
d6b15a65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
pages/tag/print.vue
pages/tag/print.vue
View file @
e49bf3ea
...
...
@@ -65,13 +65,21 @@
};
},
created
()
{
this
.
getTraySelectOption
();
},
methods
:
{
getTraySelectOption
()
{
this
.
request
(
API
.
getTraySelectOption
,
'POST'
,
{},
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
traySelectOption
=
res
.
data
;
let
token
=
uni
.
getStorageSync
(
'token'
);
let
tray_sn_index
=
uni
.
getStorageSync
(
'tray_sn_index'
);
if
(
token
)
{
this
.
index
=
tray_sn_index
;
}
}
});
},
...
...
@@ -128,6 +136,7 @@
this
.
request
(
API
.
printLabel
,
'POST'
,
this
.
form
,
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
printLabelData
=
res
.
data
;
uni
.
setStorageSync
(
'tray_sn_index'
,
this
.
index
);
this
.
openBluetoothAdapter
();
}
else
{
uni
.
showToast
({
...
...
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