改进 工单删除

This commit is contained in:
iVampireSP.com 2023-02-01 14:22:30 +08:00
parent 2d466026ab
commit 7e76bb574b
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 9 additions and 6 deletions

View File

@ -150,8 +150,11 @@ public function safeDelete(): bool
throw new CommonException('工单状态是 pending无法删除');
}
if ($this->isPlatform()) {
$this->delete();
} else {
dispatch(new WorkOrderJob($this, 'delete'));
}
return true;
}