Commit 7aec11d6 by 朱继来

调整推送页面

parent 085739bc
......@@ -914,7 +914,7 @@ Class OrderController extends Controller
$tags = $request->input('tags', '');
// 联营
// $joint_manager = $perm->getRoleUsers($request, '经理');
$joint_manager = $perm->getRoleUsers($request, '经理');
$joint_in_charge_1 = $perm->getRoleUsers($request, '线销一组主管');
$joint_in_charge_2 = $perm->getRoleUsers($request, '线销二组主管');
$joint_in_charge_3 = $perm->getRoleUsers($request, '线销三组主管');
......@@ -933,13 +933,21 @@ Class OrderController extends Controller
$self_kefu = array_merge($self_assistant, $self_kefu);
}
// $info['joint_manager'] = $this->filterLeave($joint_manager);
$info['joint_manager'] = $this->filterLeave($joint_manager);
$info['kefu_manager'] = Config('perm_args.kefu_manager');
$joint_in_charge_1 = $this->filterLeave($joint_in_charge_1);
$joint_in_charge_2 = $this->filterLeave($joint_in_charge_2);
$joint_in_charge_3 = $this->filterLeave($joint_in_charge_3);
$info['joint_in_charge'] = $this->remove_duplicate(array_merge($joint_in_charge_1, $joint_in_charge_2, $joint_in_charge_3));
// 临时处理 (主管里面去掉张娟)
foreach ($info['joint_in_charge'] as $k=>$v) {
if ($v->userId == '1445') {
unset($info['joint_in_charge'][$k]);
}
}
$info['joint_kefu_1'] = $this->filterLeave($joint_kefu_1);
$info['joint_kefu_2'] = $this->filterLeave($joint_kefu_2);
$info['joint_kefu_3'] = $this->filterLeave($joint_kefu_3);
......
......@@ -55,4 +55,11 @@ return [
],
'redis_search_sales_expire' => 7200, // 缓存两小时
// 客服经理 (固定,用于推送业务员页面) --- 两个奇葩
'kefu_manager' => [
(object)['userId'=>1445, 'name'=>'张娟', 'status'=>0],
(object)['userId'=>1582, 'name'=>'滕欢欢', 'status'=>0],
],
];
......@@ -9,6 +9,40 @@
<input type="hidden" name="order_id" value="{{$order_info['order_id']}}">
<table class="table table-bordered table-hover check-table" style="min-height:150px;">
@if (!empty($joint_manager))
<tr>
<td class="check-table-title"></td>
<td>
<ul>
@foreach ($joint_manager as $vo)
@if ($vo->userId == $order_info['sale_id'])
<li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else
<li><label><input type="radio" name="sale_id" value="{{$vo->userId}}"/><span>{{$vo->name}}</span></label></li>
@endif
@endforeach
</ul>
</td>
</tr>
@endif
@if (!empty($kefu_manager))
<tr>
<td class="check-table-title"></td>
<td>
<ul>
@foreach ($kefu_manager as $vo)
@if ($vo->userId == $order_info['sale_id'])
<li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else
<li><label><input type="radio" name="sale_id" value="{{$vo->userId}}"/><span>{{$vo->name}}</span></label></li>
@endif
@endforeach
</ul>
</td>
</tr>
@endif
@if (!empty($joint_in_charge))
<tr>
<td class="check-table-title">联营客服:</td>
......
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