|
@@ -29,14 +29,14 @@ function CreateOneFormPage(html,qrcode,l_flow){
|
|
|
|
|
|
|
|
// LODOP.SET_PREVIEW_WINDOW(1,1,1,800,800,"预览.直接打印");
|
|
// LODOP.SET_PREVIEW_WINDOW(1,1,1,800,800,"预览.直接打印");
|
|
|
|
|
|
|
|
- LODOP.ADD_PRINT_HTM(15,20,350,500,html);
|
|
|
|
|
|
|
+ LODOP.ADD_PRINT_HTM(15,20,350,545,html);
|
|
|
|
|
|
|
|
- LODOP.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","M");
|
|
|
|
|
- LODOP.ADD_PRINT_BARCODE(330,70,'70mm','70mm',"QRCode",qrcode);
|
|
|
|
|
|
|
+ // LODOP.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","M");
|
|
|
|
|
+ // LODOP.ADD_PRINT_BARCODE(330,70,'70mm','70mm',"QRCode",qrcode);
|
|
|
|
|
|
|
|
- LODOP.ADD_PRINT_TEXT(400,300,70,80,"大件号"+l_flow);
|
|
|
|
|
|
|
+ LODOP.ADD_PRINT_TEXT(400,310,65,80,"大件号"+l_flow);
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","宋体");
|
|
|
- LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
|
|
|
|
|
|
|
+ LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontColor","#000000");
|
|
LODOP.SET_PRINT_STYLEA(0,"FontColor","#000000");
|
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
|
|
|
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
|
|
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
|
|
@@ -82,17 +82,18 @@ function small_v011_print(supplier_name,matter_name,product_code,sqrcd,print_cod
|
|
|
|
|
|
|
|
numnum1 = (Array(5).join(0) + numnum).slice(-3);
|
|
numnum1 = (Array(5).join(0) + numnum).slice(-3);
|
|
|
|
|
|
|
|
- var qrcode='AB'+'92'+temple+'0'+print_code+('000'+product_code)+riqi+numnum1+riqi+'000001'+'000000'+'2'+'0000'+riqi+'0000000000';
|
|
|
|
|
|
|
+ var qrcode ='AB'+'92'+temple+'0'+print_code+('000'+product_code)+riqi+numnum1+riqi+'000001'+'000000'+'2'+'0000'+riqi+'0000000000';
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: "/index.php?s=/Admin/Qcode/getproduct",
|
|
url: "/index.php?s=/Admin/Qcode/getproduct",
|
|
|
type: 'post',
|
|
type: 'post',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
- data: {'code':product_code, 'type':2},
|
|
|
|
|
|
|
+ data: {'code':product_code, 'type':2, 'qrcode':qrcode},
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
var main_unit = data.main_unit;
|
|
var main_unit = data.main_unit;
|
|
|
var sec_unit = data.sec_unit;
|
|
var sec_unit = data.sec_unit;
|
|
|
var proportion = data.proportion*sqrcd;
|
|
var proportion = data.proportion*sqrcd;
|
|
|
|
|
+ var pCode = data.pCode;
|
|
|
|
|
|
|
|
var html = template(document.getElementById('tpl').innerHTML, {
|
|
var html = template(document.getElementById('tpl').innerHTML, {
|
|
|
product_name: matter_name,
|
|
product_name: matter_name,
|
|
@@ -106,6 +107,7 @@ function small_v011_print(supplier_name,matter_name,product_code,sqrcd,print_cod
|
|
|
main_unit:main_unit,//主单位
|
|
main_unit:main_unit,//主单位
|
|
|
sec_unit:sec_unit,//辅单位
|
|
sec_unit:sec_unit,//辅单位
|
|
|
proportion:numnum,//数量
|
|
proportion:numnum,//数量
|
|
|
|
|
+ pCode:pCode,//二维码
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
var l_flow=1;
|
|
var l_flow=1;
|