|
@@ -76,7 +76,15 @@ const BasicInfoForm: React.FC<BasicInfoFormProps> = ({ style, form }) => {
|
|
|
|
|
|
const intl = useIntl();
|
|
|
return (
|
|
|
- <Form form={form} layout="vertical" style={style} className="px-2">
|
|
|
+ <Form
|
|
|
+ form={form}
|
|
|
+ layout="vertical"
|
|
|
+ style={style}
|
|
|
+ className="px-2"
|
|
|
+ initialValues={{
|
|
|
+ patient_dob: dayjs(),
|
|
|
+ }}
|
|
|
+ >
|
|
|
<Form.Item
|
|
|
label={
|
|
|
<FormattedMessage
|
|
@@ -195,11 +203,7 @@ const BasicInfoForm: React.FC<BasicInfoFormProps> = ({ style, form }) => {
|
|
|
validateTrigger={registerFormFields.patient_dob.trigger}
|
|
|
rules={registerFormFields.patient_dob.validation}
|
|
|
>
|
|
|
- <DatePicker
|
|
|
- format="YYYY-MM-DD"
|
|
|
- defaultValue={dayjs()}
|
|
|
- style={{ width: '100%' }}
|
|
|
- />
|
|
|
+ <DatePicker format="YYYY-MM-DD" style={{ width: '100%' }} />
|
|
|
</Form.Item>
|
|
|
<Form.Item
|
|
|
label={
|