|
@@ -25,7 +25,8 @@ class Factory_order extends Core
|
|
|
|
|
|
$button = '<a href="'.$view.'"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-xs">查看详情</button></a>';
|
|
|
|
|
|
- $button .= ' <a href="javascript:;" id="print_'.$v['id'].'" onclick="layer.alert(\'开发中\')"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-xs">打印订单</button></a>';
|
|
|
+ $print = Dever::url('admin/order.print?id=' . $v['id'] . '&type=2', 'store');
|
|
|
+ $button .= ' <a href="'.$print.'" target="_blank"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-xs">打印订单</button></a>';
|
|
|
|
|
|
if ($v['status'] == 4) {
|
|
|
$url = Dever::url('admin/factory_order.action_commit&order_id='.$v['id'], 'store');
|