更新
This commit is contained in:
@@ -94,10 +94,16 @@ class DiagnosisValidate extends BaseValidate
|
||||
|
||||
public function sceneAdd()
|
||||
{
|
||||
// 全局规则中含 tracking 相关字段,新增诊单不应校验诊单 ID
|
||||
// 全局规则里混有跟踪备注、AI 助手字段;新增诊单只去掉这些无关校验。
|
||||
// 不要改成 only([...]):add 还会写入现病史等多选字段,only 会把它们从请求里丢掉。
|
||||
return $this->remove('id', true)
|
||||
->remove('diagnosis_id', true)
|
||||
->remove('tracking_content', true);
|
||||
->remove('tracking_content', true)
|
||||
->remove('task', true)
|
||||
->remove('prompt', true)
|
||||
->remove('model', true)
|
||||
->remove('report_id', true)
|
||||
->remove('content', true);
|
||||
}
|
||||
|
||||
public function sceneEdit()
|
||||
|
||||
Reference in New Issue
Block a user