This commit is contained in:
Your Name
2026-05-06 09:03:08 +08:00
parent 815ea9e025
commit ef4800e82a
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -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()