Commit 710de614 by 施宇

1

parent 37254e0a
...@@ -600,7 +600,7 @@ for (let i = 0, j = 0, length = buffer.byteLength; i < length; i += maxChunk, j+ ...@@ -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"+ let str = "! 0 200 200 400 1 \n"+
"B QR 200 0 M 2 2 10 \n"+ "B QR 200 0 M 2 2 10 \n"+
// "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+ // "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+
"MA,"+(data.NO||'--')+"\n"+ "MA,'"+(data.NO||'--')+"'\n"+
"ENDQR \n"+ "ENDQR \n"+
"TEXT 55 1 380 20 卡板号: \n"+ "TEXT 55 1 380 20 卡板号: \n"+
"TEXT 55 1 380 60 内含箱数: \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+ ...@@ -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"+ let str = "! 0 200 200 400 1 \n"+
"B QR 200 0 M 2 2 10 \n"+ "B QR 200 0 M 2 2 10 \n"+
// "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+ // "MA,"+(data.NO||'--')+","+(data.QTY||'--')+","+(data.WEIGHT||'--')+"\n"+
"MA,"+(data.NO||'--')+"\n"+ "MA,'"+(data.NO||'--')+"'\n"+
"ENDQR \n"+ "ENDQR \n"+
"TEXT 55 1 380 20 卡板号: \n"+ "TEXT 55 1 380 20 卡板号: \n"+
"TEXT 55 1 380 60 内含箱数: \n"+ "TEXT 55 1 380 60 内含箱数: \n"+
......
...@@ -914,7 +914,7 @@ onUnload:function(){ ...@@ -914,7 +914,7 @@ onUnload:function(){
let data = "! 0 200 200 400 1 \n"+ let data = "! 0 200 200 400 1 \n"+
"B QR 200 0 M 2 2 10 \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,"+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"+ "ENDQR \n"+
"TTEXT 55 1 380 0 型号 \n"+ "TTEXT 55 1 380 0 型号 \n"+
"TEXT 55 1 380 40 品牌 \n"+ "TEXT 55 1 380 40 品牌 \n"+
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.10.4", "libVersion": "2.10.4",
"appid": "wxe0cce2b5d4868840", "appid": "wxdbde6e72f40d89cf",
"projectname": "Warehouse", "projectname": "Warehouse",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
const user_url = 'http://user.liexin.net'; 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'; const out_store_url = 'http://outstoreapi.liexin.net';
export const apis = { export const apis = {
login:user_url+'/pwd/login',//登入 login:user_url+'/pwd/login',//登入
......
...@@ -9,19 +9,19 @@ const printData = (xnum,weight,arr) =>{ ...@@ -9,19 +9,19 @@ const printData = (xnum,weight,arr) =>{
str+="! 0 200 200 400 1\n"; str+="! 0 200 200 400 1\n";
str+="B QR 200 0 M 2 2 10\n"; str+="B QR 200 0 M 2 2 10\n";
// str+="MA,"+xnum+","+weight+"\n"; // str+="MA,"+xnum+","+weight+"\n";
str+="MA,"+xnum+"\n"; str+="MA,'"+xnum+"'\n";
str+="ENDQR\n"; str+="ENDQR\n";
str+="TEXT 55 1 200 160 箱号:\n"; str+="TEXT 55 1 200 160 箱号:\n";
str+="TEXT 55 1 250 160 "+xnum+"\n"; str+="TEXT 55 1 250 160 "+xnum+"\n";
str+="TEXT 55 1 200 200 重量:\n"; str+="TEXT 55 1 200 200 重量:\n";
str+="TEXT 55 1 250 200 "+weight+"\n"; str+="TEXT 55 1 250 200 "+weight+"\n";
str+="TEXT 55 1 "+380+" 0 型号\n"; str+="TEXT 55 1 "+380+" 0 型号\n";
str+="TEXT 55 1 "+380+" 0 数量\n"; str+="TEXT 55 1 "+520+" 0 数量\n";
let newArr = arr.slice(j,k) let newArr = arr.slice(j,k)
for(let s=0;s<newArr.length;s++){ for(let s=0;s<newArr.length;s++){
let num = newArr[s].number; let num = newArr[s].number;
let name = newArr[s].goods_name; let name = newArr[s].goods_name;
str+="TEXT 55 1 520 "+(40*(s+1))+" "+name+"\n"; str+="TEXT 55 1 380 "+(40*(s+1))+" "+name+"\n";
str+="TEXT 55 1 520 "+(40*(s+1))+" "+num+"\n"; str+="TEXT 55 1 520 "+(40*(s+1))+" "+num+"\n";
} }
str+="FORM\n"; str+="FORM\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment