Commit 37d2ba9e by 孙龙

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

parents 5504f6cd 47e0a832
...@@ -263,43 +263,43 @@ ...@@ -263,43 +263,43 @@
} }
// 获取主管及其下对应组员的sale_id // 获取主管及其下对应组员的sale_id
public function getGroupSalesId($request, $role_id) // public function getGroupSalesId($request, $role_id)
{ // {
$sale_id = []; // $sale_id = [];
// 主管ID // // 主管ID
$manager_role_name = array_keys(Config('perm_args.roles'), $role_id); // $manager_role_name = array_keys(Config('perm_args.roles'), $role_id);
if ($manager_role_name) { // if ($manager_role_name) {
$manager_sales = $this->getRoleUsers($request, $manager_role_name[0]); // $manager_sales = $this->getRoleUsers($request, $manager_role_name[0]);
if ($manager_sales) { // if ($manager_sales) {
foreach ($manager_sales as $v) { // foreach ($manager_sales as $v) {
$sale_id[] = $v->userId; // $sale_id[] = $v->userId;
} // }
} // }
} // }
// 线销主管对应的客服 // // 线销主管对应的客服
$manager_to_kefu = Config('perm_args.manager_to_kefu'); // $manager_to_kefu = Config('perm_args.manager_to_kefu');
if (!in_array($role_id, array_keys($manager_to_kefu))) return 0; // if (!in_array($role_id, array_keys($manager_to_kefu))) return 0;
$sub_id = $manager_to_kefu[$role_id]; // $sub_id = $manager_to_kefu[$role_id];
$role_name = array_keys(Config('perm_args.roles'), $sub_id); // $role_name = array_keys(Config('perm_args.roles'), $sub_id);
if (!$role_name) return 0; // if (!$role_name) return 0;
$sales = $this->getRoleUsers($request, $role_name[0]); // $sales = $this->getRoleUsers($request, $role_name[0]);
if ($sales) { // if ($sales) {
foreach ($sales as $v) { // foreach ($sales as $v) {
$sale_id[] = $v->userId; // $sale_id[] = $v->userId;
} // }
} // }
return $sale_id; // return $sale_id;
} // }
/** /**
* 多角色情况下 * 多角色情况下
...@@ -310,38 +310,38 @@ ...@@ -310,38 +310,38 @@
* @param [type] $role_id [description] * @param [type] $role_id [description]
* @return [type] [description] * @return [type] [description]
*/ */
public function checkUserRoles($request, $role_id) // public function checkUserRoles($request, $role_id)
{ // {
$roles = explode(',', $role_id); // $roles = explode(',', $role_id);
$data = []; // $data = [];
$data['role_id'] = min($roles); // 默认最小值 // $data['role_id'] = min($roles); // 默认最小值
$data['sale_id'] = $request->user->userId; // 默认只能查看自己的订单数据 // $data['sale_id'] = $request->user->userId; // 默认只能查看自己的订单数据
$master = array_intersect($roles, Config('perm_args.check_all_order')); // 交集,是否能查看所有订单 // $master = array_intersect($roles, Config('perm_args.check_all_order')); // 交集,是否能查看所有订单
if ($master) { // if ($master) {
$data['role_id'] = min($master); // 设置最小值的角色 (因为系统页面都是单角色判断) // $data['role_id'] = min($master); // 设置最小值的角色 (因为系统页面都是单角色判断)
$data['sale_id'] = 0; // $data['sale_id'] = 0;
return $data; // return $data;
} // }
$intersect = array_intersect($roles, Config('perm_args.manager_order')); // 交集,获取线销主管 // $intersect = array_intersect($roles, Config('perm_args.manager_order')); // 交集,获取线销主管
if ($intersect) { // if ($intersect) {
$data['role_id'] = min($intersect); // 设置最小值的角色 // $data['role_id'] = min($intersect); // 设置最小值的角色
foreach ($intersect as $v) { // foreach ($intersect as $v) {
$sale_ids[] = $this->getGroupSalesId($request, $v); // $sale_ids[] = $this->getGroupSalesId($request, $v);
} // }
$arr = array_reduce($sale_ids, 'array_merge', array()); // 转一维数组 // $arr = array_reduce($sale_ids, 'array_merge', array()); // 转一维数组
$data['sale_id'] = array_merge(array_unique($arr)); // 去重后,再重新索引 // $data['sale_id'] = array_merge(array_unique($arr)); // 去重后,再重新索引
} // }
return $data; // return $data;
} // }
// 获取角色对应的主管邮箱 // 获取角色对应的主管邮箱
public function getManager($request) public function getManager($request)
...@@ -369,4 +369,126 @@ ...@@ -369,4 +369,126 @@
return $email; return $email;
} }
/* 订单系统权限调整 --- 20200511 */
// 获取部门人员
public function getUserByDepartmentId($department_id, $status='')
{
$department_ids = [];
$this->getSubDepartmentId($department_id, $department_ids);
$data = DB::table('user_info')->whereIn('department_id', $department_ids)
->where(function($query) use($status) {
if ($status !== '') {
$query->where('status', '=', $status);
}
})
->select('userId', 'name', 'status')
->get();
return $data;
}
// 获取下级部门ID
public function getSubDepartmentId($department_id, &$department_ids)
{
// 获取下级部门
$sub_department = DB::table('user_department')->where('parent_id', $department_id)->select('department_id', 'department_name')->get();
if ($sub_department) {
foreach ($sub_department as $v) {
$this->getSubDepartmentId($v->department_id, $department_ids);
}
}
$department_ids[] = $department_id;
return $department_ids;
}
/**
* 根据指定条件获取用户
* @param string $department_id [description]
* @param [type] $position_id [description]
* @param string $status [description]
* @return [type] [description]
*/
public function getUserByCondition($department_id='', $position_id='', $status='')
{
$map = [];
if ($position_id !== '') {
if (is_array($position_id)) { // 数组
// $map[] = ['in' => ['position_id' => $position_id]];
$str = implode(',', $position_id);
$map[] = [DB::raw("position_id in ({$str})"), '1'];
} else {
$map['position_id'] = $position_id;
}
}
$department_id !== '' && $map['department_id'] = $department_id;
$status !== '' && $map['status'] = $status; // 0-在职用户,1-离职用户
return DB::table('user_info')->where($map)->select('userId', 'name', 'position_id', 'position_name', 'department_id', 'department_name', 'status')->get();
}
// 获取下级所有人员
public function getSubSaleId($userId)
{
$sale_ids = [];
array_unshift($sale_ids, $userId); // 将当前用户添加到数组
$user_info = DB::table('user_info')->where('userId', $userId)->select('department_id')->first(); // 用户信息
if (!$user_info->department_id) return $sale_ids;
// 获取当前用户下级部门
$department = DB::table('user_department')
->where('parent_id', $user_info->department_id)
->select('department_id', 'department_name')
->get();
if (!$department) {
$tmp = DB::table('user_info')->where('department_id', $user_info->department_id)->lists('userId');
$sale_ids = array_merge($sale_ids, $tmp);
} else {
// 获取下级部门的人员
foreach ($department as $v) {
$tmp = DB::table('user_info')->where('department_id', $v->department_id)->lists('userId');
$sale_ids = array_merge($sale_ids, $tmp);
}
}
return array_unique($sale_ids); // 去重返回
}
// 根据部门、职位获取下面人员(主管/组内销售)
public function getDepartmentUser($department_id, $position_id)
{
// 获取下级部门
$sub_department = DB::table('user_department')->where('parent_id', $department_id)->select('department_id', 'department_name')->get();
if (!$sub_department) return false;
$user = [];
foreach ($sub_department as $v) {
$tmp = DB::table('user_info')->where('department_id', $v->department_id)->where('position_id', $position_id)->select('userId', 'name')->get();
if (!$tmp) continue;
foreach ($tmp as $val) {
$user[] = $val;
}
}
return $user;
}
} }
\ No newline at end of file
...@@ -125,8 +125,8 @@ class ReturnController extends Controller ...@@ -125,8 +125,8 @@ class ReturnController extends Controller
$map['order_goods_type'] = $type; // 类型 $map['order_goods_type'] = $type; // 类型
$map['sale_id'] = $request->input('sale_id', ''); $map['sale_id'] = $request->input('sale_id', '');
// 非管理员、经理、自营主管、自营主管助理,只能看到自己的退货单 // 非管理员、查看下级,只能看到自己的退货单
if (!in_array($info['role'], [1, 2, 10, 11])) { if (!in_array($info['role'], [1, 2])) {
$map['create_uid'] = $request->user->userId; $map['create_uid'] = $request->user->userId;
} }
...@@ -170,32 +170,8 @@ class ReturnController extends Controller ...@@ -170,32 +170,8 @@ class ReturnController extends Controller
// $self_kefu = $perm->getRoleUsers($request, '自营客服'); // $self_kefu = $perm->getRoleUsers($request, '自营客服');
// $info['sale_list'] = array_merge($joint_kefu, $self_kefu); // $info['sale_list'] = array_merge($joint_kefu, $self_kefu);
$key = 'search_self_sales';
$redis = Redis::connection('read');
$sale_list = $redis->get($key);
if (!$sale_list) {
// 获取所有的业务员 (包括经理、交易员、客服、测试)
$perm = new PermController; $perm = new PermController;
$sale_list = []; $sale_list = $perm->getUserByDepartmentId(Config('perm_args.sales_department_id')); // 获取所有的销售
$search_sales = Config('perm_args.search_self_sales');
if ($search_sales) {
foreach ($search_sales as $v) {
$role_name = array_keys(Config('perm_args.roles'), $v);
$temp = $perm->getRoleUsers($request, $role_name[0]);
$sale_list = array_merge($sale_list, $temp);
}
}
$sale_list = $this->assoc_unique($sale_list);
$expire = Config('perm_args.redis_search_sales_expire'); // 缓存两小时
Redis::setex($key, $expire, json_encode($sale_list));
} else {
$sale_list = json_decode($sale_list);
}
$info['sale_list'] = $sale_list; $info['sale_list'] = $sale_list;
......
<?php <?php
return [ return [
// 用户角色 // 用户角色
'roles' => [ // 'roles' => [
'管理员' => 1, // '管理员' => 1,
'经理' => 2, // '经理' => 2,
'交易员' => 3, // '交易员' => 3,
// '客服' => 4, // // '客服' => 4,
'测试' => 5, // '测试' => 5,
'京东自营' => 6, // '京东自营' => 6,
'自营客服' => 7, // '自营客服' => 7,
'运营助理' => 8, // '运营助理' => 8,
'财务' => 9, // '财务' => 9,
'自营客服主管' => 10, // '自营客服主管' => 10,
'自营客服主管助理' => 11, // '自营客服主管助理' => 11,
'自营内部采购' => 12, // '自营内部采购' => 12,
'尽调' => 13, // '尽调' => 13,
'线销一组主管' => 14, // '线销一组主管' => 14,
'线销一组客服' => 15, // '线销一组客服' => 15,
'线销二组主管' => 16, // '线销二组主管' => 16,
'线销二组客服' => 17, // '线销二组客服' => 17,
'线销三组主管' => 18, // '线销三组主管' => 18,
'线销三组客服' => 19, // '线销三组客服' => 19,
'运营' => 20, // '运营' => 20,
'产品' => 21, // '产品' => 21,
'交易主管' => 22, // '交易主管' => 22,
], // ],
// 线销主管 =》 线销客服 // 线销主管 =》 线销客服
'manager_to_kefu' => [ // 'manager_to_kefu' => [
14 => 15, // 14 => 15,
16 => 17, // 16 => 17,
18 => 19, // 18 => 19,
22 => 3, // 22 => 3,
], // ],
// 筛选自己的订单 // 筛选自己的订单
'kefu_order' => [3, 7, 12, 15, 17, 19], // 'kefu_order' => [3, 7, 12, 15, 17, 19],
// 主管角色,查看自己及其组员订单 // 主管角色,查看自己及其组员订单
'manager_order' => [14, 16, 18, 22], // 'manager_order' => [14, 16, 18, 22],
// 查看所有订单角色 // 查看所有订单角色
'check_all_order' => [1, 2, 5, 20, 21], // 'check_all_order' => [1, 2, 5, 20, 21],
// 审单时权限 (用于调价权限 changeOrder.blade.php) // 审单时权限 (用于调价权限 changeOrder.blade.php)
'is_manager_perm' => [1, 2, 10, 11, 14, 16, 18, 22], // 'is_manager_perm' => [1, 2, 10, 11, 14, 16, 18, 22],
// 筛选业务员 -- 联营列表 // // 筛选业务员 -- 联营列表
'search_joint_sales' => [3, 5, 14, 15, 16, 17, 18, 19, 22], // 'search_joint_sales' => [3, 5, 14, 15, 16, 17, 18, 19, 22],
// 筛选业务员 -- 自营列表 (包含联营、自营客服、交易员、主管) // // 筛选业务员 -- 自营列表 (包含联营、自营客服、交易员、主管)
'search_self_sales' => [3, 5, 7, 10, 11, 12, 14, 15, 16, 17, 18, 19, 22], // 'search_self_sales' => [3, 5, 7, 10, 11, 12, 14, 15, 16, 17, 18, 19, 22],
// 缓存筛选业务员 // // 缓存筛选业务员
'redis_search_sales' => [ // 'redis_search_sales' => [
1 => 'search_joint_sales', // 1 => 'search_joint_sales',
2 => 'search_self_sales', // 2 => 'search_self_sales',
], // ],
'redis_search_sales_expire' => 7200, // 缓存两小时 // 'redis_search_sales_expire' => 7200, // 缓存两小时
// 客服经理 (固定,用于推送业务员页面) // 客服经理 (固定,用于推送业务员页面)
'kefu_manager' => [ // 'kefu_manager' => [
(object)['userId'=>1445, 'name'=>'张娟', 'status'=>0], // (object)['userId'=>1445, 'name'=>'张娟', 'status'=>0],
// (object)['userId'=>1582, 'name'=>'滕欢欢', 'status'=>0], // // (object)['userId'=>1582, 'name'=>'滕欢欢', 'status'=>0],
], // ],
// 自营角色 无法查看联营订单 // 自营角色 无法查看联营订单
'self_roles' => [6, 7, 10, 11, 12], // 'self_roles' => [6, 7, 10, 11, 12],
// 菜单key // 菜单key
'perm_menus_data' => 'order_menus_href_data', 'perm_menus_data' => 'order_menus_href_data',
'perm_menus_data_expire' => 7200, 'perm_menus_data_expire' => 7200,
// 用户角色
'roles' => [
'管理员' => 1,
'查看下级' => 2,
'查看自己' => 3,
'查看订单' => 4,
'自营查看全部' => 5,
],
// 销售部门ID
'sales_department_id' => 7,
// 测试人员职位ID
'test_position_id' => [23, 24, 25],
]; ];
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
@include('detail.addGoodsNoSkuid') @include('detail.addGoodsNoSkuid')
<script> <script>
var is_manager = "{{ in_array($role, Config('perm_args.is_manager_perm')) ? true : false }}"; var is_manager = "{{ in_array($role, [1, 2]) ? true : false }}";
var isNewClient = "{{isset($isNewClient) ? $isNewClient : 0}}"; var isNewClient = "{{isset($isNewClient) ? $isNewClient : 0}}";
// var order_amount = "{{$order_info['order_amount']}}"; // var order_amount = "{{$order_info['order_amount']}}";
......
...@@ -633,21 +633,21 @@ ...@@ -633,21 +633,21 @@
@if ($order_info['order_remark']) @if ($order_info['order_remark'])
<tr> <tr>
<td>订单备注信息:</td> <td>订单备注信息:</td>
<td colspan="17">{{$order_info['order_remark']}}</td> <td colspan="18">{{$order_info['order_remark']}}</td>
</tr> </tr>
@endif @endif
@if ($order_temp_info['kefu_remark']) @if ($order_temp_info['kefu_remark'])
<tr> <tr>
<td>客服备注信息:</td> <td>客服备注信息:</td>
<td colspan="16">{{$order_temp_info['kefu_remark']}}</td> <td colspan="18">{{$order_temp_info['kefu_remark']}}</td>
</tr> </tr>
@endif @endif
@if ($order_info['order_goods_type'] == 2 && $order_temp_info['business_type'] == 1) @if ($order_info['order_goods_type'] == 2 && $order_temp_info['business_type'] == 1)
<tr> <tr>
<td>项目需求描述:</td> <td>项目需求描述:</td>
<td colspan="16">{{$order_temp_info['sample_demand_desc']}}</td> <td colspan="18">{{$order_temp_info['sample_demand_desc']}}</td>
</tr> </tr>
@endif @endif
</tfoot> </tfoot>
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
<input type="hidden" name="order_id" value="{{ $order_info['order_id'] }}"> <input type="hidden" name="order_id" value="{{ $order_info['order_id'] }}">
<table class="table table-bordered table-hover check-table" style="min-height:150px;"> <table class="table table-bordered table-hover check-table" style="min-height:150px;">
@if (!empty($joint_manager)) @if (!empty($manager))
<tr> <tr>
<td class="check-table-title" width="15%"></td> <td class="check-table-title" width="15%"></td>
<td> <td>
<ul> <ul>
@foreach ($joint_manager as $vo) @foreach ($manager as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
</tr> </tr>
@endif @endif
@if (!empty($kefu_manager)) @if (!empty($online_sales_chief))
<tr> <tr>
<td class="check-table-title"></td> <td class="check-table-title"></td>
<td> <td>
<ul> <ul>
@foreach ($kefu_manager as $vo) @foreach ($online_sales_chief as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
</tr> </tr>
@endif @endif
@if (!empty($joint_in_charge)) @if (!empty($online_sales_mgr))
<tr> <tr>
<td class="check-table-title">联营客服</td> <td class="check-table-title">线上销售</td>
<td> <td>
<ul> <ul>
<table class="table table-bordered table-hover"> <table class="table table-bordered table-hover">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<td width="10%">主管:</td> <td width="10%">主管:</td>
<td> <td>
<ul> <ul>
@foreach ($joint_in_charge as $vo) @foreach ($online_sales_mgr as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -63,11 +63,13 @@ ...@@ -63,11 +63,13 @@
</ul> </ul>
</td> </td>
</tr> </tr>
@if (!empty($online_sales_kefu_1))
<tr> <tr>
<td>线销一组:</td> <td>线销一组:</td>
<td> <td>
<ul> <ul>
@foreach ($joint_kefu_1 as $vo) @foreach ($online_sales_kefu_1 as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -77,11 +79,14 @@ ...@@ -77,11 +79,14 @@
</ul> </ul>
</td> </td>
</tr> </tr>
@endif
@if (!empty($online_sales_kefu_2))
<tr> <tr>
<td>线销二组:</td> <td>线销二组:</td>
<td> <td>
<ul> <ul>
@foreach ($joint_kefu_2 as $vo) @foreach ($online_sales_kefu_2 as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -91,11 +96,14 @@ ...@@ -91,11 +96,14 @@
</ul> </ul>
</td> </td>
</tr> </tr>
@endif
@if (!empty($online_sales_kefu_3))
<tr> <tr>
<td>线销三组:</td> <td>线销三组:</td>
<td> <td>
<ul> <ul>
@foreach ($joint_kefu_3 as $vo) @foreach ($online_sales_kefu_3 as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -105,18 +113,14 @@ ...@@ -105,18 +113,14 @@
</ul> </ul>
</td> </td>
</tr> </tr>
</table>
</ul>
</td>
</tr>
@endif @endif
@if (!empty($sale_manager)) @if (!empty($online_sales_kefu_4))
<tr> <tr>
<td class="check-table-title"></td> <td>线销四组:</td>
<td> <td>
<ul> <ul>
@foreach ($sale_manager as $vo) @foreach ($online_sales_kefu_4 as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -127,13 +131,18 @@ ...@@ -127,13 +131,18 @@
</td> </td>
</tr> </tr>
@endif @endif
</table>
</ul>
</td>
</tr>
@endif
@if (!empty($sale_list)) @if (!empty($offline_sales_chief))
<tr> <tr>
<td class="check-table-title">交易员:</td> <td class="check-table-title"></td>
<td> <td>
<ul> <ul>
@foreach ($sale_list as $vo) @foreach ($offline_sales_chief as $vo)
@if ($vo->userId == $order_info['sale_id']) @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> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
...@@ -145,17 +154,16 @@ ...@@ -145,17 +154,16 @@
</tr> </tr>
@endif @endif
@if (!empty($self_manager)) @if (!empty($offline_sales_all))
<tr> <tr>
<td class="check-table-title" width="10%">自营客服主管:</td> <td class="check-table-title">交易员:</td>
<td> <td>
<ul> <ul>
@foreach ($self_manager as $v) @foreach ($offline_sales_all as $vo)
@if ($v->userId == $order_info['sale_id']) @if ($vo->userId == $order_info['sale_id'])
<li><label><input type="radio" name="sale_id" value="{{$v->userId}}" checked /><span>{{$v->name}}</span></label></li> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}" checked /><span>{{$vo->name}}</span></label></li>
@else @else
<li><label><input type="radio" name="sale_id" value="{{$v->userId}}"/><span>{{$v->name}}</span></label></li> <li><label><input type="radio" name="sale_id" value="{{$vo->userId}}"/><span>{{$vo->name}}</span></label></li>
@endif @endif
@endforeach @endforeach
</ul> </ul>
...@@ -165,7 +173,7 @@ ...@@ -165,7 +173,7 @@
@if (!empty($self_kefu)) @if (!empty($self_kefu))
<tr> <tr>
<td class="check-table-title">自营客服</td> <td class="check-table-title">自营销售部</td>
<td> <td>
<ul> <ul>
@foreach ($self_kefu as $vo) @foreach ($self_kefu as $vo)
...@@ -197,8 +205,8 @@ ...@@ -197,8 +205,8 @@
</tr> </tr>
@endif @endif
<!-- 查看权限:当前推送人 或 管理员、经理、测试、运营助理 或 自营客服主管 --> <!-- 查看权限:当前推送人 或 管理员、查看下级权限 -->
@if ($sale_id == $order_info['sale_id'] || in_array($role, [1, 2, 5, 8, 10, 11, 14, 16, 18])) @if ($sale_id == $order_info['sale_id'] || in_array($role, [1, 2]))
<tr> <tr>
<td class="check-table-title">备注信息:</td> <td class="check-table-title">备注信息:</td>
<td> <td>
......
...@@ -143,7 +143,8 @@ ...@@ -143,7 +143,8 @@
</dl> </dl>
@endif @endif
@if (!in_array($role, [7, 15, 17, 19])) <!-- 非'查看自己'权限展示 -->
@if (!in_array($role, [3]))
<dl> <dl>
<dt>推送业务员:</dt> <dt>推送业务员:</dt>
<dd> <dd>
...@@ -223,20 +224,6 @@ ...@@ -223,20 +224,6 @@
</dl> </dl>
@endif @endif
</td> </td>
<!-- <td width="15%">
<dl>
<dt class="search-btn">
<button class="nbtn searchOrder">搜索</button>
</dt>
@if (in_array('export', $userPerms))
<dt>
<button class="nbtn exportExcel" style="background: #23c6c8 !important;">导出</button>
</dt>
@endif
</dl>
</td> -->
</tr> </tr>
</table> </table>
......
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