weizong song 5 years ago
parent 0609f9a07b
commit 46c778da23

@ -5,6 +5,7 @@ namespace App\Http\Controllers\Manager;
use AlicFeng\IdentityCard\InfoHelper; use AlicFeng\IdentityCard\InfoHelper;
use App\Customer; use App\Customer;
use App\Events\OrderAssigned;
use App\Models\Approval; use App\Models\Approval;
use App\Models\ApprovalItems; use App\Models\ApprovalItems;
use App\Models\Balance; use App\Models\Balance;
@ -481,6 +482,9 @@ class OrdersController extends CommonController
]); ]);
$order->getSerial(); $order->getSerial();
if (request()->paramedic_id) {
event(new OrderAssigned($order));
}
DB::commit(); DB::commit();
return $this->getOrder($order->id); return $this->getOrder($order->id);
} catch (\Exception $exception) { } catch (\Exception $exception) {

Loading…
Cancel
Save