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;

View File

@ -200,6 +200,7 @@ class TicketOuter extends Controller
TicketTicket::mk()->rollback();
$this->error("保存失败");
}
$this->success("保存成功");
} else {
$this->vo = $ticket;
$this->ticket = $ticket;

View File

@ -52,7 +52,7 @@ class UserShare extends Controller
$where = $this->_vali([
'id.require' => '随手拍ID不能为空',
]);
$this->vo = TicketUserShare::mk()->where($where)->with(['linked_ticket'])->findOrEmpty();
$this->vo = TicketUserShare::mk()->where($where)->with(['linked_ticket', 'logs'])->findOrEmpty();
if ($this->vo->isEmpty()) $this->error('用户随手拍不存在!');
if (!$this->vo->linked_ticket_id) {
$this->ticket_list = TicketTicket::mk()->scope(['avail'])->select();