|
@@ -1,13 +1,13 @@
|
|
|
import React, { useRef, useState } from 'react'
|
|
import React, { useRef, useState } from 'react'
|
|
|
-import { Form, Button, Input, Radio, DatePicker, Switch } from 'antd'
|
|
|
|
|
|
|
+import { Form, Button, Radio, DatePicker, Switch } from 'antd'
|
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
|
import { Plus } from '@icon-park/react'
|
|
import { Plus } from '@icon-park/react'
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import ModalDragForm from '@/components/Modal/src/components/ModalDragForm'
|
|
import ModalDragForm from '@/components/Modal/src/components/ModalDragForm'
|
|
|
|
|
+import { ProFormTextArea } from '@ant-design/pro-form'
|
|
|
|
|
|
|
|
const AddRecord = props => {
|
|
const AddRecord = props => {
|
|
|
const formRef = useRef(null)
|
|
const formRef = useRef(null)
|
|
|
- const { TextArea } = Input
|
|
|
|
|
const { onConfirm } = props
|
|
const { onConfirm } = props
|
|
|
const [showExtraItem, setShowExtraItem] = useState(false)
|
|
const [showExtraItem, setShowExtraItem] = useState(false)
|
|
|
|
|
|
|
@@ -56,9 +56,8 @@ const AddRecord = props => {
|
|
|
<Form.Item name="date" label="服务日期" initialValue={dayjs(new Date())}>
|
|
<Form.Item name="date" label="服务日期" initialValue={dayjs(new Date())}>
|
|
|
<DatePicker style={{ width: '100%' }} disabledDate={disabledDate} />
|
|
<DatePicker style={{ width: '100%' }} disabledDate={disabledDate} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item name="mark" label="内容">
|
|
|
|
|
- <TextArea rows={3} />
|
|
|
|
|
- </Form.Item>
|
|
|
|
|
|
|
+ <ProFormTextArea name="mark" label="内容" />
|
|
|
|
|
+
|
|
|
<div className="pb-5">
|
|
<div className="pb-5">
|
|
|
<Switch onChange={onChange} />
|
|
<Switch onChange={onChange} />
|
|
|
<span className="ml-2">添加备忘录</span>
|
|
<span className="ml-2">添加备忘录</span>
|
|
@@ -68,9 +67,7 @@ const AddRecord = props => {
|
|
|
<Form.Item name="remindTime" label="备忘日期">
|
|
<Form.Item name="remindTime" label="备忘日期">
|
|
|
<DatePicker style={{ width: '100%' }} disabledDate={disabledDate} />
|
|
<DatePicker style={{ width: '100%' }} disabledDate={disabledDate} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item name="memoContent" label="备忘内容">
|
|
|
|
|
- <TextArea rows={2} />
|
|
|
|
|
- </Form.Item>
|
|
|
|
|
|
|
+ <ProFormTextArea name="memoContent" label="备忘内容" />
|
|
|
</>
|
|
</>
|
|
|
) : null}
|
|
) : null}
|
|
|
</ModalDragForm>
|
|
</ModalDragForm>
|