修复html打印模板bug
This commit is contained in:
@@ -128,7 +128,7 @@ class ApproachController extends WorkflowController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ class ReviewController extends WorkflowController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -748,6 +748,7 @@ class OrderController extends WorkflowController
|
||||
$data['form'] = $form;
|
||||
$data['template'] = $template;
|
||||
$tpl = $this->display($data, 'print/'.$template_id);
|
||||
//return $tpl;
|
||||
return $print_type == 'pdf' ? print_prince($tpl) : $tpl;
|
||||
}
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ class SampleApplyController extends WorkflowController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
<tr>
|
||||
<td width="10%">特别说明</td>
|
||||
<td width="90%">
|
||||
收货时请按我司《随货单》点货验收。货物如有缺失或者破损,请与承运方协调,采取现场赔付,如协调无法达成一致意见,请第一时间告知我司并向承运方索取有效货物异常证明(贵司收货人与承运方双方签字认可的货物运单)回单至我司028-38296888并确认收到。
|
||||
收货时请按我司《随货单》点货验收。货物如有缺失或者破损,请与承运方协调,采取现场赔付,如协调无法达成一致意见,请第一时间告知我司并向承运方索取有效货物异常证明(贵司收货人与承运方双方签字认可的货物运单)回单至我司并确认收到。
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -159,7 +159,7 @@ class PromotionController extends WorkflowController
|
||||
$header['code'] = 'promotion';
|
||||
$header['id'] = $id;
|
||||
$header['template_id'] = $template_id;
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$form = Form::make($header);
|
||||
$form['template']['name'] = '促销申请';
|
||||
print_prince($this->display([
|
||||
|
||||
@@ -120,7 +120,7 @@ class ReviewController extends WorkflowController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ class AllocationController extends WorkflowController
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$master = DB::table('stock_allocation as m')
|
||||
->where('m.id', $id)
|
||||
->leftJoin('warehouse as wo', 'wo.id', '=', 'm.out_warehouse_id')
|
||||
|
||||
@@ -105,7 +105,7 @@ class CancelController extends WorkflowController
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$master = DB::table('stock_cancel as sd')
|
||||
->leftJoin('customer as c', 'c.id', '=', 'sd.customer_id')
|
||||
->leftJoin('customer_tax as ct', 'ct.id', '=', 'sd.tax_id')
|
||||
|
||||
@@ -100,7 +100,7 @@ class DirectController extends WorkflowController
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
|
||||
$master = DB::table('stock_direct as sd')
|
||||
->leftJoin('customer as c', 'c.id', '=', 'sd.customer_id')
|
||||
|
||||
@@ -93,7 +93,7 @@ class Record01Controller extends AuditController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ class Record08Controller extends AuditController
|
||||
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ class Record09Controller extends WorkflowController
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$master = DB::table('stock_record09 as m')->where('m.id', $id)
|
||||
->leftJoin('stock_type as st', 'st.id', '=', 'm.type_id')
|
||||
->leftJoin('department', 'department.id', '=', 'm.department_id')
|
||||
|
||||
@@ -99,7 +99,7 @@ class Record10Controller extends WorkflowController
|
||||
|
||||
public function print2()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$view = $this->create('print');
|
||||
$viewData = $view->getData();
|
||||
print_prince($this->create('print'));
|
||||
@@ -111,7 +111,7 @@ class Record10Controller extends WorkflowController
|
||||
$template_id = Request::get('template_id');
|
||||
if ($template_id == 117) {
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
|
||||
$master = DB::table('stock_record10 as m')->where('m.id', $id)
|
||||
->leftJoin('stock_type as st', 'st.id', '=', 'm.type_id')
|
||||
@@ -148,7 +148,7 @@ class Record10Controller extends WorkflowController
|
||||
return $tpl;
|
||||
|
||||
} else {
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$tpl = $this->create('print');
|
||||
print_prince($tpl);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class Record11Controller extends AuditController
|
||||
$template_id = Request::get('template_id');
|
||||
if ($template_id == 115) {
|
||||
|
||||
$this->layout = 'layouts.print3';
|
||||
$this->layout = 'layouts.print_html';
|
||||
|
||||
$master = DB::table('stock_record11 as m')->where('m.id', $id)
|
||||
->leftJoin('stock_type as st', 'st.id', '=', 'm.type_id')
|
||||
@@ -134,7 +134,7 @@ class Record11Controller extends AuditController
|
||||
return $tpl;
|
||||
|
||||
} else {
|
||||
$this->layout = 'layouts.print2';
|
||||
$this->layout = 'layouts.print_html';
|
||||
$tpl = $this->create('print');
|
||||
print_prince($tpl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user