|
@@ -34,7 +34,8 @@ export const JGPrintTag = function (width, height, data) {
|
|
const tline1 = (data.shelfName.length > 17 ? 2 : 1);
|
|
const tline1 = (data.shelfName.length > 17 ? 2 : 1);
|
|
const top0 = top + tline * 5;
|
|
const top0 = top + tline * 5;
|
|
const top1 = top0 + 5;
|
|
const top1 = top0 + 5;
|
|
- const top2 = top1 + 12;
|
|
|
|
|
|
+ const top2 = top1 + 10;
|
|
|
|
+ const top3 = top2 + 6;
|
|
// 经销商名称
|
|
// 经销商名称
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
LODOP.SET_PRINT_STYLE("FontSize",10);
|
|
LODOP.SET_PRINT_STYLE("FontSize",10);
|
|
@@ -49,15 +50,19 @@ export const JGPrintTag = function (width, height, data) {
|
|
LODOP.SET_PRINT_STYLEA(0,"Horient",2);
|
|
LODOP.SET_PRINT_STYLEA(0,"Horient",2);
|
|
// 货位号
|
|
// 货位号
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
- LODOP.SET_PRINT_STYLE("FontSize",32);
|
|
|
|
|
|
+ LODOP.SET_PRINT_STYLE("FontSize",30);
|
|
LODOP.ADD_PRINT_TEXT(top1+'mm',"50%","28mm","15mm",data.shelfPlaceCode);
|
|
LODOP.ADD_PRINT_TEXT(top1+'mm',"50%","28mm","15mm",data.shelfPlaceCode);
|
|
// 产品编码
|
|
// 产品编码
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
LODOP.SET_PRINT_STYLE("FontSize",12);
|
|
LODOP.SET_PRINT_STYLE("FontSize",12);
|
|
LODOP.ADD_PRINT_TEXT(top2+'mm',"50%","30mm","15mm",data.productCode);
|
|
LODOP.ADD_PRINT_TEXT(top2+'mm',"50%","30mm","15mm",data.productCode);
|
|
// 二维码
|
|
// 二维码
|
|
- LODOP.ADD_PRINT_BARCODE(top1+'mm','7mm',80,80,"QRCode",data.qrCodeContent)
|
|
|
|
|
|
+ LODOP.ADD_PRINT_BARCODE(top1+'mm','6mm',80,80,"QRCode",data.qrCodeContent)
|
|
LODOP.SET_PRINT_STYLE("QRCodeVersion",5)
|
|
LODOP.SET_PRINT_STYLE("QRCodeVersion",5)
|
|
|
|
+ // 时间
|
|
|
|
+ LODOP.SET_PRINT_STYLE("TextNeatRow",true);
|
|
|
|
+ LODOP.SET_PRINT_STYLE("FontSize",9);
|
|
|
|
+ LODOP.ADD_PRINT_TEXT(top3+'mm',"50%","30mm","15mm",data.printTime);
|
|
// LODOP.SET_PRINT_STYLE("QRCodeErrorLevel",'H')
|
|
// LODOP.SET_PRINT_STYLE("QRCodeErrorLevel",'H')
|
|
LODOP.SET_PRINT_COPIES(data.printQty)// 指定份数
|
|
LODOP.SET_PRINT_COPIES(data.printQty)// 指定份数
|
|
LODOP.SET_PRINT_PAGESIZE(1, width, height)
|
|
LODOP.SET_PRINT_PAGESIZE(1, width, height)
|