|
@@ -146,12 +146,12 @@ export const printCpclTempl = function(cpcl,data){
|
|
// 初始化打印机
|
|
// 初始化打印机
|
|
let strCmd =cpcl.CreatCPCLPage(pageW*8,pageH*8,data.currentInven,0);
|
|
let strCmd =cpcl.CreatCPCLPage(pageW*8,pageH*8,data.currentInven,0);
|
|
// 经销商文字高度,是否换行
|
|
// 经销商文字高度,是否换行
|
|
- const a = textCpclFormat(cpcl,data.dealerName,maxFontNums,left,top,lightHeight,"center",'55',1);
|
|
|
|
|
|
+ const a = textCpclFormat(cpcl,data.dealerName,maxFontNums,left,top,lightHeight,"center",'24',0);
|
|
top = a.top;
|
|
top = a.top;
|
|
strCmd += a.result;
|
|
strCmd += a.result;
|
|
// 数字货架名称文字
|
|
// 数字货架名称文字
|
|
top = top+10;
|
|
top = top+10;
|
|
- const b = textCpclFormat(cpcl,data.shelfName,maxFontNums,left,top,lightHeight,"center",'55',1);
|
|
|
|
|
|
+ const b = textCpclFormat(cpcl,data.shelfName,maxFontNums,left,top,lightHeight,"center",'24',0);
|
|
top = b.top;
|
|
top = b.top;
|
|
strCmd += b.result;
|
|
strCmd += b.result;
|
|
// 二维码
|
|
// 二维码
|
|
@@ -175,9 +175,9 @@ export const printCpclTempl = function(cpcl,data){
|
|
const e = textCpclFormat(cpcl,data.printDate,rightMaxFnums,rightLeft,top,lightHeight,"left",'7',0);
|
|
const e = textCpclFormat(cpcl,data.printDate,rightMaxFnums,rightLeft,top,lightHeight,"left",'7',0);
|
|
top = e.top;
|
|
top = e.top;
|
|
strCmd += e.result;
|
|
strCmd += e.result;
|
|
|
|
+ strCmd += 'FORM \n\r'
|
|
strCmd += cpcl.addCPCLPrint();
|
|
strCmd += cpcl.addCPCLPrint();
|
|
console.log(strCmd)
|
|
console.log(strCmd)
|
|
- console.log(gbk.strToGBKByte(strCmd))
|
|
|
|
return gbk.strToGBKByte(strCmd);
|
|
return gbk.strToGBKByte(strCmd);
|
|
}
|
|
}
|
|
|
|
|