You've already forked guangan
工单详情
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use plugin\inspection\model\InspectionStaff;
|
||||
use plugin\ticket\model\TicketDept;
|
||||
use plugin\ticket\model\TicketReply;
|
||||
use plugin\ticket\model\TicketTicket;
|
||||
@ -134,6 +135,7 @@ class Ticket extends Controller
|
||||
{
|
||||
$this->title = "工单分配";
|
||||
if ($this->request->isPost()) {
|
||||
$this->_applyFormToken();
|
||||
// 提交
|
||||
$data = $this->_vali([
|
||||
'id.require' => '请指定工单ID!',
|
||||
@ -153,9 +155,10 @@ class Ticket extends Controller
|
||||
$ticket->state = 2;
|
||||
}
|
||||
$ticket->save();
|
||||
$this->success('工单分配成功!');
|
||||
} else {
|
||||
$this->dept_list = TicketDept::query()->scope('avail')->select();
|
||||
$this->user_list = SystemUser::query()->select();
|
||||
$this->user_list = InspectionStaff::query()->select();
|
||||
$this->fetch();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user