|
|
@@ -63,10 +63,11 @@ class ReceivingTaskController extends Controller
|
|
|
return ['success' => false,'errors' =>['appointment_number' => ['对应预约号未找到']]];
|
|
|
}
|
|
|
if (!$delivery_appointment_car->deliveryAppointment){
|
|
|
- return [['success' => false,'errors' =>['appointment_number' => ['对应预约号未找到']]]];
|
|
|
+ return ['success' => false,'errors' =>['appointment_number' => ['对应预约号未找到']]];
|
|
|
}
|
|
|
- if (!$delivery_appointment_car->deliveryAppointment->owner_id != $request->input('owner_id')){
|
|
|
- return [['success' => false,'errors' =>['appointment_number' => ['预约号与货主未对应']]]];
|
|
|
+
|
|
|
+ if ($delivery_appointment_car->deliveryAppointment->owner_id != $request->input('owner_id')){
|
|
|
+ return ['success' => false,'errors' =>['appointment_number' => ['预约号与货主未对应']]];
|
|
|
}
|
|
|
if (ReceivingTask::query()->where('delivery_appointment_car_id',$delivery_appointment_car->id)->exists()){
|
|
|
return ['success' => false, 'errors' =>['appointment_number' => ['预约号已有对应的任务']]];
|