Commit 45cce3dc by 朱继来

Merge branch 'master' of http://119.23.72.7/zhujilai/Order into zjl_batch_goods_20181129

parents fcd4d2ca 1d16214e
......@@ -260,6 +260,14 @@ function isChangeInvoice($order_sn)
}
}
// 自营线下订单
function getOrderExtend($order_id)
{
$extend = DB::connection('order')->table('lie_order_extend')->where(['order_id' => $order_id, 'order_type' => 3])->select('temp_id')->first();
return $extend ? true : false;
}
Class OrderController extends Controller
{
// 首页
......
......@@ -275,10 +275,11 @@
<td>
<div class="btn-group btn-group-xs">
<a class="btn btn-primary" href="/details/{{$v['order_id']}}?tags=self" target="_blank">详情</a>
@if (in_array('self_check_order', $userPerms) && in_array($v['status'], [1, 2, 3]))
<a class="btn btn-success" href="/change/{{$v['order_id']}}?tags=self" target="_blank">人工审单</a>
@endif
<?php $extend = App\Http\Controllers\getOrderExtend($v['order_id']); ?>
@if (in_array('self_check_order', $userPerms) && in_array($v['status'], [1, 2]) && !$extend)
<a class="btn btn-success" href="/change/{{$v['order_id']}}?tags=self" target="_blank">人工审单</a>
@endif
@if (in_array('self_order_download_contract', $userPerms))
<a class="btn btn-default download-contract" data-id="{{$v['order_id']}}" href="javascript:;">下载合同</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment