From 87aa221719e7ad9887bb9ea10e62b2e3bbf53fef Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 17 Mar 2025 10:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=AE=A1=E6=A0=B8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/controller/Ticket.php | 15 +++ .../src/view/ticket/my.html | 104 ++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 plugs/think-plugs-ticket/src/view/ticket/my.html diff --git a/plugs/think-plugs-ticket/src/controller/Ticket.php b/plugs/think-plugs-ticket/src/controller/Ticket.php index 5051ba5..d31e6cf 100644 --- a/plugs/think-plugs-ticket/src/controller/Ticket.php +++ b/plugs/think-plugs-ticket/src/controller/Ticket.php @@ -348,4 +348,19 @@ class Ticket extends Controller } $this->success('审核成功!'); } + + public function my() { + $this->title = '待我审核'; + $this->type_list = TicketType::getList(); + $this->user_id = $this->request->session('user')['id']; + TicketTicket::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->whereIn("id", ApprovalStep::query()->where(['approver_id' => $this->user_id, 'status' => 0, 'approver_type' => 1, 'instance.status' => 0])) + ->append(['imgs_arr', 'source_type_name', 'status_text', 'type_name', 'last_reply'])->with('approval'); + }); + } } \ No newline at end of file diff --git a/plugs/think-plugs-ticket/src/view/ticket/my.html b/plugs/think-plugs-ticket/src/view/ticket/my.html new file mode 100644 index 0000000..448f835 --- /dev/null +++ b/plugs/think-plugs-ticket/src/view/ticket/my.html @@ -0,0 +1,104 @@ +{extend name="table"} + +{block name="button"} + + + + +{/block} + +{block name="content"} +
+
+
+
+ {include file='ticket/index_search'} +
+
+
+
+
+ +{/block} + +{block name='style'} + +{/block} + +{block name='script'} + +{/block} \ No newline at end of file