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
710de614
authored
May 09, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
37254e0a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
pages/mountingPlate/mountingPlate.js
pages/receivinggoods/receivinggoods.js
project.config.json
utils/api.js
utils/util.js
pages/mountingPlate/mountingPlate.js
View file @
710de614
...
...
@@ -600,7 +600,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
// "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+
"MA,
"
+
(
data
.
NO
||
'--'
)
+
"
\n"
+
"MA,
'"
+
(
data
.
NO
||
'--'
)
+
"'
\n"
+
"ENDQR \n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
...
...
@@ -638,7 +638,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+
let
str
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
// "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+
"MA,
"
+
(
data
.
NO
||
'--'
)
+
"
\n"
+
"MA,
'"
+
(
data
.
NO
||
'--'
)
+
"'
\n"
+
"ENDQR \n"
+
"TEXT 55 1 380 20 卡板号: \n"
+
"TEXT 55 1 380 60 内含箱数: \n"
+
...
...
pages/receivinggoods/receivinggoods.js
View file @
710de614
...
...
@@ -914,7 +914,7 @@ onUnload:function(){
let
data
=
"! 0 200 200 400 1 \n"
+
"B QR 200 0 M 2 2 10 \n"
+
// "MA,"+formData.xh+","+formData.pp+","+formData.sl+","+formData.cd+","+(formData.dc||'--')+","+(formData.pc||'--')+"\n"+
"MA,
{goodsName:"
+
formData
.
xh
+
",brandName:"
+
formData
.
pp
+
",number:"
+
formData
.
sl
+
",country:"
+
formData
.
cd
+
",dc:"
+
(
formData
.
dc
||
'--'
)
+
",batch:"
+
(
formData
.
pc
||
'--'
)
+
"}
\n"
+
"MA,
'{goodsName:"
+
formData
.
xh
+
",brandName:"
+
formData
.
pp
+
",number:"
+
formData
.
sl
+
",country:"
+
formData
.
cd
+
",dc:"
+
(
formData
.
dc
||
'--'
)
+
",batch:"
+
(
formData
.
pc
||
'--'
)
+
"}'
\n"
+
"ENDQR \n"
+
"TTEXT 55 1 380 0 型号 \n"
+
"TEXT 55 1 380 40 品牌 \n"
+
...
...
project.config.json
View file @
710de614
...
...
@@ -26,7 +26,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.10.4"
,
"appid"
:
"wx
e0cce2b5d4868840
"
,
"appid"
:
"wx
dbde6e72f40d89cf
"
,
"projectname"
:
"Warehouse"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
utils/api.js
View file @
710de614
const
user_url
=
'http://user.liexin.net'
;
const
in_store_url
=
'http://scm.in.store.liexin.net'
;
// const in_store_url = 'http://scm.in.store.liexin.net';
// const out_store_url = 'http://outstoreapi.liexin.net';
const
in_store_url
=
'http://instoreapi.liexin.net'
;
const
out_store_url
=
'http://outstoreapi.liexin.net'
;
export
const
apis
=
{
login
:
user_url
+
'/pwd/login'
,
//登入
...
...
utils/util.js
View file @
710de614
...
...
@@ -9,19 +9,19 @@ const printData = (xnum,weight,arr) =>{
str
+=
"! 0 200 200 400 1\n"
;
str
+=
"B QR 200 0 M 2 2 10\n"
;
// str+="MA,"+xnum+","+weight+"\n";
str
+=
"MA,
"
+
xnum
+
"
\n"
;
str
+=
"MA,
'"
+
xnum
+
"'
\n"
;
str
+=
"ENDQR\n"
;
str
+=
"TEXT 55 1 200 160 箱号:\n"
;
str
+=
"TEXT 55 1 250 160 "
+
xnum
+
"\n"
;
str
+=
"TEXT 55 1 200 200 重量:\n"
;
str
+=
"TEXT 55 1 250 200 "
+
weight
+
"\n"
;
str
+=
"TEXT 55 1 "
+
380
+
" 0 型号\n"
;
str
+=
"TEXT 55 1 "
+
38
0
+
" 0 数量\n"
;
str
+=
"TEXT 55 1 "
+
52
0
+
" 0 数量\n"
;
let
newArr
=
arr
.
slice
(
j
,
k
)
for
(
let
s
=
0
;
s
<
newArr
.
length
;
s
++
){
let
num
=
newArr
[
s
].
number
;
let
name
=
newArr
[
s
].
goods_name
;
str
+=
"TEXT 55 1
52
0 "
+
(
40
*
(
s
+
1
))
+
" "
+
name
+
"\n"
;
str
+=
"TEXT 55 1
38
0 "
+
(
40
*
(
s
+
1
))
+
" "
+
name
+
"\n"
;
str
+=
"TEXT 55 1 520 "
+
(
40
*
(
s
+
1
))
+
" "
+
num
+
"\n"
;
}
str
+=
"FORM\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