|
|
@@ -141,6 +141,7 @@ class WorkOrderController extends Controller
|
|
|
return ['success' => true];
|
|
|
}
|
|
|
|
|
|
+ // 宝时 修改工单状态
|
|
|
public function updateWorkOrderStatusApi(Request $request): array
|
|
|
{
|
|
|
if (Gate::denies('订单管理-工单处理-宝时编辑'))
|
|
|
@@ -155,4 +156,19 @@ class WorkOrderController extends Controller
|
|
|
return ['success' => true];
|
|
|
}
|
|
|
|
|
|
+ // 承运商处理工单状态
|
|
|
+ public function logisticUpdateWorkOrderStatusApi(Request $request):array
|
|
|
+ {
|
|
|
+ if (Gate::denies('订单管理-工单处理-承运商编辑'))
|
|
|
+ return ['success' => false,'message' => '没有对应权限'];
|
|
|
+ try {
|
|
|
+ $workOrder = WorkOrder::query()->find($request['id']);
|
|
|
+ $workOrder->work_order_status = $request['work_order_status'];
|
|
|
+ $workOrder->update();
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ return ['success' => false,'message' => '编辑工单状态失败'];
|
|
|
+ }
|
|
|
+ return ['success'=> true];
|
|
|
+ }
|
|
|
+
|
|
|
}
|