Commit 22a1aed7 by 朱继来

调整审单

parent f4b0b41e
Showing with 2 additions and 0 deletions
...@@ -919,6 +919,7 @@ Class OrderController extends Controller ...@@ -919,6 +919,7 @@ Class OrderController extends Controller
if ($count > $order_user_limit) return ['errcode'=>11001, 'errmsg'=>'你已达到成交用户上限,请先释放你跟进的已下单用户或联系主管重新分配当前用户']; if ($count > $order_user_limit) return ['errcode'=>11001, 'errmsg'=>'你已达到成交用户上限,请先释放你跟进的已下单用户或联系主管重新分配当前用户'];
} }
if ($request->user->email != 'admin@ichunt.com') {
$perm = new PermController; $perm = new PermController;
$OrderModel = new OrderModel; $OrderModel = new OrderModel;
$relation_id = []; $relation_id = [];
...@@ -940,6 +941,7 @@ Class OrderController extends Controller ...@@ -940,6 +941,7 @@ Class OrderController extends Controller
// 校验此是否为此订单销售或者对应主管,总监 // 校验此是否为此订单销售或者对应主管,总监
if (!in_array($request->user->userId, $relation_id)) return ['errcode'=>-1, 'errmsg'=>'你没有权限操作此销售订单!']; if (!in_array($request->user->userId, $relation_id)) return ['errcode'=>-1, 'errmsg'=>'你没有权限操作此销售订单!'];
}
if (!$request->input('pay_time_limit')) { if (!$request->input('pay_time_limit')) {
$payTime = $request->input('payTime', ''); $payTime = $request->input('payTime', '');
......
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