Explorar o código

测试云尚快线打印

lvhao hai 3 meses
pai
achega
a1e9523b0c
Modificáronse 2 ficheiros con 7 adicións e 0 borrados
  1. 4 0
      core/CoreApp/controllers/Systemprint.php
  2. 3 0
      template/erp/js/print.js

+ 4 - 0
core/CoreApp/controllers/Systemprint.php

@@ -1376,6 +1376,10 @@ class Systemprint extends Start_Controller {
 								$pdfnum = ($fullorder['printcode'] == "DPEX")?2:1;
 								$text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>100);
 							}
+							//云尚快线 打印k5标签
+							if($fullorder['printcode'] == 'FEDEX_G'){
+								$type = 8;
+							}
 						}
 					}
 					else

+ 3 - 0
template/erp/js/print.js

@@ -113,6 +113,9 @@ function ajax(num, list, tf) {
                     
                     wprinter.fppdf(c.rows);
                 }
+                else if (c.rows['type'] == 8) {
+                    wprinter.pdffhdk5(c.rows);
+                }
 
                 if (c.rows['n'] > -1) {
                     //ajax(c.rows['n'],c.rows['data']);