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
1ea3c773
authored
Jan 22, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
2fc34521
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
pages/tag/print.vue
pages/tag/repairPrint.vue
pages/tag/print.vue
View file @
1ea3c773
...
...
@@ -38,7 +38,6 @@
import
{
API
}
from
'@/util/api.js'
;
import
{
getPlatform
}
from
'@/util/util.js'
const
ToBase64
=
require
(
'../../util/base64gb2312.js'
);
const
cpclExp
=
require
(
'../../util/cpcl-exp.js'
);
export
default
{
data
()
{
...
...
@@ -57,6 +56,7 @@
sendData64
:
''
,
platform
:
'android'
,
printLabelData
:
[],
print_text
:
'总箱数'
,
form
:
{
erp_order_sn_pre
:
''
,
print_type
:
1
,
...
...
@@ -132,7 +132,6 @@
this
.
request
(
API
.
printLabel
,
'POST'
,
this
.
form
,
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
printLabelData
=
res
.
data
;
this
.
sendDataChangeAll
();
this
.
openBluetoothAdapter
();
}
else
{
uni
.
showToast
({
...
...
@@ -240,8 +239,12 @@
var
h
=
0
;
//记录高度增量
data
.
push
(
"! 10 200 200 "
+
(
this
.
printLabelData
.
length
*
250
)
+
" 1\r\n"
);
for
(
let
i
=
0
;
i
<
this
.
printLabelData
.
length
;
i
++
)
{
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
1
))
-
(
30
*
1
)
+
h
)
+
" 入仓号:"
+
this
.
printLabelData
[
i
].
erp_order_sn
+
"\r\n"
)
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
1
))
-
(
30
*
1
)
+
h
)
+
" 入仓号:"
+
this
.
printLabelData
[
i
].
erp_order_sn
+
"\r\n"
);
if
(
this
.
form
.
print_type
==
1
)
{
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
2
))
-
(
30
*
1
)
+
h
)
+
" 总箱数:"
+
this
.
printLabelData
[
0
].
label_num
+
"箱\r\n"
);
}
else
{
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
2
))
-
(
30
*
1
)
+
h
)
+
" 箱号:"
+
this
.
printLabelData
[
i
].
label_sort
+
'/'
+
this
.
printLabelData
[
0
].
label_num
+
"\r\n"
);
}
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
3
))
-
(
30
*
1
)
+
h
)
+
" 时间:"
+
this
.
printLabelData
[
i
].
create_time_cn
+
"\r\n"
);
data
.
push
(
"T 8 0 10 "
+
((
50
*
(
i
+
4
))
-
(
30
*
1
)
+
h
)
+
" 仓库代码:"
+
i
+
"\r\n"
);
data
.
push
(
"B QR 290 "
+
((
50
*
(
i
+
1
))
-
(
30
*
1
)
+
h
)
+
" M 2 U 8\r\n"
);
...
...
@@ -341,9 +344,11 @@
if
(
index
==
0
)
{
this
.
form
.
print_type
=
1
;
this
.
text
=
'总箱数'
;
this
.
print_text
=
'总箱数'
;
}
else
if
(
index
==
1
)
{
this
.
text
=
'标签数量'
;
this
.
form
.
print_type
=
2
;
this
.
text
=
'标签数量'
;
this
.
print_text
=
'箱号'
;
}
}
}
...
...
pages/tag/repairPrint.vue
View file @
1ea3c773
This diff is collapsed.
Click to expand it.
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