Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zptz-sass-kelaidian
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
李大见
zptz-sass-kelaidian
Commits
736bffc0
提交
736bffc0
authored
9月 18, 2024
作者:
窦斌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
edit
上级
aa77fbbe
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
4 行删除
+17
-4
ServiceProviderController.php
app/Http/Controllers/Service/ServiceProviderController.php
+1
-0
LoginController.php
app/Http/Controllers/User/LoginController.php
+9
-1
RequestPcMiddleware.php
app/Http/Middleware/RequestPcMiddleware.php
+1
-0
OrderListService.php
app/Services/OrderListService.php
+6
-3
没有找到文件。
app/Http/Controllers/Service/ServiceProviderController.php
浏览文件 @
736bffc0
...
...
@@ -543,6 +543,7 @@ class ServiceProviderController extends BaseController
// $adminData = $request->only(array_keys($this->validateRules['rules']));
$adminData
=
$this
->
_setAdminData
(
$adminData
,
$request
);
$adminData
[
'company_id'
]
=
$session
[
'company_id'
];
$adminData
[
'company_type'
]
=
$session
[
'com_type'
];
if
(
$adminData
[
'admin_groupnew'
]
==
3
)
{
//经销商新增一个公司
$adminData
[
'admin_groupnew'
]
=
3
;
...
...
app/Http/Controllers/User/LoginController.php
浏览文件 @
736bffc0
...
...
@@ -231,8 +231,16 @@ class LoginController extends BaseController
* |----------------------------------------------------------------------
*/
public
function
getGroupData
(
$parameter
,
$result
,
$ip
){
$com_parent_id
=
Company
::
where
(
"com_id"
,
$result
[
'company_id'
])
->
value
(
'com_parent_id'
);
$company
=
Company
::
where
(
"com_id"
,
$result
[
'company_id'
])
->
first
();
$com_parent_id
=
$company
[
'com_parent_id'
];
// $com_parent_id = Company::where("com_id",$result['company_id'])->value('com_parent_id');
$result
[
'com_parent_id'
]
=
$com_parent_id
.
","
.
$result
[
'company_id'
];
$result
[
'com_type'
]
=
$company
[
'com_type'
];
if
(
$company
[
'com_type'
]
==
2
){
$company
[
'search_id'
]
=
Admin
::
where
(
'company_id'
,
$result
[
'company_id'
])
->
where
(
"admin_groupnew"
,
3
)
->
value
(
'id'
);
}
else
{
$company
[
'search_id'
]
=
$result
[
'id'
];
}
$function
=
Functions
::
where
(
'function_type'
,
3
)
->
select
(
'function_id'
,
'function_model'
,
'function_action'
)
->
get
()
->
toArray
();
$list
=
[];
foreach
(
$function
as
$k
=>
$v
){
...
...
app/Http/Middleware/RequestPcMiddleware.php
浏览文件 @
736bffc0
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Middleware
;
use
App\Models\Company
;
use
Closure
;
use
DB
;
use
App\Models\AdminToken
;
...
...
app/Services/OrderListService.php
浏览文件 @
736bffc0
...
...
@@ -570,7 +570,7 @@ class OrderListService extends Service
if
(
!
in_array
(
$session
[
'admin_groupnew'
],
[
2
,
3
,
7
])){
//管理员可以看全部
$where
[
'gone_order_list.company_id'
]
=
$session
[
'company_id'
];
}
if
(
$session
[
'
admin_groupnew'
]
==
3
)
{
if
(
$session
[
'
com_type'
]
==
2
)
{
$where
[
'gone_order_list.agency_id'
]
=
$session
[
'company_id'
];
}
...
...
@@ -613,7 +613,7 @@ class OrderListService extends Service
$data
[
'button_search'
]
=
$export
[
'button_search'
]
??
[];
//搜索栏按钮
$list
=
CommonService
::
dataToArray
(
$paginate
->
items
());
if
(
$list
){
$list
=
self
::
getButtonDatas
(
$all_button
,
$list
);
$list
=
self
::
getButtonDatas
(
$all_button
,
$list
,
$session
);
$data
[
'list'
]
=
$list
;
$data
[
'page'
]
=
[
'count'
=>
$paginate
->
total
(),
...
...
@@ -655,7 +655,7 @@ class OrderListService extends Service
* @return string
* @author du 2021年8月18日下午3:40:48
*/
public
static
function
getButtonDatas
(
$all_button
,
$list
){
public
static
function
getButtonDatas
(
$all_button
,
$list
,
$session
){
$time
=
date
(
"Y-m-d"
,
strtotime
(
"+1 day"
));
$pts
=
PlatformService
::
getAll
(
true
,
'id'
);
$orderStau
=
OrderService
::
getOrderStatusName
();
//获取订单状态名
...
...
@@ -694,6 +694,9 @@ class OrderListService extends Service
}
$button
[]
=
'addNote,sendSmsOrderListModel'
;
if
(
$session
[
'admin_groupnew'
]
==
3
&&
$v
[
'ser_id'
]
!=
$session
[
'search_id'
]){
$button
[]
=
[];
}
$button
=
BmmcService
::
getListButton
(
$button
,
$all_button
);
$list
[
$k
][
'button_one'
]
=
$button
[
'button_one'
]
??
[];
$list
[
$k
][
'button_two'
]
=
$button
[
'button_two'
]
??
[];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论