This commit is contained in:
2024-12-03 10:18:07 +08:00
parent 6fcd8f7ce2
commit a6c7d1de15
14 changed files with 236 additions and 20 deletions

View File

@ -37,6 +37,21 @@ class TicketOuter extends Controller
});
}
public function my()
{
$this->title = '我的工单';
$this->user_id = $this->request->session('user')['id'];
TicketTicketOuter::mQuery()->layTable(function () {
}, function (QueryHelper $query) {
$query->like(['title|content|contact_name|ticket_address|contact_phone#keyword'])
->dateBetween(['create_at'])
->equal(['status', 'type_id']);
$query->append(['imgs_arr', 'source_type_name', 'status_text', 'type_name']);
$query->where(['current_admin_id' => $this->user_id]);
});
}
/**
* 查看工单
* @auth true