You've already forked guangan
2
This commit is contained in:
@ -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;
|
||||
|
@ -200,6 +200,7 @@ class TicketOuter extends Controller
|
||||
TicketTicket::mk()->rollback();
|
||||
$this->error("保存失败");
|
||||
}
|
||||
$this->success("保存成功");
|
||||
} else {
|
||||
$this->vo = $ticket;
|
||||
$this->ticket = $ticket;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user