|
|
@ -115,7 +115,6 @@ |
|
|
|
var fieldValues = $.getFieldValue({ |
|
|
|
formid : 'search_form' |
|
|
|
}); |
|
|
|
debugger; |
|
|
|
var dataParam = { |
|
|
|
_SRVNAME : 'server.store.GroupMaterPrint', |
|
|
|
_SRVMETHOD : 'pageQueryList', |
|
|
@ -288,18 +287,17 @@ |
|
|
|
|
|
|
|
} |
|
|
|
function print(data1) { |
|
|
|
debugger; |
|
|
|
/* var data1 = { |
|
|
|
param1:'HAE00254' |
|
|
|
,param2:'09月' |
|
|
|
,param3:'對中裝置, SWS9751 8-E1-A1-AB-LR WOB=2400' |
|
|
|
,param4:'载具:' |
|
|
|
,param5:'数量:' |
|
|
|
,param6:'01#HAE00175##1060' |
|
|
|
,param7:'工厂:1060' |
|
|
|
,param8:'库区:1043' |
|
|
|
,param9:'批次:20200913' |
|
|
|
,param10:'单号:5400000380' |
|
|
|
param1 : rowsdtl[i].material_code, |
|
|
|
param2 : month, |
|
|
|
param3 : rowsdtl[i].material_name, |
|
|
|
param4 : '载具:'+rowsdtl[i].carrier_no, |
|
|
|
param5 : '数量:'+currentqty + rowsdtl[i].unit_name, |
|
|
|
param7 : '工厂:'+rowsdtl[i].factory_code, |
|
|
|
param8 : '库区:'+rowsdtl[i].ext_id, |
|
|
|
param9 : '批次:'+rowsdtl[i].pcsn, |
|
|
|
param10 : '单号:'+rowsdtl[i].po_code, |
|
|
|
param11 : '收货人:'+rowsdtl[i].person_name |
|
|
|
}; */ |
|
|
|
|
|
|
|
var LODOP = init_Print({ |
|
|
@ -312,42 +310,43 @@ |
|
|
|
|
|
|
|
//第一行 第一个参数 |
|
|
|
//LODOP.SET_PRINT_STYLEA(2,"FontName","隶书"); |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 24); |
|
|
|
LODOP.SET_PRINT_STYLE("Bold", 1); |
|
|
|
LODOP.ADD_PRINT_TEXT('2mm', '2mm', '58mm', '10mm', data1.param1); |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 25); |
|
|
|
LODOP.SET_PRINT_STYLE("Bold", 1); |
|
|
|
LODOP.ADD_PRINT_TEXT('2mm', '2mm', '50mm', '10mm', data1.param1); |
|
|
|
|
|
|
|
//第一行 第二个参数 |
|
|
|
LODOP.ADD_PRINT_TEXT('2mm', '60mm', '30mm', '10mm', data1.param2); |
|
|
|
|
|
|
|
//第二行 第一个参数 |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 10); |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 11); |
|
|
|
LODOP.SET_PRINT_STYLE("Bold", 0); |
|
|
|
LODOP.ADD_PRINT_TEXT('10mm', '2mm', '80mm', '16mm', data1.param3); |
|
|
|
|
|
|
|
//第二行 第二个参数 |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 15); |
|
|
|
LODOP.ADD_PRINT_TEXT('18mm', '2mm', '50mm', '18mm', data1.param4); |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 14); |
|
|
|
LODOP.ADD_PRINT_TEXT('23mm', '2mm', '50mm', '18mm', data1.param4); |
|
|
|
|
|
|
|
//第三行 第一个参数 |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 15); |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 14); |
|
|
|
LODOP.SET_PRINT_STYLE("Bold", 0); |
|
|
|
LODOP.ADD_PRINT_TEXT('24mm', '2mm', '50mm', '16mm', data1.param5); |
|
|
|
LODOP.ADD_PRINT_TEXT('28mm', '2mm', '50mm', '16mm', data1.param5); |
|
|
|
|
|
|
|
//第四行 第一个参数 |
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 11); |
|
|
|
LODOP.SET_PRINT_STYLE("Bold", 0); |
|
|
|
LODOP.ADD_PRINT_TEXT('30mm', '2mm', '60mm', '8mm', data1.param7); |
|
|
|
LODOP.ADD_PRINT_TEXT('34mm', '2mm', '60mm', '8mm', data1.param7); |
|
|
|
|
|
|
|
//第五行 第一个参数 |
|
|
|
LODOP.ADD_PRINT_TEXT('30mm', '25mm', '60mm', '8mm', data1.param8); |
|
|
|
LODOP.ADD_PRINT_TEXT('34mm', '25mm', '60mm', '8mm', data1.param8); |
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT('35mm', '2mm', '60mm', '8mm', data1.param9); |
|
|
|
LODOP.ADD_PRINT_TEXT('38mm', '2mm', '60mm', '8mm', data1.param9); |
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT('41mm', '2mm', '60mm', '8mm', data1.param10); |
|
|
|
LODOP.ADD_PRINT_TEXT('42mm', '2mm', '60mm', '8mm', data1.param10); |
|
|
|
LODOP.ADD_PRINT_TEXT('46mm', '2mm', '60mm', '8mm', data1.param11); |
|
|
|
|
|
|
|
//打印二维码 |
|
|
|
LODOP.ADD_PRINT_BARCODE('18mm', '45mm', '37mm', '37mm', "QRCode", |
|
|
|
LODOP.ADD_PRINT_BARCODE('20mm', '45mm', '37mm', '37mm', "QRCode", |
|
|
|
data1.param6); |
|
|
|
//LODOP.SET_PRINT_STYLEA(0,"GroundColor","#0080FF"); |
|
|
|
LODOP.PRINT(); |
|
|
|