更新
This commit is contained in:
@@ -1160,6 +1160,8 @@ const open = async (type: string, id?: number) => {
|
|||||||
} else if (type === 'add') {
|
} else if (type === 'add') {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
formData.value.assistant_id = userStore.userInfo?.id || ''
|
formData.value.assistant_id = userStore.userInfo?.id || ''
|
||||||
|
// 字典 diagnosis_type:复诊 → follow_up(见 server/sql/tcm_diagnosis.sql)
|
||||||
|
formData.value.diagnosis_type = 'follow_up'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,10 @@ class DiagnosisValidate extends BaseValidate
|
|||||||
|
|
||||||
public function sceneAdd()
|
public function sceneAdd()
|
||||||
{
|
{
|
||||||
return $this->remove('id', true);
|
// 全局规则中含 tracking 相关字段,新增诊单不应校验诊单 ID
|
||||||
|
return $this->remove('id', true)
|
||||||
|
->remove('diagnosis_id', true)
|
||||||
|
->remove('tracking_content', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sceneEdit()
|
public function sceneEdit()
|
||||||
|
|||||||
Reference in New Issue
Block a user