lvhao 6 meses atrás
pai
commit
1a8b784eae

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

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

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

@@ -109,8 +109,7 @@ function ajax(num, list, tf) {
                 }else if (c.rows['type'] == 7) {
                     alert(JSON.stringify(c))
                     //同时两台打印机 一台打印快递单   一台打打印发票
-                    wprinter.pdffhd(c.rows);
-                    wprinter.fppdf(c.rows);
+                    wprinter.pdffhdandfp(c.rows);
                 }
 
                 if (c.rows['n'] > -1) {