字段调整

This commit is contained in:
2025-03-19 11:03:58 +08:00
parent 1451c3becb
commit 3d82a417a0

View File

@ -55,10 +55,6 @@ class Ticket extends Auth
public function list()
{
$query = TicketTicket::query()->scope(['avail'])->where(['fz_user_id'=>$this->staff->id]);
$status = $this->request->get('status', null);
if ($status) {
$query->where('staff_status', $status);
}
$keyword = $this->request->get('keyword', null);
if ($keyword) {
$query->where('title', 'like', "%{$keyword}%");
@ -95,7 +91,6 @@ class Ticket extends Auth
'work_days' => $data['work_days']
]);
// 已现场核实
$ticket->staff_status = 1;
$ticket->save();
$this->success('工单现场核实成功');
}
@ -116,7 +111,6 @@ class Ticket extends Auth
'imgs' => $data['imgs'],
]);
// 已维修
$ticket->staff_status = 2;
$ticket->save();
$this->success('工单维修成功');
}