改进 工单删除
This commit is contained in:
parent
2d466026ab
commit
7e76bb574b
@ -150,8 +150,11 @@ public function safeDelete(): bool
|
|||||||
throw new CommonException('工单状态是 pending,无法删除');
|
throw new CommonException('工单状态是 pending,无法删除');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->isPlatform()) {
|
||||||
|
$this->delete();
|
||||||
|
} else {
|
||||||
dispatch(new WorkOrderJob($this, 'delete'));
|
dispatch(new WorkOrderJob($this, 'delete'));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user