工单详情

This commit is contained in:
2024-12-03 22:06:07 +08:00
parent d13f82c391
commit 1fc0caafe5
7 changed files with 203 additions and 124 deletions

View File

@ -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();
}
}