|
@@ -56,6 +56,7 @@ class Systemprint extends Start_Controller {
|
|
|
$this->load->_model("Model_itsxb","itsxb");
|
|
$this->load->_model("Model_itsxb","itsxb");
|
|
|
$this->load->_model("Model_express_tt","express_tt");
|
|
$this->load->_model("Model_express_tt","express_tt");
|
|
|
$this->load->_model("Model_logic_u9tools","logic_u9tools");
|
|
$this->load->_model("Model_logic_u9tools","logic_u9tools");
|
|
|
|
|
+ $this->load->_model("Model_waybilldowns","waybilldowns");
|
|
|
}
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -1794,7 +1795,18 @@ class Systemprint extends Start_Controller {
|
|
|
{
|
|
{
|
|
|
$bctime = date('Ymd',$time);
|
|
$bctime = date('Ymd',$time);
|
|
|
$Hwaybill = $barcode['waybill'];
|
|
$Hwaybill = $barcode['waybill'];
|
|
|
- $Hyd = $this->_pdfurl($barcode['label'],'y-'.$Hwaybill,$bctime);
|
|
|
|
|
|
|
+ //$Hyd = $this->_pdfurl($barcode['label'],'y-'.$Hwaybill,$bctime);
|
|
|
|
|
+
|
|
|
|
|
+ $this->waybilldowns->insert([
|
|
|
|
|
+ 'date_dir'=>$bctime,
|
|
|
|
|
+ 'pdf_name'=>'y-'.$Hwaybill,
|
|
|
|
|
+ 'url'=>$barcode['label'],
|
|
|
|
|
+ 'waybill'=>$Hwaybill,
|
|
|
|
|
+ 'number'=>$fullorder['number'],
|
|
|
|
|
+ 'status'=>0,
|
|
|
|
|
+ 'create_time'=>time(),
|
|
|
|
|
+ ]);
|
|
|
|
|
+
|
|
|
//$Hfp = $this->_pdfurl($barcode['fp'],'f-'.$Hwaybill,$bctime);//保留PDF,不需要打印
|
|
//$Hfp = $this->_pdfurl($barcode['fp'],'f-'.$Hwaybill,$bctime);//保留PDF,不需要打印
|
|
|
if(isset($barcode['label']) && isset($Hwaybill))
|
|
if(isset($barcode['label']) && isset($Hwaybill))
|
|
|
{
|
|
{
|
|
@@ -1812,7 +1824,8 @@ class Systemprint extends Start_Controller {
|
|
|
{
|
|
{
|
|
|
$type = 1;
|
|
$type = 1;
|
|
|
$pdfnum = 1;
|
|
$pdfnum = 1;
|
|
|
- $text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>$pdf_width_model);
|
|
|
|
|
|
|
+ //$text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>$pdf_width_model);
|
|
|
|
|
+ $text = array('yd'=>$barcode['label'],'mode'=>$pdf_width_model);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|