Browse Source

提交数据

lvhao 2 months ago
parent
commit
2dfe5177eb
2 changed files with 5 additions and 2 deletions
  1. 1 1
      core/CoreApp/controllers/Systemprint.php
  2. 4 1
      template/erp/js/print.js

+ 1 - 1
core/CoreApp/controllers/Systemprint.php

@@ -1635,7 +1635,7 @@ class Systemprint extends Start_Controller {
 							$fullorder['printnumber'] = $fullorder['printnumber'] +1;//不能删
 							if($this->$fullorder_name->save(array('waybill'=>$Hwaybill,'waybillid'=>$barcode['waybillid'],'libraryconfirm'=>2,'librarynot'=>'','printtime'=>$time,'printnumber'=>$fullorder['printnumber'],'print'=>3,'oldwaybill'=>$oldwaybill,'oldprinttime'=>$oldprinttime),$va[$n]))
 				   		 	{
-								$type = 1;
+								$type = 8;
 								$pdfnum = 1;
 								$text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>100);
 							}

+ 4 - 1
template/erp/js/print.js

@@ -112,6 +112,9 @@ function ajax(num, list, tf) {
                     wprinter.pdffhd(c.rows);
                     
                     wprinter.fppdf(c.rows);
+                }else if (c.rows['type'] == 8) {
+                    //负责打印竖版
+                   wprinter.sbpdffhd(c.rows);
                 }
                 
                 if (c.rows['n'] > -1) {
@@ -361,7 +364,7 @@ $(document).keyup(function(event) {
                 $("#orderinfo").focus();
                 return;
             }
-            $("#orderinfo").blur();
+            $("#orderinfo").blur(); 
             $(".systemwindow div p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> &nbsp; 处理中,请稍后...");
             $(".systemwindow div p:eq(1)").html("");
             $(".systemwindow").show();