Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zptz-sass-kelaidian
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
李大见
zptz-sass-kelaidian
Commits
08ae72ef
提交
08ae72ef
authored
9月 18, 2024
作者:
窦斌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
edit
上级
736bffc0
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
62 行增加
和
14 行删除
+62
-14
OrderListController.php
app/Http/Controllers/Api/MobileWeb/OrderListController.php
+5
-0
CommonController.php
app/Http/Controllers/Common/CommonController.php
+1
-1
OrderListController.php
app/Http/Controllers/Orders/OrderListController.php
+4
-0
PayController.php
app/Http/Controllers/Service/PayController.php
+1
-1
ServiceProviderController.php
app/Http/Controllers/Service/ServiceProviderController.php
+6
-0
WarehouseController.php
app/Http/Controllers/Service/WarehouseController.php
+6
-2
AftersaleOrderService.php
app/Services/AftersaleOrderService.php
+1
-0
AftersaleOrderService.php
app/Services/Api/MobileWeb/AftersaleOrderService.php
+4
-3
OrderListService.php
app/Services/Api/MobileWeb/OrderListService.php
+24
-3
StatementsListService.php
app/Services/Api/MobileWeb/StatementsListService.php
+3
-0
OrderListService.php
app/Services/OrderListService.php
+6
-4
OrderService.php
app/Services/OrderService.php
+0
-0
api.php
routes/api.php
+1
-0
没有找到文件。
app/Http/Controllers/Api/MobileWeb/OrderListController.php
浏览文件 @
08ae72ef
...
...
@@ -268,4 +268,9 @@ class OrderListController extends Controller
$return_data
=
OrderListService
::
LicenseFeedback
(
$request
->
all
());
return
response
()
->
json
(
$return_data
);
}
//获取施工门店信息
public
function
getService
(
Request
$request
){
$return_data
=
OrderListService
::
getService
(
$request
->
all
());
return
response
()
->
json
(
$return_data
);
}
}
app/Http/Controllers/Common/CommonController.php
浏览文件 @
08ae72ef
...
...
@@ -393,7 +393,7 @@ class CommonController extends BaseController
break
;
case
2
:
if
(
$parameter
[
'company_name_like'
]
!=
'统一价格'
)
{
$parameter
[
'admin_groupnew
'
]
=
2
;
$parameter
[
'admin_groupnew
_searchin'
]
=
[
2
,
3
]
;
$list
=
AdminsService
::
getAdmins
(
$parameter
,
[
'id'
,
'company_name'
],
[]);
if
(
$Pri_id
!=
86
)
{
$lists
[
0
][
'id'
]
=
'0'
;
...
...
app/Http/Controllers/Orders/OrderListController.php
浏览文件 @
08ae72ef
...
...
@@ -133,6 +133,8 @@ class OrderListController extends BaseController
$where
=
"is_delete = 1"
;
if
(
$session_token
[
'admin_groupnew'
]
==
2
){
$where
.=
" and ser_id='"
.
$session_token
[
'id'
]
.
"'"
;
}
elseif
(
$session_token
[
'com_type'
]
==
2
){
$where
.=
" and agency_id='"
.
$session_token
[
'company_id'
]
.
"'"
;
}
else
{
if
(
!
in_array
(
$session_token
[
'admin_groupnew'
],[
7
,
8
]))
{
$where
.=
" and p_id in ("
.
$session_token
[
'admin_pt_id'
]
.
")"
;
...
...
@@ -143,6 +145,8 @@ class OrderListController extends BaseController
$session_token
=
$request
->
get
(
'session_token'
);
if
(
$session_token
[
'admin_groupnew'
]
==
2
){
$ansql
=
" ser_id in ("
.
$session_token
[
'id'
]
.
")"
;
}
elseif
(
$session_token
[
'com_type'
]
==
2
){
$where
.=
" and agency_id='"
.
$session_token
[
'company_id'
]
.
"'"
;
}
else
{
if
(
!
in_array
(
$session_token
[
'admin_groupnew'
],[
7
,
8
]))
{
$ansql
=
" p_id in ("
.
$session_token
[
'admin_pt_id'
]
.
")"
;
...
...
app/Http/Controllers/Service/PayController.php
浏览文件 @
08ae72ef
...
...
@@ -90,7 +90,7 @@ class PayController extends BaseController
if
(
$list
){
foreach
(
$list
as
$k
=>
$v
){
$button
=
[];
if
(
$v
[
'reo_pay_state'
]
==
1
&&
$v
[
'reo_type'
]
==
1
){
if
(
$v
[
'reo_pay_state'
]
==
1
&&
$v
[
'reo_type'
]
==
1
&&
$v
[
''
]
){
$button
[]
=
'payment'
;
}
$button
=
BmmcService
::
getListButton
(
$button
,
$all_button
);
...
...
app/Http/Controllers/Service/ServiceProviderController.php
浏览文件 @
08ae72ef
...
...
@@ -414,7 +414,13 @@ class ServiceProviderController extends BaseController
{
$session
=
Request
()
->
get
(
'session_token'
);
//用户信息
$brandList
=
PjBrandsService
::
getAll
();
//品牌
if
(
$session
[
'com_type'
]
==
2
){
$agent_brand
=
trim
(
$session
[
'agent_brand'
],
','
);
$agent_brand
=
explode
(
','
,
$agent_brand
);
$brandList
=
CommonService
::
arrayFilterFieldValue
(
$brandList
,[[
'id'
=>
$agent_brand
]]);
}
else
{
$brandList
=
CommonService
::
arrayFilterFieldValue
(
$brandList
,[[
'company_id'
=>
$session
[
'company_id'
]]]);
}
$serviceTypes
=
CategoryService
::
getAll
();
//服务类型
// $serviceItems = ServiceItemsService::getAll(); //服务项目
$serviceItems
=
PjBrandsService
::
dataList
();
//门店属性
...
...
app/Http/Controllers/Service/WarehouseController.php
浏览文件 @
08ae72ef
...
...
@@ -39,6 +39,7 @@ class WarehouseController extends BaseController
$session
=
Request
()
->
get
(
'session_token'
);
//用户信息
$Db
=
new
Warehouse
();
$Db
=
$Db
->
leftjoin
(
'company'
,
'com_id'
,
'='
,
'company_id'
);
$Db
=
$Db
->
where
(
'com_type'
,
2
);
if
(
$request
->
filled
(
'shck_ckmc'
)){
//仓库名称
$shck_ckmc
=
$request
->
input
(
'shck_ckmc'
);
$Db
=
$Db
->
where
(
'shck_ckmc'
,
'like'
,
'%'
.
$shck_ckmc
.
'%'
);
...
...
@@ -231,9 +232,12 @@ class WarehouseController extends BaseController
->
leftjoin
(
'pj_goods as p'
,
'p.pg_id'
,
'='
,
'g.goio_goo_id'
)
->
leftjoin
(
'warehouse as w'
,
'g.goio_ware_id'
,
'='
,
'w.id'
)
->
leftjoin
(
'company as c'
,
'c.com_id'
,
'='
,
'w.company_id'
)
->
where
(
function
(
$query
)
use
(
$request
)
{
->
where
(
function
(
$query
)
use
(
$request
,
$session
)
{
if
(
$session
[
'com_type'
]
==
2
)
{
$query
->
where
(
'w.company_id'
,
$session
[
'company_id'
]);
}
if
(
!
empty
(
$request
[
'company_id'
]))
{
$query
->
where
(
'company_id'
,
$request
[
'company_id'
]);
$query
->
where
(
'
w.
company_id'
,
$request
[
'company_id'
]);
}
})
->
where
(
function
(
$query
)
use
(
$request
)
{
...
...
app/Services/AftersaleOrderService.php
浏览文件 @
08ae72ef
...
...
@@ -890,6 +890,7 @@ class AftersaleOrderService extends Service
}
$post
[
'after_type'
]
=
$after_type
;
$post
[
'company_id'
]
=
$session
[
'company_id'
];
$post
[
'agency_id'
]
=
$orderInfo
[
'agency_id'
]
??
'0'
;
$rea
=
OrderAfter
::
insertGetId
(
$post
);
/*---------------------------------------添加售后数据结束------------------------------------------*/
if
(
$rea
){
...
...
app/Services/Api/MobileWeb/AftersaleOrderService.php
浏览文件 @
08ae72ef
...
...
@@ -47,8 +47,8 @@ class AftersaleOrderService extends Model
$list_data
=
DB
::
table
(
'order_after as o'
);
if
(
$session
[
'user_type'
]
==
3
){
$where
[
'agency_id'
]
=
$session
[
'company_id'
];
//服务商id
if
(
!
isset
(
$request
[
'search_all'
])
||
$request
[
'search_all'
]
==
1
){
//仅展示本门店
$where
[
'ser_id'
]
=
$
session
[
'admin
_id'
];
//服务商id
if
(
isset
(
$request
[
'search_company_id'
])
&&
!
empty
(
$request
[
'search_company_id'
])
){
//仅展示本门店
$where
[
'ser_id'
]
=
$
request
[
'search_company
_id'
];
//服务商id
}
}
else
{
$where
[
'ser_id'
]
=
$session
[
'admin_id'
];
//服务商id
...
...
@@ -73,7 +73,8 @@ class AftersaleOrderService extends Model
}
$wheres
=
array_merge
(
$where
,
$wheres
);
$wheres
=
CommonService
::
jointWhere
(
$wheres
);
$list_data
=
$list_data
->
whereRaw
(
$wheres
)
$list_data
=
$list_data
->
whereRaw
(
$wheres
)
->
select
(
'id'
,
'after_num'
,
'shr_id'
,
'shr_name'
,
'shr_phone'
,
'shr_address'
,
'shr_sheng'
,
'shr_shi'
,
'shr_xian'
,
'good_names'
,
'create_time'
,
'deal_sertime'
,
'finish_time'
,
'status'
,
'day_time'
);
$list_data
=
$list_data
->
orderby
(
'id'
,
'desc'
);
...
...
app/Services/Api/MobileWeb/OrderListService.php
浏览文件 @
08ae72ef
...
...
@@ -40,8 +40,8 @@ class OrderListService extends Model
->
leftJoin
(
'user as u'
,
'ol.customer_id'
,
'='
,
'u.id'
);
if
(
$session
[
'user_type'
]
==
3
){
$where
[
'agency_id'
]
=
$session
[
'company_id'
];
//服务商id
if
(
!
isset
(
$request
[
'search_all'
])
||
$request
[
'search_all'
]
==
1
){
//仅展示本门店
$where
[
'ser_id'
]
=
$
session
[
'admin
_id'
];
//服务商id
if
(
isset
(
$request
[
'search_company_id'
])
&&
!
empty
(
$request
[
'search_company_id'
])
){
//仅展示本门店
$where
[
'ser_id'
]
=
$
request
[
'search_company
_id'
];
//服务商id
}
}
else
{
$where
[
'ser_id'
]
=
$session
[
'admin_id'
];
//服务商id
...
...
@@ -1327,7 +1327,28 @@ class OrderListService extends Model
}
return
[
'ErrorCode'
=>
1
,
'ErrorMessage'
=>
'获取信息成功'
,
'Data'
=>
$order_list
];
}
/**|---------------------------------------------------------------------------------
* @name 获取服务商
* @retrun \Illuminate\Http\JsonResponse /multitype:array
* @author dou 2024/9/18 15:55
* |---------------------------------------------------------------------------------
*/
public
static
function
getService
(
$request
){
$session
=
$request
[
'session'
];
if
(
$session
[
'user_type'
]
==
3
){
$list
=
Admin
::
whereIn
(
'admin_groupnew'
,[
2
,
3
])
->
where
(
"company_id"
,
$session
[
'company_id'
]);
if
(
isset
(
$request
[
'company_name'
])
&&
!
empty
(
$request
[
'company_name'
])){
$list
=
$list
->
where
(
"company_name"
,
'like'
,
'%'
.
$request
[
'company_name'
]
.
'%'
);
}
$list
=
$list
->
orderBy
(
'admin_groupnew'
,
'DESC'
)
->
select
(
'id'
,
'company_name'
)
->
get
();
}
else
{
$list
=
[];
}
return
[
'ErrorCode'
=>
1
,
'ErrorMessage'
=>
'操作成功'
,
'Data'
=>
$list
];
}
// 获取技师
public
static
function
getInstallPerson
(
$request
)
{
...
...
app/Services/Api/MobileWeb/StatementsListService.php
浏览文件 @
08ae72ef
...
...
@@ -49,6 +49,9 @@ class StatementsListService extends Model
->
leftJoin
(
'order_msg as om'
,
'om.id'
,
'='
,
'o.order_goods_id'
);
if
(
$session
[
'user_type'
]
==
3
){
$list_data
=
$list_data
->
where
(
's.agency_id'
,
$session
[
'company_id'
]);
if
(
isset
(
$request
[
'search_company_id'
])
&&
!
empty
(
$request
[
'search_company_id'
])){
//仅展示本门店
$list_data
=
$list_data
->
where
(
's.ser_id'
,
$request
[
'search_company_id'
]);
}
if
(
!
isset
(
$request
[
'search_all'
])
||
$request
[
'search_all'
]
==
1
){
//仅展示本门店
$list_data
=
$list_data
->
where
(
's.ser_id'
,
$session
[
'admin_id'
]);
}
...
...
app/Services/OrderListService.php
浏览文件 @
08ae72ef
...
...
@@ -570,9 +570,6 @@ class OrderListService extends Service
if
(
!
in_array
(
$session
[
'admin_groupnew'
],
[
2
,
3
,
7
])){
//管理员可以看全部
$where
[
'gone_order_list.company_id'
]
=
$session
[
'company_id'
];
}
if
(
$session
[
'com_type'
]
==
2
)
{
$where
[
'gone_order_list.agency_id'
]
=
$session
[
'company_id'
];
}
$where
=
CommonService
::
jointWhere
(
$where
);
$page_size
=
$input
[
'page_size'
]
??
10
;
...
...
@@ -637,8 +634,13 @@ class OrderListService extends Service
public
static
function
getCommonWhere
(
$session
){
$where
=
[];
$where
[
'gone_order_list.is_delete'
]
=
1
;
if
(
$session
[
'admin_groupnew'
]
==
2
){
if
(
$session
[
'admin_groupnew'
]
==
2
||
$session
[
'com_type'
]
==
2
){
if
(
$session
[
'com_type'
]
==
2
)
{
$where
[
'gone_order_list.agency_id'
]
=
$session
[
'company_id'
];
}
else
{
$where
[
'gone_order_list.ser_id_searchin'
]
=
$session
[
'id'
];
}
}
else
{
if
(
!
in_array
(
$session
[
'admin_groupnew'
],[
7
,
8
]))
{
$where
[
'p_id_searchin'
]
=
$session
[
'admin_pt_id'
];
...
...
app/Services/OrderService.php
浏览文件 @
08ae72ef
routes/api.php
浏览文件 @
08ae72ef
...
...
@@ -1439,6 +1439,7 @@ Route::namespace('Api')->group(function () {
Route
::
post
(
'w1/OrderList/getLabel'
,
'MobileWeb\OrderListController@getLabel'
);
//获取标签
Route
::
post
(
'w1/OrderList/operatingRecord'
,
'MobileWeb\OrderListController@operatingRecord'
);
//获取操作记录
Route
::
post
(
'w1/OrderList/getFeedback'
,
'MobileWeb\OrderListController@getFeedback'
);
//获取安装反馈数据
Route
::
post
(
'w1/OrderList/getService'
,
'MobileWeb\OrderListController@getService'
);
//获取系统推荐服务商
Route
::
post
(
'w1/OrderList/imageFeedback'
,
'MobileWeb\OrderListController@imageFeedback'
);
//施工反馈,图片反馈
Route
::
post
(
'w1/OrderList/LicenseFeedback'
,
'MobileWeb\OrderListController@LicenseFeedback'
);
//施工反馈,车牌反馈
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论