'datetime', 'repair_type' => SignTime::class, 'sign_type' => SignType::class, ]; public function canUpdate(): bool { return in_array($this->workflow?->check_status, [CheckStatus::None, CheckStatus::Fail, CheckStatus::Cancel]); } public function checkSuccess() { EmployeeSignService::make()->signDay($this->employee, $this->repair_type, $this->date, [ 'type' => $this->sign_type, 'remarks' => $this->reason, 'position' => ['address' => '无'], 'is_repair' => 1, 'outside_remarks' => $this->outside_remarks, 'repair_id' => $this->id, ]); } public function modelFilter() { return \App\Admin\Filters\EmployeeSignRepairFilter::class; } public function store() { return $this->belongsTo(Store::class, 'store_id'); } public function employee() { return $this->belongsTo(Employee::class, 'employee_id'); } }