This commit is contained in:
2025-03-27 00:14:15 +08:00
parent d8b1f34a0a
commit 9293e5767c
14 changed files with 138 additions and 205 deletions

View File

@ -371,6 +371,10 @@ class Ticket extends Controller
if ($staff->isEmpty()) {
$this->error('未找到维修人员信息');
}
$ticket->gc_content = '';
$ticket->zf_content = '';
$ticket->ys_content = '';
$ticket->work_days = null;
$view = $ticket->views()->save([
'staff_id'=>$instance_data['staff_id'],
'status'=>0,
@ -383,6 +387,7 @@ class Ticket extends Controller
'type' => 'TICKET_VIEW',
'oid' => $view->id,
]);
$ticket->save();
$this->success('创建成功!', $view);
} else {
$this->vo = $ticket;