Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
Warehouse
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
cd4b61fb
authored
May 08, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
8f25f543
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
pages/cardBoard/cardBoard.js
pages/mountingPlate/mountingPlate.js
pages/receivinggoods/receivinggoods.js
utils/util.js
pages/cardBoard/cardBoard.js
View file @
cd4b61fb
...
...
@@ -620,7 +620,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+
let
data
=
res
.
data
;
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,
QR code :
"
+
(
data
.
pallet_sn
||
'--'
)
+
","
+
(
data
.
box_num
||
'--'
)
+
","
+
(
data
.
box_weight
||
'--'
)
+
"\n"
+
"MA,"
+
(
data
.
pallet_sn
||
'--'
)
+
","
+
(
data
.
box_num
||
'--'
)
+
","
+
(
data
.
box_weight
||
'--'
)
+
"\n"
+
"ENDQR \n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
...
...
pages/mountingPlate/mountingPlate.js
View file @
cd4b61fb
...
...
@@ -596,7 +596,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+
let
data
=
res
.
data
;
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,
QR code :
"
+
(
data
.
NO
||
'--'
)
+
","
+
(
data
.
QTY
||
'--'
)
+
","
+
(
data
.
WEIGHT
||
'--'
)
+
"\n"
+
"MA,"
+
(
data
.
NO
||
'--'
)
+
","
+
(
data
.
QTY
||
'--'
)
+
","
+
(
data
.
WEIGHT
||
'--'
)
+
"\n"
+
"ENDQR \n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
...
...
@@ -633,7 +633,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+
let
data
=
res
.
data
;
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,
QR code :
"
+
(
data
.
NO
||
'--'
)
+
","
+
(
data
.
QTY
||
'--'
)
+
","
+
(
data
.
WEIGHT
||
'--'
)
+
"\n"
+
"MA,"
+
(
data
.
NO
||
'--'
)
+
","
+
(
data
.
QTY
||
'--'
)
+
","
+
(
data
.
WEIGHT
||
'--'
)
+
"\n"
+
"ENDQR \n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
...
...
pages/receivinggoods/receivinggoods.js
View file @
cd4b61fb
...
...
@@ -877,7 +877,7 @@ onUnload:function(){
let
formData
=
me
.
data
.
formData
;
let
data
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
"MA,
QR code :
"
+
formData
.
xh
+
","
+
formData
.
pp
+
","
+
formData
.
sl
+
","
+
formData
.
cd
+
","
+
(
formData
.
dc
||
'--'
)
+
","
+
(
formData
.
pc
||
'--'
)
+
"\n"
+
"MA,"
+
formData
.
xh
+
","
+
formData
.
pp
+
","
+
formData
.
sl
+
","
+
formData
.
cd
+
","
+
(
formData
.
dc
||
'--'
)
+
","
+
(
formData
.
pc
||
'--'
)
+
"\n"
+
"ENDQR \n"
+
"TTEXT 55 1 380 0 型号 \n"
+
"TEXT 55 1 380 40 品牌 \n"
+
...
...
utils/util.js
View file @
cd4b61fb
...
...
@@ -8,7 +8,7 @@ const printData = (xnum,weight,arr) =>{
let
k
=
(
i
+
1
)
*
7
;
str
+=
"! 0 200 200 400 1\n"
;
str
+=
"B QR 200 0 M 2 2 10\n"
;
str
+=
"MA,
QR code :
"
+
xnum
+
","
+
weight
+
"\n"
;
str
+=
"MA,"
+
xnum
+
","
+
weight
+
"\n"
;
str
+=
"ENDQR\n"
;
str
+=
"TEXT 55 1 200 160 箱号:\n"
;
str
+=
"TEXT 55 1 250 160 "
+
xnum
+
"\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